From 323c18c497f2d072b89a8be3a74ff5384743c666 Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 13:08:39 +0100 Subject: [PATCH 1/7] remove all uses six use from tests --- tests/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/util.py b/tests/util.py index cd7db1df3..9cd91c6c7 100644 --- a/tests/util.py +++ b/tests/util.py @@ -12,7 +12,6 @@ from contextlib import contextmanager from oci._vendor.requests.exceptions import Timeout from oci._vendor.requests.exceptions import ConnectionError -from oci._vendor import six from . import test_config_container try: @@ -194,7 +193,7 @@ def camelize(to_camelize, uppercase_first_letter=False): # ignore_for_parent_keys will not convert the sub-nodes of that key in dictionary # such as for defineTag the key is defined by user, we don't want to covert it to camel case def make_dict_keys_camel_case(original_obj, ignore_for_parent_keys=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): @@ -204,7 +203,7 @@ def make_dict_keys_camel_case(original_obj, ignore_for_parent_keys=None): if isinstance(original_obj, abc.Mapping): new_dict = {} - for key, value in six.iteritems(original_obj): + for key, value in original_obj.items(): camelized_key = camelize(key) if ignore_for_parent_keys is not None and camelized_key in ignore_for_parent_keys: From 065cdd90dec66561f38bae3543d0ec10afefb45b Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 14:50:42 +0100 Subject: [PATCH 2/7] scripted: remove common iteritems & iterkeys done automatically with the following: find src/oci -type f -print | xargs gsed -i 's|six\.iterkeys(kwargs)|kwargs.keys()|g' find src/oci -type f -print | xargs gsed -i 's|six\.iteritems(header_params)|header_params.items()|g' find src/oci -type f -print | xargs gsed -i 's|six\.iteritems(path_params)|path_params.items()|g' find src/oci -type f -print | xargs gsed -i 's|six\.iteritems(query_params)|query_params.items()|g' --- .../access_governance_cp_client.py | 54 +- ...pplication_dependency_management_client.py | 272 +- .../ai_data_platform_client.py | 86 +- .../ai_document/ai_service_document_client.py | 220 +- .../ai_language/ai_service_language_client.py | 284 +- src/oci/ai_speech/ai_service_speech_client.py | 132 +- src/oci/ai_vision/ai_service_vision_client.py | 378 +- src/oci/analytics/analytics_client.py | 188 +- .../announcement_client.py | 38 +- .../announcement_subscription_client.py | 66 +- .../announcements_preferences_client.py | 26 +- .../announcements_service/service_client.py | 6 +- src/oci/api_platform/api_platform_client.py | 76 +- .../apiaccesscontrol/api_metadata_client.py | 20 +- .../privileged_api_control_client.py | 44 +- .../privileged_api_requests_client.py | 50 +- .../privileged_api_work_request_client.py | 42 +- src/oci/apigateway/api_gateway_client.py | 212 +- src/oci/apigateway/deployment_client.py | 64 +- src/oci/apigateway/gateway_client.py | 64 +- src/oci/apigateway/subscribers_client.py | 64 +- src/oci/apigateway/usage_plans_client.py | 64 +- src/oci/apigateway/work_requests_client.py | 42 +- src/oci/apm_config/config_client.py | 96 +- .../apm_control_plane/apm_domain_client.py | 112 +- .../apm_synthetics/apm_synthetic_client.py | 244 +- src/oci/apm_traces/attributes_client.py | 48 +- src/oci/apm_traces/query_client.py | 12 +- src/oci/apm_traces/scheduled_query_client.py | 42 +- src/oci/apm_traces/trace_client.py | 50 +- .../appmgmt_control/appmgmt_control_client.py | 64 +- src/oci/artifacts/artifacts_client.py | 234 +- src/oci/audit/audit_client.py | 14 +- src/oci/autoscaling/auto_scaling_client.py | 84 +- src/oci/bastion/bastion_client.py | 110 +- src/oci/bds/bds_client.py | 722 ++-- .../blockchain/blockchain_platform_client.py | 218 +- src/oci/budget/budget_client.py | 76 +- .../capacity_management_client.py | 232 +- .../demand_signal_client.py | 84 +- .../internal_demand_signal_client.py | 82 +- src/oci/certificates/certificates_client.py | 48 +- .../certificates_management_client.py | 240 +- src/oci/cims/incident_client.py | 52 +- src/oci/cloud_bridge/common_client.py | 42 +- src/oci/cloud_bridge/discovery_client.py | 108 +- src/oci/cloud_bridge/inventory_client.py | 116 +- src/oci/cloud_bridge/ocb_agent_svc_client.py | 164 +- src/oci/cloud_guard/cloud_guard_client.py | 1154 +++--- src/oci/cloud_migrations/migration_client.py | 318 +- .../cluster_placement_groups_cp_client.py | 100 +- .../compute_cloud_at_customer_client.py | 84 +- .../compute_instance_agent_client.py | 42 +- .../compute_instance_agent/plugin_client.py | 20 +- .../pluginconfig_client.py | 6 +- .../container_engine_client.py | 370 +- .../container_instance_client.py | 138 +- src/oci/core/blockstorage_client.py | 382 +- src/oci/core/compute_client.py | 850 ++--- src/oci/core/compute_management_client.py | 230 +- src/oci/core/virtual_network_client.py | 1730 ++++----- src/oci/dashboard_service/dashboard_client.py | 42 +- .../dashboard_group_client.py | 42 +- src/oci/data_catalog/data_catalog_client.py | 1314 +++---- src/oci/data_flow/data_flow_client.py | 336 +- .../data_integration_client.py | 1398 +++---- .../data_labeling_management_client.py | 130 +- .../data_labeling_client.py | 104 +- src/oci/data_safe/data_safe_client.py | 2774 +++++++------- src/oci/data_science/data_science_client.py | 1220 +++---- src/oci/database/database_client.py | 3212 ++++++++--------- .../db_management_client.py | 2226 ++++++------ .../diagnosability_client.py | 40 +- .../managed_my_sql_databases_client.py | 130 +- src/oci/database_management/perfhub_client.py | 8 +- .../database_management/sql_tuning_client.py | 150 +- .../database_migration_client.py | 336 +- .../database_tools/database_tools_client.py | 264 +- .../dblm/db_life_cycle_management_client.py | 94 +- .../db_multicloud_aws_provider_client.py | 102 +- .../db_multicloud_gcp_provider_client.py | 116 +- .../multi_cloud_resource_discovery_client.py | 44 +- .../oracle_db_azure_blob_container_client.py | 44 +- .../oracle_db_azure_blob_mount_client.py | 44 +- .../oracle_db_azure_connector_client.py | 60 +- .../oracle_db_azure_key_client.py | 16 +- ...racle_db_azure_vault_association_client.py | 52 +- .../oracle_db_azure_vault_client.py | 52 +- src/oci/dbmulticloud/work_request_client.py | 42 +- src/oci/decorators.py | 2 +- .../delegate_access_control_client.py | 200 +- .../work_request_client.py | 34 +- .../demand_signal/occ_demand_signal_client.py | 50 +- src/oci/desktops/desktop_service_client.py | 170 +- src/oci/devops/devops_client.py | 1132 +++--- src/oci/dif/stack_client.py | 100 +- .../disaster_recovery_client.py | 266 +- ...istributed_autonomous_db_service_client.py | 154 +- ...uted_db_private_endpoint_service_client.py | 50 +- .../distributed_db_service_client.py | 154 +- ...tributed_db_work_request_service_client.py | 34 +- src/oci/dns/dns_client.py | 488 +-- src/oci/em_warehouse/em_warehouse_client.py | 102 +- src/oci/email/email_client.py | 368 +- src/oci/email_data_plane/email_dp_client.py | 8 +- src/oci/events/events_client.py | 42 +- src/oci/file_storage/file_storage_client.py | 592 +-- .../fleet_apps_management_admin_client.py | 188 +- .../fleet_apps_management_catalog_client.py | 66 +- .../fleet_apps_management_client.py | 262 +- ...ps_management_maintenance_window_client.py | 34 +- ...fleet_apps_management_operations_client.py | 248 +- .../fleet_apps_management_provision_client.py | 42 +- .../fleet_apps_management_runbooks_client.py | 194 +- ...eet_apps_management_work_request_client.py | 34 +- .../fleet_software_update_client.py | 350 +- src/oci/functions/functions_invoke_client.py | 8 +- .../functions/functions_management_client.py | 110 +- .../fusion_apps/fusion_applications_client.py | 328 +- src/oci/generative_ai/generative_ai_client.py | 244 +- .../generative_ai_agent_client.py | 270 +- .../generative_ai_agent_runtime_client.py | 48 +- .../generative_ai_inference_client.py | 24 +- .../generic_artifacts_content_client.py | 24 +- .../sharded_database_service_client.py | 232 +- src/oci/golden_gate/golden_gate_client.py | 756 ++-- .../governance_rule_client.py | 104 +- .../work_request_client.py | 42 +- src/oci/healthchecks/health_checks_client.py | 118 +- src/oci/identity/identity_client.py | 990 ++--- .../identity_data_plane/dataplane_client.py | 6 +- .../identity_domains_client.py | 2438 ++++++------- .../integration_instance_client.py | 148 +- src/oci/iot/iot_client.py | 304 +- src/oci/jms/java_management_service_client.py | 744 ++-- .../java_download_client.py | 172 +- src/oci/jms_utils/jms_utils_client.py | 128 +- src/oci/key_management/ekm_client.py | 34 +- src/oci/key_management/kms_crypto_client.py | 22 +- .../key_management/kms_hsm_cluster_client.py | 92 +- .../key_management/kms_management_client.py | 148 +- src/oci/key_management/kms_vault_client.py | 104 +- .../license_manager/license_manager_client.py | 114 +- src/oci/limits/limits_client.py | 28 +- src/oci/limits/quotas_client.py | 54 +- src/oci/load_balancer/load_balancer_client.py | 478 +-- src/oci/lockbox/lockbox_client.py | 174 +- src/oci/log_analytics/log_analytics_client.py | 1782 ++++----- src/oci/logging/logging_management_client.py | 222 +- src/oci/loggingingestion/logging_client.py | 8 +- src/oci/loggingsearch/log_search_client.py | 6 +- .../lustre_file_storage_client.py | 176 +- src/oci/managed_kafka/kafka_cluster_client.py | 168 +- .../management_agent_client.py | 246 +- .../management_dashboard/dashx_apis_client.py | 128 +- src/oci/marketplace/account_client.py | 12 +- src/oci/marketplace/marketplace_client.py | 244 +- .../attachment_client.py | 42 +- .../marketplace_private_offer/offer_client.py | 42 +- .../marketplace_publisher_client.py | 614 ++-- .../media_services/media_services_client.py | 478 +-- src/oci/media_services/media_stream_client.py | 10 +- src/oci/mngdmac/mac_device_client.py | 26 +- src/oci/mngdmac/mac_order_client.py | 84 +- .../model_deployment_client.py | 16 +- src/oci/monitoring/monitoring_client.py | 128 +- src/oci/multicloud/metadata_client.py | 18 +- .../multi_clouds_metadata_client.py | 16 +- .../multicloud/multicloud_resources_client.py | 6 +- .../multicloudsubscriptions_client.py | 6 +- .../multicloud/omhub_network_anchor_client.py | 16 +- .../omhub_resource_anchor_client.py | 16 +- src/oci/mysql/channels_client.py | 50 +- src/oci/mysql/db_backups_client.py | 62 +- src/oci/mysql/db_system_client.py | 130 +- src/oci/mysql/mysqlaas_client.py | 46 +- src/oci/mysql/replicas_client.py | 34 +- src/oci/mysql/work_requests_client.py | 34 +- .../network_firewall_client.py | 758 ++-- .../network_load_balancer_client.py | 276 +- src/oci/nosql/nosql_client.py | 218 +- .../object_storage/object_storage_client.py | 482 +-- .../internal/download/DownloadManager.py | 16 +- .../internal/download/DownloadThread.py | 2 +- src/oci/oce/oce_instance_client.py | 76 +- .../oci_control_center/occ_metrics_client.py | 22 +- src/oci/ocvp/cluster_client.py | 34 +- src/oci/ocvp/datastore_client.py | 50 +- src/oci/ocvp/datastore_cluster_client.py | 90 +- src/oci/ocvp/esxi_host_client.py | 60 +- src/oci/ocvp/sddc_client.py | 102 +- src/oci/ocvp/work_request_client.py | 34 +- src/oci/oda/management_client.py | 476 +-- src/oci/oda/oda_client.py | 138 +- src/oci/oda/odapackage_client.py | 58 +- .../billing_schedule_client.py | 6 +- src/oci/onesubscription/commitment_client.py | 14 +- .../onesubscription/computed_usage_client.py | 22 +- .../onesubscription/invoice_summary_client.py | 12 +- .../organization_subscription_client.py | 6 +- src/oci/onesubscription/ratecard_client.py | 6 +- .../subscribed_service_client.py | 16 +- .../onesubscription/subscription_client.py | 6 +- .../ons/notification_control_plane_client.py | 42 +- src/oci/ons/notification_data_plane_client.py | 78 +- src/oci/opa/opa_instance_client.py | 100 +- .../opensearch_cluster_backup_client.py | 30 +- .../opensearch/opensearch_cluster_client.py | 124 +- .../opensearch_cluster_pipeline_client.py | 34 +- .../access_requests_client.py | 84 +- .../operator_actions_client.py | 14 +- .../operator_control_assignment_client.py | 60 +- .../operator_control_client.py | 44 +- src/oci/opsi/operations_insights_client.py | 1310 +++---- src/oci/optimizer/optimizer_client.py | 188 +- src/oci/os_management_hub/event_client.py | 62 +- .../lifecycle_environment_client.py | 100 +- .../managed_instance_client.py | 268 +- .../managed_instance_group_client.py | 212 +- .../management_station_client.py | 76 +- .../os_management_hub/onboarding_client.py | 100 +- .../reporting_managed_instance_client.py | 22 +- .../os_management_hub/scheduled_job_client.py | 50 +- .../software_source_client.py | 254 +- .../os_management_hub/work_request_client.py | 42 +- .../address_rule_service_client.py | 10 +- src/oci/osp_gateway/address_service_client.py | 16 +- src/oci/osp_gateway/invoice_service_client.py | 46 +- .../subscription_service_client.py | 46 +- .../billing_schedule_client.py | 6 +- .../organization_subscription_client.py | 6 +- .../osub_subscription/commitment_client.py | 14 +- src/oci/osub_subscription/ratecard_client.py | 6 +- .../osub_subscription/subscription_client.py | 6 +- src/oci/osub_usage/computed_usage_client.py | 22 +- src/oci/psa/private_service_access_client.py | 90 +- src/oci/psql/postgresql_client.py | 254 +- src/oci/queue/queue_admin_client.py | 84 +- src/oci/queue/queue_client.py | 70 +- src/oci/recovery/database_recovery_client.py | 194 +- src/oci/redis/oci_cache_config_set_client.py | 52 +- .../oci_cache_default_config_set_client.py | 16 +- src/oci/redis/oci_cache_user_client.py | 52 +- src/oci/redis/redis_cluster_client.py | 120 +- src/oci/redis/redis_identity_client.py | 8 +- .../monitored_region_client.py | 26 +- .../resource_analytics_instance_client.py | 100 +- .../tenancy_attachment_client.py | 34 +- .../resource_manager_client.py | 396 +- src/oci/resource_scheduler/schedule_client.py | 106 +- .../resource_search/resource_search_client.py | 20 +- src/oci/rover/rover_bundle_client.py | 68 +- src/oci/rover/rover_cluster_client.py | 58 +- src/oci/rover/rover_entitlement_client.py | 44 +- src/oci/rover/rover_node_client.py | 114 +- src/oci/rover/shape_client.py | 6 +- src/oci/rover/work_requests_client.py | 42 +- src/oci/sch/connector_plugins_client.py | 14 +- src/oci/sch/service_connector_client.py | 92 +- src/oci/secrets/secrets_client.py | 26 +- .../security_attribute_client.py | 134 +- .../service_catalog/service_catalog_client.py | 200 +- .../service_manager_proxy_client.py | 16 +- .../stack_monitoring_client.py | 624 ++-- src/oci/streaming/stream_admin_client.py | 126 +- src/oci/streaming/stream_client.py | 70 +- .../domain_client.py | 34 +- .../domain_governance_client.py | 34 +- .../governance_client.py | 16 +- .../link_client.py | 22 +- .../orders_client.py | 16 +- .../organization_client.py | 80 +- .../recipient_invitation_client.py | 38 +- .../sender_invitation_client.py | 34 +- .../subscription_client.py | 84 +- .../work_request_client.py | 34 +- .../threat_intelligence/threatintel_client.py | 34 +- src/oci/usage/resources_client.py | 12 +- src/oci/usage/rewards_client.py | 60 +- src/oci/usage/usagelimits_client.py | 6 +- src/oci/usage_api/usageapi_client.py | 240 +- src/oci/vault/vaults_client.py | 100 +- src/oci/vbs_inst/vbs_instance_client.py | 76 +- src/oci/visual_builder/vb_instance_client.py | 108 +- src/oci/vn_monitoring/vn_monitoring_client.py | 90 +- .../vulnerability_scanning_client.py | 428 +-- src/oci/waa/waa_client.py | 92 +- src/oci/waa/work_request_client.py | 34 +- src/oci/waas/redirect_client.py | 42 +- src/oci/waas/waas_client.py | 526 +-- src/oci/waf/waf_client.py | 172 +- .../weblogic_management_service_client.py | 336 +- ...management_service_configuration_client.py | 12 +- src/oci/work_requests/work_request_client.py | 34 +- src/oci/zpr/zpr_client.py | 112 +- 295 files changed, 28466 insertions(+), 28466 deletions(-) diff --git a/src/oci/access_governance_cp/access_governance_cp_client.py b/src/oci/access_governance_cp/access_governance_cp_client.py index 6f1caf38e..b0a44cbc8 100644 --- a/src/oci/access_governance_cp/access_governance_cp_client.py +++ b/src/oci/access_governance_cp/access_governance_cp_client.py @@ -179,7 +179,7 @@ def change_governance_instance_compartment(self, governance_instance_id, change_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_governance_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_governance_instance_compartment(self, governance_instance_id, change_ "governanceInstanceId": governance_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_governance_instance_compartment(self, governance_instance_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_governance_instance(self, create_governance_instance_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_governance_instance got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_governance_instance(self, create_governance_instance_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def delete_governance_instance(self, governance_instance_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_governance_instance got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def delete_governance_instance(self, governance_instance_id, **kwargs): "governanceInstanceId": governance_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def delete_governance_instance(self, governance_instance_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -493,7 +493,7 @@ def get_governance_instance(self, governance_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_governance_instance got unknown kwargs: {extra_kwargs!r}") @@ -502,9 +502,9 @@ def get_governance_instance(self, governance_instance_id, **kwargs): "governanceInstanceId": governance_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -513,7 +513,7 @@ def get_governance_instance(self, governance_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -591,7 +591,7 @@ def get_governance_instance_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_governance_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -599,14 +599,14 @@ def get_governance_instance_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -716,7 +716,7 @@ def list_governance_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_governance_instances got unknown kwargs: {extra_kwargs!r}") @@ -745,14 +745,14 @@ def list_governance_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -841,7 +841,7 @@ def update_governance_instance(self, update_governance_instance_details, governa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_governance_instance got unknown kwargs: {extra_kwargs!r}") @@ -850,9 +850,9 @@ def update_governance_instance(self, update_governance_instance_details, governa "governanceInstanceId": governance_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -862,7 +862,7 @@ def update_governance_instance(self, update_governance_instance_details, governa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -953,7 +953,7 @@ def update_governance_instance_configuration(self, update_governance_instance_co "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_governance_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -961,7 +961,7 @@ def update_governance_instance_configuration(self, update_governance_instance_co query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -969,7 +969,7 @@ def update_governance_instance_configuration(self, update_governance_instance_co "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/adm/application_dependency_management_client.py b/src/oci/adm/application_dependency_management_client.py index 8a0d14627..d7c071a43 100644 --- a/src/oci/adm/application_dependency_management_client.py +++ b/src/oci/adm/application_dependency_management_client.py @@ -170,7 +170,7 @@ def activate_remediation_recipe(self, remediation_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_remediation_recipe got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def activate_remediation_recipe(self, remediation_recipe_id, **kwargs): "remediationRecipeId": remediation_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def activate_remediation_recipe(self, remediation_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def cancel_remediation_run(self, remediation_run_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_remediation_run got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def cancel_remediation_run(self, remediation_run_id, **kwargs): "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -305,7 +305,7 @@ def cancel_remediation_run(self, remediation_run_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -415,7 +415,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -512,7 +512,7 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_knowledge_base_compartment got unknown kwargs: {extra_kwargs!r}") @@ -521,9 +521,9 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -534,7 +534,7 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def change_remediation_recipe_compartment(self, remediation_recipe_id, change_re "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_remediation_recipe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -643,9 +643,9 @@ def change_remediation_recipe_compartment(self, remediation_recipe_id, change_re "remediationRecipeId": remediation_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -656,7 +656,7 @@ def change_remediation_recipe_compartment(self, remediation_recipe_id, change_re "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -754,7 +754,7 @@ def change_remediation_run_compartment(self, remediation_run_id, change_remediat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_remediation_run_compartment got unknown kwargs: {extra_kwargs!r}") @@ -763,9 +763,9 @@ def change_remediation_run_compartment(self, remediation_run_id, change_remediat "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -776,7 +776,7 @@ def change_remediation_run_compartment(self, remediation_run_id, change_remediat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -874,7 +874,7 @@ def change_vulnerability_audit_compartment(self, vulnerability_audit_id, change_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vulnerability_audit_compartment got unknown kwargs: {extra_kwargs!r}") @@ -883,9 +883,9 @@ def change_vulnerability_audit_compartment(self, vulnerability_audit_id, change_ "vulnerabilityAuditId": vulnerability_audit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -896,7 +896,7 @@ def change_vulnerability_audit_compartment(self, vulnerability_audit_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -983,7 +983,7 @@ def create_knowledge_base(self, create_knowledge_base_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -994,7 +994,7 @@ def create_knowledge_base(self, create_knowledge_base_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1079,7 +1079,7 @@ def create_remediation_recipe(self, create_remediation_recipe_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_remediation_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1090,7 +1090,7 @@ def create_remediation_recipe(self, create_remediation_recipe_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1175,7 +1175,7 @@ def create_remediation_run(self, create_remediation_run_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_remediation_run got unknown kwargs: {extra_kwargs!r}") @@ -1186,7 +1186,7 @@ def create_remediation_run(self, create_remediation_run_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1281,7 +1281,7 @@ def create_vulnerability_audit(self, create_vulnerability_audit_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vulnerability_audit got unknown kwargs: {extra_kwargs!r}") @@ -1293,7 +1293,7 @@ def create_vulnerability_audit(self, create_vulnerability_audit_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1382,7 +1382,7 @@ def deactivate_remediation_recipe(self, remediation_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_remediation_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1391,9 +1391,9 @@ def deactivate_remediation_recipe(self, remediation_recipe_id, **kwargs): "remediationRecipeId": remediation_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1403,7 +1403,7 @@ def deactivate_remediation_recipe(self, remediation_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1489,7 +1489,7 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -1498,9 +1498,9 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1510,7 +1510,7 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1596,7 +1596,7 @@ def delete_remediation_recipe(self, remediation_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_remediation_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1605,9 +1605,9 @@ def delete_remediation_recipe(self, remediation_recipe_id, **kwargs): "remediationRecipeId": remediation_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1617,7 +1617,7 @@ def delete_remediation_recipe(self, remediation_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1701,7 +1701,7 @@ def delete_remediation_run(self, remediation_run_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_remediation_run got unknown kwargs: {extra_kwargs!r}") @@ -1710,9 +1710,9 @@ def delete_remediation_run(self, remediation_run_id, **kwargs): "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1722,7 +1722,7 @@ def delete_remediation_run(self, remediation_run_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1806,7 +1806,7 @@ def delete_vulnerability_audit(self, vulnerability_audit_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vulnerability_audit got unknown kwargs: {extra_kwargs!r}") @@ -1815,9 +1815,9 @@ def delete_vulnerability_audit(self, vulnerability_audit_id, **kwargs): "vulnerabilityAuditId": vulnerability_audit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1827,7 +1827,7 @@ def delete_vulnerability_audit(self, vulnerability_audit_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1905,7 +1905,7 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -1914,9 +1914,9 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1925,7 +1925,7 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2005,7 +2005,7 @@ def get_remediation_recipe(self, remediation_recipe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_remediation_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2014,9 +2014,9 @@ def get_remediation_recipe(self, remediation_recipe_id, **kwargs): "remediationRecipeId": remediation_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2025,7 +2025,7 @@ def get_remediation_recipe(self, remediation_recipe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2103,7 +2103,7 @@ def get_remediation_run(self, remediation_run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_remediation_run got unknown kwargs: {extra_kwargs!r}") @@ -2112,9 +2112,9 @@ def get_remediation_run(self, remediation_run_id, **kwargs): "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2123,7 +2123,7 @@ def get_remediation_run(self, remediation_run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2206,7 +2206,7 @@ def get_stage(self, remediation_run_id, stage_type, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stage got unknown kwargs: {extra_kwargs!r}") @@ -2216,9 +2216,9 @@ def get_stage(self, remediation_run_id, stage_type, **kwargs): "stageType": stage_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2227,7 +2227,7 @@ def get_stage(self, remediation_run_id, stage_type, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2305,7 +2305,7 @@ def get_vulnerability_audit(self, vulnerability_audit_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vulnerability_audit got unknown kwargs: {extra_kwargs!r}") @@ -2314,9 +2314,9 @@ def get_vulnerability_audit(self, vulnerability_audit_id, **kwargs): "vulnerabilityAuditId": vulnerability_audit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2325,7 +2325,7 @@ def get_vulnerability_audit(self, vulnerability_audit_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2405,7 +2405,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2414,9 +2414,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2425,7 +2425,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2537,7 +2537,7 @@ def list_application_dependency_recommendations(self, remediation_run_id, **kwar "purl", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_application_dependency_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -2546,9 +2546,9 @@ def list_application_dependency_recommendations(self, remediation_run_id, **kwar "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2574,14 +2574,14 @@ def list_application_dependency_recommendations(self, remediation_run_id, **kwar "purl": kwargs.get("purl", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2723,7 +2723,7 @@ def list_application_dependency_vulnerabilities(self, vulnerability_audit_id, ** "purl", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_application_dependency_vulnerabilities got unknown kwargs: {extra_kwargs!r}") @@ -2732,9 +2732,9 @@ def list_application_dependency_vulnerabilities(self, vulnerability_audit_id, ** "vulnerabilityAuditId": vulnerability_audit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2773,14 +2773,14 @@ def list_application_dependency_vulnerabilities(self, vulnerability_audit_id, ** "gav": kwargs.get("gav", missing), "purl": kwargs.get("purl", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2901,7 +2901,7 @@ def list_knowledge_bases(self, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_knowledge_bases got unknown kwargs: {extra_kwargs!r}") @@ -2937,14 +2937,14 @@ def list_knowledge_bases(self, **kwargs): "page": kwargs.get("page", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3065,7 +3065,7 @@ def list_remediation_recipes(self, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_remediation_recipes got unknown kwargs: {extra_kwargs!r}") @@ -3101,14 +3101,14 @@ def list_remediation_recipes(self, **kwargs): "page": kwargs.get("page", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3234,7 +3234,7 @@ def list_remediation_runs(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_remediation_runs got unknown kwargs: {extra_kwargs!r}") @@ -3271,14 +3271,14 @@ def list_remediation_runs(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3393,7 +3393,7 @@ def list_stages(self, remediation_run_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stages got unknown kwargs: {extra_kwargs!r}") @@ -3402,9 +3402,9 @@ def list_stages(self, remediation_run_id, **kwargs): "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3444,14 +3444,14 @@ def list_stages(self, remediation_run_id, **kwargs): "page": kwargs.get("page", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3601,7 +3601,7 @@ def list_vulnerability_audits(self, **kwargs): "time_created_less_than_or_equal_to", "max_observed_severity_greater_than_or_equal_to" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerability_audits got unknown kwargs: {extra_kwargs!r}") @@ -3649,14 +3649,14 @@ def list_vulnerability_audits(self, **kwargs): "timeCreatedLessThanOrEqualTo": kwargs.get("time_created_less_than_or_equal_to", missing), "maxObservedSeverityGreaterThanOrEqualTo": kwargs.get("max_observed_severity_greater_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3756,7 +3756,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3765,9 +3765,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3791,14 +3791,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3900,7 +3900,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3909,9 +3909,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3935,14 +3935,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4060,7 +4060,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4096,14 +4096,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4194,7 +4194,7 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -4203,9 +4203,9 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4215,7 +4215,7 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4306,7 +4306,7 @@ def update_remediation_recipe(self, remediation_recipe_id, update_remediation_re "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_remediation_recipe got unknown kwargs: {extra_kwargs!r}") @@ -4315,9 +4315,9 @@ def update_remediation_recipe(self, remediation_recipe_id, update_remediation_re "remediationRecipeId": remediation_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4327,7 +4327,7 @@ def update_remediation_recipe(self, remediation_recipe_id, update_remediation_re "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4416,7 +4416,7 @@ def update_remediation_run(self, remediation_run_id, update_remediation_run_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_remediation_run got unknown kwargs: {extra_kwargs!r}") @@ -4425,9 +4425,9 @@ def update_remediation_run(self, remediation_run_id, update_remediation_run_deta "remediationRunId": remediation_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4437,7 +4437,7 @@ def update_remediation_run(self, remediation_run_id, update_remediation_run_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4528,7 +4528,7 @@ def update_vulnerability_audit(self, vulnerability_audit_id, update_vulnerabilit "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vulnerability_audit got unknown kwargs: {extra_kwargs!r}") @@ -4537,9 +4537,9 @@ def update_vulnerability_audit(self, vulnerability_audit_id, update_vulnerabilit "vulnerabilityAuditId": vulnerability_audit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4549,7 +4549,7 @@ def update_vulnerability_audit(self, vulnerability_audit_id, update_vulnerabilit "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ai_data_platform/ai_data_platform_client.py b/src/oci/ai_data_platform/ai_data_platform_client.py index f76185c95..b31c34c6d 100644 --- a/src/oci/ai_data_platform/ai_data_platform_client.py +++ b/src/oci/ai_data_platform/ai_data_platform_client.py @@ -172,7 +172,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def change_ai_data_platform_compartment(self, ai_data_platform_id, change_ai_dat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ai_data_platform_compartment got unknown kwargs: {extra_kwargs!r}") @@ -296,9 +296,9 @@ def change_ai_data_platform_compartment(self, ai_data_platform_id, change_ai_dat "aiDataPlatformId": ai_data_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def change_ai_data_platform_compartment(self, ai_data_platform_id, change_ai_dat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -397,7 +397,7 @@ def create_ai_data_platform(self, create_ai_data_platform_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ai_data_platform got unknown kwargs: {extra_kwargs!r}") @@ -408,7 +408,7 @@ def create_ai_data_platform(self, create_ai_data_platform_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -503,7 +503,7 @@ def delete_ai_data_platform(self, ai_data_platform_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ai_data_platform got unknown kwargs: {extra_kwargs!r}") @@ -512,16 +512,16 @@ def delete_ai_data_platform(self, ai_data_platform_id, **kwargs): "aiDataPlatformId": ai_data_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isForceDelete": kwargs.get("is_force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -529,7 +529,7 @@ def delete_ai_data_platform(self, ai_data_platform_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def get_ai_data_platform(self, ai_data_platform_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ai_data_platform got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def get_ai_data_platform(self, ai_data_platform_id, **kwargs): "aiDataPlatformId": ai_data_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -632,7 +632,7 @@ def get_ai_data_platform(self, ai_data_platform_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -715,7 +715,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -724,9 +724,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -735,7 +735,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -876,7 +876,7 @@ def list_ai_data_platforms(self, **kwargs): "include_legacy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ai_data_platforms got unknown kwargs: {extra_kwargs!r}") @@ -921,14 +921,14 @@ def list_ai_data_platforms(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "includeLegacy": kwargs.get("include_legacy", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1039,7 +1039,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1048,9 +1048,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1074,14 +1074,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1194,7 +1194,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1203,9 +1203,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1229,14 +1229,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1368,7 +1368,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1404,14 +1404,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1504,7 +1504,7 @@ def update_ai_data_platform(self, ai_data_platform_id, update_ai_data_platform_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ai_data_platform got unknown kwargs: {extra_kwargs!r}") @@ -1513,9 +1513,9 @@ def update_ai_data_platform(self, ai_data_platform_id, update_ai_data_platform_d "aiDataPlatformId": ai_data_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1525,7 +1525,7 @@ def update_ai_data_platform(self, ai_data_platform_id, update_ai_data_platform_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ai_document/ai_service_document_client.py b/src/oci/ai_document/ai_service_document_client.py index b58055115..7592cde23 100644 --- a/src/oci/ai_document/ai_service_document_client.py +++ b/src/oci/ai_document/ai_service_document_client.py @@ -183,7 +183,7 @@ def add_model_lock(self, model_id, add_model_lock_details, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_model_lock got unknown kwargs: {extra_kwargs!r}") @@ -192,16 +192,16 @@ def add_model_lock(self, model_id, add_model_lock_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -210,7 +210,7 @@ def add_model_lock(self, model_id, add_model_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -316,7 +316,7 @@ def add_project_lock(self, project_id, add_project_lock_details, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_project_lock got unknown kwargs: {extra_kwargs!r}") @@ -325,16 +325,16 @@ def add_project_lock(self, project_id, add_project_lock_details, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -343,7 +343,7 @@ def add_project_lock(self, project_id, add_project_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -434,7 +434,7 @@ def analyze_document(self, analyze_document_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"analyze_document got unknown kwargs: {extra_kwargs!r}") @@ -445,7 +445,7 @@ def analyze_document(self, analyze_document_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -531,7 +531,7 @@ def cancel_processor_job(self, processor_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_processor_job got unknown kwargs: {extra_kwargs!r}") @@ -540,9 +540,9 @@ def cancel_processor_job(self, processor_job_id, **kwargs): "processorJobId": processor_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -552,7 +552,7 @@ def cancel_processor_job(self, processor_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -643,9 +643,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -655,7 +655,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -744,7 +744,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -753,16 +753,16 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -770,7 +770,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -863,7 +863,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_project_compartment got unknown kwargs: {extra_kwargs!r}") @@ -872,16 +872,16 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -889,7 +889,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -975,7 +975,7 @@ def create_model(self, create_model_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model got unknown kwargs: {extra_kwargs!r}") @@ -986,7 +986,7 @@ def create_model(self, create_model_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1073,7 +1073,7 @@ def create_processor_job(self, create_processor_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_processor_job got unknown kwargs: {extra_kwargs!r}") @@ -1084,7 +1084,7 @@ def create_processor_job(self, create_processor_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1171,7 +1171,7 @@ def create_project(self, create_project_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_project got unknown kwargs: {extra_kwargs!r}") @@ -1182,7 +1182,7 @@ def create_project(self, create_project_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1273,7 +1273,7 @@ def delete_model(self, model_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model got unknown kwargs: {extra_kwargs!r}") @@ -1282,16 +1282,16 @@ def delete_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1299,7 +1299,7 @@ def delete_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1387,7 +1387,7 @@ def delete_project(self, project_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project got unknown kwargs: {extra_kwargs!r}") @@ -1396,16 +1396,16 @@ def delete_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1413,7 +1413,7 @@ def delete_project(self, project_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1489,7 +1489,7 @@ def get_model(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model got unknown kwargs: {extra_kwargs!r}") @@ -1498,9 +1498,9 @@ def get_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1509,7 +1509,7 @@ def get_model(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1595,7 +1595,7 @@ def get_model_type(self, model_type, **kwargs): "model_sub_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_type got unknown kwargs: {extra_kwargs!r}") @@ -1604,9 +1604,9 @@ def get_model_type(self, model_type, **kwargs): "modelType": model_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1614,14 +1614,14 @@ def get_model_type(self, model_type, **kwargs): "compartmentId": kwargs.get("compartment_id", missing), "modelSubType": kwargs.get("model_sub_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1701,7 +1701,7 @@ def get_processor_job(self, processor_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_processor_job got unknown kwargs: {extra_kwargs!r}") @@ -1710,9 +1710,9 @@ def get_processor_job(self, processor_job_id, **kwargs): "processorJobId": processor_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1721,7 +1721,7 @@ def get_processor_job(self, processor_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1799,7 +1799,7 @@ def get_project(self, project_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project got unknown kwargs: {extra_kwargs!r}") @@ -1808,9 +1808,9 @@ def get_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1819,7 +1819,7 @@ def get_project(self, project_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1897,7 +1897,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1906,9 +1906,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1917,7 +1917,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2034,7 +2034,7 @@ def list_models(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_models got unknown kwargs: {extra_kwargs!r}") @@ -2071,14 +2071,14 @@ def list_models(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2191,7 +2191,7 @@ def list_projects(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_projects got unknown kwargs: {extra_kwargs!r}") @@ -2227,14 +2227,14 @@ def list_projects(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2332,7 +2332,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2341,9 +2341,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2367,14 +2367,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2474,7 +2474,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2483,9 +2483,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2509,14 +2509,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2631,7 +2631,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2667,14 +2667,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2763,7 +2763,7 @@ def patch_model(self, model_id, patch_model_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_model got unknown kwargs: {extra_kwargs!r}") @@ -2772,9 +2772,9 @@ def patch_model(self, model_id, patch_model_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2784,7 +2784,7 @@ def patch_model(self, model_id, patch_model_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2885,7 +2885,7 @@ def remove_model_lock(self, model_id, remove_model_lock_details, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_model_lock got unknown kwargs: {extra_kwargs!r}") @@ -2894,16 +2894,16 @@ def remove_model_lock(self, model_id, remove_model_lock_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2912,7 +2912,7 @@ def remove_model_lock(self, model_id, remove_model_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3018,7 +3018,7 @@ def remove_project_lock(self, project_id, remove_project_lock_details, **kwargs) "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_project_lock got unknown kwargs: {extra_kwargs!r}") @@ -3027,16 +3027,16 @@ def remove_project_lock(self, project_id, remove_project_lock_details, **kwargs) "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3045,7 +3045,7 @@ def remove_project_lock(self, project_id, remove_project_lock_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3143,7 +3143,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model got unknown kwargs: {extra_kwargs!r}") @@ -3152,16 +3152,16 @@ def update_model(self, model_id, update_model_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3169,7 +3169,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3262,7 +3262,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project got unknown kwargs: {extra_kwargs!r}") @@ -3271,16 +3271,16 @@ def update_project(self, project_id, update_project_details, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3288,7 +3288,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ai_language/ai_service_language_client.py b/src/oci/ai_language/ai_service_language_client.py index 35699066c..c230f5772 100644 --- a/src/oci/ai_language/ai_service_language_client.py +++ b/src/oci/ai_language/ai_service_language_client.py @@ -171,7 +171,7 @@ def batch_detect_dominant_language(self, batch_detect_dominant_language_details, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_dominant_language got unknown kwargs: {extra_kwargs!r}") @@ -181,7 +181,7 @@ def batch_detect_dominant_language(self, batch_detect_dominant_language_details, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -262,7 +262,7 @@ def batch_detect_health_entity(self, batch_detect_health_entity_details, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_health_entity got unknown kwargs: {extra_kwargs!r}") @@ -272,7 +272,7 @@ def batch_detect_health_entity(self, batch_detect_health_entity_details, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -357,7 +357,7 @@ def batch_detect_language_entities(self, batch_detect_language_entities_details, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_language_entities got unknown kwargs: {extra_kwargs!r}") @@ -367,7 +367,7 @@ def batch_detect_language_entities(self, batch_detect_language_entities_details, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -448,7 +448,7 @@ def batch_detect_language_key_phrases(self, batch_detect_language_key_phrases_de "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_language_key_phrases got unknown kwargs: {extra_kwargs!r}") @@ -458,7 +458,7 @@ def batch_detect_language_key_phrases(self, batch_detect_language_key_phrases_de "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -539,7 +539,7 @@ def batch_detect_language_pii_entities(self, batch_detect_language_pii_entities_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_language_pii_entities got unknown kwargs: {extra_kwargs!r}") @@ -549,7 +549,7 @@ def batch_detect_language_pii_entities(self, batch_detect_language_pii_entities_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -647,7 +647,7 @@ def batch_detect_language_sentiments(self, batch_detect_language_sentiments_deta "opc_request_id", "level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_language_sentiments got unknown kwargs: {extra_kwargs!r}") @@ -663,14 +663,14 @@ def batch_detect_language_sentiments(self, batch_detect_language_sentiments_deta query_params = { "level": self.base_client.generate_collection_format_param(kwargs.get("level", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -759,7 +759,7 @@ def batch_detect_language_text_classification(self, batch_detect_language_text_c "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_detect_language_text_classification got unknown kwargs: {extra_kwargs!r}") @@ -769,7 +769,7 @@ def batch_detect_language_text_classification(self, batch_detect_language_text_c "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -849,7 +849,7 @@ def batch_language_translation(self, batch_language_translation_details, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_language_translation got unknown kwargs: {extra_kwargs!r}") @@ -859,7 +859,7 @@ def batch_language_translation(self, batch_language_translation_details, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -951,7 +951,7 @@ def cancel_job(self, job_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_job got unknown kwargs: {extra_kwargs!r}") @@ -960,9 +960,9 @@ def cancel_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -973,7 +973,7 @@ def cancel_job(self, job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1067,7 +1067,7 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1076,9 +1076,9 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1089,7 +1089,7 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1185,7 +1185,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1194,9 +1194,9 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1207,7 +1207,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1303,7 +1303,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1312,9 +1312,9 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1325,7 +1325,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1421,7 +1421,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_project_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1430,9 +1430,9 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1443,7 +1443,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1530,7 +1530,7 @@ def create_endpoint(self, create_endpoint_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1541,7 +1541,7 @@ def create_endpoint(self, create_endpoint_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1628,7 +1628,7 @@ def create_job(self, create_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job got unknown kwargs: {extra_kwargs!r}") @@ -1639,7 +1639,7 @@ def create_job(self, create_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1726,7 +1726,7 @@ def create_model(self, create_model_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model got unknown kwargs: {extra_kwargs!r}") @@ -1737,7 +1737,7 @@ def create_model(self, create_model_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1824,7 +1824,7 @@ def create_project(self, create_project_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_project got unknown kwargs: {extra_kwargs!r}") @@ -1835,7 +1835,7 @@ def create_project(self, create_project_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1922,7 +1922,7 @@ def delete_endpoint(self, endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1931,9 +1931,9 @@ def delete_endpoint(self, endpoint_id, **kwargs): "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1943,7 +1943,7 @@ def delete_endpoint(self, endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2027,7 +2027,7 @@ def delete_job(self, job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job got unknown kwargs: {extra_kwargs!r}") @@ -2036,9 +2036,9 @@ def delete_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2048,7 +2048,7 @@ def delete_job(self, job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2132,7 +2132,7 @@ def delete_model(self, model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model got unknown kwargs: {extra_kwargs!r}") @@ -2141,9 +2141,9 @@ def delete_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2153,7 +2153,7 @@ def delete_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2237,7 +2237,7 @@ def delete_project(self, project_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project got unknown kwargs: {extra_kwargs!r}") @@ -2246,9 +2246,9 @@ def delete_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2258,7 +2258,7 @@ def delete_project(self, project_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2345,7 +2345,7 @@ def detect_dominant_language(self, detect_dominant_language_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detect_dominant_language got unknown kwargs: {extra_kwargs!r}") @@ -2355,7 +2355,7 @@ def detect_dominant_language(self, detect_dominant_language_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2450,7 +2450,7 @@ def detect_language_entities(self, detect_language_entities_details, **kwargs): "model_version", "is_pii" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detect_language_entities got unknown kwargs: {extra_kwargs!r}") @@ -2466,14 +2466,14 @@ def detect_language_entities(self, detect_language_entities_details, **kwargs): "modelVersion": kwargs.get("model_version", missing), "isPii": kwargs.get("is_pii", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2558,7 +2558,7 @@ def detect_language_key_phrases(self, detect_language_key_phrases_details, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detect_language_key_phrases got unknown kwargs: {extra_kwargs!r}") @@ -2568,7 +2568,7 @@ def detect_language_key_phrases(self, detect_language_key_phrases_details, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2659,7 +2659,7 @@ def detect_language_sentiments(self, detect_language_sentiments_details, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detect_language_sentiments got unknown kwargs: {extra_kwargs!r}") @@ -2669,7 +2669,7 @@ def detect_language_sentiments(self, detect_language_sentiments_details, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2756,7 +2756,7 @@ def detect_language_text_classification(self, detect_language_text_classificatio "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detect_language_text_classification got unknown kwargs: {extra_kwargs!r}") @@ -2766,7 +2766,7 @@ def detect_language_text_classification(self, detect_language_text_classificatio "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2842,7 +2842,7 @@ def get_endpoint(self, endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2851,9 +2851,9 @@ def get_endpoint(self, endpoint_id, **kwargs): "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2862,7 +2862,7 @@ def get_endpoint(self, endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2940,7 +2940,7 @@ def get_job(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job got unknown kwargs: {extra_kwargs!r}") @@ -2949,9 +2949,9 @@ def get_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2960,7 +2960,7 @@ def get_job(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3038,7 +3038,7 @@ def get_model(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model got unknown kwargs: {extra_kwargs!r}") @@ -3047,9 +3047,9 @@ def get_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3058,7 +3058,7 @@ def get_model(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3136,7 +3136,7 @@ def get_model_type(self, model_type, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_type got unknown kwargs: {extra_kwargs!r}") @@ -3145,9 +3145,9 @@ def get_model_type(self, model_type, **kwargs): "modelType": model_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3156,7 +3156,7 @@ def get_model_type(self, model_type, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3234,7 +3234,7 @@ def get_project(self, project_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project got unknown kwargs: {extra_kwargs!r}") @@ -3243,9 +3243,9 @@ def get_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3254,7 +3254,7 @@ def get_project(self, project_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3332,7 +3332,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3341,9 +3341,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3352,7 +3352,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3476,7 +3476,7 @@ def list_endpoints(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -3514,14 +3514,14 @@ def list_endpoints(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3607,7 +3607,7 @@ def list_evaluation_results(self, model_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_evaluation_results got unknown kwargs: {extra_kwargs!r}") @@ -3616,9 +3616,9 @@ def list_evaluation_results(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3626,14 +3626,14 @@ def list_evaluation_results(self, model_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3747,7 +3747,7 @@ def list_jobs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jobs got unknown kwargs: {extra_kwargs!r}") @@ -3783,14 +3783,14 @@ def list_jobs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3910,7 +3910,7 @@ def list_models(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_models got unknown kwargs: {extra_kwargs!r}") @@ -3947,14 +3947,14 @@ def list_models(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4070,7 +4070,7 @@ def list_projects(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_projects got unknown kwargs: {extra_kwargs!r}") @@ -4106,14 +4106,14 @@ def list_projects(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4211,7 +4211,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4220,9 +4220,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4246,14 +4246,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4353,7 +4353,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4362,9 +4362,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4388,14 +4388,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4503,7 +4503,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4531,14 +4531,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4627,7 +4627,7 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4636,9 +4636,9 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4648,7 +4648,7 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4737,7 +4737,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job got unknown kwargs: {extra_kwargs!r}") @@ -4746,9 +4746,9 @@ def update_job(self, job_id, update_job_details, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4758,7 +4758,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4849,7 +4849,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model got unknown kwargs: {extra_kwargs!r}") @@ -4858,9 +4858,9 @@ def update_model(self, model_id, update_model_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4870,7 +4870,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4959,7 +4959,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project got unknown kwargs: {extra_kwargs!r}") @@ -4968,9 +4968,9 @@ def update_project(self, project_id, update_project_details, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4980,7 +4980,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ai_speech/ai_service_speech_client.py b/src/oci/ai_speech/ai_service_speech_client.py index 63ed29fc3..3791b3efa 100644 --- a/src/oci/ai_speech/ai_service_speech_client.py +++ b/src/oci/ai_speech/ai_service_speech_client.py @@ -176,7 +176,7 @@ def cancel_transcription_job(self, transcription_job_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_transcription_job got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def cancel_transcription_job(self, transcription_job_id, **kwargs): "transcriptionJobId": transcription_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def cancel_transcription_job(self, transcription_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -292,7 +292,7 @@ def cancel_transcription_task(self, transcription_job_id, transcription_task_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_transcription_task got unknown kwargs: {extra_kwargs!r}") @@ -302,9 +302,9 @@ def cancel_transcription_task(self, transcription_job_id, transcription_task_id, "transcriptionTaskId": transcription_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -315,7 +315,7 @@ def cancel_transcription_task(self, transcription_job_id, transcription_task_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def change_customization_compartment(self, customization_id, change_customizatio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_customization_compartment got unknown kwargs: {extra_kwargs!r}") @@ -418,9 +418,9 @@ def change_customization_compartment(self, customization_id, change_customizatio "customizationId": customization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -431,7 +431,7 @@ def change_customization_compartment(self, customization_id, change_customizatio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -527,7 +527,7 @@ def change_transcription_job_compartment(self, transcription_job_id, change_tran "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_transcription_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -536,9 +536,9 @@ def change_transcription_job_compartment(self, transcription_job_id, change_tran "transcriptionJobId": transcription_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -549,7 +549,7 @@ def change_transcription_job_compartment(self, transcription_job_id, change_tran "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def create_customization(self, create_customization_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_customization got unknown kwargs: {extra_kwargs!r}") @@ -645,7 +645,7 @@ def create_customization(self, create_customization_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -730,7 +730,7 @@ def create_realtime_session_token(self, create_realtime_session_token_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_realtime_session_token got unknown kwargs: {extra_kwargs!r}") @@ -741,7 +741,7 @@ def create_realtime_session_token(self, create_realtime_session_token_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -826,7 +826,7 @@ def create_transcription_job(self, create_transcription_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_transcription_job got unknown kwargs: {extra_kwargs!r}") @@ -837,7 +837,7 @@ def create_transcription_job(self, create_transcription_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -930,7 +930,7 @@ def delete_customization(self, customization_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_customization got unknown kwargs: {extra_kwargs!r}") @@ -939,9 +939,9 @@ def delete_customization(self, customization_id, **kwargs): "customizationId": customization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -952,7 +952,7 @@ def delete_customization(self, customization_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1043,7 +1043,7 @@ def delete_transcription_job(self, transcription_job_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_transcription_job got unknown kwargs: {extra_kwargs!r}") @@ -1052,9 +1052,9 @@ def delete_transcription_job(self, transcription_job_id, **kwargs): "transcriptionJobId": transcription_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1065,7 +1065,7 @@ def delete_transcription_job(self, transcription_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1140,7 +1140,7 @@ def get_customization(self, customization_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_customization got unknown kwargs: {extra_kwargs!r}") @@ -1149,9 +1149,9 @@ def get_customization(self, customization_id, **kwargs): "customizationId": customization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1160,7 +1160,7 @@ def get_customization(self, customization_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1236,7 +1236,7 @@ def get_transcription_job(self, transcription_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_transcription_job got unknown kwargs: {extra_kwargs!r}") @@ -1245,9 +1245,9 @@ def get_transcription_job(self, transcription_job_id, **kwargs): "transcriptionJobId": transcription_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1256,7 +1256,7 @@ def get_transcription_job(self, transcription_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1335,7 +1335,7 @@ def get_transcription_task(self, transcription_job_id, transcription_task_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_transcription_task got unknown kwargs: {extra_kwargs!r}") @@ -1345,9 +1345,9 @@ def get_transcription_task(self, transcription_job_id, transcription_task_id, ** "transcriptionTaskId": transcription_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1356,7 +1356,7 @@ def get_transcription_task(self, transcription_job_id, transcription_task_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1467,7 +1467,7 @@ def list_customizations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_customizations got unknown kwargs: {extra_kwargs!r}") @@ -1503,14 +1503,14 @@ def list_customizations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1621,7 +1621,7 @@ def list_transcription_jobs(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_transcription_jobs got unknown kwargs: {extra_kwargs!r}") @@ -1657,14 +1657,14 @@ def list_transcription_jobs(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1774,7 +1774,7 @@ def list_transcription_tasks(self, transcription_job_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_transcription_tasks got unknown kwargs: {extra_kwargs!r}") @@ -1783,9 +1783,9 @@ def list_transcription_tasks(self, transcription_job_id, **kwargs): "transcriptionJobId": transcription_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1819,14 +1819,14 @@ def list_transcription_tasks(self, transcription_job_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1919,7 +1919,7 @@ def list_voices(self, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_voices got unknown kwargs: {extra_kwargs!r}") @@ -1937,14 +1937,14 @@ def list_voices(self, **kwargs): "languageCode": kwargs.get("language_code", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2020,7 +2020,7 @@ def synthesize_speech(self, synthesize_speech_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"synthesize_speech got unknown kwargs: {extra_kwargs!r}") @@ -2030,7 +2030,7 @@ def synthesize_speech(self, synthesize_speech_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2117,7 +2117,7 @@ def update_customization(self, customization_id, update_customization_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_customization got unknown kwargs: {extra_kwargs!r}") @@ -2126,9 +2126,9 @@ def update_customization(self, customization_id, update_customization_details, * "customizationId": customization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2138,7 +2138,7 @@ def update_customization(self, customization_id, update_customization_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2227,7 +2227,7 @@ def update_transcription_job(self, transcription_job_id, update_transcription_jo "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_transcription_job got unknown kwargs: {extra_kwargs!r}") @@ -2236,9 +2236,9 @@ def update_transcription_job(self, transcription_job_id, update_transcription_jo "transcriptionJobId": transcription_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2248,7 +2248,7 @@ def update_transcription_job(self, transcription_job_id, update_transcription_jo "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ai_vision/ai_service_vision_client.py b/src/oci/ai_vision/ai_service_vision_client.py index da21515ef..366689128 100644 --- a/src/oci/ai_vision/ai_service_vision_client.py +++ b/src/oci/ai_vision/ai_service_vision_client.py @@ -160,7 +160,7 @@ def analyze_document(self, analyze_document_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"analyze_document got unknown kwargs: {extra_kwargs!r}") @@ -170,7 +170,7 @@ def analyze_document(self, analyze_document_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -248,7 +248,7 @@ def analyze_image(self, analyze_image_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"analyze_image got unknown kwargs: {extra_kwargs!r}") @@ -258,7 +258,7 @@ def analyze_image(self, analyze_image_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -344,7 +344,7 @@ def cancel_document_job(self, document_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_document_job got unknown kwargs: {extra_kwargs!r}") @@ -353,9 +353,9 @@ def cancel_document_job(self, document_job_id, **kwargs): "documentJobId": document_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -365,7 +365,7 @@ def cancel_document_job(self, document_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -447,7 +447,7 @@ def cancel_image_job(self, image_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_image_job got unknown kwargs: {extra_kwargs!r}") @@ -456,9 +456,9 @@ def cancel_image_job(self, image_job_id, **kwargs): "imageJobId": image_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -468,7 +468,7 @@ def cancel_image_job(self, image_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -550,7 +550,7 @@ def cancel_video_job(self, video_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_video_job got unknown kwargs: {extra_kwargs!r}") @@ -559,9 +559,9 @@ def cancel_video_job(self, video_job_id, **kwargs): "videoJobId": video_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -571,7 +571,7 @@ def cancel_video_job(self, video_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -653,7 +653,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -662,9 +662,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -674,7 +674,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -759,7 +759,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -768,9 +768,9 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -780,7 +780,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -867,7 +867,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_project_compartment got unknown kwargs: {extra_kwargs!r}") @@ -876,9 +876,9 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -888,7 +888,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -983,7 +983,7 @@ def change_stream_group_compartment(self, stream_group_id, change_stream_group_c "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stream_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -992,9 +992,9 @@ def change_stream_group_compartment(self, stream_group_id, change_stream_group_c "streamGroupId": stream_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1005,7 +1005,7 @@ def change_stream_group_compartment(self, stream_group_id, change_stream_group_c "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1103,7 +1103,7 @@ def change_stream_job_compartment(self, stream_job_id, change_stream_job_compart "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stream_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1112,9 +1112,9 @@ def change_stream_job_compartment(self, stream_job_id, change_stream_job_compart "streamJobId": stream_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1125,7 +1125,7 @@ def change_stream_job_compartment(self, stream_job_id, change_stream_job_compart "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1223,7 +1223,7 @@ def change_stream_source_compartment(self, stream_source_id, change_stream_sourc "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stream_source_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1232,9 +1232,9 @@ def change_stream_source_compartment(self, stream_source_id, change_stream_sourc "streamSourceId": stream_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1245,7 +1245,7 @@ def change_stream_source_compartment(self, stream_source_id, change_stream_sourc "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1343,7 +1343,7 @@ def change_vision_private_endpoint_compartment(self, vision_private_endpoint_id, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vision_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1352,9 +1352,9 @@ def change_vision_private_endpoint_compartment(self, vision_private_endpoint_id, "visionPrivateEndpointId": vision_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1365,7 +1365,7 @@ def change_vision_private_endpoint_compartment(self, vision_private_endpoint_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1452,7 +1452,7 @@ def create_document_job(self, create_document_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_document_job got unknown kwargs: {extra_kwargs!r}") @@ -1463,7 +1463,7 @@ def create_document_job(self, create_document_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1548,7 +1548,7 @@ def create_image_job(self, create_image_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_image_job got unknown kwargs: {extra_kwargs!r}") @@ -1559,7 +1559,7 @@ def create_image_job(self, create_image_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1644,7 +1644,7 @@ def create_model(self, create_model_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model got unknown kwargs: {extra_kwargs!r}") @@ -1655,7 +1655,7 @@ def create_model(self, create_model_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1740,7 +1740,7 @@ def create_project(self, create_project_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_project got unknown kwargs: {extra_kwargs!r}") @@ -1751,7 +1751,7 @@ def create_project(self, create_project_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1836,7 +1836,7 @@ def create_stream_group(self, create_stream_group_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_group got unknown kwargs: {extra_kwargs!r}") @@ -1847,7 +1847,7 @@ def create_stream_group(self, create_stream_group_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1934,7 +1934,7 @@ def create_stream_job(self, create_stream_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_job got unknown kwargs: {extra_kwargs!r}") @@ -1945,7 +1945,7 @@ def create_stream_job(self, create_stream_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2032,7 +2032,7 @@ def create_stream_source(self, create_stream_source_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_source got unknown kwargs: {extra_kwargs!r}") @@ -2043,7 +2043,7 @@ def create_stream_source(self, create_stream_source_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2130,7 +2130,7 @@ def create_video_job(self, create_video_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_video_job got unknown kwargs: {extra_kwargs!r}") @@ -2141,7 +2141,7 @@ def create_video_job(self, create_video_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2226,7 +2226,7 @@ def create_vision_private_endpoint(self, create_vision_private_endpoint_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vision_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2237,7 +2237,7 @@ def create_vision_private_endpoint(self, create_vision_private_endpoint_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2324,7 +2324,7 @@ def delete_model(self, model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model got unknown kwargs: {extra_kwargs!r}") @@ -2333,9 +2333,9 @@ def delete_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2345,7 +2345,7 @@ def delete_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2427,7 +2427,7 @@ def delete_project(self, project_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project got unknown kwargs: {extra_kwargs!r}") @@ -2436,9 +2436,9 @@ def delete_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2448,7 +2448,7 @@ def delete_project(self, project_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2530,7 +2530,7 @@ def delete_stream_group(self, stream_group_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_group got unknown kwargs: {extra_kwargs!r}") @@ -2539,9 +2539,9 @@ def delete_stream_group(self, stream_group_id, **kwargs): "streamGroupId": stream_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2551,7 +2551,7 @@ def delete_stream_group(self, stream_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2633,7 +2633,7 @@ def delete_stream_job(self, stream_job_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_job got unknown kwargs: {extra_kwargs!r}") @@ -2642,9 +2642,9 @@ def delete_stream_job(self, stream_job_id, **kwargs): "streamJobId": stream_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2654,7 +2654,7 @@ def delete_stream_job(self, stream_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2736,7 +2736,7 @@ def delete_stream_source(self, stream_source_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_source got unknown kwargs: {extra_kwargs!r}") @@ -2745,9 +2745,9 @@ def delete_stream_source(self, stream_source_id, **kwargs): "streamSourceId": stream_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2757,7 +2757,7 @@ def delete_stream_source(self, stream_source_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2839,7 +2839,7 @@ def delete_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vision_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2848,9 +2848,9 @@ def delete_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): "visionPrivateEndpointId": vision_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2860,7 +2860,7 @@ def delete_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2934,7 +2934,7 @@ def get_document_job(self, document_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_document_job got unknown kwargs: {extra_kwargs!r}") @@ -2943,9 +2943,9 @@ def get_document_job(self, document_job_id, **kwargs): "documentJobId": document_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2954,7 +2954,7 @@ def get_document_job(self, document_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3030,7 +3030,7 @@ def get_image_job(self, image_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_image_job got unknown kwargs: {extra_kwargs!r}") @@ -3039,9 +3039,9 @@ def get_image_job(self, image_job_id, **kwargs): "imageJobId": image_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3050,7 +3050,7 @@ def get_image_job(self, image_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3126,7 +3126,7 @@ def get_model(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model got unknown kwargs: {extra_kwargs!r}") @@ -3135,9 +3135,9 @@ def get_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3146,7 +3146,7 @@ def get_model(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3222,7 +3222,7 @@ def get_project(self, project_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project got unknown kwargs: {extra_kwargs!r}") @@ -3231,9 +3231,9 @@ def get_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3242,7 +3242,7 @@ def get_project(self, project_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3318,7 +3318,7 @@ def get_stream_group(self, stream_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_group got unknown kwargs: {extra_kwargs!r}") @@ -3327,9 +3327,9 @@ def get_stream_group(self, stream_group_id, **kwargs): "streamGroupId": stream_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3338,7 +3338,7 @@ def get_stream_group(self, stream_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3416,7 +3416,7 @@ def get_stream_job(self, stream_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_job got unknown kwargs: {extra_kwargs!r}") @@ -3425,9 +3425,9 @@ def get_stream_job(self, stream_job_id, **kwargs): "streamJobId": stream_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3436,7 +3436,7 @@ def get_stream_job(self, stream_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3514,7 +3514,7 @@ def get_stream_source(self, stream_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_source got unknown kwargs: {extra_kwargs!r}") @@ -3523,9 +3523,9 @@ def get_stream_source(self, stream_source_id, **kwargs): "streamSourceId": stream_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3534,7 +3534,7 @@ def get_stream_source(self, stream_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3612,7 +3612,7 @@ def get_video_job(self, video_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_video_job got unknown kwargs: {extra_kwargs!r}") @@ -3621,9 +3621,9 @@ def get_video_job(self, video_job_id, **kwargs): "videoJobId": video_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3632,7 +3632,7 @@ def get_video_job(self, video_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3708,7 +3708,7 @@ def get_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vision_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3717,9 +3717,9 @@ def get_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): "visionPrivateEndpointId": vision_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3728,7 +3728,7 @@ def get_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3806,7 +3806,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3815,9 +3815,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3826,7 +3826,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3941,7 +3941,7 @@ def list_models(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_models got unknown kwargs: {extra_kwargs!r}") @@ -3978,14 +3978,14 @@ def list_models(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4096,7 +4096,7 @@ def list_projects(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_projects got unknown kwargs: {extra_kwargs!r}") @@ -4132,14 +4132,14 @@ def list_projects(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4244,7 +4244,7 @@ def list_stream_groups(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_groups got unknown kwargs: {extra_kwargs!r}") @@ -4272,14 +4272,14 @@ def list_stream_groups(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4392,7 +4392,7 @@ def list_stream_jobs(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_jobs got unknown kwargs: {extra_kwargs!r}") @@ -4428,14 +4428,14 @@ def list_stream_jobs(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4548,7 +4548,7 @@ def list_stream_sources(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_sources got unknown kwargs: {extra_kwargs!r}") @@ -4584,14 +4584,14 @@ def list_stream_sources(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4704,7 +4704,7 @@ def list_vision_private_endpoints(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vision_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -4740,14 +4740,14 @@ def list_vision_private_endpoints(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4845,7 +4845,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4854,9 +4854,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4880,14 +4880,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4985,7 +4985,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4994,9 +4994,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5020,14 +5020,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5140,7 +5140,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -5176,14 +5176,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5275,7 +5275,7 @@ def start_stream_job(self, stream_job_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_stream_job got unknown kwargs: {extra_kwargs!r}") @@ -5284,9 +5284,9 @@ def start_stream_job(self, stream_job_id, **kwargs): "streamJobId": stream_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5297,7 +5297,7 @@ def start_stream_job(self, stream_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5390,7 +5390,7 @@ def stop_stream_job(self, stream_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_stream_job got unknown kwargs: {extra_kwargs!r}") @@ -5399,9 +5399,9 @@ def stop_stream_job(self, stream_job_id, **kwargs): "streamJobId": stream_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5412,7 +5412,7 @@ def stop_stream_job(self, stream_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5500,7 +5500,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model got unknown kwargs: {extra_kwargs!r}") @@ -5509,9 +5509,9 @@ def update_model(self, model_id, update_model_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5521,7 +5521,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5608,7 +5608,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project got unknown kwargs: {extra_kwargs!r}") @@ -5617,9 +5617,9 @@ def update_project(self, project_id, update_project_details, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5629,7 +5629,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5716,7 +5716,7 @@ def update_stream_group(self, stream_group_id, update_stream_group_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_group got unknown kwargs: {extra_kwargs!r}") @@ -5725,9 +5725,9 @@ def update_stream_group(self, stream_group_id, update_stream_group_details, **kw "streamGroupId": stream_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5737,7 +5737,7 @@ def update_stream_group(self, stream_group_id, update_stream_group_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5824,7 +5824,7 @@ def update_stream_job(self, update_stream_job_details, stream_job_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_job got unknown kwargs: {extra_kwargs!r}") @@ -5833,9 +5833,9 @@ def update_stream_job(self, update_stream_job_details, stream_job_id, **kwargs): "streamJobId": stream_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5845,7 +5845,7 @@ def update_stream_job(self, update_stream_job_details, stream_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5932,7 +5932,7 @@ def update_stream_source(self, stream_source_id, update_stream_source_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_source got unknown kwargs: {extra_kwargs!r}") @@ -5941,9 +5941,9 @@ def update_stream_source(self, stream_source_id, update_stream_source_details, * "streamSourceId": stream_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5953,7 +5953,7 @@ def update_stream_source(self, stream_source_id, update_stream_source_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6040,7 +6040,7 @@ def update_vision_private_endpoint(self, vision_private_endpoint_id, update_visi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vision_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6049,9 +6049,9 @@ def update_vision_private_endpoint(self, vision_private_endpoint_id, update_visi "visionPrivateEndpointId": vision_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6061,7 +6061,7 @@ def update_vision_private_endpoint(self, vision_private_endpoint_id, update_visi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/analytics/analytics_client.py b/src/oci/analytics/analytics_client.py index 9831c26b5..0a1560cd1 100644 --- a/src/oci/analytics/analytics_client.py +++ b/src/oci/analytics/analytics_client.py @@ -179,7 +179,7 @@ def change_analytics_instance_compartment(self, analytics_instance_id, change_co "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_analytics_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_analytics_instance_compartment(self, analytics_instance_id, change_co "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_analytics_instance_compartment(self, analytics_instance_id, change_co "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -299,7 +299,7 @@ def change_analytics_instance_network_endpoint(self, analytics_instance_id, chan "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_analytics_instance_network_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -308,9 +308,9 @@ def change_analytics_instance_network_endpoint(self, analytics_instance_id, chan "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -321,7 +321,7 @@ def change_analytics_instance_network_endpoint(self, analytics_instance_id, chan "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def create_analytics_instance(self, create_analytics_instance_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -421,7 +421,7 @@ def create_analytics_instance(self, create_analytics_instance_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def create_private_access_channel(self, analytics_instance_id, create_private_ac "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_access_channel got unknown kwargs: {extra_kwargs!r}") @@ -522,9 +522,9 @@ def create_private_access_channel(self, analytics_instance_id, create_private_ac "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -534,7 +534,7 @@ def create_private_access_channel(self, analytics_instance_id, create_private_ac "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -626,7 +626,7 @@ def create_vanity_url(self, analytics_instance_id, create_vanity_url_details, ** "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vanity_url got unknown kwargs: {extra_kwargs!r}") @@ -635,9 +635,9 @@ def create_vanity_url(self, analytics_instance_id, create_vanity_url_details, ** "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -647,7 +647,7 @@ def create_vanity_url(self, analytics_instance_id, create_vanity_url_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -742,7 +742,7 @@ def delete_analytics_instance(self, analytics_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -751,9 +751,9 @@ def delete_analytics_instance(self, analytics_instance_id, **kwargs): "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -764,7 +764,7 @@ def delete_analytics_instance(self, analytics_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -859,7 +859,7 @@ def delete_private_access_channel(self, private_access_channel_key, analytics_in "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_access_channel got unknown kwargs: {extra_kwargs!r}") @@ -869,9 +869,9 @@ def delete_private_access_channel(self, private_access_channel_key, analytics_in "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -882,7 +882,7 @@ def delete_private_access_channel(self, private_access_channel_key, analytics_in "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -977,7 +977,7 @@ def delete_vanity_url(self, analytics_instance_id, vanity_url_key, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vanity_url got unknown kwargs: {extra_kwargs!r}") @@ -987,9 +987,9 @@ def delete_vanity_url(self, analytics_instance_id, vanity_url_key, **kwargs): "vanityUrlKey": vanity_url_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1000,7 +1000,7 @@ def delete_vanity_url(self, analytics_instance_id, vanity_url_key, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1084,7 +1084,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1093,9 +1093,9 @@ def delete_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1105,7 +1105,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1180,7 +1180,7 @@ def get_analytics_instance(self, analytics_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -1189,9 +1189,9 @@ def get_analytics_instance(self, analytics_instance_id, **kwargs): "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1200,7 +1200,7 @@ def get_analytics_instance(self, analytics_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1282,7 +1282,7 @@ def get_private_access_channel(self, private_access_channel_key, analytics_insta "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_access_channel got unknown kwargs: {extra_kwargs!r}") @@ -1292,9 +1292,9 @@ def get_private_access_channel(self, private_access_channel_key, analytics_insta "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1303,7 +1303,7 @@ def get_private_access_channel(self, private_access_channel_key, analytics_insta "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1382,7 +1382,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1391,9 +1391,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1402,7 +1402,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1537,7 +1537,7 @@ def list_analytics_instances(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_analytics_instances got unknown kwargs: {extra_kwargs!r}") @@ -1588,14 +1588,14 @@ def list_analytics_instances(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1692,7 +1692,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1701,9 +1701,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1711,14 +1711,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1817,7 +1817,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1826,9 +1826,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1836,14 +1836,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1970,7 +1970,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2014,14 +2014,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2118,7 +2118,7 @@ def scale_analytics_instance(self, analytics_instance_id, scale_analytics_instan "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scale_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -2127,9 +2127,9 @@ def scale_analytics_instance(self, analytics_instance_id, scale_analytics_instan "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2140,7 +2140,7 @@ def scale_analytics_instance(self, analytics_instance_id, scale_analytics_instan "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2237,7 +2237,7 @@ def set_feature_bundle(self, analytics_instance_id, set_feature_bundle_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_feature_bundle got unknown kwargs: {extra_kwargs!r}") @@ -2246,9 +2246,9 @@ def set_feature_bundle(self, analytics_instance_id, set_feature_bundle_details, "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2259,7 +2259,7 @@ def set_feature_bundle(self, analytics_instance_id, set_feature_bundle_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2356,7 +2356,7 @@ def set_kms_key(self, analytics_instance_id, set_kms_key_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -2365,9 +2365,9 @@ def set_kms_key(self, analytics_instance_id, set_kms_key_details, **kwargs): "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2378,7 +2378,7 @@ def set_kms_key(self, analytics_instance_id, set_kms_key_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2473,7 +2473,7 @@ def start_analytics_instance(self, analytics_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -2482,9 +2482,9 @@ def start_analytics_instance(self, analytics_instance_id, **kwargs): "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2495,7 +2495,7 @@ def start_analytics_instance(self, analytics_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2588,7 +2588,7 @@ def stop_analytics_instance(self, analytics_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -2597,9 +2597,9 @@ def stop_analytics_instance(self, analytics_instance_id, **kwargs): "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2610,7 +2610,7 @@ def stop_analytics_instance(self, analytics_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2699,7 +2699,7 @@ def update_analytics_instance(self, analytics_instance_id, update_analytics_inst "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -2708,9 +2708,9 @@ def update_analytics_instance(self, analytics_instance_id, update_analytics_inst "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2720,7 +2720,7 @@ def update_analytics_instance(self, analytics_instance_id, update_analytics_inst "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2819,7 +2819,7 @@ def update_private_access_channel(self, private_access_channel_key, analytics_in "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_access_channel got unknown kwargs: {extra_kwargs!r}") @@ -2829,9 +2829,9 @@ def update_private_access_channel(self, private_access_channel_key, analytics_in "analyticsInstanceId": analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2842,7 +2842,7 @@ def update_private_access_channel(self, private_access_channel_key, analytics_in "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2942,7 +2942,7 @@ def update_vanity_url(self, analytics_instance_id, vanity_url_key, update_vanity "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vanity_url got unknown kwargs: {extra_kwargs!r}") @@ -2952,9 +2952,9 @@ def update_vanity_url(self, analytics_instance_id, vanity_url_key, update_vanity "vanityUrlKey": vanity_url_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2965,7 +2965,7 @@ def update_vanity_url(self, analytics_instance_id, vanity_url_key, update_vanity "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/announcements_service/announcement_client.py b/src/oci/announcements_service/announcement_client.py index ec79b1ddd..782172412 100644 --- a/src/oci/announcements_service/announcement_client.py +++ b/src/oci/announcements_service/announcement_client.py @@ -163,7 +163,7 @@ def get_announcement(self, announcement_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_announcement got unknown kwargs: {extra_kwargs!r}") @@ -172,9 +172,9 @@ def get_announcement(self, announcement_id, **kwargs): "announcementId": announcement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -183,7 +183,7 @@ def get_announcement(self, announcement_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -260,7 +260,7 @@ def get_announcement_compartment(self, announcement_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_announcement_compartment got unknown kwargs: {extra_kwargs!r}") @@ -269,9 +269,9 @@ def get_announcement_compartment(self, announcement_id, **kwargs): "announcementId": announcement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -280,7 +280,7 @@ def get_announcement_compartment(self, announcement_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -359,7 +359,7 @@ def get_announcement_user_status(self, announcement_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_announcement_user_status got unknown kwargs: {extra_kwargs!r}") @@ -368,9 +368,9 @@ def get_announcement_user_status(self, announcement_id, **kwargs): "announcementId": announcement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -379,7 +379,7 @@ def get_announcement_user_status(self, announcement_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -526,7 +526,7 @@ def list_announcements(self, compartment_id, **kwargs): "chain_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_announcements got unknown kwargs: {extra_kwargs!r}") @@ -577,14 +577,14 @@ def list_announcements(self, compartment_id, **kwargs): "shouldShowOnlyLatestInChain": kwargs.get("should_show_only_latest_in_chain", missing), "chainId": kwargs.get("chain_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -670,7 +670,7 @@ def update_announcement_user_status(self, announcement_id, status_details, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_announcement_user_status got unknown kwargs: {extra_kwargs!r}") @@ -679,9 +679,9 @@ def update_announcement_user_status(self, announcement_id, status_details, **kwa "announcementId": announcement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -691,7 +691,7 @@ def update_announcement_user_status(self, announcement_id, status_details, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/announcements_service/announcement_subscription_client.py b/src/oci/announcements_service/announcement_subscription_client.py index a066334ee..0cf5cd6b2 100644 --- a/src/oci/announcements_service/announcement_subscription_client.py +++ b/src/oci/announcements_service/announcement_subscription_client.py @@ -170,7 +170,7 @@ def change_announcement_subscription_compartment(self, announcement_subscription "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_announcement_subscription_compartment got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def change_announcement_subscription_compartment(self, announcement_subscription "announcementSubscriptionId": announcement_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def change_announcement_subscription_compartment(self, announcement_subscription "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -278,7 +278,7 @@ def create_announcement_subscription(self, create_announcement_subscription_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_announcement_subscription got unknown kwargs: {extra_kwargs!r}") @@ -289,7 +289,7 @@ def create_announcement_subscription(self, create_announcement_subscription_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -384,7 +384,7 @@ def create_filter_group(self, announcement_subscription_id, create_filter_group_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_filter_group got unknown kwargs: {extra_kwargs!r}") @@ -393,9 +393,9 @@ def create_filter_group(self, announcement_subscription_id, create_filter_group_ "announcementSubscriptionId": announcement_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -406,7 +406,7 @@ def create_filter_group(self, announcement_subscription_id, create_filter_group_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -492,7 +492,7 @@ def delete_announcement_subscription(self, announcement_subscription_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_announcement_subscription got unknown kwargs: {extra_kwargs!r}") @@ -501,9 +501,9 @@ def delete_announcement_subscription(self, announcement_subscription_id, **kwarg "announcementSubscriptionId": announcement_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -513,7 +513,7 @@ def delete_announcement_subscription(self, announcement_subscription_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -597,7 +597,7 @@ def delete_filter_group(self, announcement_subscription_id, filter_group_name, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_filter_group got unknown kwargs: {extra_kwargs!r}") @@ -607,9 +607,9 @@ def delete_filter_group(self, announcement_subscription_id, filter_group_name, * "filterGroupName": filter_group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -619,7 +619,7 @@ def delete_filter_group(self, announcement_subscription_id, filter_group_name, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -696,7 +696,7 @@ def get_announcement_subscription(self, announcement_subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_announcement_subscription got unknown kwargs: {extra_kwargs!r}") @@ -705,9 +705,9 @@ def get_announcement_subscription(self, announcement_subscription_id, **kwargs): "announcementSubscriptionId": announcement_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -716,7 +716,7 @@ def get_announcement_subscription(self, announcement_subscription_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -829,7 +829,7 @@ def list_announcement_subscriptions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_announcement_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -865,14 +865,14 @@ def list_announcement_subscriptions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -958,7 +958,7 @@ def update_announcement_subscription(self, announcement_subscription_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_announcement_subscription got unknown kwargs: {extra_kwargs!r}") @@ -967,9 +967,9 @@ def update_announcement_subscription(self, announcement_subscription_id, update_ "announcementSubscriptionId": announcement_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -979,7 +979,7 @@ def update_announcement_subscription(self, announcement_subscription_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1070,7 +1070,7 @@ def update_filter_group(self, announcement_subscription_id, filter_group_name, u "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_filter_group got unknown kwargs: {extra_kwargs!r}") @@ -1080,9 +1080,9 @@ def update_filter_group(self, announcement_subscription_id, filter_group_name, u "filterGroupName": filter_group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1092,7 +1092,7 @@ def update_filter_group(self, announcement_subscription_id, filter_group_name, u "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/announcements_service/announcements_preferences_client.py b/src/oci/announcements_service/announcements_preferences_client.py index 3f208a9c0..229577a58 100644 --- a/src/oci/announcements_service/announcements_preferences_client.py +++ b/src/oci/announcements_service/announcements_preferences_client.py @@ -167,7 +167,7 @@ def create_announcements_preference(self, announcements_preference_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_announcements_preference got unknown kwargs: {extra_kwargs!r}") @@ -178,7 +178,7 @@ def create_announcements_preference(self, announcements_preference_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -258,7 +258,7 @@ def get_announcements_preference(self, preference_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_announcements_preference got unknown kwargs: {extra_kwargs!r}") @@ -267,9 +267,9 @@ def get_announcements_preference(self, preference_id, **kwargs): "preferenceId": preference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -278,7 +278,7 @@ def get_announcements_preference(self, preference_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -365,7 +365,7 @@ def list_announcements_preferences(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_announcements_preferences got unknown kwargs: {extra_kwargs!r}") @@ -375,14 +375,14 @@ def list_announcements_preferences(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -468,7 +468,7 @@ def update_announcements_preference(self, preference_id, announcements_preferenc "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_announcements_preference got unknown kwargs: {extra_kwargs!r}") @@ -477,9 +477,9 @@ def update_announcements_preference(self, preference_id, announcements_preferenc "preferenceId": preference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -489,7 +489,7 @@ def update_announcements_preference(self, preference_id, announcements_preferenc "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/announcements_service/service_client.py b/src/oci/announcements_service/service_client.py index f914acdbe..9c9ecdef3 100644 --- a/src/oci/announcements_service/service_client.py +++ b/src/oci/announcements_service/service_client.py @@ -193,7 +193,7 @@ def list_services(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_services got unknown kwargs: {extra_kwargs!r}") @@ -235,14 +235,14 @@ def list_services(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/api_platform/api_platform_client.py b/src/oci/api_platform/api_platform_client.py index 6b32003a3..a674c1d5e 100644 --- a/src/oci/api_platform/api_platform_client.py +++ b/src/oci/api_platform/api_platform_client.py @@ -186,7 +186,7 @@ def change_api_platform_instance_compartment(self, api_platform_instance_id, cha "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_api_platform_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def change_api_platform_instance_compartment(self, api_platform_instance_id, cha "apiPlatformInstanceId": api_platform_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -208,7 +208,7 @@ def change_api_platform_instance_compartment(self, api_platform_instance_id, cha "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -298,7 +298,7 @@ def create_api_platform_instance(self, create_api_platform_instance_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_api_platform_instance got unknown kwargs: {extra_kwargs!r}") @@ -309,7 +309,7 @@ def create_api_platform_instance(self, create_api_platform_instance_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -400,7 +400,7 @@ def delete_api_platform_instance(self, api_platform_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_api_platform_instance got unknown kwargs: {extra_kwargs!r}") @@ -409,9 +409,9 @@ def delete_api_platform_instance(self, api_platform_instance_id, **kwargs): "apiPlatformInstanceId": api_platform_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -421,7 +421,7 @@ def delete_api_platform_instance(self, api_platform_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -502,7 +502,7 @@ def get_api_platform_instance(self, api_platform_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api_platform_instance got unknown kwargs: {extra_kwargs!r}") @@ -511,9 +511,9 @@ def get_api_platform_instance(self, api_platform_instance_id, **kwargs): "apiPlatformInstanceId": api_platform_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -522,7 +522,7 @@ def get_api_platform_instance(self, api_platform_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -605,7 +605,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -614,9 +614,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -625,7 +625,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -755,7 +755,7 @@ def list_api_platform_instances(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_api_platform_instances got unknown kwargs: {extra_kwargs!r}") @@ -791,14 +791,14 @@ def list_api_platform_instances(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -909,7 +909,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -918,9 +918,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -944,14 +944,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1064,7 +1064,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1073,9 +1073,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1099,14 +1099,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1238,7 +1238,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1274,14 +1274,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1374,7 +1374,7 @@ def update_api_platform_instance(self, api_platform_instance_id, update_api_plat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_api_platform_instance got unknown kwargs: {extra_kwargs!r}") @@ -1383,9 +1383,9 @@ def update_api_platform_instance(self, api_platform_instance_id, update_api_plat "apiPlatformInstanceId": api_platform_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1395,7 +1395,7 @@ def update_api_platform_instance(self, api_platform_instance_id, update_api_plat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apiaccesscontrol/api_metadata_client.py b/src/oci/apiaccesscontrol/api_metadata_client.py index 192cc04b6..0b3310f8b 100644 --- a/src/oci/apiaccesscontrol/api_metadata_client.py +++ b/src/oci/apiaccesscontrol/api_metadata_client.py @@ -170,7 +170,7 @@ def get_api_metadata(self, api_metadata_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api_metadata got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def get_api_metadata(self, api_metadata_id, **kwargs): "apiMetadataId": api_metadata_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -190,7 +190,7 @@ def get_api_metadata(self, api_metadata_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -318,7 +318,7 @@ def list_api_metadata(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_api_metadata got unknown kwargs: {extra_kwargs!r}") @@ -354,14 +354,14 @@ def list_api_metadata(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -489,7 +489,7 @@ def list_api_metadata_by_entity_types(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_api_metadata_by_entity_types got unknown kwargs: {extra_kwargs!r}") @@ -525,14 +525,14 @@ def list_api_metadata_by_entity_types(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apiaccesscontrol/privileged_api_control_client.py b/src/oci/apiaccesscontrol/privileged_api_control_client.py index a3b2e480b..072c200ed 100644 --- a/src/oci/apiaccesscontrol/privileged_api_control_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_control_client.py @@ -191,7 +191,7 @@ def change_privileged_api_control_compartment(self, privileged_api_control_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_privileged_api_control_compartment got unknown kwargs: {extra_kwargs!r}") @@ -200,9 +200,9 @@ def change_privileged_api_control_compartment(self, privileged_api_control_id, c "privilegedApiControlId": privileged_api_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -213,7 +213,7 @@ def change_privileged_api_control_compartment(self, privileged_api_control_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def create_privileged_api_control(self, create_privileged_api_control_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_privileged_api_control got unknown kwargs: {extra_kwargs!r}") @@ -314,7 +314,7 @@ def create_privileged_api_control(self, create_privileged_api_control_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def delete_privileged_api_control(self, privileged_api_control_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_privileged_api_control got unknown kwargs: {extra_kwargs!r}") @@ -418,16 +418,16 @@ def delete_privileged_api_control(self, privileged_api_control_id, **kwargs): "privilegedApiControlId": privileged_api_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "description": kwargs.get("description", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -435,7 +435,7 @@ def delete_privileged_api_control(self, privileged_api_control_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -518,7 +518,7 @@ def get_privileged_api_control(self, privileged_api_control_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_privileged_api_control got unknown kwargs: {extra_kwargs!r}") @@ -527,9 +527,9 @@ def get_privileged_api_control(self, privileged_api_control_id, **kwargs): "privilegedApiControlId": privileged_api_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -538,7 +538,7 @@ def get_privileged_api_control(self, privileged_api_control_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -672,7 +672,7 @@ def list_privileged_api_controls(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_privileged_api_controls got unknown kwargs: {extra_kwargs!r}") @@ -709,14 +709,14 @@ def list_privileged_api_controls(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -809,7 +809,7 @@ def update_privileged_api_control(self, privileged_api_control_id, update_privil "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_privileged_api_control got unknown kwargs: {extra_kwargs!r}") @@ -818,9 +818,9 @@ def update_privileged_api_control(self, privileged_api_control_id, update_privil "privilegedApiControlId": privileged_api_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -830,7 +830,7 @@ def update_privileged_api_control(self, privileged_api_control_id, update_privil "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apiaccesscontrol/privileged_api_requests_client.py b/src/oci/apiaccesscontrol/privileged_api_requests_client.py index 5a80fb3c8..8535b3e88 100644 --- a/src/oci/apiaccesscontrol/privileged_api_requests_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_requests_client.py @@ -186,7 +186,7 @@ def approve_privileged_api_request(self, privileged_api_request_id, approve_priv "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"approve_privileged_api_request got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def approve_privileged_api_request(self, privileged_api_request_id, approve_priv "privilegedApiRequestId": privileged_api_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -208,7 +208,7 @@ def approve_privileged_api_request(self, privileged_api_request_id, approve_priv "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -308,7 +308,7 @@ def close_privileged_api_request(self, privileged_api_request_id, close_privileg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"close_privileged_api_request got unknown kwargs: {extra_kwargs!r}") @@ -317,9 +317,9 @@ def close_privileged_api_request(self, privileged_api_request_id, close_privileg "privilegedApiRequestId": privileged_api_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -330,7 +330,7 @@ def close_privileged_api_request(self, privileged_api_request_id, close_privileg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -420,7 +420,7 @@ def create_privileged_api_request(self, create_privileged_api_request_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_privileged_api_request got unknown kwargs: {extra_kwargs!r}") @@ -431,7 +431,7 @@ def create_privileged_api_request(self, create_privileged_api_request_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def get_privileged_api_request(self, privileged_api_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_privileged_api_request got unknown kwargs: {extra_kwargs!r}") @@ -522,9 +522,9 @@ def get_privileged_api_request(self, privileged_api_request_id, **kwargs): "privilegedApiRequestId": privileged_api_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -533,7 +533,7 @@ def get_privileged_api_request(self, privileged_api_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -680,7 +680,7 @@ def list_privileged_api_requests(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_privileged_api_requests got unknown kwargs: {extra_kwargs!r}") @@ -726,14 +726,14 @@ def list_privileged_api_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -832,7 +832,7 @@ def reject_privileged_api_request(self, privileged_api_request_id, reject_privil "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reject_privileged_api_request got unknown kwargs: {extra_kwargs!r}") @@ -841,9 +841,9 @@ def reject_privileged_api_request(self, privileged_api_request_id, reject_privil "privilegedApiRequestId": privileged_api_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -854,7 +854,7 @@ def reject_privileged_api_request(self, privileged_api_request_id, reject_privil "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -954,7 +954,7 @@ def revoke_privileged_api_request(self, privileged_api_request_id, revoke_privil "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"revoke_privileged_api_request got unknown kwargs: {extra_kwargs!r}") @@ -963,9 +963,9 @@ def revoke_privileged_api_request(self, privileged_api_request_id, revoke_privil "privilegedApiRequestId": privileged_api_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -976,7 +976,7 @@ def revoke_privileged_api_request(self, privileged_api_request_id, revoke_privil "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apiaccesscontrol/privileged_api_work_request_client.py b/src/oci/apiaccesscontrol/privileged_api_work_request_client.py index aa4d8f8d8..a0b1357d4 100644 --- a/src/oci/apiaccesscontrol/privileged_api_work_request_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_work_request_client.py @@ -177,7 +177,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -186,9 +186,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -279,7 +279,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -288,9 +288,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -299,7 +299,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -419,9 +419,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -445,14 +445,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -565,7 +565,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -574,9 +574,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -600,14 +600,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -739,7 +739,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -775,14 +775,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apigateway/api_gateway_client.py b/src/oci/apigateway/api_gateway_client.py index 56d518f4b..120933320 100644 --- a/src/oci/apigateway/api_gateway_client.py +++ b/src/oci/apigateway/api_gateway_client.py @@ -172,7 +172,7 @@ def add_api_lock(self, api_id, add_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_api_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_api_lock(self, api_id, add_resource_lock_details, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_api_lock(self, api_id, add_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def add_certificate_lock(self, certificate_id, add_resource_lock_details, **kwar "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_certificate_lock got unknown kwargs: {extra_kwargs!r}") @@ -290,9 +290,9 @@ def add_certificate_lock(self, certificate_id, add_resource_lock_details, **kwar "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -302,7 +302,7 @@ def add_certificate_lock(self, certificate_id, add_resource_lock_details, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -390,7 +390,7 @@ def add_sdk_lock(self, sdk_id, add_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_sdk_lock got unknown kwargs: {extra_kwargs!r}") @@ -399,9 +399,9 @@ def add_sdk_lock(self, sdk_id, add_resource_lock_details, **kwargs): "sdkId": sdk_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -411,7 +411,7 @@ def add_sdk_lock(self, sdk_id, add_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -512,7 +512,7 @@ def change_api_compartment(self, api_id, change_api_compartment_details, **kwarg "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_api_compartment got unknown kwargs: {extra_kwargs!r}") @@ -521,16 +521,16 @@ def change_api_compartment(self, api_id, change_api_compartment_details, **kwarg "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -539,7 +539,7 @@ def change_api_compartment(self, api_id, change_api_compartment_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -641,7 +641,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_certificate_compartment got unknown kwargs: {extra_kwargs!r}") @@ -650,16 +650,16 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -668,7 +668,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -755,7 +755,7 @@ def create_api(self, create_api_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_api got unknown kwargs: {extra_kwargs!r}") @@ -766,7 +766,7 @@ def create_api(self, create_api_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -853,7 +853,7 @@ def create_certificate(self, create_certificate_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_certificate got unknown kwargs: {extra_kwargs!r}") @@ -864,7 +864,7 @@ def create_certificate(self, create_certificate_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -951,7 +951,7 @@ def create_sdk(self, create_sdk_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sdk got unknown kwargs: {extra_kwargs!r}") @@ -962,7 +962,7 @@ def create_sdk(self, create_sdk_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1053,7 +1053,7 @@ def delete_api(self, api_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_api got unknown kwargs: {extra_kwargs!r}") @@ -1062,16 +1062,16 @@ def delete_api(self, api_id, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1079,7 +1079,7 @@ def delete_api(self, api_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1167,7 +1167,7 @@ def delete_certificate(self, certificate_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1176,16 +1176,16 @@ def delete_certificate(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1193,7 +1193,7 @@ def delete_certificate(self, certificate_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1281,7 +1281,7 @@ def delete_sdk(self, sdk_id, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sdk got unknown kwargs: {extra_kwargs!r}") @@ -1290,16 +1290,16 @@ def delete_sdk(self, sdk_id, **kwargs): "sdkId": sdk_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1307,7 +1307,7 @@ def delete_sdk(self, sdk_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1383,7 +1383,7 @@ def get_api(self, api_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api got unknown kwargs: {extra_kwargs!r}") @@ -1392,9 +1392,9 @@ def get_api(self, api_id, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1403,7 +1403,7 @@ def get_api(self, api_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1497,7 +1497,7 @@ def get_api_content(self, api_id, **kwargs): "if_match", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api_content got unknown kwargs: {extra_kwargs!r}") @@ -1506,9 +1506,9 @@ def get_api_content(self, api_id, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1519,7 +1519,7 @@ def get_api_content(self, api_id, **kwargs): "if-match": kwargs.get("if_match", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1605,7 +1605,7 @@ def get_api_deployment_specification(self, api_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api_deployment_specification got unknown kwargs: {extra_kwargs!r}") @@ -1614,9 +1614,9 @@ def get_api_deployment_specification(self, api_id, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1626,7 +1626,7 @@ def get_api_deployment_specification(self, api_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1712,7 +1712,7 @@ def get_api_validations(self, api_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api_validations got unknown kwargs: {extra_kwargs!r}") @@ -1721,9 +1721,9 @@ def get_api_validations(self, api_id, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1733,7 +1733,7 @@ def get_api_validations(self, api_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1811,7 +1811,7 @@ def get_certificate(self, certificate_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1820,9 +1820,9 @@ def get_certificate(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1831,7 +1831,7 @@ def get_certificate(self, certificate_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1909,7 +1909,7 @@ def get_sdk(self, sdk_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sdk got unknown kwargs: {extra_kwargs!r}") @@ -1918,9 +1918,9 @@ def get_sdk(self, sdk_id, **kwargs): "sdkId": sdk_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1929,7 +1929,7 @@ def get_sdk(self, sdk_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2044,7 +2044,7 @@ def list_apis(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_apis got unknown kwargs: {extra_kwargs!r}") @@ -2079,14 +2079,14 @@ def list_apis(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2201,7 +2201,7 @@ def list_certificates(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificates got unknown kwargs: {extra_kwargs!r}") @@ -2236,14 +2236,14 @@ def list_certificates(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2350,7 +2350,7 @@ def list_sdk_language_types(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sdk_language_types got unknown kwargs: {extra_kwargs!r}") @@ -2377,14 +2377,14 @@ def list_sdk_language_types(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2504,7 +2504,7 @@ def list_sdks(self, **kwargs): "api_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sdks got unknown kwargs: {extra_kwargs!r}") @@ -2540,14 +2540,14 @@ def list_sdks(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "apiId": kwargs.get("api_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2635,7 +2635,7 @@ def remove_api_lock(self, api_id, remove_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_api_lock got unknown kwargs: {extra_kwargs!r}") @@ -2644,9 +2644,9 @@ def remove_api_lock(self, api_id, remove_resource_lock_details, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2656,7 +2656,7 @@ def remove_api_lock(self, api_id, remove_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2744,7 +2744,7 @@ def remove_certificate_lock(self, certificate_id, remove_resource_lock_details, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_certificate_lock got unknown kwargs: {extra_kwargs!r}") @@ -2753,9 +2753,9 @@ def remove_certificate_lock(self, certificate_id, remove_resource_lock_details, "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2765,7 +2765,7 @@ def remove_certificate_lock(self, certificate_id, remove_resource_lock_details, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2853,7 +2853,7 @@ def remove_sdk_lock(self, sdk_id, remove_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_sdk_lock got unknown kwargs: {extra_kwargs!r}") @@ -2862,9 +2862,9 @@ def remove_sdk_lock(self, sdk_id, remove_resource_lock_details, **kwargs): "sdkId": sdk_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2874,7 +2874,7 @@ def remove_sdk_lock(self, sdk_id, remove_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2967,7 +2967,7 @@ def update_api(self, api_id, update_api_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_api got unknown kwargs: {extra_kwargs!r}") @@ -2976,16 +2976,16 @@ def update_api(self, api_id, update_api_details, **kwargs): "apiId": api_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2993,7 +2993,7 @@ def update_api(self, api_id, update_api_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3086,7 +3086,7 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_certificate got unknown kwargs: {extra_kwargs!r}") @@ -3095,16 +3095,16 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3112,7 +3112,7 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3205,7 +3205,7 @@ def update_sdk(self, sdk_id, update_sdk_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sdk got unknown kwargs: {extra_kwargs!r}") @@ -3214,16 +3214,16 @@ def update_sdk(self, sdk_id, update_sdk_details, **kwargs): "sdkId": sdk_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3231,7 +3231,7 @@ def update_sdk(self, sdk_id, update_sdk_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apigateway/deployment_client.py b/src/oci/apigateway/deployment_client.py index 53d9d3cac..87e8f7df5 100644 --- a/src/oci/apigateway/deployment_client.py +++ b/src/oci/apigateway/deployment_client.py @@ -172,7 +172,7 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_deployment_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_deployment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -303,16 +303,16 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -321,7 +321,7 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -408,7 +408,7 @@ def create_deployment(self, create_deployment_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deployment got unknown kwargs: {extra_kwargs!r}") @@ -419,7 +419,7 @@ def create_deployment(self, create_deployment_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def delete_deployment(self, deployment_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deployment got unknown kwargs: {extra_kwargs!r}") @@ -519,16 +519,16 @@ def delete_deployment(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -536,7 +536,7 @@ def delete_deployment(self, deployment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def get_deployment(self, deployment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deployment got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def get_deployment(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -632,7 +632,7 @@ def get_deployment(self, deployment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -751,7 +751,7 @@ def list_deployments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployments got unknown kwargs: {extra_kwargs!r}") @@ -787,14 +787,14 @@ def list_deployments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -882,7 +882,7 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_deployment_lock got unknown kwargs: {extra_kwargs!r}") @@ -891,9 +891,9 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -903,7 +903,7 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -996,7 +996,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deployment got unknown kwargs: {extra_kwargs!r}") @@ -1005,16 +1005,16 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1022,7 +1022,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apigateway/gateway_client.py b/src/oci/apigateway/gateway_client.py index 2748dfef7..e936ca981 100644 --- a/src/oci/apigateway/gateway_client.py +++ b/src/oci/apigateway/gateway_client.py @@ -172,7 +172,7 @@ def add_gateway_lock(self, gateway_id, add_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_gateway_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_gateway_lock(self, gateway_id, add_resource_lock_details, **kwargs): "gatewayId": gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_gateway_lock(self, gateway_id, add_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def change_gateway_compartment(self, gateway_id, change_gateway_compartment_deta "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_gateway_compartment got unknown kwargs: {extra_kwargs!r}") @@ -303,16 +303,16 @@ def change_gateway_compartment(self, gateway_id, change_gateway_compartment_deta "gatewayId": gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -321,7 +321,7 @@ def change_gateway_compartment(self, gateway_id, change_gateway_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -408,7 +408,7 @@ def create_gateway(self, create_gateway_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_gateway got unknown kwargs: {extra_kwargs!r}") @@ -419,7 +419,7 @@ def create_gateway(self, create_gateway_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def delete_gateway(self, gateway_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_gateway got unknown kwargs: {extra_kwargs!r}") @@ -519,16 +519,16 @@ def delete_gateway(self, gateway_id, **kwargs): "gatewayId": gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -536,7 +536,7 @@ def delete_gateway(self, gateway_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def get_gateway(self, gateway_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_gateway got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def get_gateway(self, gateway_id, **kwargs): "gatewayId": gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -632,7 +632,7 @@ def get_gateway(self, gateway_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -751,7 +751,7 @@ def list_gateways(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_gateways got unknown kwargs: {extra_kwargs!r}") @@ -787,14 +787,14 @@ def list_gateways(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -882,7 +882,7 @@ def remove_gateway_lock(self, gateway_id, remove_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_gateway_lock got unknown kwargs: {extra_kwargs!r}") @@ -891,9 +891,9 @@ def remove_gateway_lock(self, gateway_id, remove_resource_lock_details, **kwargs "gatewayId": gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -903,7 +903,7 @@ def remove_gateway_lock(self, gateway_id, remove_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -996,7 +996,7 @@ def update_gateway(self, gateway_id, update_gateway_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_gateway got unknown kwargs: {extra_kwargs!r}") @@ -1005,16 +1005,16 @@ def update_gateway(self, gateway_id, update_gateway_details, **kwargs): "gatewayId": gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1022,7 +1022,7 @@ def update_gateway(self, gateway_id, update_gateway_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apigateway/subscribers_client.py b/src/oci/apigateway/subscribers_client.py index 0ce7243ca..3e75a5c5b 100644 --- a/src/oci/apigateway/subscribers_client.py +++ b/src/oci/apigateway/subscribers_client.py @@ -172,7 +172,7 @@ def add_subscriber_lock(self, subscriber_id, add_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_subscriber_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_subscriber_lock(self, subscriber_id, add_resource_lock_details, **kwargs "subscriberId": subscriber_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_subscriber_lock(self, subscriber_id, add_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def change_subscriber_compartment(self, subscriber_id, change_subscriber_compart "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_subscriber_compartment got unknown kwargs: {extra_kwargs!r}") @@ -303,16 +303,16 @@ def change_subscriber_compartment(self, subscriber_id, change_subscriber_compart "subscriberId": subscriber_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -321,7 +321,7 @@ def change_subscriber_compartment(self, subscriber_id, change_subscriber_compart "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -408,7 +408,7 @@ def create_subscriber(self, create_subscriber_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_subscriber got unknown kwargs: {extra_kwargs!r}") @@ -419,7 +419,7 @@ def create_subscriber(self, create_subscriber_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def delete_subscriber(self, subscriber_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_subscriber got unknown kwargs: {extra_kwargs!r}") @@ -519,16 +519,16 @@ def delete_subscriber(self, subscriber_id, **kwargs): "subscriberId": subscriber_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -536,7 +536,7 @@ def delete_subscriber(self, subscriber_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def get_subscriber(self, subscriber_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscriber got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def get_subscriber(self, subscriber_id, **kwargs): "subscriberId": subscriber_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -632,7 +632,7 @@ def get_subscriber(self, subscriber_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -746,7 +746,7 @@ def list_subscribers(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscribers got unknown kwargs: {extra_kwargs!r}") @@ -781,14 +781,14 @@ def list_subscribers(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -876,7 +876,7 @@ def remove_subscriber_lock(self, subscriber_id, remove_resource_lock_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_subscriber_lock got unknown kwargs: {extra_kwargs!r}") @@ -885,9 +885,9 @@ def remove_subscriber_lock(self, subscriber_id, remove_resource_lock_details, ** "subscriberId": subscriber_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -897,7 +897,7 @@ def remove_subscriber_lock(self, subscriber_id, remove_resource_lock_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -990,7 +990,7 @@ def update_subscriber(self, subscriber_id, update_subscriber_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_subscriber got unknown kwargs: {extra_kwargs!r}") @@ -999,16 +999,16 @@ def update_subscriber(self, subscriber_id, update_subscriber_details, **kwargs): "subscriberId": subscriber_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1016,7 +1016,7 @@ def update_subscriber(self, subscriber_id, update_subscriber_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apigateway/usage_plans_client.py b/src/oci/apigateway/usage_plans_client.py index 9fb604bf9..832bc1ff6 100644 --- a/src/oci/apigateway/usage_plans_client.py +++ b/src/oci/apigateway/usage_plans_client.py @@ -172,7 +172,7 @@ def add_usage_plan_lock(self, usage_plan_id, add_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_usage_plan_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_usage_plan_lock(self, usage_plan_id, add_resource_lock_details, **kwargs "usagePlanId": usage_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_usage_plan_lock(self, usage_plan_id, add_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def change_usage_plan_compartment(self, usage_plan_id, change_usage_plan_compart "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_usage_plan_compartment got unknown kwargs: {extra_kwargs!r}") @@ -303,16 +303,16 @@ def change_usage_plan_compartment(self, usage_plan_id, change_usage_plan_compart "usagePlanId": usage_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -321,7 +321,7 @@ def change_usage_plan_compartment(self, usage_plan_id, change_usage_plan_compart "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -408,7 +408,7 @@ def create_usage_plan(self, create_usage_plan_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_usage_plan got unknown kwargs: {extra_kwargs!r}") @@ -419,7 +419,7 @@ def create_usage_plan(self, create_usage_plan_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def delete_usage_plan(self, usage_plan_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_usage_plan got unknown kwargs: {extra_kwargs!r}") @@ -519,16 +519,16 @@ def delete_usage_plan(self, usage_plan_id, **kwargs): "usagePlanId": usage_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -536,7 +536,7 @@ def delete_usage_plan(self, usage_plan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def get_usage_plan(self, usage_plan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_usage_plan got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def get_usage_plan(self, usage_plan_id, **kwargs): "usagePlanId": usage_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -632,7 +632,7 @@ def get_usage_plan(self, usage_plan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -746,7 +746,7 @@ def list_usage_plans(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_usage_plans got unknown kwargs: {extra_kwargs!r}") @@ -781,14 +781,14 @@ def list_usage_plans(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -876,7 +876,7 @@ def remove_usage_plan_lock(self, usage_plan_id, remove_resource_lock_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_usage_plan_lock got unknown kwargs: {extra_kwargs!r}") @@ -885,9 +885,9 @@ def remove_usage_plan_lock(self, usage_plan_id, remove_resource_lock_details, ** "usagePlanId": usage_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -897,7 +897,7 @@ def remove_usage_plan_lock(self, usage_plan_id, remove_resource_lock_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -990,7 +990,7 @@ def update_usage_plan(self, usage_plan_id, update_usage_plan_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_usage_plan got unknown kwargs: {extra_kwargs!r}") @@ -999,16 +999,16 @@ def update_usage_plan(self, usage_plan_id, update_usage_plan_details, **kwargs): "usagePlanId": usage_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1016,7 +1016,7 @@ def update_usage_plan(self, usage_plan_id, update_usage_plan_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apigateway/work_requests_client.py b/src/oci/apigateway/work_requests_client.py index 14d40f1e2..578d7db16 100644 --- a/src/oci/apigateway/work_requests_client.py +++ b/src/oci/apigateway/work_requests_client.py @@ -178,7 +178,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -187,9 +187,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -200,7 +200,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -275,7 +275,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -284,9 +284,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -295,7 +295,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -396,7 +396,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -405,9 +405,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -431,14 +431,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -541,7 +541,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -550,9 +550,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -576,14 +576,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -690,7 +690,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -717,14 +717,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_config/config_client.py b/src/oci/apm_config/config_client.py index 44eec010a..bb1229703 100644 --- a/src/oci/apm_config/config_client.py +++ b/src/oci/apm_config/config_client.py @@ -176,7 +176,7 @@ def copy_configuration(self, copy_configuration_details, apm_domain_id, apm_targ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_configuration got unknown kwargs: {extra_kwargs!r}") @@ -185,7 +185,7 @@ def copy_configuration(self, copy_configuration_details, apm_domain_id, apm_targ "apmDomainId": apm_domain_id, "apmTargetDomainId": apm_target_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -193,7 +193,7 @@ def copy_configuration(self, copy_configuration_details, apm_domain_id, apm_targ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def create_config(self, apm_domain_id, create_config_details, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_config got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_config(self, apm_domain_id, create_config_details, **kwargs): query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -308,7 +308,7 @@ def create_config(self, apm_domain_id, create_config_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -403,7 +403,7 @@ def delete_config(self, apm_domain_id, config_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_config got unknown kwargs: {extra_kwargs!r}") @@ -412,16 +412,16 @@ def delete_config(self, apm_domain_id, config_id, **kwargs): "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -429,7 +429,7 @@ def delete_config(self, apm_domain_id, config_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -519,7 +519,7 @@ def export_configuration(self, export_configuration_details, apm_domain_id, **kw "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_configuration got unknown kwargs: {extra_kwargs!r}") @@ -527,7 +527,7 @@ def export_configuration(self, export_configuration_details, apm_domain_id, **kw query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -535,7 +535,7 @@ def export_configuration(self, export_configuration_details, apm_domain_id, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -622,7 +622,7 @@ def get_config(self, apm_domain_id, config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_config got unknown kwargs: {extra_kwargs!r}") @@ -631,23 +631,23 @@ def get_config(self, apm_domain_id, config_id, **kwargs): "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -728,7 +728,7 @@ def get_match_agents_with_attribute_key(self, apm_domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_match_agents_with_attribute_key got unknown kwargs: {extra_kwargs!r}") @@ -736,14 +736,14 @@ def get_match_agents_with_attribute_key(self, apm_domain_id, **kwargs): query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -833,7 +833,7 @@ def import_configuration(self, import_configuration_details, apm_domain_id, **kw "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_configuration got unknown kwargs: {extra_kwargs!r}") @@ -841,7 +841,7 @@ def import_configuration(self, import_configuration_details, apm_domain_id, **kw query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -849,7 +849,7 @@ def import_configuration(self, import_configuration_details, apm_domain_id, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -999,7 +999,7 @@ def list_configs(self, apm_domain_id, **kwargs): "defined_tag_exists", "freeform_tag_exists" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_configs got unknown kwargs: {extra_kwargs!r}") @@ -1032,14 +1032,14 @@ def list_configs(self, apm_domain_id, **kwargs): "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1121,7 +1121,7 @@ def retrieve_namespace_metrics(self, apm_domain_id, retrieve_namespace_metrics_d "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_namespace_metrics got unknown kwargs: {extra_kwargs!r}") @@ -1129,14 +1129,14 @@ def retrieve_namespace_metrics(self, apm_domain_id, retrieve_namespace_metrics_d query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1217,7 +1217,7 @@ def retrieve_namespaces(self, apm_domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -1225,14 +1225,14 @@ def retrieve_namespaces(self, apm_domain_id, **kwargs): query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1315,7 +1315,7 @@ def test(self, apm_domain_id, test_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test got unknown kwargs: {extra_kwargs!r}") @@ -1323,14 +1323,14 @@ def test(self, apm_domain_id, test_details, **kwargs): query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1432,7 +1432,7 @@ def update_config(self, apm_domain_id, config_id, update_config_details, **kwarg "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_config got unknown kwargs: {extra_kwargs!r}") @@ -1441,16 +1441,16 @@ def update_config(self, apm_domain_id, config_id, update_config_details, **kwarg "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1459,7 +1459,7 @@ def update_config(self, apm_domain_id, config_id, update_config_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1545,7 +1545,7 @@ def update_match_agents_with_attribute_key(self, apm_domain_id, update_match_age "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_match_agents_with_attribute_key got unknown kwargs: {extra_kwargs!r}") @@ -1553,14 +1553,14 @@ def update_match_agents_with_attribute_key(self, apm_domain_id, update_match_age query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1645,7 +1645,7 @@ def validate_span_filter_pattern(self, apm_domain_id, validate_span_filter_patte "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_span_filter_pattern got unknown kwargs: {extra_kwargs!r}") @@ -1653,14 +1653,14 @@ def validate_span_filter_pattern(self, apm_domain_id, validate_span_filter_patte query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_control_plane/apm_domain_client.py b/src/oci/apm_control_plane/apm_domain_client.py index 53bd5cfd9..fd464c629 100644 --- a/src/oci/apm_control_plane/apm_domain_client.py +++ b/src/oci/apm_control_plane/apm_domain_client.py @@ -179,7 +179,7 @@ def change_apm_domain_compartment(self, apm_domain_id, change_apm_domain_compart "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_apm_domain_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_apm_domain_compartment(self, apm_domain_id, change_apm_domain_compart "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_apm_domain_compartment(self, apm_domain_id, change_apm_domain_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_apm_domain(self, create_apm_domain_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_apm_domain got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_apm_domain(self, create_apm_domain_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -385,7 +385,7 @@ def delete_apm_domain(self, apm_domain_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_apm_domain got unknown kwargs: {extra_kwargs!r}") @@ -394,9 +394,9 @@ def delete_apm_domain(self, apm_domain_id, **kwargs): "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -406,7 +406,7 @@ def delete_apm_domain(self, apm_domain_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -493,7 +493,7 @@ def generate_data_keys(self, generate_data_keys_list_details, apm_domain_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_data_keys got unknown kwargs: {extra_kwargs!r}") @@ -502,9 +502,9 @@ def generate_data_keys(self, generate_data_keys_list_details, apm_domain_id, **k "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -514,7 +514,7 @@ def generate_data_keys(self, generate_data_keys_list_details, apm_domain_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -592,7 +592,7 @@ def get_apm_domain(self, apm_domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_apm_domain got unknown kwargs: {extra_kwargs!r}") @@ -601,9 +601,9 @@ def get_apm_domain(self, apm_domain_id, **kwargs): "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -612,7 +612,7 @@ def get_apm_domain(self, apm_domain_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -690,7 +690,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -699,9 +699,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -710,7 +710,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -796,7 +796,7 @@ def list_apm_domain_work_requests(self, apm_domain_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_apm_domain_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -805,9 +805,9 @@ def list_apm_domain_work_requests(self, apm_domain_id, **kwargs): "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -815,14 +815,14 @@ def list_apm_domain_work_requests(self, apm_domain_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -932,7 +932,7 @@ def list_apm_domains(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_apm_domains got unknown kwargs: {extra_kwargs!r}") @@ -967,14 +967,14 @@ def list_apm_domains(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1059,7 +1059,7 @@ def list_data_keys(self, apm_domain_id, **kwargs): "data_key_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_keys got unknown kwargs: {extra_kwargs!r}") @@ -1068,9 +1068,9 @@ def list_data_keys(self, apm_domain_id, **kwargs): "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1084,14 +1084,14 @@ def list_data_keys(self, apm_domain_id, **kwargs): query_params = { "dataKeyType": kwargs.get("data_key_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1179,7 +1179,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1188,9 +1188,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1198,14 +1198,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1293,7 +1293,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1302,9 +1302,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1312,14 +1312,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1407,7 +1407,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1417,14 +1417,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1513,7 +1513,7 @@ def remove_data_keys(self, apm_domain_id, remove_data_keys_list_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_data_keys got unknown kwargs: {extra_kwargs!r}") @@ -1522,9 +1522,9 @@ def remove_data_keys(self, apm_domain_id, remove_data_keys_list_details, **kwarg "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1534,7 +1534,7 @@ def remove_data_keys(self, apm_domain_id, remove_data_keys_list_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1622,7 +1622,7 @@ def update_apm_domain(self, apm_domain_id, update_apm_domain_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_apm_domain got unknown kwargs: {extra_kwargs!r}") @@ -1631,9 +1631,9 @@ def update_apm_domain(self, apm_domain_id, update_apm_domain_details, **kwargs): "apmDomainId": apm_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1643,7 +1643,7 @@ def update_apm_domain(self, apm_domain_id, update_apm_domain_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_synthetics/apm_synthetic_client.py b/src/oci/apm_synthetics/apm_synthetic_client.py index 3716837e8..3eee29c23 100644 --- a/src/oci/apm_synthetics/apm_synthetic_client.py +++ b/src/oci/apm_synthetics/apm_synthetic_client.py @@ -175,7 +175,7 @@ def aggregate_network_data(self, apm_domain_id, monitor_id, aggregate_network_da "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"aggregate_network_data got unknown kwargs: {extra_kwargs!r}") @@ -184,16 +184,16 @@ def aggregate_network_data(self, apm_domain_id, monitor_id, aggregate_network_da "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -201,7 +201,7 @@ def aggregate_network_data(self, apm_domain_id, monitor_id, aggregate_network_da "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -296,7 +296,7 @@ def create_dedicated_vantage_point(self, apm_domain_id, create_dedicated_vantage "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dedicated_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -304,7 +304,7 @@ def create_dedicated_vantage_point(self, apm_domain_id, create_dedicated_vantage query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -312,7 +312,7 @@ def create_dedicated_vantage_point(self, apm_domain_id, create_dedicated_vantage "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -405,7 +405,7 @@ def create_monitor(self, apm_domain_id, create_monitor_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_monitor got unknown kwargs: {extra_kwargs!r}") @@ -413,7 +413,7 @@ def create_monitor(self, apm_domain_id, create_monitor_details, **kwargs): query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -421,7 +421,7 @@ def create_monitor(self, apm_domain_id, create_monitor_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -514,7 +514,7 @@ def create_on_premise_vantage_point(self, apm_domain_id, create_on_premise_vanta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_on_premise_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -522,7 +522,7 @@ def create_on_premise_vantage_point(self, apm_domain_id, create_on_premise_vanta query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -530,7 +530,7 @@ def create_on_premise_vantage_point(self, apm_domain_id, create_on_premise_vanta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -623,7 +623,7 @@ def create_script(self, apm_domain_id, create_script_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_script got unknown kwargs: {extra_kwargs!r}") @@ -631,7 +631,7 @@ def create_script(self, apm_domain_id, create_script_details, **kwargs): query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -639,7 +639,7 @@ def create_script(self, apm_domain_id, create_script_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -735,7 +735,7 @@ def create_worker(self, apm_domain_id, on_premise_vantage_point_id, create_worke "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_worker got unknown kwargs: {extra_kwargs!r}") @@ -744,16 +744,16 @@ def create_worker(self, apm_domain_id, on_premise_vantage_point_id, create_worke "onPremiseVantagePointId": on_premise_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -761,7 +761,7 @@ def create_worker(self, apm_domain_id, on_premise_vantage_point_id, create_worke "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -856,7 +856,7 @@ def delete_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dedicated_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -865,16 +865,16 @@ def delete_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ "dedicatedVantagePointId": dedicated_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -882,7 +882,7 @@ def delete_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -972,7 +972,7 @@ def delete_monitor(self, apm_domain_id, monitor_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_monitor got unknown kwargs: {extra_kwargs!r}") @@ -981,16 +981,16 @@ def delete_monitor(self, apm_domain_id, monitor_id, **kwargs): "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -998,7 +998,7 @@ def delete_monitor(self, apm_domain_id, monitor_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1088,7 +1088,7 @@ def delete_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_on_premise_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -1097,16 +1097,16 @@ def delete_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin "onPremiseVantagePointId": on_premise_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1114,7 +1114,7 @@ def delete_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1204,7 +1204,7 @@ def delete_script(self, apm_domain_id, script_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_script got unknown kwargs: {extra_kwargs!r}") @@ -1213,16 +1213,16 @@ def delete_script(self, apm_domain_id, script_id, **kwargs): "scriptId": script_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1230,7 +1230,7 @@ def delete_script(self, apm_domain_id, script_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1323,7 +1323,7 @@ def delete_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_worker got unknown kwargs: {extra_kwargs!r}") @@ -1333,16 +1333,16 @@ def delete_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, * "workerId": worker_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1350,7 +1350,7 @@ def delete_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1432,7 +1432,7 @@ def get_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dedicated_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -1441,23 +1441,23 @@ def get_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_id, "dedicatedVantagePointId": dedicated_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1541,7 +1541,7 @@ def get_monitor(self, apm_domain_id, monitor_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitor got unknown kwargs: {extra_kwargs!r}") @@ -1550,23 +1550,23 @@ def get_monitor(self, apm_domain_id, monitor_id, **kwargs): "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1662,7 +1662,7 @@ def get_monitor_result(self, apm_domain_id, monitor_id, vantage_point, result_ty "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitor_result got unknown kwargs: {extra_kwargs!r}") @@ -1672,9 +1672,9 @@ def get_monitor_result(self, apm_domain_id, monitor_id, vantage_point, result_ty "executionTime": execution_time } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1684,14 +1684,14 @@ def get_monitor_result(self, apm_domain_id, monitor_id, vantage_point, result_ty "resultType": result_type, "resultContentType": result_content_type } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1775,7 +1775,7 @@ def get_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_point_i "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_on_premise_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -1784,23 +1784,23 @@ def get_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_point_i "onPremiseVantagePointId": on_premise_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1884,7 +1884,7 @@ def get_script(self, apm_domain_id, script_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_script got unknown kwargs: {extra_kwargs!r}") @@ -1893,23 +1893,23 @@ def get_script(self, apm_domain_id, script_id, **kwargs): "scriptId": script_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1996,7 +1996,7 @@ def get_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_worker got unknown kwargs: {extra_kwargs!r}") @@ -2006,23 +2006,23 @@ def get_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, **kw "workerId": worker_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2146,7 +2146,7 @@ def list_dedicated_vantage_points(self, apm_domain_id, **kwargs): "status", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dedicated_vantage_points got unknown kwargs: {extra_kwargs!r}") @@ -2182,14 +2182,14 @@ def list_dedicated_vantage_points(self, apm_domain_id, **kwargs): "name": kwargs.get("name", missing), "status": kwargs.get("status", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2328,7 +2328,7 @@ def list_monitors(self, apm_domain_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitors got unknown kwargs: {extra_kwargs!r}") @@ -2368,14 +2368,14 @@ def list_monitors(self, apm_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2491,7 +2491,7 @@ def list_on_premise_vantage_points(self, apm_domain_id, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_on_premise_vantage_points got unknown kwargs: {extra_kwargs!r}") @@ -2519,14 +2519,14 @@ def list_on_premise_vantage_points(self, apm_domain_id, **kwargs): "displayName": kwargs.get("display_name", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2640,7 +2640,7 @@ def list_public_vantage_points(self, apm_domain_id, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_public_vantage_points got unknown kwargs: {extra_kwargs!r}") @@ -2668,14 +2668,14 @@ def list_public_vantage_points(self, apm_domain_id, **kwargs): "displayName": kwargs.get("display_name", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2791,7 +2791,7 @@ def list_scripts(self, apm_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scripts got unknown kwargs: {extra_kwargs!r}") @@ -2819,14 +2819,14 @@ def list_scripts(self, apm_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2955,7 +2955,7 @@ def list_workers(self, apm_domain_id, on_premise_vantage_point_id, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_workers got unknown kwargs: {extra_kwargs!r}") @@ -2964,9 +2964,9 @@ def list_workers(self, apm_domain_id, on_premise_vantage_point_id, **kwargs): "onPremiseVantagePointId": on_premise_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3002,14 +3002,14 @@ def list_workers(self, apm_domain_id, on_premise_vantage_point_id, **kwargs): "displayName": kwargs.get("display_name", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3104,7 +3104,7 @@ def update_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dedicated_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -3113,16 +3113,16 @@ def update_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ "dedicatedVantagePointId": dedicated_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3130,7 +3130,7 @@ def update_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3227,7 +3227,7 @@ def update_monitor(self, apm_domain_id, monitor_id, update_monitor_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_monitor got unknown kwargs: {extra_kwargs!r}") @@ -3236,16 +3236,16 @@ def update_monitor(self, apm_domain_id, monitor_id, update_monitor_details, **kw "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3253,7 +3253,7 @@ def update_monitor(self, apm_domain_id, monitor_id, update_monitor_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3350,7 +3350,7 @@ def update_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_on_premise_vantage_point got unknown kwargs: {extra_kwargs!r}") @@ -3359,16 +3359,16 @@ def update_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin "onPremiseVantagePointId": on_premise_vantage_point_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3376,7 +3376,7 @@ def update_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3473,7 +3473,7 @@ def update_script(self, apm_domain_id, script_id, update_script_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_script got unknown kwargs: {extra_kwargs!r}") @@ -3482,16 +3482,16 @@ def update_script(self, apm_domain_id, script_id, update_script_details, **kwarg "scriptId": script_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3499,7 +3499,7 @@ def update_script(self, apm_domain_id, script_id, update_script_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3599,7 +3599,7 @@ def update_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_worker got unknown kwargs: {extra_kwargs!r}") @@ -3609,16 +3609,16 @@ def update_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, u "workerId": worker_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3626,7 +3626,7 @@ def update_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_traces/attributes_client.py b/src/oci/apm_traces/attributes_client.py index a1f88378a..d1f1f74b5 100644 --- a/src/oci/apm_traces/attributes_client.py +++ b/src/oci/apm_traces/attributes_client.py @@ -170,7 +170,7 @@ def bulk_activate_attribute(self, apm_domain_id, bulk_activate_attribute_details "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_activate_attribute got unknown kwargs: {extra_kwargs!r}") @@ -178,14 +178,14 @@ def bulk_activate_attribute(self, apm_domain_id, bulk_activate_attribute_details query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -274,7 +274,7 @@ def bulk_de_activate_attribute(self, apm_domain_id, bulk_de_activate_attribute_d "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_de_activate_attribute got unknown kwargs: {extra_kwargs!r}") @@ -282,14 +282,14 @@ def bulk_de_activate_attribute(self, apm_domain_id, bulk_de_activate_attribute_d query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -372,7 +372,7 @@ def bulk_pin_attribute(self, apm_domain_id, bulk_pin_attribute_details, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_pin_attribute got unknown kwargs: {extra_kwargs!r}") @@ -380,14 +380,14 @@ def bulk_pin_attribute(self, apm_domain_id, bulk_pin_attribute_details, **kwargs query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -469,7 +469,7 @@ def bulk_unpin_attribute(self, apm_domain_id, bulk_unpin_attribute_details, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_unpin_attribute got unknown kwargs: {extra_kwargs!r}") @@ -477,14 +477,14 @@ def bulk_unpin_attribute(self, apm_domain_id, bulk_unpin_attribute_details, **kw query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -566,7 +566,7 @@ def bulk_update_attribute(self, apm_domain_id, bulk_update_attribute_details, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_update_attribute got unknown kwargs: {extra_kwargs!r}") @@ -574,14 +574,14 @@ def bulk_update_attribute(self, apm_domain_id, bulk_update_attribute_details, ** query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -665,7 +665,7 @@ def bulk_update_attribute_notes(self, apm_domain_id, bulk_update_attribute_notes "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_update_attribute_notes got unknown kwargs: {extra_kwargs!r}") @@ -673,14 +673,14 @@ def bulk_update_attribute_notes(self, apm_domain_id, bulk_update_attribute_notes query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def get_status_auto_activate(self, apm_domain_id, data_key_type, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_status_auto_activate got unknown kwargs: {extra_kwargs!r}") @@ -779,14 +779,14 @@ def get_status_auto_activate(self, apm_domain_id, data_key_type, **kwargs): "apmDomainId": apm_domain_id, "dataKeyType": data_key_type } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -871,7 +871,7 @@ def put_toggle_auto_activate(self, apm_domain_id, is_auto_activate_on, data_key_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_toggle_auto_activate got unknown kwargs: {extra_kwargs!r}") @@ -887,14 +887,14 @@ def put_toggle_auto_activate(self, apm_domain_id, is_auto_activate_on, data_key_ "isAutoActivateOn": is_auto_activate_on, "dataKeyType": data_key_type } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_traces/query_client.py b/src/oci/apm_traces/query_client.py index 42d55af5c..0fe450064 100644 --- a/src/oci/apm_traces/query_client.py +++ b/src/oci/apm_traces/query_client.py @@ -171,7 +171,7 @@ def list_quick_picks(self, apm_domain_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_quick_picks got unknown kwargs: {extra_kwargs!r}") @@ -181,14 +181,14 @@ def list_quick_picks(self, apm_domain_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -289,7 +289,7 @@ def query(self, apm_domain_id, time_span_started_greater_than_or_equal_to, time_ "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"query got unknown kwargs: {extra_kwargs!r}") @@ -301,14 +301,14 @@ def query(self, apm_domain_id, time_span_started_greater_than_or_equal_to, time_ "timeSpanStartedGreaterThanOrEqualTo": time_span_started_greater_than_or_equal_to, "timeSpanStartedLessThan": time_span_started_less_than } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_traces/scheduled_query_client.py b/src/oci/apm_traces/scheduled_query_client.py index 5ad46a7e9..4bf1416c5 100644 --- a/src/oci/apm_traces/scheduled_query_client.py +++ b/src/oci/apm_traces/scheduled_query_client.py @@ -177,7 +177,7 @@ def create_scheduled_query(self, apm_domain_id, create_scheduled_query_details, "opc_retry_token", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduled_query got unknown kwargs: {extra_kwargs!r}") @@ -185,7 +185,7 @@ def create_scheduled_query(self, apm_domain_id, create_scheduled_query_details, query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -194,7 +194,7 @@ def create_scheduled_query(self, apm_domain_id, create_scheduled_query_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -293,7 +293,7 @@ def delete_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduled_query got unknown kwargs: {extra_kwargs!r}") @@ -302,16 +302,16 @@ def delete_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): "scheduledQueryId": scheduled_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -320,7 +320,7 @@ def delete_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def get_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduled_query got unknown kwargs: {extra_kwargs!r}") @@ -418,16 +418,16 @@ def get_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): "scheduledQueryId": scheduled_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -435,7 +435,7 @@ def get_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -549,7 +549,7 @@ def list_scheduled_queries(self, apm_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_queries got unknown kwargs: {extra_kwargs!r}") @@ -576,7 +576,7 @@ def list_scheduled_queries(self, apm_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -584,7 +584,7 @@ def list_scheduled_queries(self, apm_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -689,7 +689,7 @@ def update_scheduled_query(self, apm_domain_id, scheduled_query_id, update_sched "opc_retry_token", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduled_query got unknown kwargs: {extra_kwargs!r}") @@ -698,16 +698,16 @@ def update_scheduled_query(self, apm_domain_id, scheduled_query_id, update_sched "scheduledQueryId": scheduled_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "apmDomainId": apm_domain_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -717,7 +717,7 @@ def update_scheduled_query(self, apm_domain_id, scheduled_query_id, update_sched "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/apm_traces/trace_client.py b/src/oci/apm_traces/trace_client.py index 546698824..2b87f5c8d 100644 --- a/src/oci/apm_traces/trace_client.py +++ b/src/oci/apm_traces/trace_client.py @@ -180,7 +180,7 @@ def get_aggregated_snapshot(self, apm_domain_id, trace_key, **kwargs): "span_key", "span_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_aggregated_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def get_aggregated_snapshot(self, apm_domain_id, trace_key, **kwargs): "traceKey": trace_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,14 +202,14 @@ def get_aggregated_snapshot(self, apm_domain_id, trace_key, **kwargs): "spanKey": kwargs.get("span_key", missing), "spanName": kwargs.get("span_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -305,7 +305,7 @@ def get_log(self, apm_domain_id, log_key, time_log_started_greater_than_or_equal "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def get_log(self, apm_domain_id, log_key, time_log_started_greater_than_or_equal "logKey": log_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def get_log(self, apm_domain_id, log_key, time_log_started_greater_than_or_equal "timeLogStartedGreaterThanOrEqualTo": time_log_started_greater_than_or_equal_to, "timeLogEndedLessThan": time_log_ended_less_than } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -333,7 +333,7 @@ def get_log(self, apm_domain_id, log_key, time_log_started_greater_than_or_equal "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -433,7 +433,7 @@ def get_span(self, apm_domain_id, span_key, trace_key, **kwargs): "time_span_started_less_than", "span_namespace" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_span got unknown kwargs: {extra_kwargs!r}") @@ -443,9 +443,9 @@ def get_span(self, apm_domain_id, span_key, trace_key, **kwargs): "traceKey": trace_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -462,14 +462,14 @@ def get_span(self, apm_domain_id, span_key, trace_key, **kwargs): "timeSpanStartedLessThan": kwargs.get("time_span_started_less_than", missing), "spanNamespace": kwargs.get("span_namespace", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -565,7 +565,7 @@ def get_trace(self, apm_domain_id, trace_key, **kwargs): "time_trace_started_less_than", "trace_namespace" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_trace got unknown kwargs: {extra_kwargs!r}") @@ -574,9 +574,9 @@ def get_trace(self, apm_domain_id, trace_key, **kwargs): "traceKey": trace_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -593,14 +593,14 @@ def get_trace(self, apm_domain_id, trace_key, **kwargs): "timeTraceStartedLessThan": kwargs.get("time_trace_started_less_than", missing), "traceNamespace": kwargs.get("trace_namespace", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -694,7 +694,7 @@ def get_trace_snapshot(self, apm_domain_id, trace_key, **kwargs): "thread_id", "snapshot_time" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_trace_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -703,9 +703,9 @@ def get_trace_snapshot(self, apm_domain_id, trace_key, **kwargs): "traceKey": trace_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -715,14 +715,14 @@ def get_trace_snapshot(self, apm_domain_id, trace_key, **kwargs): "threadId": kwargs.get("thread_id", missing), "snapshotTime": kwargs.get("snapshot_time", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/appmgmt_control/appmgmt_control_client.py b/src/oci/appmgmt_control/appmgmt_control_client.py index aa54a0693..e60c74f88 100644 --- a/src/oci/appmgmt_control/appmgmt_control_client.py +++ b/src/oci/appmgmt_control/appmgmt_control_client.py @@ -170,7 +170,7 @@ def activate_monitoring_plugin(self, monitored_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_monitoring_plugin got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def activate_monitoring_plugin(self, monitored_instance_id, **kwargs): "monitoredInstanceId": monitored_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def activate_monitoring_plugin(self, monitored_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -265,7 +265,7 @@ def get_monitored_instance(self, monitored_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitored_instance got unknown kwargs: {extra_kwargs!r}") @@ -274,9 +274,9 @@ def get_monitored_instance(self, monitored_instance_id, **kwargs): "monitoredInstanceId": monitored_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -285,7 +285,7 @@ def get_monitored_instance(self, monitored_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -363,7 +363,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -372,9 +372,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -383,7 +383,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -485,7 +485,7 @@ def list_monitored_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitored_instances got unknown kwargs: {extra_kwargs!r}") @@ -512,14 +512,14 @@ def list_monitored_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -605,7 +605,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -614,9 +614,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -624,14 +624,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -719,7 +719,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -728,9 +728,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -738,14 +738,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -837,7 +837,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -848,14 +848,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -941,7 +941,7 @@ def publish_top_processes_metrics(self, monitored_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_top_processes_metrics got unknown kwargs: {extra_kwargs!r}") @@ -950,9 +950,9 @@ def publish_top_processes_metrics(self, monitored_instance_id, **kwargs): "monitoredInstanceId": monitored_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -962,7 +962,7 @@ def publish_top_processes_metrics(self, monitored_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/artifacts/artifacts_client.py b/src/oci/artifacts/artifacts_client.py index fe7fc7eb4..3e5cbdf50 100644 --- a/src/oci/artifacts/artifacts_client.py +++ b/src/oci/artifacts/artifacts_client.py @@ -192,7 +192,7 @@ def change_container_repository_compartment(self, repository_id, change_containe "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_container_repository_compartment got unknown kwargs: {extra_kwargs!r}") @@ -201,9 +201,9 @@ def change_container_repository_compartment(self, repository_id, change_containe "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -214,7 +214,7 @@ def change_container_repository_compartment(self, repository_id, change_containe "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -319,7 +319,7 @@ def change_repository_compartment(self, repository_id, change_repository_compart "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_repository_compartment got unknown kwargs: {extra_kwargs!r}") @@ -328,9 +328,9 @@ def change_repository_compartment(self, repository_id, change_repository_compart "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -341,7 +341,7 @@ def change_repository_compartment(self, repository_id, change_repository_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -435,7 +435,7 @@ def create_container_image_signature(self, create_container_image_signature_deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_container_image_signature got unknown kwargs: {extra_kwargs!r}") @@ -447,7 +447,7 @@ def create_container_image_signature(self, create_container_image_signature_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -535,7 +535,7 @@ def create_container_repository(self, create_container_repository_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_container_repository got unknown kwargs: {extra_kwargs!r}") @@ -546,7 +546,7 @@ def create_container_repository(self, create_container_repository_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def create_repository(self, create_repository_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_repository got unknown kwargs: {extra_kwargs!r}") @@ -645,7 +645,7 @@ def create_repository(self, create_repository_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -733,7 +733,7 @@ def delete_container_image(self, image_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_image got unknown kwargs: {extra_kwargs!r}") @@ -742,9 +742,9 @@ def delete_container_image(self, image_id, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -754,7 +754,7 @@ def delete_container_image(self, image_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -841,7 +841,7 @@ def delete_container_image_signature(self, image_signature_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_image_signature got unknown kwargs: {extra_kwargs!r}") @@ -850,9 +850,9 @@ def delete_container_image_signature(self, image_signature_id, **kwargs): "imageSignatureId": image_signature_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -862,7 +862,7 @@ def delete_container_image_signature(self, image_signature_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -949,7 +949,7 @@ def delete_container_repository(self, repository_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_repository got unknown kwargs: {extra_kwargs!r}") @@ -958,9 +958,9 @@ def delete_container_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -970,7 +970,7 @@ def delete_container_repository(self, repository_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1059,7 +1059,7 @@ def delete_generic_artifact(self, artifact_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_generic_artifact got unknown kwargs: {extra_kwargs!r}") @@ -1068,9 +1068,9 @@ def delete_generic_artifact(self, artifact_id, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1080,7 +1080,7 @@ def delete_generic_artifact(self, artifact_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1177,7 +1177,7 @@ def delete_generic_artifact_by_path(self, repository_id, artifact_path, version, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_generic_artifact_by_path got unknown kwargs: {extra_kwargs!r}") @@ -1188,9 +1188,9 @@ def delete_generic_artifact_by_path(self, repository_id, artifact_path, version, "version": version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1200,7 +1200,7 @@ def delete_generic_artifact_by_path(self, repository_id, artifact_path, version, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1287,7 +1287,7 @@ def delete_repository(self, repository_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_repository got unknown kwargs: {extra_kwargs!r}") @@ -1296,9 +1296,9 @@ def delete_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1308,7 +1308,7 @@ def delete_repository(self, repository_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1387,7 +1387,7 @@ def get_container_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1395,14 +1395,14 @@ def get_container_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1485,7 +1485,7 @@ def get_container_image(self, image_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_image got unknown kwargs: {extra_kwargs!r}") @@ -1494,9 +1494,9 @@ def get_container_image(self, image_id, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1505,7 +1505,7 @@ def get_container_image(self, image_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1588,7 +1588,7 @@ def get_container_image_signature(self, image_signature_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_image_signature got unknown kwargs: {extra_kwargs!r}") @@ -1597,9 +1597,9 @@ def get_container_image_signature(self, image_signature_id, **kwargs): "imageSignatureId": image_signature_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1608,7 +1608,7 @@ def get_container_image_signature(self, image_signature_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1691,7 +1691,7 @@ def get_container_repository(self, repository_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_repository got unknown kwargs: {extra_kwargs!r}") @@ -1700,9 +1700,9 @@ def get_container_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1711,7 +1711,7 @@ def get_container_repository(self, repository_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1796,7 +1796,7 @@ def get_generic_artifact(self, artifact_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_generic_artifact got unknown kwargs: {extra_kwargs!r}") @@ -1805,9 +1805,9 @@ def get_generic_artifact(self, artifact_id, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1816,7 +1816,7 @@ def get_generic_artifact(self, artifact_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1909,7 +1909,7 @@ def get_generic_artifact_by_path(self, repository_id, artifact_path, version, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_generic_artifact_by_path got unknown kwargs: {extra_kwargs!r}") @@ -1920,9 +1920,9 @@ def get_generic_artifact_by_path(self, repository_id, artifact_path, version, ** "version": version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1931,7 +1931,7 @@ def get_generic_artifact_by_path(self, repository_id, artifact_path, version, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2014,7 +2014,7 @@ def get_repository(self, repository_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repository got unknown kwargs: {extra_kwargs!r}") @@ -2023,9 +2023,9 @@ def get_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2034,7 +2034,7 @@ def get_repository(self, repository_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2207,7 +2207,7 @@ def list_container_image_signatures(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_image_signatures got unknown kwargs: {extra_kwargs!r}") @@ -2249,14 +2249,14 @@ def list_container_image_signatures(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2421,7 +2421,7 @@ def list_container_images(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_images got unknown kwargs: {extra_kwargs!r}") @@ -2456,14 +2456,14 @@ def list_container_images(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2606,7 +2606,7 @@ def list_container_repositories(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_repositories got unknown kwargs: {extra_kwargs!r}") @@ -2637,14 +2637,14 @@ def list_container_repositories(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2790,7 +2790,7 @@ def list_generic_artifacts(self, compartment_id, repository_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_generic_artifacts got unknown kwargs: {extra_kwargs!r}") @@ -2823,14 +2823,14 @@ def list_generic_artifacts(self, compartment_id, repository_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2965,7 +2965,7 @@ def list_repositories(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_repositories got unknown kwargs: {extra_kwargs!r}") @@ -2995,14 +2995,14 @@ def list_repositories(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3081,7 +3081,7 @@ def lookup_container_image_by_uri(self, lookup_container_image_by_uri_details, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"lookup_container_image_by_uri got unknown kwargs: {extra_kwargs!r}") @@ -3091,7 +3091,7 @@ def lookup_container_image_by_uri(self, lookup_container_image_by_uri_details, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3191,7 +3191,7 @@ def remove_container_version(self, image_id, remove_container_version_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_container_version got unknown kwargs: {extra_kwargs!r}") @@ -3200,9 +3200,9 @@ def remove_container_version(self, image_id, remove_container_version_details, * "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3213,7 +3213,7 @@ def remove_container_version(self, image_id, remove_container_version_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3316,7 +3316,7 @@ def restore_container_image(self, image_id, restore_container_image_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_container_image got unknown kwargs: {extra_kwargs!r}") @@ -3325,9 +3325,9 @@ def restore_container_image(self, image_id, restore_container_image_details, **k "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3338,7 +3338,7 @@ def restore_container_image(self, image_id, restore_container_image_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3431,7 +3431,7 @@ def update_container_configuration(self, compartment_id, update_container_config "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3439,7 +3439,7 @@ def update_container_configuration(self, compartment_id, update_container_config query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3447,7 +3447,7 @@ def update_container_configuration(self, compartment_id, update_container_config "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3541,7 +3541,7 @@ def update_container_image(self, image_id, update_container_image_details, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_image got unknown kwargs: {extra_kwargs!r}") @@ -3550,9 +3550,9 @@ def update_container_image(self, image_id, update_container_image_details, **kwa "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3562,7 +3562,7 @@ def update_container_image(self, image_id, update_container_image_details, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3656,7 +3656,7 @@ def update_container_image_signature(self, image_signature_id, update_container_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_image_signature got unknown kwargs: {extra_kwargs!r}") @@ -3665,9 +3665,9 @@ def update_container_image_signature(self, image_signature_id, update_container_ "imageSignatureId": image_signature_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3677,7 +3677,7 @@ def update_container_image_signature(self, image_signature_id, update_container_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3771,7 +3771,7 @@ def update_container_repository(self, repository_id, update_container_repository "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_repository got unknown kwargs: {extra_kwargs!r}") @@ -3780,9 +3780,9 @@ def update_container_repository(self, repository_id, update_container_repository "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3792,7 +3792,7 @@ def update_container_repository(self, repository_id, update_container_repository "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3890,7 +3890,7 @@ def update_generic_artifact(self, artifact_id, update_generic_artifact_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_generic_artifact got unknown kwargs: {extra_kwargs!r}") @@ -3899,9 +3899,9 @@ def update_generic_artifact(self, artifact_id, update_generic_artifact_details, "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3911,7 +3911,7 @@ def update_generic_artifact(self, artifact_id, update_generic_artifact_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4015,7 +4015,7 @@ def update_generic_artifact_by_path(self, repository_id, artifact_path, version, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_generic_artifact_by_path got unknown kwargs: {extra_kwargs!r}") @@ -4026,9 +4026,9 @@ def update_generic_artifact_by_path(self, repository_id, artifact_path, version, "version": version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4038,7 +4038,7 @@ def update_generic_artifact_by_path(self, repository_id, artifact_path, version, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4132,7 +4132,7 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_repository got unknown kwargs: {extra_kwargs!r}") @@ -4141,9 +4141,9 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4153,7 +4153,7 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/audit/audit_client.py b/src/oci/audit/audit_client.py index 5f1950621..e00bf6312 100644 --- a/src/oci/audit/audit_client.py +++ b/src/oci/audit/audit_client.py @@ -155,7 +155,7 @@ def get_configuration(self, compartment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/audit/20190901/Configuration/GetConfiguration" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -163,7 +163,7 @@ def get_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -278,7 +278,7 @@ def list_events(self, compartment_id, start_time, end_time, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_events got unknown kwargs: {extra_kwargs!r}") @@ -289,14 +289,14 @@ def list_events(self, compartment_id, start_time, end_time, **kwargs): "endTime": end_time, "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -367,7 +367,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k api_reference_link = "https://docs.oracle.com/iaas/api/#/en/audit/20190901/Configuration/UpdateConfiguration" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -375,7 +375,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", diff --git a/src/oci/autoscaling/auto_scaling_client.py b/src/oci/autoscaling/auto_scaling_client.py index cea37ee32..3d4cf9430 100644 --- a/src/oci/autoscaling/auto_scaling_client.py +++ b/src/oci/autoscaling/auto_scaling_client.py @@ -187,7 +187,7 @@ def change_auto_scaling_configuration_compartment(self, auto_scaling_configurati "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_auto_scaling_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -196,9 +196,9 @@ def change_auto_scaling_configuration_compartment(self, auto_scaling_configurati "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -209,7 +209,7 @@ def change_auto_scaling_configuration_compartment(self, auto_scaling_configurati "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -295,7 +295,7 @@ def create_auto_scaling_configuration(self, create_auto_scaling_configuration_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -306,7 +306,7 @@ def create_auto_scaling_configuration(self, create_auto_scaling_configuration_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -405,7 +405,7 @@ def create_auto_scaling_policy(self, auto_scaling_configuration_id, create_auto_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_auto_scaling_policy got unknown kwargs: {extra_kwargs!r}") @@ -414,9 +414,9 @@ def create_auto_scaling_policy(self, auto_scaling_configuration_id, create_auto_ "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -426,7 +426,7 @@ def create_auto_scaling_policy(self, auto_scaling_configuration_id, create_auto_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -514,7 +514,7 @@ def delete_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -523,9 +523,9 @@ def delete_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwa "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -535,7 +535,7 @@ def delete_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -621,7 +621,7 @@ def delete_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_auto_scaling_policy got unknown kwargs: {extra_kwargs!r}") @@ -631,9 +631,9 @@ def delete_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling "autoScalingPolicyId": auto_scaling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -643,7 +643,7 @@ def delete_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -720,7 +720,7 @@ def get_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -729,9 +729,9 @@ def get_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwargs "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -740,7 +740,7 @@ def get_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -822,7 +822,7 @@ def get_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling_po "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_auto_scaling_policy got unknown kwargs: {extra_kwargs!r}") @@ -832,9 +832,9 @@ def get_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling_po "autoScalingPolicyId": auto_scaling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -843,7 +843,7 @@ def get_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling_po "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -962,7 +962,7 @@ def list_auto_scaling_configurations(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_auto_scaling_configurations got unknown kwargs: {extra_kwargs!r}") @@ -989,14 +989,14 @@ def list_auto_scaling_configurations(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1113,7 +1113,7 @@ def list_auto_scaling_policies(self, auto_scaling_configuration_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_auto_scaling_policies got unknown kwargs: {extra_kwargs!r}") @@ -1122,9 +1122,9 @@ def list_auto_scaling_policies(self, auto_scaling_configuration_id, **kwargs): "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1149,14 +1149,14 @@ def list_auto_scaling_policies(self, auto_scaling_configuration_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1255,7 +1255,7 @@ def update_auto_scaling_configuration(self, auto_scaling_configuration_id, updat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1264,9 +1264,9 @@ def update_auto_scaling_configuration(self, auto_scaling_configuration_id, updat "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1277,7 +1277,7 @@ def update_auto_scaling_configuration(self, auto_scaling_configuration_id, updat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1379,7 +1379,7 @@ def update_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_auto_scaling_policy got unknown kwargs: {extra_kwargs!r}") @@ -1389,9 +1389,9 @@ def update_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling "autoScalingPolicyId": auto_scaling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1402,7 +1402,7 @@ def update_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/bastion/bastion_client.py b/src/oci/bastion/bastion_client.py index 6ffaf2166..fd1a3f95c 100644 --- a/src/oci/bastion/bastion_client.py +++ b/src/oci/bastion/bastion_client.py @@ -171,7 +171,7 @@ def change_bastion_compartment(self, bastion_id, change_bastion_compartment_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_bastion_compartment got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def change_bastion_compartment(self, bastion_id, change_bastion_compartment_deta "bastionId": bastion_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def change_bastion_compartment(self, bastion_id, change_bastion_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -276,7 +276,7 @@ def create_bastion(self, create_bastion_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_bastion got unknown kwargs: {extra_kwargs!r}") @@ -287,7 +287,7 @@ def create_bastion(self, create_bastion_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -372,7 +372,7 @@ def create_session(self, create_session_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_session got unknown kwargs: {extra_kwargs!r}") @@ -383,7 +383,7 @@ def create_session(self, create_session_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -468,7 +468,7 @@ def delete_bastion(self, bastion_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_bastion got unknown kwargs: {extra_kwargs!r}") @@ -477,9 +477,9 @@ def delete_bastion(self, bastion_id, **kwargs): "bastionId": bastion_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -489,7 +489,7 @@ def delete_bastion(self, bastion_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -571,7 +571,7 @@ def delete_session(self, session_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_session got unknown kwargs: {extra_kwargs!r}") @@ -580,9 +580,9 @@ def delete_session(self, session_id, **kwargs): "sessionId": session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -592,7 +592,7 @@ def delete_session(self, session_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -666,7 +666,7 @@ def get_bastion(self, bastion_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_bastion got unknown kwargs: {extra_kwargs!r}") @@ -675,9 +675,9 @@ def get_bastion(self, bastion_id, **kwargs): "bastionId": bastion_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -686,7 +686,7 @@ def get_bastion(self, bastion_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def get_session(self, session_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_session got unknown kwargs: {extra_kwargs!r}") @@ -773,9 +773,9 @@ def get_session(self, session_id, **kwargs): "sessionId": session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -784,7 +784,7 @@ def get_session(self, session_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -862,7 +862,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -871,9 +871,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -882,7 +882,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -992,7 +992,7 @@ def list_bastions(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bastions got unknown kwargs: {extra_kwargs!r}") @@ -1028,14 +1028,14 @@ def list_bastions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1145,7 +1145,7 @@ def list_sessions(self, bastion_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sessions got unknown kwargs: {extra_kwargs!r}") @@ -1181,14 +1181,14 @@ def list_sessions(self, bastion_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1272,7 +1272,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1281,9 +1281,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1291,14 +1291,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1384,7 +1384,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1393,9 +1393,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1403,14 +1403,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1496,7 +1496,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1506,14 +1506,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1600,7 +1600,7 @@ def update_bastion(self, bastion_id, update_bastion_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_bastion got unknown kwargs: {extra_kwargs!r}") @@ -1609,9 +1609,9 @@ def update_bastion(self, bastion_id, update_bastion_details, **kwargs): "bastionId": bastion_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1621,7 +1621,7 @@ def update_bastion(self, bastion_id, update_bastion_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1710,7 +1710,7 @@ def update_session(self, session_id, update_session_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_session got unknown kwargs: {extra_kwargs!r}") @@ -1719,9 +1719,9 @@ def update_session(self, session_id, update_session_details, **kwargs): "sessionId": session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1731,7 +1731,7 @@ def update_session(self, session_id, update_session_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/bds/bds_client.py b/src/oci/bds/bds_client.py index 273248cad..220d8529b 100644 --- a/src/oci/bds/bds_client.py +++ b/src/oci/bds/bds_client.py @@ -182,7 +182,7 @@ def activate_bds_metastore_configuration(self, bds_instance_id, metastore_config "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def activate_bds_metastore_configuration(self, bds_instance_id, metastore_config "metastoreConfigId": metastore_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def activate_bds_metastore_configuration(self, bds_instance_id, metastore_config "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -304,7 +304,7 @@ def activate_iam_user_sync_configuration(self, bds_instance_id, identity_configu "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_iam_user_sync_configuration got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def activate_iam_user_sync_configuration(self, bds_instance_id, identity_configu "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -327,7 +327,7 @@ def activate_iam_user_sync_configuration(self, bds_instance_id, identity_configu "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -426,7 +426,7 @@ def activate_upst_configuration(self, bds_instance_id, identity_configuration_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_upst_configuration got unknown kwargs: {extra_kwargs!r}") @@ -436,9 +436,9 @@ def activate_upst_configuration(self, bds_instance_id, identity_configuration_id "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -449,7 +449,7 @@ def activate_upst_configuration(self, bds_instance_id, identity_configuration_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -545,7 +545,7 @@ def add_auto_scaling_configuration(self, bds_instance_id, add_auto_scaling_confi "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -554,9 +554,9 @@ def add_auto_scaling_configuration(self, bds_instance_id, add_auto_scaling_confi "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -567,7 +567,7 @@ def add_auto_scaling_configuration(self, bds_instance_id, add_auto_scaling_confi "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -663,7 +663,7 @@ def add_block_storage(self, bds_instance_id, add_block_storage_details, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_block_storage got unknown kwargs: {extra_kwargs!r}") @@ -672,9 +672,9 @@ def add_block_storage(self, bds_instance_id, add_block_storage_details, **kwargs "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -685,7 +685,7 @@ def add_block_storage(self, bds_instance_id, add_block_storage_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -781,7 +781,7 @@ def add_cloud_sql(self, bds_instance_id, add_cloud_sql_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_cloud_sql got unknown kwargs: {extra_kwargs!r}") @@ -790,9 +790,9 @@ def add_cloud_sql(self, bds_instance_id, add_cloud_sql_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -803,7 +803,7 @@ def add_cloud_sql(self, bds_instance_id, add_cloud_sql_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -899,7 +899,7 @@ def add_kafka(self, bds_instance_id, add_kafka_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_kafka got unknown kwargs: {extra_kwargs!r}") @@ -908,9 +908,9 @@ def add_kafka(self, bds_instance_id, add_kafka_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -921,7 +921,7 @@ def add_kafka(self, bds_instance_id, add_kafka_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1017,7 +1017,7 @@ def add_master_nodes(self, bds_instance_id, add_master_nodes_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_master_nodes got unknown kwargs: {extra_kwargs!r}") @@ -1026,9 +1026,9 @@ def add_master_nodes(self, bds_instance_id, add_master_nodes_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1039,7 +1039,7 @@ def add_master_nodes(self, bds_instance_id, add_master_nodes_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1135,7 +1135,7 @@ def add_utility_nodes(self, bds_instance_id, add_utility_nodes_details, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_utility_nodes got unknown kwargs: {extra_kwargs!r}") @@ -1144,9 +1144,9 @@ def add_utility_nodes(self, bds_instance_id, add_utility_nodes_details, **kwargs "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1157,7 +1157,7 @@ def add_utility_nodes(self, bds_instance_id, add_utility_nodes_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1253,7 +1253,7 @@ def add_worker_nodes(self, bds_instance_id, add_worker_nodes_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_worker_nodes got unknown kwargs: {extra_kwargs!r}") @@ -1262,9 +1262,9 @@ def add_worker_nodes(self, bds_instance_id, add_worker_nodes_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1275,7 +1275,7 @@ def add_worker_nodes(self, bds_instance_id, add_worker_nodes_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1371,7 +1371,7 @@ def backup_node(self, bds_instance_id, backup_node_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"backup_node got unknown kwargs: {extra_kwargs!r}") @@ -1380,9 +1380,9 @@ def backup_node(self, bds_instance_id, backup_node_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1393,7 +1393,7 @@ def backup_node(self, bds_instance_id, backup_node_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1489,7 +1489,7 @@ def certificate_service_info(self, bds_instance_id, certificate_service_info_det "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"certificate_service_info got unknown kwargs: {extra_kwargs!r}") @@ -1498,9 +1498,9 @@ def certificate_service_info(self, bds_instance_id, certificate_service_info_det "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1511,7 +1511,7 @@ def certificate_service_info(self, bds_instance_id, certificate_service_info_det "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1609,7 +1609,7 @@ def change_bds_instance_compartment(self, bds_instance_id, change_bds_instance_c "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_bds_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1618,9 +1618,9 @@ def change_bds_instance_compartment(self, bds_instance_id, change_bds_instance_c "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1631,7 +1631,7 @@ def change_bds_instance_compartment(self, bds_instance_id, change_bds_instance_c "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1727,7 +1727,7 @@ def change_shape(self, bds_instance_id, change_shape_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_shape got unknown kwargs: {extra_kwargs!r}") @@ -1736,9 +1736,9 @@ def change_shape(self, bds_instance_id, change_shape_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1749,7 +1749,7 @@ def change_shape(self, bds_instance_id, change_shape_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1837,7 +1837,7 @@ def create_bds_api_key(self, bds_instance_id, create_bds_api_key_details, **kwar "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_bds_api_key got unknown kwargs: {extra_kwargs!r}") @@ -1846,9 +1846,9 @@ def create_bds_api_key(self, bds_instance_id, create_bds_api_key_details, **kwar "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1858,7 +1858,7 @@ def create_bds_api_key(self, bds_instance_id, create_bds_api_key_details, **kwar "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1943,7 +1943,7 @@ def create_bds_capacity_report(self, create_bds_capacity_report_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_bds_capacity_report got unknown kwargs: {extra_kwargs!r}") @@ -1954,7 +1954,7 @@ def create_bds_capacity_report(self, create_bds_capacity_report_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2039,7 +2039,7 @@ def create_bds_instance(self, create_bds_instance_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_bds_instance got unknown kwargs: {extra_kwargs!r}") @@ -2050,7 +2050,7 @@ def create_bds_instance(self, create_bds_instance_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2136,7 +2136,7 @@ def create_bds_metastore_configuration(self, bds_instance_id, create_bds_metasto "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2145,9 +2145,9 @@ def create_bds_metastore_configuration(self, bds_instance_id, create_bds_metasto "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2157,7 +2157,7 @@ def create_bds_metastore_configuration(self, bds_instance_id, create_bds_metasto "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2245,7 +2245,7 @@ def create_identity_configuration(self, bds_instance_id, create_identity_configu "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_identity_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2254,9 +2254,9 @@ def create_identity_configuration(self, bds_instance_id, create_identity_configu "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2266,7 +2266,7 @@ def create_identity_configuration(self, bds_instance_id, create_identity_configu "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2354,7 +2354,7 @@ def create_node_backup_configuration(self, bds_instance_id, create_node_backup_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_node_backup_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2363,9 +2363,9 @@ def create_node_backup_configuration(self, bds_instance_id, create_node_backup_c "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2375,7 +2375,7 @@ def create_node_backup_configuration(self, bds_instance_id, create_node_backup_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2463,7 +2463,7 @@ def create_node_replace_configuration(self, bds_instance_id, create_node_replace "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_node_replace_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2472,9 +2472,9 @@ def create_node_replace_configuration(self, bds_instance_id, create_node_replace "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2484,7 +2484,7 @@ def create_node_replace_configuration(self, bds_instance_id, create_node_replace "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2572,7 +2572,7 @@ def create_resource_principal_configuration(self, bds_instance_id, create_resour "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_resource_principal_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2581,9 +2581,9 @@ def create_resource_principal_configuration(self, bds_instance_id, create_resour "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2593,7 +2593,7 @@ def create_resource_principal_configuration(self, bds_instance_id, create_resour "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2692,7 +2692,7 @@ def deactivate_iam_user_sync_configuration(self, bds_instance_id, identity_confi "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_iam_user_sync_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2702,9 +2702,9 @@ def deactivate_iam_user_sync_configuration(self, bds_instance_id, identity_confi "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2715,7 +2715,7 @@ def deactivate_iam_user_sync_configuration(self, bds_instance_id, identity_confi "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2814,7 +2814,7 @@ def deactivate_upst_configuration(self, bds_instance_id, identity_configuration_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_upst_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2824,9 +2824,9 @@ def deactivate_upst_configuration(self, bds_instance_id, identity_configuration_ "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2837,7 +2837,7 @@ def deactivate_upst_configuration(self, bds_instance_id, identity_configuration_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2925,7 +2925,7 @@ def delete_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_bds_api_key got unknown kwargs: {extra_kwargs!r}") @@ -2935,9 +2935,9 @@ def delete_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): "apiKeyId": api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2947,7 +2947,7 @@ def delete_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3029,7 +3029,7 @@ def delete_bds_instance(self, bds_instance_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_bds_instance got unknown kwargs: {extra_kwargs!r}") @@ -3038,9 +3038,9 @@ def delete_bds_instance(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3050,7 +3050,7 @@ def delete_bds_instance(self, bds_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3135,7 +3135,7 @@ def delete_bds_metastore_configuration(self, bds_instance_id, metastore_config_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3145,9 +3145,9 @@ def delete_bds_metastore_configuration(self, bds_instance_id, metastore_config_i "metastoreConfigId": metastore_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3157,7 +3157,7 @@ def delete_bds_metastore_configuration(self, bds_instance_id, metastore_config_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3242,7 +3242,7 @@ def delete_identity_configuration(self, bds_instance_id, identity_configuration_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_identity_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3252,9 +3252,9 @@ def delete_identity_configuration(self, bds_instance_id, identity_configuration_ "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3264,7 +3264,7 @@ def delete_identity_configuration(self, bds_instance_id, identity_configuration_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3349,7 +3349,7 @@ def delete_node_backup(self, bds_instance_id, node_backup_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_node_backup got unknown kwargs: {extra_kwargs!r}") @@ -3359,9 +3359,9 @@ def delete_node_backup(self, bds_instance_id, node_backup_id, **kwargs): "nodeBackupId": node_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3371,7 +3371,7 @@ def delete_node_backup(self, bds_instance_id, node_backup_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3456,7 +3456,7 @@ def delete_node_backup_configuration(self, bds_instance_id, node_backup_configur "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_node_backup_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3466,9 +3466,9 @@ def delete_node_backup_configuration(self, bds_instance_id, node_backup_configur "nodeBackupConfigurationId": node_backup_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3478,7 +3478,7 @@ def delete_node_backup_configuration(self, bds_instance_id, node_backup_configur "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3571,7 +3571,7 @@ def disable_certificate(self, bds_instance_id, disable_certificate_details, **kw "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_certificate got unknown kwargs: {extra_kwargs!r}") @@ -3580,9 +3580,9 @@ def disable_certificate(self, bds_instance_id, disable_certificate_details, **kw "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3593,7 +3593,7 @@ def disable_certificate(self, bds_instance_id, disable_certificate_details, **kw "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3689,7 +3689,7 @@ def enable_certificate(self, bds_instance_id, enable_certificate_details, **kwar "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_certificate got unknown kwargs: {extra_kwargs!r}") @@ -3698,9 +3698,9 @@ def enable_certificate(self, bds_instance_id, enable_certificate_details, **kwar "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3711,7 +3711,7 @@ def enable_certificate(self, bds_instance_id, enable_certificate_details, **kwar "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3807,7 +3807,7 @@ def execute_bootstrap_script(self, bds_instance_id, execute_bootstrap_script_det "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"execute_bootstrap_script got unknown kwargs: {extra_kwargs!r}") @@ -3816,9 +3816,9 @@ def execute_bootstrap_script(self, bds_instance_id, execute_bootstrap_script_det "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3829,7 +3829,7 @@ def execute_bootstrap_script(self, bds_instance_id, execute_bootstrap_script_det "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3928,7 +3928,7 @@ def force_refresh_resource_principal(self, bds_instance_id, resource_principal_c "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"force_refresh_resource_principal got unknown kwargs: {extra_kwargs!r}") @@ -3938,9 +3938,9 @@ def force_refresh_resource_principal(self, bds_instance_id, resource_principal_c "resourcePrincipalConfigurationId": resource_principal_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3951,7 +3951,7 @@ def force_refresh_resource_principal(self, bds_instance_id, resource_principal_c "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4031,7 +4031,7 @@ def get_auto_scaling_configuration(self, bds_instance_id, auto_scaling_configura "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4041,9 +4041,9 @@ def get_auto_scaling_configuration(self, bds_instance_id, auto_scaling_configura "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4052,7 +4052,7 @@ def get_auto_scaling_configuration(self, bds_instance_id, auto_scaling_configura "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4131,7 +4131,7 @@ def get_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_bds_api_key got unknown kwargs: {extra_kwargs!r}") @@ -4141,9 +4141,9 @@ def get_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): "apiKeyId": api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4152,7 +4152,7 @@ def get_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4228,7 +4228,7 @@ def get_bds_instance(self, bds_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_bds_instance got unknown kwargs: {extra_kwargs!r}") @@ -4237,9 +4237,9 @@ def get_bds_instance(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4248,7 +4248,7 @@ def get_bds_instance(self, bds_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4327,7 +4327,7 @@ def get_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4337,9 +4337,9 @@ def get_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, "metastoreConfigId": metastore_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4348,7 +4348,7 @@ def get_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4447,7 +4447,7 @@ def get_identity_configuration(self, bds_instance_id, identity_configuration_id, "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_identity_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4457,9 +4457,9 @@ def get_identity_configuration(self, bds_instance_id, identity_configuration_id, "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4483,14 +4483,14 @@ def get_identity_configuration(self, bds_instance_id, identity_configuration_id, "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4571,7 +4571,7 @@ def get_node_backup(self, bds_instance_id, node_backup_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_node_backup got unknown kwargs: {extra_kwargs!r}") @@ -4581,9 +4581,9 @@ def get_node_backup(self, bds_instance_id, node_backup_id, **kwargs): "nodeBackupId": node_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4592,7 +4592,7 @@ def get_node_backup(self, bds_instance_id, node_backup_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4671,7 +4671,7 @@ def get_node_backup_configuration(self, bds_instance_id, node_backup_configurati "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_node_backup_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4681,9 +4681,9 @@ def get_node_backup_configuration(self, bds_instance_id, node_backup_configurati "nodeBackupConfigurationId": node_backup_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4692,7 +4692,7 @@ def get_node_backup_configuration(self, bds_instance_id, node_backup_configurati "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4771,7 +4771,7 @@ def get_node_replace_configuration(self, bds_instance_id, node_replace_configura "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_node_replace_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4781,9 +4781,9 @@ def get_node_replace_configuration(self, bds_instance_id, node_replace_configura "nodeReplaceConfigurationId": node_replace_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4792,7 +4792,7 @@ def get_node_replace_configuration(self, bds_instance_id, node_replace_configura "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4887,7 +4887,7 @@ def get_os_patch_details(self, bds_instance_id, os_patch_version, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_os_patch_details got unknown kwargs: {extra_kwargs!r}") @@ -4896,16 +4896,16 @@ def get_os_patch_details(self, bds_instance_id, os_patch_version, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "osPatchVersion": os_patch_version } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4914,7 +4914,7 @@ def get_os_patch_details(self, bds_instance_id, os_patch_version, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4996,7 +4996,7 @@ def get_resource_principal_configuration(self, bds_instance_id, resource_princip "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_principal_configuration got unknown kwargs: {extra_kwargs!r}") @@ -5006,9 +5006,9 @@ def get_resource_principal_configuration(self, bds_instance_id, resource_princip "resourcePrincipalConfigurationId": resource_principal_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5017,7 +5017,7 @@ def get_resource_principal_configuration(self, bds_instance_id, resource_princip "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5112,7 +5112,7 @@ def get_software_update(self, bds_instance_id, software_update_key, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_software_update got unknown kwargs: {extra_kwargs!r}") @@ -5122,9 +5122,9 @@ def get_software_update(self, bds_instance_id, software_update_key, **kwargs): "softwareUpdateKey": software_update_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5135,7 +5135,7 @@ def get_software_update(self, bds_instance_id, software_update_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5212,7 +5212,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -5221,9 +5221,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5232,7 +5232,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5327,7 +5327,7 @@ def install_os_patch(self, bds_instance_id, install_os_patch_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_os_patch got unknown kwargs: {extra_kwargs!r}") @@ -5336,9 +5336,9 @@ def install_os_patch(self, bds_instance_id, install_os_patch_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5349,7 +5349,7 @@ def install_os_patch(self, bds_instance_id, install_os_patch_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5445,7 +5445,7 @@ def install_patch(self, bds_instance_id, install_patch_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_patch got unknown kwargs: {extra_kwargs!r}") @@ -5454,9 +5454,9 @@ def install_patch(self, bds_instance_id, install_patch_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5467,7 +5467,7 @@ def install_patch(self, bds_instance_id, install_patch_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5563,7 +5563,7 @@ def install_software_updates(self, bds_instance_id, install_software_updates_det "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_software_updates got unknown kwargs: {extra_kwargs!r}") @@ -5572,9 +5572,9 @@ def install_software_updates(self, bds_instance_id, install_software_updates_det "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5585,7 +5585,7 @@ def install_software_updates(self, bds_instance_id, install_software_updates_det "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5695,7 +5695,7 @@ def list_auto_scaling_configurations(self, compartment_id, bds_instance_id, **kw "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_auto_scaling_configurations got unknown kwargs: {extra_kwargs!r}") @@ -5704,9 +5704,9 @@ def list_auto_scaling_configurations(self, compartment_id, bds_instance_id, **kw "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5740,14 +5740,14 @@ def list_auto_scaling_configurations(self, compartment_id, bds_instance_id, **kw "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5859,7 +5859,7 @@ def list_bds_api_keys(self, bds_instance_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bds_api_keys got unknown kwargs: {extra_kwargs!r}") @@ -5868,9 +5868,9 @@ def list_bds_api_keys(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5904,14 +5904,14 @@ def list_bds_api_keys(self, bds_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6006,7 +6006,7 @@ def list_bds_cluster_versions(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bds_cluster_versions got unknown kwargs: {extra_kwargs!r}") @@ -6031,14 +6031,14 @@ def list_bds_cluster_versions(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6144,7 +6144,7 @@ def list_bds_instances(self, compartment_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bds_instances got unknown kwargs: {extra_kwargs!r}") @@ -6179,14 +6179,14 @@ def list_bds_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6306,7 +6306,7 @@ def list_bds_metastore_configurations(self, bds_instance_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bds_metastore_configurations got unknown kwargs: {extra_kwargs!r}") @@ -6315,9 +6315,9 @@ def list_bds_metastore_configurations(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6360,14 +6360,14 @@ def list_bds_metastore_configurations(self, bds_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6478,7 +6478,7 @@ def list_identity_configurations(self, bds_instance_id, compartment_id, **kwargs "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_identity_configurations got unknown kwargs: {extra_kwargs!r}") @@ -6487,9 +6487,9 @@ def list_identity_configurations(self, bds_instance_id, compartment_id, **kwargs "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6523,14 +6523,14 @@ def list_identity_configurations(self, bds_instance_id, compartment_id, **kwargs "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6638,7 +6638,7 @@ def list_node_backup_configurations(self, bds_instance_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_node_backup_configurations got unknown kwargs: {extra_kwargs!r}") @@ -6647,9 +6647,9 @@ def list_node_backup_configurations(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6682,14 +6682,14 @@ def list_node_backup_configurations(self, bds_instance_id, **kwargs): "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6801,7 +6801,7 @@ def list_node_backups(self, bds_instance_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_node_backups got unknown kwargs: {extra_kwargs!r}") @@ -6810,9 +6810,9 @@ def list_node_backups(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6846,14 +6846,14 @@ def list_node_backups(self, bds_instance_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6961,7 +6961,7 @@ def list_node_replace_configurations(self, bds_instance_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_node_replace_configurations got unknown kwargs: {extra_kwargs!r}") @@ -6970,9 +6970,9 @@ def list_node_replace_configurations(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7005,14 +7005,14 @@ def list_node_replace_configurations(self, bds_instance_id, **kwargs): "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7126,7 +7126,7 @@ def list_os_patches(self, bds_instance_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_os_patches got unknown kwargs: {extra_kwargs!r}") @@ -7135,9 +7135,9 @@ def list_os_patches(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7161,7 +7161,7 @@ def list_os_patches(self, bds_instance_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7170,7 +7170,7 @@ def list_os_patches(self, bds_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7285,7 +7285,7 @@ def list_patch_histories(self, bds_instance_id, **kwargs): "limit", "patch_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_patch_histories got unknown kwargs: {extra_kwargs!r}") @@ -7294,9 +7294,9 @@ def list_patch_histories(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7337,14 +7337,14 @@ def list_patch_histories(self, bds_instance_id, **kwargs): "limit": kwargs.get("limit", missing), "patchType": kwargs.get("patch_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7430,7 +7430,7 @@ def list_patches(self, bds_instance_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_patches got unknown kwargs: {extra_kwargs!r}") @@ -7439,9 +7439,9 @@ def list_patches(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7449,14 +7449,14 @@ def list_patches(self, bds_instance_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7564,7 +7564,7 @@ def list_resource_principal_configurations(self, bds_instance_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_principal_configurations got unknown kwargs: {extra_kwargs!r}") @@ -7573,9 +7573,9 @@ def list_resource_principal_configurations(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7608,14 +7608,14 @@ def list_resource_principal_configurations(self, bds_instance_id, **kwargs): "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7729,7 +7729,7 @@ def list_software_updates(self, bds_instance_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_software_updates got unknown kwargs: {extra_kwargs!r}") @@ -7738,9 +7738,9 @@ def list_software_updates(self, bds_instance_id, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7764,7 +7764,7 @@ def list_software_updates(self, bds_instance_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7773,7 +7773,7 @@ def list_software_updates(self, bds_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7872,7 +7872,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -7881,9 +7881,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7907,14 +7907,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8012,7 +8012,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -8021,9 +8021,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8047,14 +8047,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8156,7 +8156,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -8183,14 +8183,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8288,7 +8288,7 @@ def refresh_confidential_application(self, bds_instance_id, identity_configurati "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_confidential_application got unknown kwargs: {extra_kwargs!r}") @@ -8298,9 +8298,9 @@ def refresh_confidential_application(self, bds_instance_id, identity_configurati "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8311,7 +8311,7 @@ def refresh_confidential_application(self, bds_instance_id, identity_configurati "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8410,7 +8410,7 @@ def refresh_upst_token_exchange_keytab(self, bds_instance_id, identity_configura "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_upst_token_exchange_keytab got unknown kwargs: {extra_kwargs!r}") @@ -8420,9 +8420,9 @@ def refresh_upst_token_exchange_keytab(self, bds_instance_id, identity_configura "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8433,7 +8433,7 @@ def refresh_upst_token_exchange_keytab(self, bds_instance_id, identity_configura "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8532,7 +8532,7 @@ def remove_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -8542,9 +8542,9 @@ def remove_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8555,7 +8555,7 @@ def remove_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8651,7 +8651,7 @@ def remove_cloud_sql(self, bds_instance_id, remove_cloud_sql_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_cloud_sql got unknown kwargs: {extra_kwargs!r}") @@ -8660,9 +8660,9 @@ def remove_cloud_sql(self, bds_instance_id, remove_cloud_sql_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8673,7 +8673,7 @@ def remove_cloud_sql(self, bds_instance_id, remove_cloud_sql_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8769,7 +8769,7 @@ def remove_kafka(self, bds_instance_id, remove_kafka_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_kafka got unknown kwargs: {extra_kwargs!r}") @@ -8778,9 +8778,9 @@ def remove_kafka(self, bds_instance_id, remove_kafka_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8791,7 +8791,7 @@ def remove_kafka(self, bds_instance_id, remove_kafka_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8879,7 +8879,7 @@ def remove_node(self, bds_instance_id, remove_node_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_node got unknown kwargs: {extra_kwargs!r}") @@ -8888,9 +8888,9 @@ def remove_node(self, bds_instance_id, remove_node_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8900,7 +8900,7 @@ def remove_node(self, bds_instance_id, remove_node_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8998,7 +8998,7 @@ def remove_node_replace_configuration(self, bds_instance_id, node_replace_config "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_node_replace_configuration got unknown kwargs: {extra_kwargs!r}") @@ -9008,9 +9008,9 @@ def remove_node_replace_configuration(self, bds_instance_id, node_replace_config "nodeReplaceConfigurationId": node_replace_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9021,7 +9021,7 @@ def remove_node_replace_configuration(self, bds_instance_id, node_replace_config "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9112,7 +9112,7 @@ def remove_resource_principal_configuration(self, bds_instance_id, resource_prin "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_resource_principal_configuration got unknown kwargs: {extra_kwargs!r}") @@ -9122,9 +9122,9 @@ def remove_resource_principal_configuration(self, bds_instance_id, resource_prin "resourcePrincipalConfigurationId": resource_principal_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9134,7 +9134,7 @@ def remove_resource_principal_configuration(self, bds_instance_id, resource_prin "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9229,7 +9229,7 @@ def renew_certificate(self, bds_instance_id, renew_certificate_details, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"renew_certificate got unknown kwargs: {extra_kwargs!r}") @@ -9238,9 +9238,9 @@ def renew_certificate(self, bds_instance_id, renew_certificate_details, **kwargs "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9251,7 +9251,7 @@ def renew_certificate(self, bds_instance_id, renew_certificate_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9347,7 +9347,7 @@ def replace_node(self, bds_instance_id, replace_node_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"replace_node got unknown kwargs: {extra_kwargs!r}") @@ -9356,9 +9356,9 @@ def replace_node(self, bds_instance_id, replace_node_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9369,7 +9369,7 @@ def replace_node(self, bds_instance_id, replace_node_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9465,7 +9465,7 @@ def restart_node(self, bds_instance_id, restart_node_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_node got unknown kwargs: {extra_kwargs!r}") @@ -9474,9 +9474,9 @@ def restart_node(self, bds_instance_id, restart_node_details, **kwargs): "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9487,7 +9487,7 @@ def restart_node(self, bds_instance_id, restart_node_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9575,7 +9575,7 @@ def start_bds_instance(self, bds_instance_id, start_bds_instance_details, **kwar "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_bds_instance got unknown kwargs: {extra_kwargs!r}") @@ -9584,9 +9584,9 @@ def start_bds_instance(self, bds_instance_id, start_bds_instance_details, **kwar "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9596,7 +9596,7 @@ def start_bds_instance(self, bds_instance_id, start_bds_instance_details, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9683,7 +9683,7 @@ def stop_bds_instance(self, bds_instance_id, stop_bds_instance_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_bds_instance got unknown kwargs: {extra_kwargs!r}") @@ -9692,9 +9692,9 @@ def stop_bds_instance(self, bds_instance_id, stop_bds_instance_details, **kwargs "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9704,7 +9704,7 @@ def stop_bds_instance(self, bds_instance_id, stop_bds_instance_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9794,7 +9794,7 @@ def test_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}") @@ -9804,9 +9804,9 @@ def test_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, "metastoreConfigId": metastore_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9816,7 +9816,7 @@ def test_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9898,7 +9898,7 @@ def test_bds_object_storage_connection(self, bds_instance_id, api_key_id, test_b "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_bds_object_storage_connection got unknown kwargs: {extra_kwargs!r}") @@ -9908,9 +9908,9 @@ def test_bds_object_storage_connection(self, bds_instance_id, api_key_id, test_b "apiKeyId": api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9919,7 +9919,7 @@ def test_bds_object_storage_connection(self, bds_instance_id, api_key_id, test_b "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10017,7 +10017,7 @@ def update_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10027,9 +10027,9 @@ def update_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config "autoScalingConfigurationId": auto_scaling_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10040,7 +10040,7 @@ def update_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10128,7 +10128,7 @@ def update_bds_instance(self, bds_instance_id, update_bds_instance_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_bds_instance got unknown kwargs: {extra_kwargs!r}") @@ -10137,9 +10137,9 @@ def update_bds_instance(self, bds_instance_id, update_bds_instance_details, **kw "bdsInstanceId": bds_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10149,7 +10149,7 @@ def update_bds_instance(self, bds_instance_id, update_bds_instance_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10239,7 +10239,7 @@ def update_bds_metastore_configuration(self, bds_instance_id, metastore_config_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10249,9 +10249,9 @@ def update_bds_metastore_configuration(self, bds_instance_id, metastore_config_i "metastoreConfigId": metastore_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10261,7 +10261,7 @@ def update_bds_metastore_configuration(self, bds_instance_id, metastore_config_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10359,7 +10359,7 @@ def update_identity_configuration(self, bds_instance_id, identity_configuration_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_identity_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10369,9 +10369,9 @@ def update_identity_configuration(self, bds_instance_id, identity_configuration_ "identityConfigurationId": identity_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10382,7 +10382,7 @@ def update_identity_configuration(self, bds_instance_id, identity_configuration_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10481,7 +10481,7 @@ def update_node_backup_configuration(self, bds_instance_id, node_backup_configur "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_node_backup_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10491,9 +10491,9 @@ def update_node_backup_configuration(self, bds_instance_id, node_backup_configur "nodeBackupConfigurationId": node_backup_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10504,7 +10504,7 @@ def update_node_backup_configuration(self, bds_instance_id, node_backup_configur "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10603,7 +10603,7 @@ def update_node_replace_configuration(self, bds_instance_id, node_replace_config "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_node_replace_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10613,9 +10613,9 @@ def update_node_replace_configuration(self, bds_instance_id, node_replace_config "nodeReplaceConfigurationId": node_replace_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10626,7 +10626,7 @@ def update_node_replace_configuration(self, bds_instance_id, node_replace_config "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10725,7 +10725,7 @@ def update_resource_principal_configuration(self, bds_instance_id, resource_prin "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_resource_principal_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10735,9 +10735,9 @@ def update_resource_principal_configuration(self, bds_instance_id, resource_prin "resourcePrincipalConfigurationId": resource_principal_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10748,7 +10748,7 @@ def update_resource_principal_configuration(self, bds_instance_id, resource_prin "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/blockchain/blockchain_platform_client.py b/src/oci/blockchain/blockchain_platform_client.py index 958acf9c4..d3582927c 100644 --- a/src/oci/blockchain/blockchain_platform_client.py +++ b/src/oci/blockchain/blockchain_platform_client.py @@ -179,7 +179,7 @@ def change_blockchain_platform_compartment(self, blockchain_platform_id, change_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_blockchain_platform_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_blockchain_platform_compartment(self, blockchain_platform_id, change_ "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_blockchain_platform_compartment(self, blockchain_platform_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -286,7 +286,7 @@ def create_blockchain_platform(self, create_blockchain_platform_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -297,7 +297,7 @@ def create_blockchain_platform(self, create_blockchain_platform_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -391,7 +391,7 @@ def create_osn(self, blockchain_platform_id, create_osn_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_osn got unknown kwargs: {extra_kwargs!r}") @@ -400,9 +400,9 @@ def create_osn(self, blockchain_platform_id, create_osn_details, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -413,7 +413,7 @@ def create_osn(self, blockchain_platform_id, create_osn_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -501,7 +501,7 @@ def create_peer(self, blockchain_platform_id, create_peer_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_peer got unknown kwargs: {extra_kwargs!r}") @@ -510,9 +510,9 @@ def create_peer(self, blockchain_platform_id, create_peer_details, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -522,7 +522,7 @@ def create_peer(self, blockchain_platform_id, create_peer_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -615,7 +615,7 @@ def delete_blockchain_platform(self, blockchain_platform_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -624,9 +624,9 @@ def delete_blockchain_platform(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -637,7 +637,7 @@ def delete_blockchain_platform(self, blockchain_platform_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -723,7 +723,7 @@ def delete_osn(self, blockchain_platform_id, osn_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_osn got unknown kwargs: {extra_kwargs!r}") @@ -733,9 +733,9 @@ def delete_osn(self, blockchain_platform_id, osn_id, **kwargs): "osnId": osn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -745,7 +745,7 @@ def delete_osn(self, blockchain_platform_id, osn_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -838,7 +838,7 @@ def delete_peer(self, blockchain_platform_id, peer_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_peer got unknown kwargs: {extra_kwargs!r}") @@ -848,9 +848,9 @@ def delete_peer(self, blockchain_platform_id, peer_id, **kwargs): "peerId": peer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -861,7 +861,7 @@ def delete_peer(self, blockchain_platform_id, peer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -944,7 +944,7 @@ def delete_work_request(self, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_work_request got unknown kwargs: {extra_kwargs!r}") @@ -953,9 +953,9 @@ def delete_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -965,7 +965,7 @@ def delete_work_request(self, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1039,7 +1039,7 @@ def get_blockchain_platform(self, blockchain_platform_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -1048,9 +1048,9 @@ def get_blockchain_platform(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1059,7 +1059,7 @@ def get_blockchain_platform(self, blockchain_platform_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1138,7 +1138,7 @@ def get_osn(self, blockchain_platform_id, osn_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_osn got unknown kwargs: {extra_kwargs!r}") @@ -1148,9 +1148,9 @@ def get_osn(self, blockchain_platform_id, osn_id, **kwargs): "osnId": osn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1159,7 +1159,7 @@ def get_osn(self, blockchain_platform_id, osn_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1238,7 +1238,7 @@ def get_peer(self, blockchain_platform_id, peer_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_peer got unknown kwargs: {extra_kwargs!r}") @@ -1248,9 +1248,9 @@ def get_peer(self, blockchain_platform_id, peer_id, **kwargs): "peerId": peer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1259,7 +1259,7 @@ def get_peer(self, blockchain_platform_id, peer_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1335,7 +1335,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1344,9 +1344,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1355,7 +1355,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1439,7 +1439,7 @@ def list_blockchain_platform_patches(self, blockchain_platform_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_blockchain_platform_patches got unknown kwargs: {extra_kwargs!r}") @@ -1448,9 +1448,9 @@ def list_blockchain_platform_patches(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1458,14 +1458,14 @@ def list_blockchain_platform_patches(self, blockchain_platform_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1575,7 +1575,7 @@ def list_blockchain_platforms(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_blockchain_platforms got unknown kwargs: {extra_kwargs!r}") @@ -1610,14 +1610,14 @@ def list_blockchain_platforms(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1726,7 +1726,7 @@ def list_osns(self, blockchain_platform_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_osns got unknown kwargs: {extra_kwargs!r}") @@ -1735,9 +1735,9 @@ def list_osns(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1762,7 +1762,7 @@ def list_osns(self, blockchain_platform_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1770,7 +1770,7 @@ def list_osns(self, blockchain_platform_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1882,7 +1882,7 @@ def list_peers(self, blockchain_platform_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_peers got unknown kwargs: {extra_kwargs!r}") @@ -1891,9 +1891,9 @@ def list_peers(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1918,7 +1918,7 @@ def list_peers(self, blockchain_platform_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1926,7 +1926,7 @@ def list_peers(self, blockchain_platform_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2013,7 +2013,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2022,9 +2022,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2032,14 +2032,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2125,7 +2125,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2134,9 +2134,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2144,14 +2144,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2252,7 +2252,7 @@ def list_work_requests(self, compartment_id, blockchain_platform_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2279,14 +2279,14 @@ def list_work_requests(self, compartment_id, blockchain_platform_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2365,7 +2365,7 @@ def preview_scale_blockchain_platform(self, blockchain_platform_id, scale_blockc "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"preview_scale_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -2374,9 +2374,9 @@ def preview_scale_blockchain_platform(self, blockchain_platform_id, scale_blockc "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2385,7 +2385,7 @@ def preview_scale_blockchain_platform(self, blockchain_platform_id, scale_blockc "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2482,7 +2482,7 @@ def scale_blockchain_platform(self, blockchain_platform_id, scale_blockchain_pla "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scale_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -2491,9 +2491,9 @@ def scale_blockchain_platform(self, blockchain_platform_id, scale_blockchain_pla "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2504,7 +2504,7 @@ def scale_blockchain_platform(self, blockchain_platform_id, scale_blockchain_pla "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2597,7 +2597,7 @@ def start_blockchain_platform(self, blockchain_platform_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -2606,9 +2606,9 @@ def start_blockchain_platform(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2619,7 +2619,7 @@ def start_blockchain_platform(self, blockchain_platform_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2710,7 +2710,7 @@ def stop_blockchain_platform(self, blockchain_platform_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -2719,9 +2719,9 @@ def stop_blockchain_platform(self, blockchain_platform_id, **kwargs): "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2732,7 +2732,7 @@ def stop_blockchain_platform(self, blockchain_platform_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2826,7 +2826,7 @@ def update_blockchain_platform(self, update_blockchain_platform_details, blockch "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -2835,9 +2835,9 @@ def update_blockchain_platform(self, update_blockchain_platform_details, blockch "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2848,7 +2848,7 @@ def update_blockchain_platform(self, update_blockchain_platform_details, blockch "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2947,7 +2947,7 @@ def update_osn(self, blockchain_platform_id, osn_id, update_osn_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_osn got unknown kwargs: {extra_kwargs!r}") @@ -2957,9 +2957,9 @@ def update_osn(self, blockchain_platform_id, osn_id, update_osn_details, **kwarg "osnId": osn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2970,7 +2970,7 @@ def update_osn(self, blockchain_platform_id, osn_id, update_osn_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3069,7 +3069,7 @@ def update_peer(self, blockchain_platform_id, peer_id, update_peer_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_peer got unknown kwargs: {extra_kwargs!r}") @@ -3079,9 +3079,9 @@ def update_peer(self, blockchain_platform_id, peer_id, update_peer_details, **kw "peerId": peer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3092,7 +3092,7 @@ def update_peer(self, blockchain_platform_id, peer_id, update_peer_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3188,7 +3188,7 @@ def upgrade_blockchain_platform(self, upgrade_blockchain_platform_details, block "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_blockchain_platform got unknown kwargs: {extra_kwargs!r}") @@ -3197,9 +3197,9 @@ def upgrade_blockchain_platform(self, upgrade_blockchain_platform_details, block "blockchainPlatformId": blockchain_platform_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3210,7 +3210,7 @@ def upgrade_blockchain_platform(self, upgrade_blockchain_platform_details, block "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/budget/budget_client.py b/src/oci/budget/budget_client.py index 3cef0660e..2924daea4 100644 --- a/src/oci/budget/budget_client.py +++ b/src/oci/budget/budget_client.py @@ -171,7 +171,7 @@ def create_alert_rule(self, budget_id, create_alert_rule_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_alert_rule got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def create_alert_rule(self, budget_id, create_alert_rule_details, **kwargs): "budgetId": budget_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def create_alert_rule(self, budget_id, create_alert_rule_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def create_budget(self, create_budget_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_budget got unknown kwargs: {extra_kwargs!r}") @@ -292,7 +292,7 @@ def create_budget(self, create_budget_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -382,7 +382,7 @@ def delete_alert_rule(self, budget_id, alert_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_alert_rule got unknown kwargs: {extra_kwargs!r}") @@ -392,9 +392,9 @@ def delete_alert_rule(self, budget_id, alert_rule_id, **kwargs): "alertRuleId": alert_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -404,7 +404,7 @@ def delete_alert_rule(self, budget_id, alert_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -488,7 +488,7 @@ def delete_budget(self, budget_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_budget got unknown kwargs: {extra_kwargs!r}") @@ -497,9 +497,9 @@ def delete_budget(self, budget_id, **kwargs): "budgetId": budget_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -509,7 +509,7 @@ def delete_budget(self, budget_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -588,7 +588,7 @@ def get_alert_rule(self, budget_id, alert_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alert_rule got unknown kwargs: {extra_kwargs!r}") @@ -598,9 +598,9 @@ def get_alert_rule(self, budget_id, alert_rule_id, **kwargs): "alertRuleId": alert_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -609,7 +609,7 @@ def get_alert_rule(self, budget_id, alert_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -687,7 +687,7 @@ def get_budget(self, budget_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_budget got unknown kwargs: {extra_kwargs!r}") @@ -696,9 +696,9 @@ def get_budget(self, budget_id, **kwargs): "budgetId": budget_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -707,7 +707,7 @@ def get_budget(self, budget_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -819,7 +819,7 @@ def list_alert_rules(self, budget_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alert_rules got unknown kwargs: {extra_kwargs!r}") @@ -828,9 +828,9 @@ def list_alert_rules(self, budget_id, **kwargs): "budgetId": budget_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -863,14 +863,14 @@ def list_alert_rules(self, budget_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -999,7 +999,7 @@ def list_budgets(self, compartment_id, **kwargs): "target_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_budgets got unknown kwargs: {extra_kwargs!r}") @@ -1042,14 +1042,14 @@ def list_budgets(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "targetType": kwargs.get("target_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1141,7 +1141,7 @@ def update_alert_rule(self, budget_id, alert_rule_id, update_alert_rule_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_alert_rule got unknown kwargs: {extra_kwargs!r}") @@ -1151,9 +1151,9 @@ def update_alert_rule(self, budget_id, alert_rule_id, update_alert_rule_details, "alertRuleId": alert_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1163,7 +1163,7 @@ def update_alert_rule(self, budget_id, alert_rule_id, update_alert_rule_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1254,7 +1254,7 @@ def update_budget(self, budget_id, update_budget_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_budget got unknown kwargs: {extra_kwargs!r}") @@ -1263,9 +1263,9 @@ def update_budget(self, budget_id, update_budget_details, **kwargs): "budgetId": budget_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1275,7 +1275,7 @@ def update_budget(self, budget_id, update_budget_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/capacity_management/capacity_management_client.py b/src/oci/capacity_management/capacity_management_client.py index aa26b7a93..bd1177138 100644 --- a/src/oci/capacity_management/capacity_management_client.py +++ b/src/oci/capacity_management/capacity_management_client.py @@ -170,7 +170,7 @@ def create_occ_availability_catalog(self, create_occ_availability_catalog_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") @@ -181,7 +181,7 @@ def create_occ_availability_catalog(self, create_occ_availability_catalog_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -269,7 +269,7 @@ def create_occ_capacity_request(self, create_occ_capacity_request_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -280,7 +280,7 @@ def create_occ_capacity_request(self, create_occ_capacity_request_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -371,7 +371,7 @@ def create_occ_customer(self, create_occ_customer_details, occ_customer_group_id "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occ_customer got unknown kwargs: {extra_kwargs!r}") @@ -380,9 +380,9 @@ def create_occ_customer(self, create_occ_customer_details, occ_customer_group_id "occCustomerGroupId": occ_customer_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -392,7 +392,7 @@ def create_occ_customer(self, create_occ_customer_details, occ_customer_group_id "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -482,7 +482,7 @@ def create_occ_customer_group(self, create_occ_customer_group_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occ_customer_group got unknown kwargs: {extra_kwargs!r}") @@ -493,7 +493,7 @@ def create_occ_customer_group(self, create_occ_customer_group_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -581,7 +581,7 @@ def delete_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") @@ -590,9 +590,9 @@ def delete_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs) "occAvailabilityCatalogId": occ_availability_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -602,7 +602,7 @@ def delete_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -687,7 +687,7 @@ def delete_occ_capacity_request(self, occ_capacity_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -696,9 +696,9 @@ def delete_occ_capacity_request(self, occ_capacity_request_id, **kwargs): "occCapacityRequestId": occ_capacity_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -708,7 +708,7 @@ def delete_occ_capacity_request(self, occ_capacity_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -796,7 +796,7 @@ def delete_occ_customer(self, occ_customer_group_id, occ_customer_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occ_customer got unknown kwargs: {extra_kwargs!r}") @@ -806,9 +806,9 @@ def delete_occ_customer(self, occ_customer_group_id, occ_customer_id, **kwargs): "occCustomerId": occ_customer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -818,7 +818,7 @@ def delete_occ_customer(self, occ_customer_group_id, occ_customer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -903,7 +903,7 @@ def delete_occ_customer_group(self, occ_customer_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occ_customer_group got unknown kwargs: {extra_kwargs!r}") @@ -912,9 +912,9 @@ def delete_occ_customer_group(self, occ_customer_group_id, **kwargs): "occCustomerGroupId": occ_customer_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -924,7 +924,7 @@ def delete_occ_customer_group(self, occ_customer_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1001,7 +1001,7 @@ def get_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") @@ -1010,9 +1010,9 @@ def get_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): "occAvailabilityCatalogId": occ_availability_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1021,7 +1021,7 @@ def get_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1116,7 +1116,7 @@ def get_occ_availability_catalog_content(self, occ_availability_catalog_id, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occ_availability_catalog_content got unknown kwargs: {extra_kwargs!r}") @@ -1125,9 +1125,9 @@ def get_occ_availability_catalog_content(self, occ_availability_catalog_id, **kw "occAvailabilityCatalogId": occ_availability_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1138,7 +1138,7 @@ def get_occ_availability_catalog_content(self, occ_availability_catalog_id, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1218,7 +1218,7 @@ def get_occ_capacity_request(self, occ_capacity_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -1227,9 +1227,9 @@ def get_occ_capacity_request(self, occ_capacity_request_id, **kwargs): "occCapacityRequestId": occ_capacity_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1238,7 +1238,7 @@ def get_occ_capacity_request(self, occ_capacity_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1317,7 +1317,7 @@ def get_occ_customer_group(self, occ_customer_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occ_customer_group got unknown kwargs: {extra_kwargs!r}") @@ -1326,9 +1326,9 @@ def get_occ_customer_group(self, occ_customer_group_id, **kwargs): "occCustomerGroupId": occ_customer_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1337,7 +1337,7 @@ def get_occ_customer_group(self, occ_customer_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1456,7 +1456,7 @@ def list_internal_namespace_occ_overviews(self, namespace, compartment_id, occ_c "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_namespace_occ_overviews got unknown kwargs: {extra_kwargs!r}") @@ -1465,9 +1465,9 @@ def list_internal_namespace_occ_overviews(self, namespace, compartment_id, occ_c "namespace": namespace } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1496,14 +1496,14 @@ def list_internal_namespace_occ_overviews(self, namespace, compartment_id, occ_c "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1609,7 +1609,7 @@ def list_internal_occ_handover_resource_block_details(self, occ_handover_resourc "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occ_handover_resource_block_details got unknown kwargs: {extra_kwargs!r}") @@ -1636,14 +1636,14 @@ def list_internal_occ_handover_resource_block_details(self, occ_handover_resourc "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1767,7 +1767,7 @@ def list_internal_occ_handover_resource_blocks(self, namespace, compartment_id, "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occ_handover_resource_blocks got unknown kwargs: {extra_kwargs!r}") @@ -1805,14 +1805,14 @@ def list_internal_occ_handover_resource_blocks(self, namespace, compartment_id, "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1927,7 +1927,7 @@ def list_occ_availabilities(self, occ_availability_catalog_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_availabilities got unknown kwargs: {extra_kwargs!r}") @@ -1936,9 +1936,9 @@ def list_occ_availabilities(self, occ_availability_catalog_id, **kwargs): "occAvailabilityCatalogId": occ_availability_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1966,14 +1966,14 @@ def list_occ_availabilities(self, occ_availability_catalog_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2094,7 +2094,7 @@ def list_occ_availability_catalogs(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_availability_catalogs got unknown kwargs: {extra_kwargs!r}") @@ -2138,14 +2138,14 @@ def list_occ_availability_catalogs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2267,7 +2267,7 @@ def list_occ_availability_catalogs_internal(self, compartment_id, occ_customer_g "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_availability_catalogs_internal got unknown kwargs: {extra_kwargs!r}") @@ -2312,14 +2312,14 @@ def list_occ_availability_catalogs_internal(self, compartment_id, occ_customer_g "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2442,7 +2442,7 @@ def list_occ_capacity_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_capacity_requests got unknown kwargs: {extra_kwargs!r}") @@ -2487,14 +2487,14 @@ def list_occ_capacity_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2620,7 +2620,7 @@ def list_occ_capacity_requests_internal(self, compartment_id, occ_customer_group "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_capacity_requests_internal got unknown kwargs: {extra_kwargs!r}") @@ -2666,14 +2666,14 @@ def list_occ_capacity_requests_internal(self, compartment_id, occ_customer_group "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2786,7 +2786,7 @@ def list_occ_customer_groups(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_customer_groups got unknown kwargs: {extra_kwargs!r}") @@ -2822,14 +2822,14 @@ def list_occ_customer_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2933,7 +2933,7 @@ def list_occ_handover_resource_block_details(self, occ_handover_resource_block_i "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_handover_resource_block_details got unknown kwargs: {extra_kwargs!r}") @@ -2960,14 +2960,14 @@ def list_occ_handover_resource_block_details(self, occ_handover_resource_block_i "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3090,7 +3090,7 @@ def list_occ_handover_resource_blocks(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_handover_resource_blocks got unknown kwargs: {extra_kwargs!r}") @@ -3128,14 +3128,14 @@ def list_occ_handover_resource_blocks(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3251,7 +3251,7 @@ def list_occ_overviews(self, namespace, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_overviews got unknown kwargs: {extra_kwargs!r}") @@ -3260,9 +3260,9 @@ def list_occ_overviews(self, namespace, compartment_id, **kwargs): "namespace": namespace } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3290,14 +3290,14 @@ def list_occ_overviews(self, namespace, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3389,7 +3389,7 @@ def patch_internal_occ_capacity_request(self, patch_occ_capacity_request_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_internal_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -3398,9 +3398,9 @@ def patch_internal_occ_capacity_request(self, patch_occ_capacity_request_details "occCapacityRequestId": occ_capacity_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3410,7 +3410,7 @@ def patch_internal_occ_capacity_request(self, patch_occ_capacity_request_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3502,7 +3502,7 @@ def patch_occ_capacity_request(self, patch_occ_capacity_request_details, occ_cap "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -3511,9 +3511,9 @@ def patch_occ_capacity_request(self, patch_occ_capacity_request_details, occ_cap "occCapacityRequestId": occ_capacity_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3523,7 +3523,7 @@ def patch_occ_capacity_request(self, patch_occ_capacity_request_details, occ_cap "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3620,7 +3620,7 @@ def publish_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") @@ -3629,9 +3629,9 @@ def publish_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs "occAvailabilityCatalogId": occ_availability_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3642,7 +3642,7 @@ def publish_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3731,7 +3731,7 @@ def update_internal_occ_capacity_request(self, update_internal_occ_capacity_requ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_internal_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -3740,9 +3740,9 @@ def update_internal_occ_capacity_request(self, update_internal_occ_capacity_requ "occCapacityRequestId": occ_capacity_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3752,7 +3752,7 @@ def update_internal_occ_capacity_request(self, update_internal_occ_capacity_requ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3844,7 +3844,7 @@ def update_occ_availability_catalog(self, update_occ_availability_catalog_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") @@ -3853,9 +3853,9 @@ def update_occ_availability_catalog(self, update_occ_availability_catalog_detail "occAvailabilityCatalogId": occ_availability_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3865,7 +3865,7 @@ def update_occ_availability_catalog(self, update_occ_availability_catalog_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3957,7 +3957,7 @@ def update_occ_capacity_request(self, update_occ_capacity_request_details, occ_c "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") @@ -3966,9 +3966,9 @@ def update_occ_capacity_request(self, update_occ_capacity_request_details, occ_c "occCapacityRequestId": occ_capacity_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3978,7 +3978,7 @@ def update_occ_capacity_request(self, update_occ_capacity_request_details, occ_c "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4073,7 +4073,7 @@ def update_occ_customer(self, update_occ_customer_details, occ_customer_group_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occ_customer got unknown kwargs: {extra_kwargs!r}") @@ -4083,9 +4083,9 @@ def update_occ_customer(self, update_occ_customer_details, occ_customer_group_id "occCustomerId": occ_customer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4095,7 +4095,7 @@ def update_occ_customer(self, update_occ_customer_details, occ_customer_group_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4187,7 +4187,7 @@ def update_occ_customer_group(self, update_occ_customer_group_details, occ_custo "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occ_customer_group got unknown kwargs: {extra_kwargs!r}") @@ -4196,9 +4196,9 @@ def update_occ_customer_group(self, update_occ_customer_group_details, occ_custo "occCustomerGroupId": occ_customer_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4208,7 +4208,7 @@ def update_occ_customer_group(self, update_occ_customer_group_details, occ_custo "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/capacity_management/demand_signal_client.py b/src/oci/capacity_management/demand_signal_client.py index 264a7be6b..0ec0bd9f6 100644 --- a/src/oci/capacity_management/demand_signal_client.py +++ b/src/oci/capacity_management/demand_signal_client.py @@ -170,7 +170,7 @@ def bulk_create_occm_demand_signal_item(self, bulk_create_occm_demand_signal_ite "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_create_occm_demand_signal_item got unknown kwargs: {extra_kwargs!r}") @@ -181,7 +181,7 @@ def bulk_create_occm_demand_signal_item(self, bulk_create_occm_demand_signal_ite "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -267,7 +267,7 @@ def create_occm_demand_signal(self, create_occm_demand_signal_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occm_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -278,7 +278,7 @@ def create_occm_demand_signal(self, create_occm_demand_signal_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -366,7 +366,7 @@ def create_occm_demand_signal_item(self, create_occm_demand_signal_item_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occm_demand_signal_item got unknown kwargs: {extra_kwargs!r}") @@ -377,7 +377,7 @@ def create_occm_demand_signal_item(self, create_occm_demand_signal_item_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -465,7 +465,7 @@ def delete_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occm_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -474,9 +474,9 @@ def delete_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "occmDemandSignalId": occm_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -486,7 +486,7 @@ def delete_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -571,7 +571,7 @@ def delete_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occm_demand_signal_item got unknown kwargs: {extra_kwargs!r}") @@ -580,9 +580,9 @@ def delete_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): "occmDemandSignalItemId": occm_demand_signal_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -592,7 +592,7 @@ def delete_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -669,7 +669,7 @@ def get_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occm_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -678,9 +678,9 @@ def get_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "occmDemandSignalId": occm_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -689,7 +689,7 @@ def get_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -768,7 +768,7 @@ def get_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occm_demand_signal_item got unknown kwargs: {extra_kwargs!r}") @@ -777,9 +777,9 @@ def get_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): "occmDemandSignalItemId": occm_demand_signal_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -788,7 +788,7 @@ def get_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -897,7 +897,7 @@ def list_occm_demand_signal_catalog_resources(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occm_demand_signal_catalog_resources got unknown kwargs: {extra_kwargs!r}") @@ -932,14 +932,14 @@ def list_occm_demand_signal_catalog_resources(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1046,7 +1046,7 @@ def list_occm_demand_signal_deliveries(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occm_demand_signal_deliveries got unknown kwargs: {extra_kwargs!r}") @@ -1074,14 +1074,14 @@ def list_occm_demand_signal_deliveries(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1194,7 +1194,7 @@ def list_occm_demand_signal_items(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occm_demand_signal_items got unknown kwargs: {extra_kwargs!r}") @@ -1230,14 +1230,14 @@ def list_occm_demand_signal_items(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1348,7 +1348,7 @@ def list_occm_demand_signals(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occm_demand_signals got unknown kwargs: {extra_kwargs!r}") @@ -1377,14 +1377,14 @@ def list_occm_demand_signals(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1474,7 +1474,7 @@ def update_occm_demand_signal(self, update_occm_demand_signal_details, occm_dema "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occm_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -1483,9 +1483,9 @@ def update_occm_demand_signal(self, update_occm_demand_signal_details, occm_dema "occmDemandSignalId": occm_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1495,7 +1495,7 @@ def update_occm_demand_signal(self, update_occm_demand_signal_details, occm_dema "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1587,7 +1587,7 @@ def update_occm_demand_signal_item(self, update_occm_demand_signal_item_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occm_demand_signal_item got unknown kwargs: {extra_kwargs!r}") @@ -1596,9 +1596,9 @@ def update_occm_demand_signal_item(self, update_occm_demand_signal_item_details, "occmDemandSignalItemId": occm_demand_signal_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1608,7 +1608,7 @@ def update_occm_demand_signal_item(self, update_occm_demand_signal_item_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/capacity_management/internal_demand_signal_client.py b/src/oci/capacity_management/internal_demand_signal_client.py index 06a23c913..96a73a1f1 100644 --- a/src/oci/capacity_management/internal_demand_signal_client.py +++ b/src/oci/capacity_management/internal_demand_signal_client.py @@ -172,7 +172,7 @@ def create_internal_occm_demand_signal_delivery(self, create_internal_occm_deman "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_internal_occm_demand_signal_delivery got unknown kwargs: {extra_kwargs!r}") @@ -183,7 +183,7 @@ def create_internal_occm_demand_signal_delivery(self, create_internal_occm_deman "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -271,7 +271,7 @@ def delete_internal_occm_demand_signal_delivery(self, occm_demand_signal_deliver "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_internal_occm_demand_signal_delivery got unknown kwargs: {extra_kwargs!r}") @@ -280,9 +280,9 @@ def delete_internal_occm_demand_signal_delivery(self, occm_demand_signal_deliver "occmDemandSignalDeliveryId": occm_demand_signal_delivery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -292,7 +292,7 @@ def delete_internal_occm_demand_signal_delivery(self, occm_demand_signal_deliver "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -369,7 +369,7 @@ def get_internal_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_internal_occm_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -378,9 +378,9 @@ def get_internal_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "occmDemandSignalId": occm_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -389,7 +389,7 @@ def get_internal_occm_demand_signal(self, occm_demand_signal_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -468,7 +468,7 @@ def get_internal_occm_demand_signal_catalog(self, occm_demand_signal_catalog_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_internal_occm_demand_signal_catalog got unknown kwargs: {extra_kwargs!r}") @@ -477,9 +477,9 @@ def get_internal_occm_demand_signal_catalog(self, occm_demand_signal_catalog_id, "occmDemandSignalCatalogId": occm_demand_signal_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -488,7 +488,7 @@ def get_internal_occm_demand_signal_catalog(self, occm_demand_signal_catalog_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -567,7 +567,7 @@ def get_internal_occm_demand_signal_delivery(self, occm_demand_signal_delivery_i "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_internal_occm_demand_signal_delivery got unknown kwargs: {extra_kwargs!r}") @@ -576,9 +576,9 @@ def get_internal_occm_demand_signal_delivery(self, occm_demand_signal_delivery_i "occmDemandSignalDeliveryId": occm_demand_signal_delivery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -587,7 +587,7 @@ def get_internal_occm_demand_signal_delivery(self, occm_demand_signal_delivery_i "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -702,7 +702,7 @@ def list_internal_occm_demand_signal_catalog_resources(self, compartment_id, occ "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occm_demand_signal_catalog_resources got unknown kwargs: {extra_kwargs!r}") @@ -739,14 +739,14 @@ def list_internal_occm_demand_signal_catalog_resources(self, compartment_id, occ "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -852,7 +852,7 @@ def list_internal_occm_demand_signal_catalogs(self, compartment_id, occ_customer "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occm_demand_signal_catalogs got unknown kwargs: {extra_kwargs!r}") @@ -880,14 +880,14 @@ def list_internal_occm_demand_signal_catalogs(self, compartment_id, occ_customer "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -997,7 +997,7 @@ def list_internal_occm_demand_signal_deliveries(self, compartment_id, occ_custom "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occm_demand_signal_deliveries got unknown kwargs: {extra_kwargs!r}") @@ -1026,14 +1026,14 @@ def list_internal_occm_demand_signal_deliveries(self, compartment_id, occ_custom "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1149,7 +1149,7 @@ def list_internal_occm_demand_signal_items(self, compartment_id, occ_customer_gr "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occm_demand_signal_items got unknown kwargs: {extra_kwargs!r}") @@ -1186,14 +1186,14 @@ def list_internal_occm_demand_signal_items(self, compartment_id, occ_customer_gr "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1307,7 +1307,7 @@ def list_internal_occm_demand_signals(self, compartment_id, occ_customer_group_i "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internal_occm_demand_signals got unknown kwargs: {extra_kwargs!r}") @@ -1337,14 +1337,14 @@ def list_internal_occm_demand_signals(self, compartment_id, occ_customer_group_i "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1434,7 +1434,7 @@ def update_internal_occm_demand_signal(self, update_internal_occm_demand_signal_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_internal_occm_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -1443,9 +1443,9 @@ def update_internal_occm_demand_signal(self, update_internal_occm_demand_signal_ "occmDemandSignalId": occm_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1455,7 +1455,7 @@ def update_internal_occm_demand_signal(self, update_internal_occm_demand_signal_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1547,7 +1547,7 @@ def update_internal_occm_demand_signal_delivery(self, update_internal_occm_deman "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_internal_occm_demand_signal_delivery got unknown kwargs: {extra_kwargs!r}") @@ -1556,9 +1556,9 @@ def update_internal_occm_demand_signal_delivery(self, update_internal_occm_deman "occmDemandSignalDeliveryId": occm_demand_signal_delivery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1568,7 +1568,7 @@ def update_internal_occm_demand_signal_delivery(self, update_internal_occm_deman "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/certificates/certificates_client.py b/src/oci/certificates/certificates_client.py index 58267abc2..959c0ca92 100644 --- a/src/oci/certificates/certificates_client.py +++ b/src/oci/certificates/certificates_client.py @@ -161,7 +161,7 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ca_bundle got unknown kwargs: {extra_kwargs!r}") @@ -170,9 +170,9 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): "caBundleId": ca_bundle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -181,7 +181,7 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def get_certificate_authority_bundle(self, certificate_authority_id, **kwargs): "certificate_authority_version_name", "stage" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate_authority_bundle got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def get_certificate_authority_bundle(self, certificate_authority_id, **kwargs): "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -300,14 +300,14 @@ def get_certificate_authority_bundle(self, certificate_authority_id, **kwargs): "certificateAuthorityVersionName": kwargs.get("certificate_authority_version_name", missing), "stage": kwargs.get("stage", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def get_certificate_bundle(self, certificate_id, **kwargs): "stage", "certificate_bundle_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate_bundle got unknown kwargs: {extra_kwargs!r}") @@ -419,9 +419,9 @@ def get_certificate_bundle(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -445,14 +445,14 @@ def get_certificate_bundle(self, certificate_id, **kwargs): "stage": kwargs.get("stage", missing), "certificateBundleType": kwargs.get("certificate_bundle_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -544,7 +544,7 @@ def list_certificate_authority_bundle_versions(self, certificate_authority_id, * "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificate_authority_bundle_versions got unknown kwargs: {extra_kwargs!r}") @@ -553,9 +553,9 @@ def list_certificate_authority_bundle_versions(self, certificate_authority_id, * "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -577,14 +577,14 @@ def list_certificate_authority_bundle_versions(self, certificate_authority_id, * "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -676,7 +676,7 @@ def list_certificate_bundle_versions(self, certificate_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificate_bundle_versions got unknown kwargs: {extra_kwargs!r}") @@ -685,9 +685,9 @@ def list_certificate_bundle_versions(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -709,14 +709,14 @@ def list_certificate_bundle_versions(self, certificate_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/certificates_management/certificates_management_client.py b/src/oci/certificates_management/certificates_management_client.py index e54e4c235..8fd0871d4 100644 --- a/src/oci/certificates_management/certificates_management_client.py +++ b/src/oci/certificates_management/certificates_management_client.py @@ -170,7 +170,7 @@ def cancel_certificate_authority_deletion(self, certificate_authority_id, **kwar "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_certificate_authority_deletion got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def cancel_certificate_authority_deletion(self, certificate_authority_id, **kwar "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def cancel_certificate_authority_deletion(self, certificate_authority_id, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def cancel_certificate_authority_version_deletion(self, certificate_authority_id "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_certificate_authority_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -290,9 +290,9 @@ def cancel_certificate_authority_version_deletion(self, certificate_authority_id "certificateAuthorityVersionNumber": certificate_authority_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -302,7 +302,7 @@ def cancel_certificate_authority_version_deletion(self, certificate_authority_id "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -388,7 +388,7 @@ def cancel_certificate_deletion(self, certificate_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_certificate_deletion got unknown kwargs: {extra_kwargs!r}") @@ -397,9 +397,9 @@ def cancel_certificate_deletion(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -409,7 +409,7 @@ def cancel_certificate_deletion(self, certificate_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -496,7 +496,7 @@ def cancel_certificate_version_deletion(self, certificate_id, certificate_versio "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_certificate_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -506,9 +506,9 @@ def cancel_certificate_version_deletion(self, certificate_id, certificate_versio "certificateVersionNumber": certificate_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -518,7 +518,7 @@ def cancel_certificate_version_deletion(self, certificate_id, certificate_versio "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -619,7 +619,7 @@ def change_ca_bundle_compartment(self, ca_bundle_id, change_ca_bundle_compartmen "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ca_bundle_compartment got unknown kwargs: {extra_kwargs!r}") @@ -628,9 +628,9 @@ def change_ca_bundle_compartment(self, ca_bundle_id, change_ca_bundle_compartmen "caBundleId": ca_bundle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -641,7 +641,7 @@ def change_ca_bundle_compartment(self, ca_bundle_id, change_ca_bundle_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -745,7 +745,7 @@ def change_certificate_authority_compartment(self, certificate_authority_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_certificate_authority_compartment got unknown kwargs: {extra_kwargs!r}") @@ -754,9 +754,9 @@ def change_certificate_authority_compartment(self, certificate_authority_id, cha "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -767,7 +767,7 @@ def change_certificate_authority_compartment(self, certificate_authority_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -871,7 +871,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_certificate_compartment got unknown kwargs: {extra_kwargs!r}") @@ -880,9 +880,9 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -893,7 +893,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -981,7 +981,7 @@ def create_ca_bundle(self, create_ca_bundle_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ca_bundle got unknown kwargs: {extra_kwargs!r}") @@ -992,7 +992,7 @@ def create_ca_bundle(self, create_ca_bundle_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1080,7 +1080,7 @@ def create_certificate(self, create_certificate_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1091,7 +1091,7 @@ def create_certificate(self, create_certificate_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1179,7 +1179,7 @@ def create_certificate_authority(self, create_certificate_authority_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_certificate_authority got unknown kwargs: {extra_kwargs!r}") @@ -1190,7 +1190,7 @@ def create_certificate_authority(self, create_certificate_authority_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1277,7 +1277,7 @@ def delete_ca_bundle(self, ca_bundle_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ca_bundle got unknown kwargs: {extra_kwargs!r}") @@ -1286,9 +1286,9 @@ def delete_ca_bundle(self, ca_bundle_id, **kwargs): "caBundleId": ca_bundle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1298,7 +1298,7 @@ def delete_ca_bundle(self, ca_bundle_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1374,7 +1374,7 @@ def get_association(self, association_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_association got unknown kwargs: {extra_kwargs!r}") @@ -1383,9 +1383,9 @@ def get_association(self, association_id, **kwargs): "associationId": association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1394,7 +1394,7 @@ def get_association(self, association_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1472,7 +1472,7 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ca_bundle got unknown kwargs: {extra_kwargs!r}") @@ -1481,9 +1481,9 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): "caBundleId": ca_bundle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1492,7 +1492,7 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1570,7 +1570,7 @@ def get_certificate(self, certificate_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1579,9 +1579,9 @@ def get_certificate(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1590,7 +1590,7 @@ def get_certificate(self, certificate_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1668,7 +1668,7 @@ def get_certificate_authority(self, certificate_authority_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate_authority got unknown kwargs: {extra_kwargs!r}") @@ -1677,9 +1677,9 @@ def get_certificate_authority(self, certificate_authority_id, **kwargs): "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1688,7 +1688,7 @@ def get_certificate_authority(self, certificate_authority_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1769,7 +1769,7 @@ def get_certificate_authority_version(self, certificate_authority_id, certificat "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate_authority_version got unknown kwargs: {extra_kwargs!r}") @@ -1779,9 +1779,9 @@ def get_certificate_authority_version(self, certificate_authority_id, certificat "certificateAuthorityVersionNumber": certificate_authority_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1790,7 +1790,7 @@ def get_certificate_authority_version(self, certificate_authority_id, certificat "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1871,7 +1871,7 @@ def get_certificate_version(self, certificate_id, certificate_version_number, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate_version got unknown kwargs: {extra_kwargs!r}") @@ -1881,9 +1881,9 @@ def get_certificate_version(self, certificate_id, certificate_version_number, ** "certificateVersionNumber": certificate_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1892,7 +1892,7 @@ def get_certificate_version(self, certificate_id, certificate_version_number, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2016,7 +2016,7 @@ def list_associations(self, **kwargs): "page", "association_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_associations got unknown kwargs: {extra_kwargs!r}") @@ -2054,14 +2054,14 @@ def list_associations(self, **kwargs): "page": kwargs.get("page", missing), "associationType": kwargs.get("association_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2177,7 +2177,7 @@ def list_ca_bundles(self, **kwargs): "page", "ca_bundle_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ca_bundles got unknown kwargs: {extra_kwargs!r}") @@ -2213,14 +2213,14 @@ def list_ca_bundles(self, **kwargs): "page": kwargs.get("page", missing), "caBundleId": kwargs.get("ca_bundle_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2341,7 +2341,7 @@ def list_certificate_authorities(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificate_authorities got unknown kwargs: {extra_kwargs!r}") @@ -2378,14 +2378,14 @@ def list_certificate_authorities(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2489,7 +2489,7 @@ def list_certificate_authority_versions(self, certificate_authority_id, **kwargs "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificate_authority_versions got unknown kwargs: {extra_kwargs!r}") @@ -2498,9 +2498,9 @@ def list_certificate_authority_versions(self, certificate_authority_id, **kwargs "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2525,14 +2525,14 @@ def list_certificate_authority_versions(self, certificate_authority_id, **kwargs "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2638,7 +2638,7 @@ def list_certificate_versions(self, certificate_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificate_versions got unknown kwargs: {extra_kwargs!r}") @@ -2647,9 +2647,9 @@ def list_certificate_versions(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2674,14 +2674,14 @@ def list_certificate_versions(self, certificate_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2804,7 +2804,7 @@ def list_certificates(self, **kwargs): "issuer_certificate_authority_id", "certificate_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificates got unknown kwargs: {extra_kwargs!r}") @@ -2841,14 +2841,14 @@ def list_certificates(self, **kwargs): "issuerCertificateAuthorityId": kwargs.get("issuer_certificate_authority_id", missing), "certificateId": kwargs.get("certificate_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2949,7 +2949,7 @@ def revoke_certificate_authority_version(self, certificate_authority_id, certifi "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"revoke_certificate_authority_version got unknown kwargs: {extra_kwargs!r}") @@ -2959,9 +2959,9 @@ def revoke_certificate_authority_version(self, certificate_authority_id, certifi "certificateAuthorityVersionNumber": certificate_authority_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2972,7 +2972,7 @@ def revoke_certificate_authority_version(self, certificate_authority_id, certifi "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3074,7 +3074,7 @@ def revoke_certificate_version(self, certificate_id, certificate_version_number, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"revoke_certificate_version got unknown kwargs: {extra_kwargs!r}") @@ -3084,9 +3084,9 @@ def revoke_certificate_version(self, certificate_id, certificate_version_number, "certificateVersionNumber": certificate_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3097,7 +3097,7 @@ def revoke_certificate_version(self, certificate_id, certificate_version_number, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3187,7 +3187,7 @@ def schedule_certificate_authority_deletion(self, certificate_authority_id, sche "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_certificate_authority_deletion got unknown kwargs: {extra_kwargs!r}") @@ -3196,9 +3196,9 @@ def schedule_certificate_authority_deletion(self, certificate_authority_id, sche "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3208,7 +3208,7 @@ def schedule_certificate_authority_deletion(self, certificate_authority_id, sche "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3302,7 +3302,7 @@ def schedule_certificate_authority_version_deletion(self, certificate_authority_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_certificate_authority_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -3312,9 +3312,9 @@ def schedule_certificate_authority_version_deletion(self, certificate_authority_ "certificateAuthorityVersionNumber": certificate_authority_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3324,7 +3324,7 @@ def schedule_certificate_authority_version_deletion(self, certificate_authority_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3418,7 +3418,7 @@ def schedule_certificate_deletion(self, certificate_id, schedule_certificate_del "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_certificate_deletion got unknown kwargs: {extra_kwargs!r}") @@ -3427,9 +3427,9 @@ def schedule_certificate_deletion(self, certificate_id, schedule_certificate_del "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3439,7 +3439,7 @@ def schedule_certificate_deletion(self, certificate_id, schedule_certificate_del "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3534,7 +3534,7 @@ def schedule_certificate_version_deletion(self, certificate_id, certificate_vers "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_certificate_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -3544,9 +3544,9 @@ def schedule_certificate_version_deletion(self, certificate_id, certificate_vers "certificateVersionNumber": certificate_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3556,7 +3556,7 @@ def schedule_certificate_version_deletion(self, certificate_id, certificate_vers "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3645,7 +3645,7 @@ def update_ca_bundle(self, ca_bundle_id, update_ca_bundle_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ca_bundle got unknown kwargs: {extra_kwargs!r}") @@ -3654,9 +3654,9 @@ def update_ca_bundle(self, ca_bundle_id, update_ca_bundle_details, **kwargs): "caBundleId": ca_bundle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3666,7 +3666,7 @@ def update_ca_bundle(self, ca_bundle_id, update_ca_bundle_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3757,7 +3757,7 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_certificate got unknown kwargs: {extra_kwargs!r}") @@ -3766,9 +3766,9 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3778,7 +3778,7 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3869,7 +3869,7 @@ def update_certificate_authority(self, certificate_authority_id, update_certific "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_certificate_authority got unknown kwargs: {extra_kwargs!r}") @@ -3878,9 +3878,9 @@ def update_certificate_authority(self, certificate_authority_id, update_certific "certificateAuthorityId": certificate_authority_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3890,7 +3890,7 @@ def update_certificate_authority(self, certificate_authority_id, update_certific "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cims/incident_client.py b/src/oci/cims/incident_client.py index 4311ab47a..63405aa5b 100644 --- a/src/oci/cims/incident_client.py +++ b/src/oci/cims/incident_client.py @@ -194,7 +194,7 @@ def create_incident(self, create_incident_details, **kwargs): "idtoken", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_incident got unknown kwargs: {extra_kwargs!r}") @@ -210,7 +210,7 @@ def create_incident(self, create_incident_details, **kwargs): "idtoken": kwargs.get("idtoken", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -327,7 +327,7 @@ def get_incident(self, incident_key, compartment_id, **kwargs): "idtoken", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_incident got unknown kwargs: {extra_kwargs!r}") @@ -336,16 +336,16 @@ def get_incident(self, incident_key, compartment_id, **kwargs): "incidentKey": incident_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -360,7 +360,7 @@ def get_incident(self, incident_key, compartment_id, **kwargs): "idtoken": kwargs.get("idtoken", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -498,7 +498,7 @@ def list_incident_resource_types(self, problem_type, compartment_id, **kwargs): "homeregion", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_incident_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -526,7 +526,7 @@ def list_incident_resource_types(self, problem_type, compartment_id, **kwargs): "compartmentId": compartment_id, "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -537,7 +537,7 @@ def list_incident_resource_types(self, problem_type, compartment_id, **kwargs): "homeregion": kwargs.get("homeregion", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -681,7 +681,7 @@ def list_incidents(self, compartment_id, **kwargs): "idtoken", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_incidents got unknown kwargs: {extra_kwargs!r}") @@ -716,7 +716,7 @@ def list_incidents(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "problemType": kwargs.get("problem_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -730,7 +730,7 @@ def list_incidents(self, compartment_id, **kwargs): "idtoken": kwargs.get("idtoken", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -866,7 +866,7 @@ def put_attachment(self, put_attachment_details, incident_key, attachment_name, "idtoken", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_attachment got unknown kwargs: {extra_kwargs!r}") @@ -875,9 +875,9 @@ def put_attachment(self, put_attachment_details, incident_key, attachment_name, "incidentKey": incident_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -886,7 +886,7 @@ def put_attachment(self, put_attachment_details, incident_key, attachment_name, "compartmentId": compartment_id, "isRestrictedFlag": is_restricted_flag } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -901,7 +901,7 @@ def put_attachment(self, put_attachment_details, incident_key, attachment_name, "idtoken": kwargs.get("idtoken", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1046,7 +1046,7 @@ def update_incident(self, incident_key, update_incident_details, compartment_id, "idtoken", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_incident got unknown kwargs: {extra_kwargs!r}") @@ -1055,16 +1055,16 @@ def update_incident(self, incident_key, update_incident_details, compartment_id, "incidentKey": incident_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1079,7 +1079,7 @@ def update_incident(self, incident_key, update_incident_details, compartment_id, "idtoken": kwargs.get("idtoken", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1196,7 +1196,7 @@ def validate_user(self, **kwargs): "idtoken", "domainid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_user got unknown kwargs: {extra_kwargs!r}") @@ -1211,7 +1211,7 @@ def validate_user(self, **kwargs): query_params = { "problemType": kwargs.get("problem_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1225,7 +1225,7 @@ def validate_user(self, **kwargs): "idtoken": kwargs.get("idtoken", missing), "domainid": kwargs.get("domainid", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cloud_bridge/common_client.py b/src/oci/cloud_bridge/common_client.py index 108e83ae6..ebf42133c 100644 --- a/src/oci/cloud_bridge/common_client.py +++ b/src/oci/cloud_bridge/common_client.py @@ -168,7 +168,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -265,7 +265,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -274,9 +274,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -285,7 +285,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -383,7 +383,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -392,9 +392,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -418,14 +418,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -525,7 +525,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -534,9 +534,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -560,14 +560,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -681,7 +681,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -717,14 +717,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cloud_bridge/discovery_client.py b/src/oci/cloud_bridge/discovery_client.py index 32bb84991..03a6cc1f9 100644 --- a/src/oci/cloud_bridge/discovery_client.py +++ b/src/oci/cloud_bridge/discovery_client.py @@ -181,7 +181,7 @@ def change_asset_source_compartment(self, asset_source_id, change_asset_source_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_asset_source_compartment got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def change_asset_source_compartment(self, asset_source_id, change_asset_source_c "assetSourceId": asset_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def change_asset_source_compartment(self, asset_source_id, change_asset_source_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def change_discovery_schedule_compartment(self, discovery_schedule_id, change_di "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_discovery_schedule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -312,9 +312,9 @@ def change_discovery_schedule_compartment(self, discovery_schedule_id, change_di "discoveryScheduleId": discovery_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def change_discovery_schedule_compartment(self, discovery_schedule_id, change_di "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -412,7 +412,7 @@ def create_asset_source(self, create_asset_source_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_asset_source got unknown kwargs: {extra_kwargs!r}") @@ -423,7 +423,7 @@ def create_asset_source(self, create_asset_source_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def create_discovery_schedule(self, create_discovery_schedule_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_discovery_schedule got unknown kwargs: {extra_kwargs!r}") @@ -521,7 +521,7 @@ def create_discovery_schedule(self, create_discovery_schedule_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -610,7 +610,7 @@ def delete_asset_source(self, asset_source_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_asset_source got unknown kwargs: {extra_kwargs!r}") @@ -619,9 +619,9 @@ def delete_asset_source(self, asset_source_id, **kwargs): "assetSourceId": asset_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -631,7 +631,7 @@ def delete_asset_source(self, asset_source_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -717,7 +717,7 @@ def delete_discovery_schedule(self, discovery_schedule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_discovery_schedule got unknown kwargs: {extra_kwargs!r}") @@ -726,9 +726,9 @@ def delete_discovery_schedule(self, discovery_schedule_id, **kwargs): "discoveryScheduleId": discovery_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -738,7 +738,7 @@ def delete_discovery_schedule(self, discovery_schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -816,7 +816,7 @@ def get_asset_source(self, asset_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_asset_source got unknown kwargs: {extra_kwargs!r}") @@ -825,9 +825,9 @@ def get_asset_source(self, asset_source_id, **kwargs): "assetSourceId": asset_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -836,7 +836,7 @@ def get_asset_source(self, asset_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -916,7 +916,7 @@ def get_discovery_schedule(self, discovery_schedule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_discovery_schedule got unknown kwargs: {extra_kwargs!r}") @@ -925,9 +925,9 @@ def get_discovery_schedule(self, discovery_schedule_id, **kwargs): "discoveryScheduleId": discovery_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -936,7 +936,7 @@ def get_discovery_schedule(self, discovery_schedule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1024,7 +1024,7 @@ def list_asset_source_connections(self, asset_source_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_asset_source_connections got unknown kwargs: {extra_kwargs!r}") @@ -1033,9 +1033,9 @@ def list_asset_source_connections(self, asset_source_id, **kwargs): "assetSourceId": asset_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1043,14 +1043,14 @@ def list_asset_source_connections(self, asset_source_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1166,7 +1166,7 @@ def list_asset_sources(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_asset_sources got unknown kwargs: {extra_kwargs!r}") @@ -1202,14 +1202,14 @@ def list_asset_sources(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1323,7 +1323,7 @@ def list_discovery_schedules(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_discovery_schedules got unknown kwargs: {extra_kwargs!r}") @@ -1359,14 +1359,14 @@ def list_discovery_schedules(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1471,7 +1471,7 @@ def list_supported_cloud_regions(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_cloud_regions got unknown kwargs: {extra_kwargs!r}") @@ -1505,14 +1505,14 @@ def list_supported_cloud_regions(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1600,7 +1600,7 @@ def refresh_asset_source(self, asset_source_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_asset_source got unknown kwargs: {extra_kwargs!r}") @@ -1609,9 +1609,9 @@ def refresh_asset_source(self, asset_source_id, **kwargs): "assetSourceId": asset_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1621,7 +1621,7 @@ def refresh_asset_source(self, asset_source_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1711,7 +1711,7 @@ def update_asset_source(self, asset_source_id, update_asset_source_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_asset_source got unknown kwargs: {extra_kwargs!r}") @@ -1720,9 +1720,9 @@ def update_asset_source(self, asset_source_id, update_asset_source_details, **kw "assetSourceId": asset_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1732,7 +1732,7 @@ def update_asset_source(self, asset_source_id, update_asset_source_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1823,7 +1823,7 @@ def update_discovery_schedule(self, update_discovery_schedule_details, discovery "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_discovery_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1832,9 +1832,9 @@ def update_discovery_schedule(self, update_discovery_schedule_details, discovery "discoveryScheduleId": discovery_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1844,7 +1844,7 @@ def update_discovery_schedule(self, update_discovery_schedule_details, discovery "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cloud_bridge/inventory_client.py b/src/oci/cloud_bridge/inventory_client.py index fcf46b172..4f18402b6 100644 --- a/src/oci/cloud_bridge/inventory_client.py +++ b/src/oci/cloud_bridge/inventory_client.py @@ -206,7 +206,7 @@ def analyze_assets(self, compartment_id, aggregation_properties, **kwargs): "group_by", "inventory_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"analyze_assets got unknown kwargs: {extra_kwargs!r}") @@ -245,14 +245,14 @@ def analyze_assets(self, compartment_id, aggregation_properties, **kwargs): "groupBy": self.base_client.generate_collection_format_param(kwargs.get("group_by", missing), 'multi'), "inventoryId": kwargs.get("inventory_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -349,7 +349,7 @@ def change_asset_compartment(self, asset_id, change_asset_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_asset_compartment got unknown kwargs: {extra_kwargs!r}") @@ -358,9 +358,9 @@ def change_asset_compartment(self, asset_id, change_asset_compartment_details, * "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -371,7 +371,7 @@ def change_asset_compartment(self, asset_id, change_asset_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -469,7 +469,7 @@ def change_asset_tags(self, asset_id, change_asset_tags_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_asset_tags got unknown kwargs: {extra_kwargs!r}") @@ -478,9 +478,9 @@ def change_asset_tags(self, asset_id, change_asset_tags_details, **kwargs): "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -491,7 +491,7 @@ def change_asset_tags(self, asset_id, change_asset_tags_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -580,7 +580,7 @@ def create_asset(self, create_asset_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_asset got unknown kwargs: {extra_kwargs!r}") @@ -591,7 +591,7 @@ def create_asset(self, create_asset_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -678,7 +678,7 @@ def create_inventory(self, create_inventory_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_inventory got unknown kwargs: {extra_kwargs!r}") @@ -689,7 +689,7 @@ def create_inventory(self, create_inventory_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -774,7 +774,7 @@ def delete_asset(self, asset_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_asset got unknown kwargs: {extra_kwargs!r}") @@ -783,9 +783,9 @@ def delete_asset(self, asset_id, **kwargs): "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -795,7 +795,7 @@ def delete_asset(self, asset_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -879,7 +879,7 @@ def delete_inventory(self, inventory_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_inventory got unknown kwargs: {extra_kwargs!r}") @@ -888,9 +888,9 @@ def delete_inventory(self, inventory_id, **kwargs): "inventoryId": inventory_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -900,7 +900,7 @@ def delete_inventory(self, inventory_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -976,7 +976,7 @@ def get_asset(self, asset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_asset got unknown kwargs: {extra_kwargs!r}") @@ -985,9 +985,9 @@ def get_asset(self, asset_id, **kwargs): "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -996,7 +996,7 @@ def get_asset(self, asset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1074,7 +1074,7 @@ def get_inventory(self, inventory_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_inventory got unknown kwargs: {extra_kwargs!r}") @@ -1083,9 +1083,9 @@ def get_inventory(self, inventory_id, **kwargs): "inventoryId": inventory_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1094,7 +1094,7 @@ def get_inventory(self, inventory_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1183,7 +1183,7 @@ def import_inventory(self, import_inventory_details, inventory_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_inventory got unknown kwargs: {extra_kwargs!r}") @@ -1192,9 +1192,9 @@ def import_inventory(self, import_inventory_details, inventory_id, **kwargs): "inventoryId": inventory_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1204,7 +1204,7 @@ def import_inventory(self, import_inventory_details, inventory_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1335,7 +1335,7 @@ def list_assets(self, compartment_id, **kwargs): "opc_request_id", "inventory_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_assets got unknown kwargs: {extra_kwargs!r}") @@ -1382,14 +1382,14 @@ def list_assets(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "inventoryId": kwargs.get("inventory_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1487,7 +1487,7 @@ def list_historical_metrics(self, asset_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_historical_metrics got unknown kwargs: {extra_kwargs!r}") @@ -1496,9 +1496,9 @@ def list_historical_metrics(self, asset_id, **kwargs): "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1522,14 +1522,14 @@ def list_historical_metrics(self, asset_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1635,7 +1635,7 @@ def list_inventories(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_inventories got unknown kwargs: {extra_kwargs!r}") @@ -1669,14 +1669,14 @@ def list_inventories(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1765,7 +1765,7 @@ def submit_historical_metrics(self, submit_historical_metrics_details, asset_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"submit_historical_metrics got unknown kwargs: {extra_kwargs!r}") @@ -1774,9 +1774,9 @@ def submit_historical_metrics(self, submit_historical_metrics_details, asset_id, "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1786,7 +1786,7 @@ def submit_historical_metrics(self, submit_historical_metrics_details, asset_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1877,7 +1877,7 @@ def update_asset(self, asset_id, update_asset_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_asset got unknown kwargs: {extra_kwargs!r}") @@ -1886,9 +1886,9 @@ def update_asset(self, asset_id, update_asset_details, **kwargs): "assetId": asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1898,7 +1898,7 @@ def update_asset(self, asset_id, update_asset_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1989,7 +1989,7 @@ def update_inventory(self, inventory_id, update_inventory_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_inventory got unknown kwargs: {extra_kwargs!r}") @@ -1998,9 +1998,9 @@ def update_inventory(self, inventory_id, update_inventory_details, **kwargs): "inventoryId": inventory_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2010,7 +2010,7 @@ def update_inventory(self, inventory_id, update_inventory_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cloud_bridge/ocb_agent_svc_client.py b/src/oci/cloud_bridge/ocb_agent_svc_client.py index 188b792d6..356082393 100644 --- a/src/oci/cloud_bridge/ocb_agent_svc_client.py +++ b/src/oci/cloud_bridge/ocb_agent_svc_client.py @@ -179,7 +179,7 @@ def add_agent_dependency(self, environment_id, add_agent_dependency_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_agent_dependency got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def add_agent_dependency(self, environment_id, add_agent_dependency_details, **k "environmentId": environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def add_agent_dependency(self, environment_id, add_agent_dependency_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_agent_compartment got unknown kwargs: {extra_kwargs!r}") @@ -310,9 +310,9 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -323,7 +323,7 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -421,7 +421,7 @@ def change_agent_dependency_compartment(self, agent_dependency_id, change_agent_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_agent_dependency_compartment got unknown kwargs: {extra_kwargs!r}") @@ -430,9 +430,9 @@ def change_agent_dependency_compartment(self, agent_dependency_id, change_agent_ "agentDependencyId": agent_dependency_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -443,7 +443,7 @@ def change_agent_dependency_compartment(self, agent_dependency_id, change_agent_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -541,7 +541,7 @@ def change_environment_compartment(self, environment_id, change_environment_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_environment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -550,9 +550,9 @@ def change_environment_compartment(self, environment_id, change_environment_comp "environmentId": environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -563,7 +563,7 @@ def change_environment_compartment(self, environment_id, change_environment_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -650,7 +650,7 @@ def create_agent(self, create_agent_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_agent got unknown kwargs: {extra_kwargs!r}") @@ -661,7 +661,7 @@ def create_agent(self, create_agent_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -748,7 +748,7 @@ def create_agent_dependency(self, create_agent_dependency_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_agent_dependency got unknown kwargs: {extra_kwargs!r}") @@ -759,7 +759,7 @@ def create_agent_dependency(self, create_agent_dependency_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -846,7 +846,7 @@ def create_environment(self, create_environment_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_environment got unknown kwargs: {extra_kwargs!r}") @@ -857,7 +857,7 @@ def create_environment(self, create_environment_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -952,7 +952,7 @@ def delete_agent(self, agent_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_agent got unknown kwargs: {extra_kwargs!r}") @@ -961,9 +961,9 @@ def delete_agent(self, agent_id, **kwargs): "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -974,7 +974,7 @@ def delete_agent(self, agent_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1059,7 +1059,7 @@ def delete_agent_dependency(self, agent_dependency_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_agent_dependency got unknown kwargs: {extra_kwargs!r}") @@ -1068,9 +1068,9 @@ def delete_agent_dependency(self, agent_dependency_id, **kwargs): "agentDependencyId": agent_dependency_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1080,7 +1080,7 @@ def delete_agent_dependency(self, agent_dependency_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1164,7 +1164,7 @@ def delete_environment(self, environment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_environment got unknown kwargs: {extra_kwargs!r}") @@ -1173,9 +1173,9 @@ def delete_environment(self, environment_id, **kwargs): "environmentId": environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1185,7 +1185,7 @@ def delete_environment(self, environment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1261,7 +1261,7 @@ def get_agent(self, agent_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_agent got unknown kwargs: {extra_kwargs!r}") @@ -1270,9 +1270,9 @@ def get_agent(self, agent_id, **kwargs): "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1281,7 +1281,7 @@ def get_agent(self, agent_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1359,7 +1359,7 @@ def get_agent_dependency(self, agent_dependency_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_agent_dependency got unknown kwargs: {extra_kwargs!r}") @@ -1368,9 +1368,9 @@ def get_agent_dependency(self, agent_dependency_id, **kwargs): "agentDependencyId": agent_dependency_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1379,7 +1379,7 @@ def get_agent_dependency(self, agent_dependency_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1457,7 +1457,7 @@ def get_environment(self, environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_environment got unknown kwargs: {extra_kwargs!r}") @@ -1466,9 +1466,9 @@ def get_environment(self, environment_id, **kwargs): "environmentId": environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1477,7 +1477,7 @@ def get_environment(self, environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1558,7 +1558,7 @@ def get_plugin(self, agent_id, plugin_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_plugin got unknown kwargs: {extra_kwargs!r}") @@ -1568,9 +1568,9 @@ def get_plugin(self, agent_id, plugin_name, **kwargs): "pluginName": plugin_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1579,7 +1579,7 @@ def get_plugin(self, agent_id, plugin_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1695,7 +1695,7 @@ def list_agent_dependencies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agent_dependencies got unknown kwargs: {extra_kwargs!r}") @@ -1732,14 +1732,14 @@ def list_agent_dependencies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1855,7 +1855,7 @@ def list_agents(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agents got unknown kwargs: {extra_kwargs!r}") @@ -1892,14 +1892,14 @@ def list_agents(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2001,7 +2001,7 @@ def list_appliance_images(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_appliance_images got unknown kwargs: {extra_kwargs!r}") @@ -2028,14 +2028,14 @@ def list_appliance_images(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2147,7 +2147,7 @@ def list_environments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_environments got unknown kwargs: {extra_kwargs!r}") @@ -2183,14 +2183,14 @@ def list_environments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2287,7 +2287,7 @@ def remove_agent_dependency(self, environment_id, remove_agent_dependency_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_agent_dependency got unknown kwargs: {extra_kwargs!r}") @@ -2296,9 +2296,9 @@ def remove_agent_dependency(self, environment_id, remove_agent_dependency_detail "environmentId": environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2309,7 +2309,7 @@ def remove_agent_dependency(self, environment_id, remove_agent_dependency_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2409,7 +2409,7 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_agent got unknown kwargs: {extra_kwargs!r}") @@ -2418,9 +2418,9 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2431,7 +2431,7 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2531,7 +2531,7 @@ def update_agent_dependency(self, agent_dependency_id, update_agent_dependency_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_agent_dependency got unknown kwargs: {extra_kwargs!r}") @@ -2540,9 +2540,9 @@ def update_agent_dependency(self, agent_dependency_id, update_agent_dependency_d "agentDependencyId": agent_dependency_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2553,7 +2553,7 @@ def update_agent_dependency(self, agent_dependency_id, update_agent_dependency_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2651,7 +2651,7 @@ def update_environment(self, environment_id, update_environment_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_environment got unknown kwargs: {extra_kwargs!r}") @@ -2660,9 +2660,9 @@ def update_environment(self, environment_id, update_environment_details, **kwarg "environmentId": environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2673,7 +2673,7 @@ def update_environment(self, environment_id, update_environment_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2768,7 +2768,7 @@ def update_plugin(self, agent_id, plugin_name, update_plugin_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_plugin got unknown kwargs: {extra_kwargs!r}") @@ -2778,9 +2778,9 @@ def update_plugin(self, agent_id, plugin_name, update_plugin_details, **kwargs): "pluginName": plugin_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2790,7 +2790,7 @@ def update_plugin(self, agent_id, plugin_name, update_plugin_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cloud_guard/cloud_guard_client.py b/src/oci/cloud_guard/cloud_guard_client.py index 83d2c655d..ccce76b1a 100644 --- a/src/oci/cloud_guard/cloud_guard_client.py +++ b/src/oci/cloud_guard/cloud_guard_client.py @@ -185,7 +185,7 @@ def add_compartment(self, security_zone_id, add_compartment_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_compartment got unknown kwargs: {extra_kwargs!r}") @@ -194,9 +194,9 @@ def add_compartment(self, security_zone_id, add_compartment_details, **kwargs): "securityZoneId": security_zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -207,7 +207,7 @@ def add_compartment(self, security_zone_id, add_compartment_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -303,9 +303,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -315,7 +315,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def change_data_source_compartment(self, data_source_id, change_data_source_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_data_source_compartment got unknown kwargs: {extra_kwargs!r}") @@ -419,9 +419,9 @@ def change_data_source_compartment(self, data_source_id, change_data_source_comp "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -432,7 +432,7 @@ def change_data_source_compartment(self, data_source_id, change_data_source_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -531,7 +531,7 @@ def change_detector_recipe_compartment(self, detector_recipe_id, change_detector "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_detector_recipe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -540,9 +540,9 @@ def change_detector_recipe_compartment(self, detector_recipe_id, change_detector "detectorRecipeId": detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -553,7 +553,7 @@ def change_detector_recipe_compartment(self, detector_recipe_id, change_detector "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -649,7 +649,7 @@ def change_managed_list_compartment(self, managed_list_id, change_managed_list_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_managed_list_compartment got unknown kwargs: {extra_kwargs!r}") @@ -658,9 +658,9 @@ def change_managed_list_compartment(self, managed_list_id, change_managed_list_c "managedListId": managed_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -671,7 +671,7 @@ def change_managed_list_compartment(self, managed_list_id, change_managed_list_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -769,7 +769,7 @@ def change_responder_recipe_compartment(self, responder_recipe_id, change_respon "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_responder_recipe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -778,9 +778,9 @@ def change_responder_recipe_compartment(self, responder_recipe_id, change_respon "responderRecipeId": responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -791,7 +791,7 @@ def change_responder_recipe_compartment(self, responder_recipe_id, change_respon "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -887,7 +887,7 @@ def change_saved_query_compartment(self, saved_query_id, change_saved_query_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_saved_query_compartment got unknown kwargs: {extra_kwargs!r}") @@ -896,9 +896,9 @@ def change_saved_query_compartment(self, saved_query_id, change_saved_query_comp "savedQueryId": saved_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -909,7 +909,7 @@ def change_saved_query_compartment(self, saved_query_id, change_saved_query_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1007,7 +1007,7 @@ def change_security_recipe_compartment(self, security_recipe_id, change_security "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_recipe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1016,9 +1016,9 @@ def change_security_recipe_compartment(self, security_recipe_id, change_security "securityRecipeId": security_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1029,7 +1029,7 @@ def change_security_recipe_compartment(self, security_recipe_id, change_security "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1127,7 +1127,7 @@ def change_security_zone_compartment(self, security_zone_id, change_security_zon "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_zone_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1136,9 +1136,9 @@ def change_security_zone_compartment(self, security_zone_id, change_security_zon "securityZoneId": security_zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1149,7 +1149,7 @@ def change_security_zone_compartment(self, security_zone_id, change_security_zon "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1234,7 +1234,7 @@ def create_adhoc_query(self, create_adhoc_query_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_adhoc_query got unknown kwargs: {extra_kwargs!r}") @@ -1245,7 +1245,7 @@ def create_adhoc_query(self, create_adhoc_query_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1330,7 +1330,7 @@ def create_data_mask_rule(self, create_data_mask_rule_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_mask_rule got unknown kwargs: {extra_kwargs!r}") @@ -1341,7 +1341,7 @@ def create_data_mask_rule(self, create_data_mask_rule_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1427,7 +1427,7 @@ def create_data_source(self, create_data_source_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_source got unknown kwargs: {extra_kwargs!r}") @@ -1438,7 +1438,7 @@ def create_data_source(self, create_data_source_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1521,7 +1521,7 @@ def create_detector_recipe(self, create_detector_recipe_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1532,7 +1532,7 @@ def create_detector_recipe(self, create_detector_recipe_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1620,7 +1620,7 @@ def create_detector_recipe_detector_rule(self, detector_recipe_id, create_detect "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_detector_recipe_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -1629,9 +1629,9 @@ def create_detector_recipe_detector_rule(self, detector_recipe_id, create_detect "detectorRecipeId": detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1641,7 +1641,7 @@ def create_detector_recipe_detector_rule(self, detector_recipe_id, create_detect "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1728,7 +1728,7 @@ def create_managed_list(self, create_managed_list_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_managed_list got unknown kwargs: {extra_kwargs!r}") @@ -1739,7 +1739,7 @@ def create_managed_list(self, create_managed_list_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1825,7 +1825,7 @@ def create_responder_recipe(self, create_responder_recipe_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1836,7 +1836,7 @@ def create_responder_recipe(self, create_responder_recipe_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1921,7 +1921,7 @@ def create_saved_query(self, create_saved_query_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_saved_query got unknown kwargs: {extra_kwargs!r}") @@ -1932,7 +1932,7 @@ def create_saved_query(self, create_saved_query_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2018,7 +2018,7 @@ def create_security_recipe(self, create_security_recipe_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2029,7 +2029,7 @@ def create_security_recipe(self, create_security_recipe_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2115,7 +2115,7 @@ def create_security_zone(self, create_security_zone_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_zone got unknown kwargs: {extra_kwargs!r}") @@ -2126,7 +2126,7 @@ def create_security_zone(self, create_security_zone_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2211,7 +2211,7 @@ def create_target(self, create_target_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target got unknown kwargs: {extra_kwargs!r}") @@ -2222,7 +2222,7 @@ def create_target(self, create_target_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2312,7 +2312,7 @@ def create_target_detector_recipe(self, target_id, attach_target_detector_recipe "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2321,9 +2321,9 @@ def create_target_detector_recipe(self, target_id, attach_target_detector_recipe "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2333,7 +2333,7 @@ def create_target_detector_recipe(self, target_id, attach_target_detector_recipe "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2423,7 +2423,7 @@ def create_target_responder_recipe(self, target_id, attach_target_responder_reci "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2432,9 +2432,9 @@ def create_target_responder_recipe(self, target_id, attach_target_responder_reci "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2444,7 +2444,7 @@ def create_target_responder_recipe(self, target_id, attach_target_responder_reci "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2532,7 +2532,7 @@ def create_wlp_agent(self, create_wlp_agent_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_wlp_agent got unknown kwargs: {extra_kwargs!r}") @@ -2543,7 +2543,7 @@ def create_wlp_agent(self, create_wlp_agent_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2636,7 +2636,7 @@ def delete_adhoc_query(self, adhoc_query_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_adhoc_query got unknown kwargs: {extra_kwargs!r}") @@ -2645,9 +2645,9 @@ def delete_adhoc_query(self, adhoc_query_id, **kwargs): "adhocQueryId": adhoc_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2658,7 +2658,7 @@ def delete_adhoc_query(self, adhoc_query_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2741,7 +2741,7 @@ def delete_data_mask_rule(self, data_mask_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_mask_rule got unknown kwargs: {extra_kwargs!r}") @@ -2750,9 +2750,9 @@ def delete_data_mask_rule(self, data_mask_rule_id, **kwargs): "dataMaskRuleId": data_mask_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2762,7 +2762,7 @@ def delete_data_mask_rule(self, data_mask_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2852,7 +2852,7 @@ def delete_data_source(self, data_source_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_source got unknown kwargs: {extra_kwargs!r}") @@ -2861,9 +2861,9 @@ def delete_data_source(self, data_source_id, **kwargs): "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2874,7 +2874,7 @@ def delete_data_source(self, data_source_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2965,7 +2965,7 @@ def delete_detector_recipe(self, detector_recipe_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2974,9 +2974,9 @@ def delete_detector_recipe(self, detector_recipe_id, **kwargs): "detectorRecipeId": detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2987,7 +2987,7 @@ def delete_detector_recipe(self, detector_recipe_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3073,7 +3073,7 @@ def delete_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_detector_recipe_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -3083,9 +3083,9 @@ def delete_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule "detectorRuleId": detector_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3095,7 +3095,7 @@ def delete_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3183,7 +3183,7 @@ def delete_detector_recipe_detector_rule_data_source(self, detector_recipe_id, d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_detector_recipe_detector_rule_data_source got unknown kwargs: {extra_kwargs!r}") @@ -3194,9 +3194,9 @@ def delete_detector_recipe_detector_rule_data_source(self, detector_recipe_id, d "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3206,7 +3206,7 @@ def delete_detector_recipe_detector_rule_data_source(self, detector_recipe_id, d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3296,7 +3296,7 @@ def delete_managed_list(self, managed_list_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_managed_list got unknown kwargs: {extra_kwargs!r}") @@ -3305,9 +3305,9 @@ def delete_managed_list(self, managed_list_id, **kwargs): "managedListId": managed_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3318,7 +3318,7 @@ def delete_managed_list(self, managed_list_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3401,7 +3401,7 @@ def delete_responder_recipe(self, responder_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -3410,9 +3410,9 @@ def delete_responder_recipe(self, responder_recipe_id, **kwargs): "responderRecipeId": responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3422,7 +3422,7 @@ def delete_responder_recipe(self, responder_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3512,7 +3512,7 @@ def delete_saved_query(self, saved_query_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_saved_query got unknown kwargs: {extra_kwargs!r}") @@ -3521,9 +3521,9 @@ def delete_saved_query(self, saved_query_id, **kwargs): "savedQueryId": saved_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3534,7 +3534,7 @@ def delete_saved_query(self, saved_query_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3617,7 +3617,7 @@ def delete_security_recipe(self, security_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_recipe got unknown kwargs: {extra_kwargs!r}") @@ -3626,9 +3626,9 @@ def delete_security_recipe(self, security_recipe_id, **kwargs): "securityRecipeId": security_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3638,7 +3638,7 @@ def delete_security_recipe(self, security_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3720,7 +3720,7 @@ def delete_security_zone(self, security_zone_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_zone got unknown kwargs: {extra_kwargs!r}") @@ -3729,9 +3729,9 @@ def delete_security_zone(self, security_zone_id, **kwargs): "securityZoneId": security_zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3741,7 +3741,7 @@ def delete_security_zone(self, security_zone_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3823,7 +3823,7 @@ def delete_target(self, target_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target got unknown kwargs: {extra_kwargs!r}") @@ -3832,9 +3832,9 @@ def delete_target(self, target_id, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3844,7 +3844,7 @@ def delete_target(self, target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3930,7 +3930,7 @@ def delete_target_detector_recipe(self, target_id, target_detector_recipe_id, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -3940,9 +3940,9 @@ def delete_target_detector_recipe(self, target_id, target_detector_recipe_id, ** "targetDetectorRecipeId": target_detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3952,7 +3952,7 @@ def delete_target_detector_recipe(self, target_id, target_detector_recipe_id, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4039,7 +4039,7 @@ def delete_target_responder_recipe(self, target_id, target_responder_recipe_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -4049,9 +4049,9 @@ def delete_target_responder_recipe(self, target_id, target_responder_recipe_id, "targetResponderRecipeId": target_responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4061,7 +4061,7 @@ def delete_target_responder_recipe(self, target_id, target_responder_recipe_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4183,7 +4183,7 @@ def delete_wlp_agent(self, wlp_agent_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_wlp_agent got unknown kwargs: {extra_kwargs!r}") @@ -4192,9 +4192,9 @@ def delete_wlp_agent(self, wlp_agent_id, **kwargs): "wlpAgentId": wlp_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4205,7 +4205,7 @@ def delete_wlp_agent(self, wlp_agent_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4304,7 +4304,7 @@ def execute_responder_execution(self, responder_execution_id, compartment_id, ** "opc_retry_token", "execute_responder_execution_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"execute_responder_execution got unknown kwargs: {extra_kwargs!r}") @@ -4313,16 +4313,16 @@ def execute_responder_execution(self, responder_execution_id, compartment_id, ** "responderExecutionId": responder_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4331,7 +4331,7 @@ def execute_responder_execution(self, responder_execution_id, compartment_id, ** "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4410,7 +4410,7 @@ def get_adhoc_query(self, adhoc_query_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_adhoc_query got unknown kwargs: {extra_kwargs!r}") @@ -4419,9 +4419,9 @@ def get_adhoc_query(self, adhoc_query_id, **kwargs): "adhocQueryId": adhoc_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4430,7 +4430,7 @@ def get_adhoc_query(self, adhoc_query_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4506,7 +4506,7 @@ def get_adhoc_query_result_content(self, adhoc_query_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_adhoc_query_result_content got unknown kwargs: {extra_kwargs!r}") @@ -4515,9 +4515,9 @@ def get_adhoc_query_result_content(self, adhoc_query_id, **kwargs): "adhocQueryId": adhoc_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4526,7 +4526,7 @@ def get_adhoc_query_result_content(self, adhoc_query_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4612,7 +4612,7 @@ def get_condition_metadata_type(self, condition_metadata_type_id, **kwargs): "service_type", "resource_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_condition_metadata_type got unknown kwargs: {extra_kwargs!r}") @@ -4621,9 +4621,9 @@ def get_condition_metadata_type(self, condition_metadata_type_id, **kwargs): "conditionMetadataTypeId": condition_metadata_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4631,14 +4631,14 @@ def get_condition_metadata_type(self, condition_metadata_type_id, **kwargs): "serviceType": kwargs.get("service_type", missing), "resourceType": kwargs.get("resource_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4717,7 +4717,7 @@ def get_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4725,14 +4725,14 @@ def get_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4808,7 +4808,7 @@ def get_data_mask_rule(self, data_mask_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_mask_rule got unknown kwargs: {extra_kwargs!r}") @@ -4817,9 +4817,9 @@ def get_data_mask_rule(self, data_mask_rule_id, **kwargs): "dataMaskRuleId": data_mask_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4828,7 +4828,7 @@ def get_data_mask_rule(self, data_mask_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4904,7 +4904,7 @@ def get_data_source(self, data_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_source got unknown kwargs: {extra_kwargs!r}") @@ -4913,9 +4913,9 @@ def get_data_source(self, data_source_id, **kwargs): "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4924,7 +4924,7 @@ def get_data_source(self, data_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5000,7 +5000,7 @@ def get_detector(self, detector_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_detector got unknown kwargs: {extra_kwargs!r}") @@ -5009,9 +5009,9 @@ def get_detector(self, detector_id, **kwargs): "detectorId": detector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5020,7 +5020,7 @@ def get_detector(self, detector_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5096,7 +5096,7 @@ def get_detector_recipe(self, detector_recipe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -5105,9 +5105,9 @@ def get_detector_recipe(self, detector_recipe_id, **kwargs): "detectorRecipeId": detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5116,7 +5116,7 @@ def get_detector_recipe(self, detector_recipe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5195,7 +5195,7 @@ def get_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_detector_recipe_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -5205,9 +5205,9 @@ def get_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id "detectorRuleId": detector_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5216,7 +5216,7 @@ def get_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5295,7 +5295,7 @@ def get_detector_rule(self, detector_id, detector_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -5305,9 +5305,9 @@ def get_detector_rule(self, detector_id, detector_rule_id, **kwargs): "detectorRuleId": detector_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5316,7 +5316,7 @@ def get_detector_rule(self, detector_id, detector_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5392,7 +5392,7 @@ def get_managed_list(self, managed_list_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_list got unknown kwargs: {extra_kwargs!r}") @@ -5401,9 +5401,9 @@ def get_managed_list(self, managed_list_id, **kwargs): "managedListId": managed_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5412,7 +5412,7 @@ def get_managed_list(self, managed_list_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5488,7 +5488,7 @@ def get_problem(self, problem_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_problem got unknown kwargs: {extra_kwargs!r}") @@ -5497,9 +5497,9 @@ def get_problem(self, problem_id, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5508,7 +5508,7 @@ def get_problem(self, problem_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5584,7 +5584,7 @@ def get_resource(self, resource_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource got unknown kwargs: {extra_kwargs!r}") @@ -5593,9 +5593,9 @@ def get_resource(self, resource_id, **kwargs): "resourceId": resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5604,7 +5604,7 @@ def get_resource(self, resource_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5680,7 +5680,7 @@ def get_resource_profile(self, resource_profile_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_profile got unknown kwargs: {extra_kwargs!r}") @@ -5689,9 +5689,9 @@ def get_resource_profile(self, resource_profile_id, **kwargs): "resourceProfileId": resource_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5700,7 +5700,7 @@ def get_resource_profile(self, resource_profile_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5779,7 +5779,7 @@ def get_resource_vulnerability(self, resource_id, vulnerability_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_vulnerability got unknown kwargs: {extra_kwargs!r}") @@ -5789,9 +5789,9 @@ def get_resource_vulnerability(self, resource_id, vulnerability_key, **kwargs): "vulnerabilityKey": vulnerability_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5800,7 +5800,7 @@ def get_resource_vulnerability(self, resource_id, vulnerability_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5876,7 +5876,7 @@ def get_responder_execution(self, responder_execution_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_responder_execution got unknown kwargs: {extra_kwargs!r}") @@ -5885,9 +5885,9 @@ def get_responder_execution(self, responder_execution_id, **kwargs): "responderExecutionId": responder_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5896,7 +5896,7 @@ def get_responder_execution(self, responder_execution_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5972,7 +5972,7 @@ def get_responder_recipe(self, responder_recipe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -5981,9 +5981,9 @@ def get_responder_recipe(self, responder_recipe_id, **kwargs): "responderRecipeId": responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5992,7 +5992,7 @@ def get_responder_recipe(self, responder_recipe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6071,7 +6071,7 @@ def get_responder_recipe_responder_rule(self, responder_recipe_id, responder_rul "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_responder_recipe_responder_rule got unknown kwargs: {extra_kwargs!r}") @@ -6081,9 +6081,9 @@ def get_responder_recipe_responder_rule(self, responder_recipe_id, responder_rul "responderRuleId": responder_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6092,7 +6092,7 @@ def get_responder_recipe_responder_rule(self, responder_recipe_id, responder_rul "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6168,7 +6168,7 @@ def get_responder_rule(self, responder_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_responder_rule got unknown kwargs: {extra_kwargs!r}") @@ -6177,9 +6177,9 @@ def get_responder_rule(self, responder_rule_id, **kwargs): "responderRuleId": responder_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6188,7 +6188,7 @@ def get_responder_rule(self, responder_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6264,7 +6264,7 @@ def get_saved_query(self, saved_query_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_saved_query got unknown kwargs: {extra_kwargs!r}") @@ -6273,9 +6273,9 @@ def get_saved_query(self, saved_query_id, **kwargs): "savedQueryId": saved_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6284,7 +6284,7 @@ def get_saved_query(self, saved_query_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6362,7 +6362,7 @@ def get_security_policy(self, security_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_policy got unknown kwargs: {extra_kwargs!r}") @@ -6371,9 +6371,9 @@ def get_security_policy(self, security_policy_id, **kwargs): "securityPolicyId": security_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6382,7 +6382,7 @@ def get_security_policy(self, security_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6458,7 +6458,7 @@ def get_security_recipe(self, security_recipe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_recipe got unknown kwargs: {extra_kwargs!r}") @@ -6467,9 +6467,9 @@ def get_security_recipe(self, security_recipe_id, **kwargs): "securityRecipeId": security_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6478,7 +6478,7 @@ def get_security_recipe(self, security_recipe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6554,7 +6554,7 @@ def get_security_zone(self, security_zone_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_zone got unknown kwargs: {extra_kwargs!r}") @@ -6563,9 +6563,9 @@ def get_security_zone(self, security_zone_id, **kwargs): "securityZoneId": security_zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6574,7 +6574,7 @@ def get_security_zone(self, security_zone_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6650,7 +6650,7 @@ def get_sighting(self, sighting_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sighting got unknown kwargs: {extra_kwargs!r}") @@ -6659,9 +6659,9 @@ def get_sighting(self, sighting_id, **kwargs): "sightingId": sighting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6670,7 +6670,7 @@ def get_sighting(self, sighting_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6746,7 +6746,7 @@ def get_target(self, target_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target got unknown kwargs: {extra_kwargs!r}") @@ -6755,9 +6755,9 @@ def get_target(self, target_id, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6766,7 +6766,7 @@ def get_target(self, target_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6845,7 +6845,7 @@ def get_target_detector_recipe(self, target_id, target_detector_recipe_id, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -6855,9 +6855,9 @@ def get_target_detector_recipe(self, target_id, target_detector_recipe_id, **kwa "targetDetectorRecipeId": target_detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6866,7 +6866,7 @@ def get_target_detector_recipe(self, target_id, target_detector_recipe_id, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6948,7 +6948,7 @@ def get_target_detector_recipe_detector_rule(self, target_id, target_detector_re "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_detector_recipe_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -6959,9 +6959,9 @@ def get_target_detector_recipe_detector_rule(self, target_id, target_detector_re "detectorRuleId": detector_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6970,7 +6970,7 @@ def get_target_detector_recipe_detector_rule(self, target_id, target_detector_re "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7050,7 +7050,7 @@ def get_target_responder_recipe(self, target_id, target_responder_recipe_id, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -7060,9 +7060,9 @@ def get_target_responder_recipe(self, target_id, target_responder_recipe_id, **k "targetResponderRecipeId": target_responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7071,7 +7071,7 @@ def get_target_responder_recipe(self, target_id, target_responder_recipe_id, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7156,7 +7156,7 @@ def get_target_responder_recipe_responder_rule(self, target_id, target_responder "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_responder_recipe_responder_rule got unknown kwargs: {extra_kwargs!r}") @@ -7167,9 +7167,9 @@ def get_target_responder_recipe_responder_rule(self, target_id, target_responder "responderRuleId": responder_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7178,7 +7178,7 @@ def get_target_responder_recipe_responder_rule(self, target_id, target_responder "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7254,7 +7254,7 @@ def get_wlp_agent(self, wlp_agent_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wlp_agent got unknown kwargs: {extra_kwargs!r}") @@ -7263,9 +7263,9 @@ def get_wlp_agent(self, wlp_agent_id, **kwargs): "wlpAgentId": wlp_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7274,7 +7274,7 @@ def get_wlp_agent(self, wlp_agent_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7350,7 +7350,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -7359,9 +7359,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7370,7 +7370,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7513,7 +7513,7 @@ def list_adhoc_queries(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_adhoc_queries got unknown kwargs: {extra_kwargs!r}") @@ -7558,14 +7558,14 @@ def list_adhoc_queries(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7664,7 +7664,7 @@ def list_adhoc_query_results(self, adhoc_query_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_adhoc_query_results got unknown kwargs: {extra_kwargs!r}") @@ -7673,9 +7673,9 @@ def list_adhoc_query_results(self, adhoc_query_id, compartment_id, **kwargs): "adhocQueryId": adhoc_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7700,14 +7700,14 @@ def list_adhoc_query_results(self, adhoc_query_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7811,7 +7811,7 @@ def list_condition_metadata_types(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_condition_metadata_types got unknown kwargs: {extra_kwargs!r}") @@ -7845,14 +7845,14 @@ def list_condition_metadata_types(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7986,7 +7986,7 @@ def list_data_mask_rules(self, compartment_id, **kwargs): "iam_group_id", "target_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_mask_rules got unknown kwargs: {extra_kwargs!r}") @@ -8040,14 +8040,14 @@ def list_data_mask_rules(self, compartment_id, **kwargs): "iamGroupId": kwargs.get("iam_group_id", missing), "targetType": kwargs.get("target_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8149,7 +8149,7 @@ def list_data_source_events(self, data_source_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_source_events got unknown kwargs: {extra_kwargs!r}") @@ -8158,9 +8158,9 @@ def list_data_source_events(self, data_source_id, **kwargs): "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8185,14 +8185,14 @@ def list_data_source_events(self, data_source_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8345,7 +8345,7 @@ def list_data_sources(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_sources got unknown kwargs: {extra_kwargs!r}") @@ -8405,14 +8405,14 @@ def list_data_sources(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8521,7 +8521,7 @@ def list_detector_recipe_detector_rules(self, detector_recipe_id, compartment_id "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_detector_recipe_detector_rules got unknown kwargs: {extra_kwargs!r}") @@ -8530,9 +8530,9 @@ def list_detector_recipe_detector_rules(self, detector_recipe_id, compartment_id "detectorRecipeId": detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8566,14 +8566,14 @@ def list_detector_recipe_detector_rules(self, detector_recipe_id, compartment_id "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8718,7 +8718,7 @@ def list_detector_recipes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_detector_recipes got unknown kwargs: {extra_kwargs!r}") @@ -8763,14 +8763,14 @@ def list_detector_recipes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8879,7 +8879,7 @@ def list_detector_rules(self, detector_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_detector_rules got unknown kwargs: {extra_kwargs!r}") @@ -8888,9 +8888,9 @@ def list_detector_rules(self, detector_id, compartment_id, **kwargs): "detectorId": detector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8924,14 +8924,14 @@ def list_detector_rules(self, detector_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9035,7 +9035,7 @@ def list_detectors(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_detectors got unknown kwargs: {extra_kwargs!r}") @@ -9069,14 +9069,14 @@ def list_detectors(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9172,7 +9172,7 @@ def list_impacted_resources(self, problem_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_impacted_resources got unknown kwargs: {extra_kwargs!r}") @@ -9181,9 +9181,9 @@ def list_impacted_resources(self, problem_id, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9207,14 +9207,14 @@ def list_impacted_resources(self, problem_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9318,7 +9318,7 @@ def list_managed_list_types(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_list_types got unknown kwargs: {extra_kwargs!r}") @@ -9352,14 +9352,14 @@ def list_managed_list_types(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9507,7 +9507,7 @@ def list_managed_lists(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_lists got unknown kwargs: {extra_kwargs!r}") @@ -9560,14 +9560,14 @@ def list_managed_lists(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9663,7 +9663,7 @@ def list_policies(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_policies got unknown kwargs: {extra_kwargs!r}") @@ -9689,14 +9689,14 @@ def list_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9792,7 +9792,7 @@ def list_problem_endpoints(self, problem_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_problem_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -9801,9 +9801,9 @@ def list_problem_endpoints(self, problem_id, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9827,14 +9827,14 @@ def list_problem_endpoints(self, problem_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9932,7 +9932,7 @@ def list_problem_entities(self, problem_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_problem_entities got unknown kwargs: {extra_kwargs!r}") @@ -9941,9 +9941,9 @@ def list_problem_entities(self, problem_id, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9967,14 +9967,14 @@ def list_problem_entities(self, problem_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10075,7 +10075,7 @@ def list_problem_histories(self, compartment_id, problem_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_problem_histories got unknown kwargs: {extra_kwargs!r}") @@ -10084,9 +10084,9 @@ def list_problem_histories(self, compartment_id, problem_id, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10111,14 +10111,14 @@ def list_problem_histories(self, compartment_id, problem_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10327,7 +10327,7 @@ def list_problems(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_problems got unknown kwargs: {extra_kwargs!r}") @@ -10408,14 +10408,14 @@ def list_problems(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10545,7 +10545,7 @@ def list_recommendations(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -10597,14 +10597,14 @@ def list_recommendations(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10704,7 +10704,7 @@ def list_resource_ports(self, resource_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_ports got unknown kwargs: {extra_kwargs!r}") @@ -10713,9 +10713,9 @@ def list_resource_ports(self, resource_id, **kwargs): "resourceId": resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10740,14 +10740,14 @@ def list_resource_ports(self, resource_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10846,7 +10846,7 @@ def list_resource_profile_endpoints(self, resource_profile_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_profile_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -10855,9 +10855,9 @@ def list_resource_profile_endpoints(self, resource_profile_id, **kwargs): "resourceProfileId": resource_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10881,14 +10881,14 @@ def list_resource_profile_endpoints(self, resource_profile_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10988,7 +10988,7 @@ def list_resource_profile_impacted_resources(self, resource_profile_id, **kwargs "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_profile_impacted_resources got unknown kwargs: {extra_kwargs!r}") @@ -10997,9 +10997,9 @@ def list_resource_profile_impacted_resources(self, resource_profile_id, **kwargs "resourceProfileId": resource_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11023,14 +11023,14 @@ def list_resource_profile_impacted_resources(self, resource_profile_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11194,7 +11194,7 @@ def list_resource_profiles(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_profiles got unknown kwargs: {extra_kwargs!r}") @@ -11238,14 +11238,14 @@ def list_resource_profiles(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11354,7 +11354,7 @@ def list_resource_types(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -11396,14 +11396,14 @@ def list_resource_types(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11507,7 +11507,7 @@ def list_resource_vulnerabilities(self, resource_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_vulnerabilities got unknown kwargs: {extra_kwargs!r}") @@ -11516,9 +11516,9 @@ def list_resource_vulnerabilities(self, resource_id, **kwargs): "resourceId": resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11544,14 +11544,14 @@ def list_resource_vulnerabilities(self, resource_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11726,7 +11726,7 @@ def list_resources(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resources got unknown kwargs: {extra_kwargs!r}") @@ -11779,14 +11779,14 @@ def list_resources(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11883,7 +11883,7 @@ def list_responder_activities(self, problem_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_responder_activities got unknown kwargs: {extra_kwargs!r}") @@ -11892,9 +11892,9 @@ def list_responder_activities(self, problem_id, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11918,14 +11918,14 @@ def list_responder_activities(self, problem_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12087,7 +12087,7 @@ def list_responder_executions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_responder_executions got unknown kwargs: {extra_kwargs!r}") @@ -12153,14 +12153,14 @@ def list_responder_executions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12271,7 +12271,7 @@ def list_responder_recipe_responder_rules(self, responder_recipe_id, compartment "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_responder_recipe_responder_rules got unknown kwargs: {extra_kwargs!r}") @@ -12280,9 +12280,9 @@ def list_responder_recipe_responder_rules(self, responder_recipe_id, compartment "responderRecipeId": responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12316,14 +12316,14 @@ def list_responder_recipe_responder_rules(self, responder_recipe_id, compartment "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12468,7 +12468,7 @@ def list_responder_recipes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_responder_recipes got unknown kwargs: {extra_kwargs!r}") @@ -12513,14 +12513,14 @@ def list_responder_recipes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12628,7 +12628,7 @@ def list_responder_rules(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_responder_rules got unknown kwargs: {extra_kwargs!r}") @@ -12663,14 +12663,14 @@ def list_responder_rules(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12787,7 +12787,7 @@ def list_saved_queries(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_saved_queries got unknown kwargs: {extra_kwargs!r}") @@ -12823,14 +12823,14 @@ def list_saved_queries(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12941,7 +12941,7 @@ def list_security_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_policies got unknown kwargs: {extra_kwargs!r}") @@ -12977,14 +12977,14 @@ def list_security_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13095,7 +13095,7 @@ def list_security_recipes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_recipes got unknown kwargs: {extra_kwargs!r}") @@ -13131,14 +13131,14 @@ def list_security_recipes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13257,7 +13257,7 @@ def list_security_zones(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_zones got unknown kwargs: {extra_kwargs!r}") @@ -13295,14 +13295,14 @@ def list_security_zones(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13400,7 +13400,7 @@ def list_sighting_endpoints(self, sighting_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sighting_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -13409,9 +13409,9 @@ def list_sighting_endpoints(self, sighting_id, **kwargs): "sightingId": sighting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13435,14 +13435,14 @@ def list_sighting_endpoints(self, sighting_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13541,7 +13541,7 @@ def list_sighting_impacted_resources(self, sighting_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sighting_impacted_resources got unknown kwargs: {extra_kwargs!r}") @@ -13550,9 +13550,9 @@ def list_sighting_impacted_resources(self, sighting_id, **kwargs): "sightingId": sighting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13576,14 +13576,14 @@ def list_sighting_impacted_resources(self, sighting_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13726,7 +13726,7 @@ def list_sightings(self, compartment_id, **kwargs): "time_last_detected_less_than_or_equal_to", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sightings got unknown kwargs: {extra_kwargs!r}") @@ -13765,14 +13765,14 @@ def list_sightings(self, compartment_id, **kwargs): "timeLastDetectedGreaterThanOrEqualTo": kwargs.get("time_last_detected_greater_than_or_equal_to", missing), "timeLastDetectedLessThanOrEqualTo": kwargs.get("time_last_detected_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13874,7 +13874,7 @@ def list_tactics(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tactics got unknown kwargs: {extra_kwargs!r}") @@ -13908,14 +13908,14 @@ def list_tactics(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14027,7 +14027,7 @@ def list_target_detector_recipe_detector_rules(self, target_id, target_detector_ "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_detector_recipe_detector_rules got unknown kwargs: {extra_kwargs!r}") @@ -14037,9 +14037,9 @@ def list_target_detector_recipe_detector_rules(self, target_id, target_detector_ "targetDetectorRecipeId": target_detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14073,14 +14073,14 @@ def list_target_detector_recipe_detector_rules(self, target_id, target_detector_ "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14193,7 +14193,7 @@ def list_target_detector_recipes(self, target_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_detector_recipes got unknown kwargs: {extra_kwargs!r}") @@ -14202,9 +14202,9 @@ def list_target_detector_recipes(self, target_id, compartment_id, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14238,14 +14238,14 @@ def list_target_detector_recipes(self, target_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14362,7 +14362,7 @@ def list_target_responder_recipe_responder_rules(self, target_id, target_respond "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_responder_recipe_responder_rules got unknown kwargs: {extra_kwargs!r}") @@ -14372,9 +14372,9 @@ def list_target_responder_recipe_responder_rules(self, target_id, target_respond "targetResponderRecipeId": target_responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14408,14 +14408,14 @@ def list_target_responder_recipe_responder_rules(self, target_id, target_respond "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14528,7 +14528,7 @@ def list_target_responder_recipes(self, target_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_responder_recipes got unknown kwargs: {extra_kwargs!r}") @@ -14537,9 +14537,9 @@ def list_target_responder_recipes(self, target_id, compartment_id, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14573,14 +14573,14 @@ def list_target_responder_recipes(self, target_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14725,7 +14725,7 @@ def list_targets(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_targets got unknown kwargs: {extra_kwargs!r}") @@ -14770,14 +14770,14 @@ def list_targets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14883,7 +14883,7 @@ def list_techniques(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_techniques got unknown kwargs: {extra_kwargs!r}") @@ -14918,14 +14918,14 @@ def list_techniques(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15021,7 +15021,7 @@ def list_wlp_agents(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wlp_agents got unknown kwargs: {extra_kwargs!r}") @@ -15047,14 +15047,14 @@ def list_wlp_agents(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15151,7 +15151,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -15160,9 +15160,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15186,14 +15186,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15292,7 +15292,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -15301,9 +15301,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15327,14 +15327,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15443,7 +15443,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -15478,14 +15478,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15583,7 +15583,7 @@ def remove_compartment(self, security_zone_id, remove_compartment_details, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_compartment got unknown kwargs: {extra_kwargs!r}") @@ -15592,9 +15592,9 @@ def remove_compartment(self, security_zone_id, remove_compartment_details, **kwa "securityZoneId": security_zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15605,7 +15605,7 @@ def remove_compartment(self, security_zone_id, remove_compartment_details, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15693,7 +15693,7 @@ def request_risk_scores(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_risk_scores got unknown kwargs: {extra_kwargs!r}") @@ -15703,14 +15703,14 @@ def request_risk_scores(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15803,7 +15803,7 @@ def request_security_score_summarized_trend(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_security_score_summarized_trend got unknown kwargs: {extra_kwargs!r}") @@ -15815,14 +15815,14 @@ def request_security_score_summarized_trend(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15907,7 +15907,7 @@ def request_security_scores(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_security_scores got unknown kwargs: {extra_kwargs!r}") @@ -15917,14 +15917,14 @@ def request_security_scores(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16045,7 +16045,7 @@ def request_summarized_activity_problems(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_activity_problems got unknown kwargs: {extra_kwargs!r}") @@ -16065,14 +16065,14 @@ def request_summarized_activity_problems(self, compartment_id, **kwargs): "includeUnknownLocations": kwargs.get("include_unknown_locations", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16189,7 +16189,7 @@ def request_summarized_problems(self, list_dimensions, compartment_id, **kwargs) "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_problems got unknown kwargs: {extra_kwargs!r}") @@ -16216,14 +16216,14 @@ def request_summarized_problems(self, list_dimensions, compartment_id, **kwargs) "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16354,7 +16354,7 @@ def request_summarized_responder_executions(self, responder_executions_dimension "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_responder_executions got unknown kwargs: {extra_kwargs!r}") @@ -16399,14 +16399,14 @@ def request_summarized_responder_executions(self, responder_executions_dimension "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16490,7 +16490,7 @@ def request_summarized_risk_scores(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_risk_scores got unknown kwargs: {extra_kwargs!r}") @@ -16500,14 +16500,14 @@ def request_summarized_risk_scores(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16591,7 +16591,7 @@ def request_summarized_security_scores(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_security_scores got unknown kwargs: {extra_kwargs!r}") @@ -16601,14 +16601,14 @@ def request_summarized_security_scores(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16729,7 +16729,7 @@ def request_summarized_top_trend_resource_profile_risk_scores(self, compartment_ "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_top_trend_resource_profile_risk_scores got unknown kwargs: {extra_kwargs!r}") @@ -16759,14 +16759,14 @@ def request_summarized_top_trend_resource_profile_risk_scores(self, compartment_ "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16886,7 +16886,7 @@ def request_summarized_trend_problems(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_trend_problems got unknown kwargs: {extra_kwargs!r}") @@ -16907,14 +16907,14 @@ def request_summarized_trend_problems(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17028,7 +17028,7 @@ def request_summarized_trend_resource_risk_scores(self, request_summarized_trend "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_trend_resource_risk_scores got unknown kwargs: {extra_kwargs!r}") @@ -17049,14 +17049,14 @@ def request_summarized_trend_resource_risk_scores(self, request_summarized_trend "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17178,7 +17178,7 @@ def request_summarized_trend_responder_executions(self, compartment_id, **kwargs "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_trend_responder_executions got unknown kwargs: {extra_kwargs!r}") @@ -17199,14 +17199,14 @@ def request_summarized_trend_responder_executions(self, compartment_id, **kwargs "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17298,7 +17298,7 @@ def request_summarized_trend_security_scores(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_trend_security_scores got unknown kwargs: {extra_kwargs!r}") @@ -17310,14 +17310,14 @@ def request_summarized_trend_security_scores(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17393,7 +17393,7 @@ def skip_bulk_responder_execution(self, skip_bulk_responder_execution_details, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"skip_bulk_responder_execution got unknown kwargs: {extra_kwargs!r}") @@ -17403,7 +17403,7 @@ def skip_bulk_responder_execution(self, skip_bulk_responder_execution_details, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17496,7 +17496,7 @@ def skip_responder_execution(self, responder_execution_id, compartment_id, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"skip_responder_execution got unknown kwargs: {extra_kwargs!r}") @@ -17505,16 +17505,16 @@ def skip_responder_execution(self, responder_execution_id, compartment_id, **kwa "responderExecutionId": responder_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17523,7 +17523,7 @@ def skip_responder_execution(self, responder_execution_id, compartment_id, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17620,7 +17620,7 @@ def trigger_responder(self, problem_id, trigger_responder_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"trigger_responder got unknown kwargs: {extra_kwargs!r}") @@ -17629,9 +17629,9 @@ def trigger_responder(self, problem_id, trigger_responder_details, **kwargs): "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17642,7 +17642,7 @@ def trigger_responder(self, problem_id, trigger_responder_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17719,7 +17719,7 @@ def update_bulk_problem_status(self, update_bulk_problem_status_details, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_bulk_problem_status got unknown kwargs: {extra_kwargs!r}") @@ -17729,7 +17729,7 @@ def update_bulk_problem_status(self, update_bulk_problem_status_details, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17823,7 +17823,7 @@ def update_configuration(self, update_configuration_details, compartment_id, **k "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -17831,7 +17831,7 @@ def update_configuration(self, update_configuration_details, compartment_id, **k query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17840,7 +17840,7 @@ def update_configuration(self, update_configuration_details, compartment_id, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17930,7 +17930,7 @@ def update_data_mask_rule(self, data_mask_rule_id, update_data_mask_rule_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_mask_rule got unknown kwargs: {extra_kwargs!r}") @@ -17939,9 +17939,9 @@ def update_data_mask_rule(self, data_mask_rule_id, update_data_mask_rule_details "dataMaskRuleId": data_mask_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17951,7 +17951,7 @@ def update_data_mask_rule(self, data_mask_rule_id, update_data_mask_rule_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18049,7 +18049,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_source got unknown kwargs: {extra_kwargs!r}") @@ -18058,9 +18058,9 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18071,7 +18071,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18167,7 +18167,7 @@ def update_detector_recipe(self, detector_recipe_id, update_detector_recipe_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -18176,9 +18176,9 @@ def update_detector_recipe(self, detector_recipe_id, update_detector_recipe_deta "detectorRecipeId": detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18189,7 +18189,7 @@ def update_detector_recipe(self, detector_recipe_id, update_detector_recipe_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18282,7 +18282,7 @@ def update_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_detector_recipe_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -18292,9 +18292,9 @@ def update_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule "detectorRuleId": detector_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18304,7 +18304,7 @@ def update_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18401,7 +18401,7 @@ def update_managed_list(self, managed_list_id, update_managed_list_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_managed_list got unknown kwargs: {extra_kwargs!r}") @@ -18410,9 +18410,9 @@ def update_managed_list(self, managed_list_id, update_managed_list_details, **kw "managedListId": managed_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18423,7 +18423,7 @@ def update_managed_list(self, managed_list_id, update_managed_list_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18521,7 +18521,7 @@ def update_problem_status(self, problem_id, update_problem_status_details, **kwa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_problem_status got unknown kwargs: {extra_kwargs!r}") @@ -18530,9 +18530,9 @@ def update_problem_status(self, problem_id, update_problem_status_details, **kwa "problemId": problem_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18543,7 +18543,7 @@ def update_problem_status(self, problem_id, update_problem_status_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18634,7 +18634,7 @@ def update_responder_recipe(self, responder_recipe_id, update_responder_recipe_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -18643,9 +18643,9 @@ def update_responder_recipe(self, responder_recipe_id, update_responder_recipe_d "responderRecipeId": responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18655,7 +18655,7 @@ def update_responder_recipe(self, responder_recipe_id, update_responder_recipe_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18748,7 +18748,7 @@ def update_responder_recipe_responder_rule(self, responder_recipe_id, responder_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_responder_recipe_responder_rule got unknown kwargs: {extra_kwargs!r}") @@ -18758,9 +18758,9 @@ def update_responder_recipe_responder_rule(self, responder_recipe_id, responder_ "responderRuleId": responder_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18770,7 +18770,7 @@ def update_responder_recipe_responder_rule(self, responder_recipe_id, responder_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18867,7 +18867,7 @@ def update_saved_query(self, saved_query_id, update_saved_query_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_saved_query got unknown kwargs: {extra_kwargs!r}") @@ -18876,9 +18876,9 @@ def update_saved_query(self, saved_query_id, update_saved_query_details, **kwarg "savedQueryId": saved_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18889,7 +18889,7 @@ def update_saved_query(self, saved_query_id, update_saved_query_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18980,7 +18980,7 @@ def update_security_recipe(self, security_recipe_id, update_security_recipe_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_recipe got unknown kwargs: {extra_kwargs!r}") @@ -18989,9 +18989,9 @@ def update_security_recipe(self, security_recipe_id, update_security_recipe_deta "securityRecipeId": security_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19001,7 +19001,7 @@ def update_security_recipe(self, security_recipe_id, update_security_recipe_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19091,7 +19091,7 @@ def update_security_zone(self, security_zone_id, update_security_zone_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_zone got unknown kwargs: {extra_kwargs!r}") @@ -19100,9 +19100,9 @@ def update_security_zone(self, security_zone_id, update_security_zone_details, * "securityZoneId": security_zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19112,7 +19112,7 @@ def update_security_zone(self, security_zone_id, update_security_zone_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19202,7 +19202,7 @@ def update_target(self, target_id, update_target_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target got unknown kwargs: {extra_kwargs!r}") @@ -19211,9 +19211,9 @@ def update_target(self, target_id, update_target_details, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19223,7 +19223,7 @@ def update_target(self, target_id, update_target_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19316,7 +19316,7 @@ def update_target_detector_recipe(self, target_id, target_detector_recipe_id, up "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_detector_recipe got unknown kwargs: {extra_kwargs!r}") @@ -19326,9 +19326,9 @@ def update_target_detector_recipe(self, target_id, target_detector_recipe_id, up "targetDetectorRecipeId": target_detector_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19338,7 +19338,7 @@ def update_target_detector_recipe(self, target_id, target_detector_recipe_id, up "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19433,7 +19433,7 @@ def update_target_detector_recipe_detector_rule(self, target_id, target_detector "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_detector_recipe_detector_rule got unknown kwargs: {extra_kwargs!r}") @@ -19444,9 +19444,9 @@ def update_target_detector_recipe_detector_rule(self, target_id, target_detector "detectorRuleId": detector_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19456,7 +19456,7 @@ def update_target_detector_recipe_detector_rule(self, target_id, target_detector "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19551,7 +19551,7 @@ def update_target_responder_recipe(self, target_id, target_responder_recipe_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_responder_recipe got unknown kwargs: {extra_kwargs!r}") @@ -19561,9 +19561,9 @@ def update_target_responder_recipe(self, target_id, target_responder_recipe_id, "targetResponderRecipeId": target_responder_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19573,7 +19573,7 @@ def update_target_responder_recipe(self, target_id, target_responder_recipe_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19672,7 +19672,7 @@ def update_target_responder_recipe_responder_rule(self, target_id, target_respon "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_responder_recipe_responder_rule got unknown kwargs: {extra_kwargs!r}") @@ -19683,9 +19683,9 @@ def update_target_responder_recipe_responder_rule(self, target_id, target_respon "responderRuleId": responder_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19695,7 +19695,7 @@ def update_target_responder_recipe_responder_rule(self, target_id, target_respon "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19792,7 +19792,7 @@ def update_wlp_agent(self, wlp_agent_id, update_wlp_agent_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_wlp_agent got unknown kwargs: {extra_kwargs!r}") @@ -19801,9 +19801,9 @@ def update_wlp_agent(self, wlp_agent_id, update_wlp_agent_details, **kwargs): "wlpAgentId": wlp_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19814,7 +19814,7 @@ def update_wlp_agent(self, wlp_agent_id, update_wlp_agent_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cloud_migrations/migration_client.py b/src/oci/cloud_migrations/migration_client.py index 35a91233e..5f454c0c4 100644 --- a/src/oci/cloud_migrations/migration_client.py +++ b/src/oci/cloud_migrations/migration_client.py @@ -169,7 +169,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -190,7 +190,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -285,7 +285,7 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_migration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -294,9 +294,9 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -307,7 +307,7 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -405,7 +405,7 @@ def change_migration_plan_compartment(self, migration_plan_id, change_migration_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_migration_plan_compartment got unknown kwargs: {extra_kwargs!r}") @@ -414,9 +414,9 @@ def change_migration_plan_compartment(self, migration_plan_id, change_migration_ "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -427,7 +427,7 @@ def change_migration_plan_compartment(self, migration_plan_id, change_migration_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -525,7 +525,7 @@ def change_replication_schedule_compartment(self, replication_schedule_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_replication_schedule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -534,9 +534,9 @@ def change_replication_schedule_compartment(self, replication_schedule_id, chang "replicationScheduleId": replication_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -547,7 +547,7 @@ def change_replication_schedule_compartment(self, replication_schedule_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def create_migration(self, create_migration_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_migration got unknown kwargs: {extra_kwargs!r}") @@ -645,7 +645,7 @@ def create_migration(self, create_migration_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -732,7 +732,7 @@ def create_migration_asset(self, create_migration_asset_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_migration_asset got unknown kwargs: {extra_kwargs!r}") @@ -743,7 +743,7 @@ def create_migration_asset(self, create_migration_asset_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -830,7 +830,7 @@ def create_migration_plan(self, create_migration_plan_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -841,7 +841,7 @@ def create_migration_plan(self, create_migration_plan_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -928,7 +928,7 @@ def create_replication_schedule(self, create_replication_schedule_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_replication_schedule got unknown kwargs: {extra_kwargs!r}") @@ -939,7 +939,7 @@ def create_replication_schedule(self, create_replication_schedule_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1026,7 +1026,7 @@ def create_target_asset(self, create_target_asset_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target_asset got unknown kwargs: {extra_kwargs!r}") @@ -1037,7 +1037,7 @@ def create_target_asset(self, create_target_asset_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1124,7 +1124,7 @@ def delete_migration(self, migration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_migration got unknown kwargs: {extra_kwargs!r}") @@ -1133,9 +1133,9 @@ def delete_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1145,7 +1145,7 @@ def delete_migration(self, migration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1229,7 +1229,7 @@ def delete_migration_asset(self, migration_asset_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_migration_asset got unknown kwargs: {extra_kwargs!r}") @@ -1238,9 +1238,9 @@ def delete_migration_asset(self, migration_asset_id, **kwargs): "migrationAssetId": migration_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1250,7 +1250,7 @@ def delete_migration_asset(self, migration_asset_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1334,7 +1334,7 @@ def delete_migration_plan(self, migration_plan_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -1343,9 +1343,9 @@ def delete_migration_plan(self, migration_plan_id, **kwargs): "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1355,7 +1355,7 @@ def delete_migration_plan(self, migration_plan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1439,7 +1439,7 @@ def delete_replication_schedule(self, replication_schedule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_replication_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1448,9 +1448,9 @@ def delete_replication_schedule(self, replication_schedule_id, **kwargs): "replicationScheduleId": replication_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1460,7 +1460,7 @@ def delete_replication_schedule(self, replication_schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1544,7 +1544,7 @@ def delete_target_asset(self, target_asset_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target_asset got unknown kwargs: {extra_kwargs!r}") @@ -1553,9 +1553,9 @@ def delete_target_asset(self, target_asset_id, **kwargs): "targetAssetId": target_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1565,7 +1565,7 @@ def delete_target_asset(self, target_asset_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1657,7 +1657,7 @@ def execute_migration_plan(self, migration_plan_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"execute_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -1666,9 +1666,9 @@ def execute_migration_plan(self, migration_plan_id, **kwargs): "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1679,7 +1679,7 @@ def execute_migration_plan(self, migration_plan_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1756,7 +1756,7 @@ def export_migration_plan(self, migration_plan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -1765,9 +1765,9 @@ def export_migration_plan(self, migration_plan_id, **kwargs): "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1776,7 +1776,7 @@ def export_migration_plan(self, migration_plan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1854,7 +1854,7 @@ def get_migration(self, migration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_migration got unknown kwargs: {extra_kwargs!r}") @@ -1863,9 +1863,9 @@ def get_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1874,7 +1874,7 @@ def get_migration(self, migration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1952,7 +1952,7 @@ def get_migration_asset(self, migration_asset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_migration_asset got unknown kwargs: {extra_kwargs!r}") @@ -1961,9 +1961,9 @@ def get_migration_asset(self, migration_asset_id, **kwargs): "migrationAssetId": migration_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1972,7 +1972,7 @@ def get_migration_asset(self, migration_asset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2050,7 +2050,7 @@ def get_migration_plan(self, migration_plan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -2059,9 +2059,9 @@ def get_migration_plan(self, migration_plan_id, **kwargs): "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2070,7 +2070,7 @@ def get_migration_plan(self, migration_plan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2148,7 +2148,7 @@ def get_replication_progress(self, migration_asset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replication_progress got unknown kwargs: {extra_kwargs!r}") @@ -2157,9 +2157,9 @@ def get_replication_progress(self, migration_asset_id, **kwargs): "migrationAssetId": migration_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2168,7 +2168,7 @@ def get_replication_progress(self, migration_asset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2246,7 +2246,7 @@ def get_replication_schedule(self, replication_schedule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replication_schedule got unknown kwargs: {extra_kwargs!r}") @@ -2255,9 +2255,9 @@ def get_replication_schedule(self, replication_schedule_id, **kwargs): "replicationScheduleId": replication_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2266,7 +2266,7 @@ def get_replication_schedule(self, replication_schedule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2344,7 +2344,7 @@ def get_target_asset(self, target_asset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_asset got unknown kwargs: {extra_kwargs!r}") @@ -2353,9 +2353,9 @@ def get_target_asset(self, target_asset_id, **kwargs): "targetAssetId": target_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2364,7 +2364,7 @@ def get_target_asset(self, target_asset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2442,7 +2442,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2451,9 +2451,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2462,7 +2462,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2567,7 +2567,7 @@ def import_migration_plan(self, migration_plan_id, import_migration_plan_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -2576,9 +2576,9 @@ def import_migration_plan(self, migration_plan_id, import_migration_plan_details "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2588,7 +2588,7 @@ def import_migration_plan(self, migration_plan_id, import_migration_plan_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -2724,7 +2724,7 @@ def list_available_shapes(self, migration_plan_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_available_shapes got unknown kwargs: {extra_kwargs!r}") @@ -2733,9 +2733,9 @@ def list_available_shapes(self, migration_plan_id, **kwargs): "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2763,14 +2763,14 @@ def list_available_shapes(self, migration_plan_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2885,7 +2885,7 @@ def list_migration_assets(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migration_assets got unknown kwargs: {extra_kwargs!r}") @@ -2921,14 +2921,14 @@ def list_migration_assets(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3045,7 +3045,7 @@ def list_migration_plans(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migration_plans got unknown kwargs: {extra_kwargs!r}") @@ -3082,14 +3082,14 @@ def list_migration_plans(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3202,7 +3202,7 @@ def list_migrations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migrations got unknown kwargs: {extra_kwargs!r}") @@ -3238,14 +3238,14 @@ def list_migrations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3358,7 +3358,7 @@ def list_replication_schedules(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_replication_schedules got unknown kwargs: {extra_kwargs!r}") @@ -3394,14 +3394,14 @@ def list_replication_schedules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3514,7 +3514,7 @@ def list_target_assets(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_assets got unknown kwargs: {extra_kwargs!r}") @@ -3550,14 +3550,14 @@ def list_target_assets(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3655,7 +3655,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3664,9 +3664,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3690,14 +3690,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3797,7 +3797,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3806,9 +3806,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3832,14 +3832,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3960,7 +3960,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4004,14 +4004,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4105,7 +4105,7 @@ def refresh_migration(self, migration_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_migration got unknown kwargs: {extra_kwargs!r}") @@ -4114,9 +4114,9 @@ def refresh_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4127,7 +4127,7 @@ def refresh_migration(self, migration_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4220,7 +4220,7 @@ def refresh_migration_asset(self, migration_asset_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_migration_asset got unknown kwargs: {extra_kwargs!r}") @@ -4229,9 +4229,9 @@ def refresh_migration_asset(self, migration_asset_id, **kwargs): "migrationAssetId": migration_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4242,7 +4242,7 @@ def refresh_migration_asset(self, migration_asset_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4335,7 +4335,7 @@ def refresh_migration_plan(self, migration_plan_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -4344,9 +4344,9 @@ def refresh_migration_plan(self, migration_plan_id, **kwargs): "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4357,7 +4357,7 @@ def refresh_migration_plan(self, migration_plan_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4450,7 +4450,7 @@ def start_asset_replication(self, migration_asset_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_asset_replication got unknown kwargs: {extra_kwargs!r}") @@ -4459,9 +4459,9 @@ def start_asset_replication(self, migration_asset_id, **kwargs): "migrationAssetId": migration_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4472,7 +4472,7 @@ def start_asset_replication(self, migration_asset_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4565,7 +4565,7 @@ def start_migration_replication(self, migration_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_migration_replication got unknown kwargs: {extra_kwargs!r}") @@ -4574,9 +4574,9 @@ def start_migration_replication(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4587,7 +4587,7 @@ def start_migration_replication(self, migration_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4675,7 +4675,7 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_migration got unknown kwargs: {extra_kwargs!r}") @@ -4684,9 +4684,9 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4696,7 +4696,7 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4787,7 +4787,7 @@ def update_migration_asset(self, migration_asset_id, update_migration_asset_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_migration_asset got unknown kwargs: {extra_kwargs!r}") @@ -4796,9 +4796,9 @@ def update_migration_asset(self, migration_asset_id, update_migration_asset_deta "migrationAssetId": migration_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4808,7 +4808,7 @@ def update_migration_asset(self, migration_asset_id, update_migration_asset_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4907,7 +4907,7 @@ def update_migration_plan(self, migration_plan_id, update_migration_plan_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_migration_plan got unknown kwargs: {extra_kwargs!r}") @@ -4916,9 +4916,9 @@ def update_migration_plan(self, migration_plan_id, update_migration_plan_details "migrationPlanId": migration_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4929,7 +4929,7 @@ def update_migration_plan(self, migration_plan_id, update_migration_plan_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5027,7 +5027,7 @@ def update_replication_schedule(self, replication_schedule_id, update_replicatio "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_replication_schedule got unknown kwargs: {extra_kwargs!r}") @@ -5036,9 +5036,9 @@ def update_replication_schedule(self, replication_schedule_id, update_replicatio "replicationScheduleId": replication_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5049,7 +5049,7 @@ def update_replication_schedule(self, replication_schedule_id, update_replicatio "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5147,7 +5147,7 @@ def update_target_asset(self, target_asset_id, update_target_asset_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_asset got unknown kwargs: {extra_kwargs!r}") @@ -5156,9 +5156,9 @@ def update_target_asset(self, target_asset_id, update_target_asset_details, **kw "targetAssetId": target_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5169,7 +5169,7 @@ def update_target_asset(self, target_asset_id, update_target_asset_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py b/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py index 9c8756b36..787b14a8a 100644 --- a/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +++ b/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py @@ -176,7 +176,7 @@ def activate_cluster_placement_group(self, cluster_placement_group_id, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_cluster_placement_group got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def activate_cluster_placement_group(self, cluster_placement_group_id, **kwargs) "clusterPlacementGroupId": cluster_placement_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def activate_cluster_placement_group(self, cluster_placement_group_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -285,7 +285,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -294,9 +294,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -306,7 +306,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -406,7 +406,7 @@ def change_cluster_placement_group_compartment(self, cluster_placement_group_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cluster_placement_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -415,9 +415,9 @@ def change_cluster_placement_group_compartment(self, cluster_placement_group_id, "clusterPlacementGroupId": cluster_placement_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -428,7 +428,7 @@ def change_cluster_placement_group_compartment(self, cluster_placement_group_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -519,7 +519,7 @@ def create_cluster_placement_group(self, create_cluster_placement_group_details, "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cluster_placement_group got unknown kwargs: {extra_kwargs!r}") @@ -531,7 +531,7 @@ def create_cluster_placement_group(self, create_cluster_placement_group_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -626,7 +626,7 @@ def deactivate_cluster_placement_group(self, cluster_placement_group_id, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_cluster_placement_group got unknown kwargs: {extra_kwargs!r}") @@ -635,9 +635,9 @@ def deactivate_cluster_placement_group(self, cluster_placement_group_id, **kwarg "clusterPlacementGroupId": cluster_placement_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -648,7 +648,7 @@ def deactivate_cluster_placement_group(self, cluster_placement_group_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -735,7 +735,7 @@ def delete_cluster_placement_group(self, cluster_placement_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cluster_placement_group got unknown kwargs: {extra_kwargs!r}") @@ -744,9 +744,9 @@ def delete_cluster_placement_group(self, cluster_placement_group_id, **kwargs): "clusterPlacementGroupId": cluster_placement_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -756,7 +756,7 @@ def delete_cluster_placement_group(self, cluster_placement_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -832,7 +832,7 @@ def get_cluster_placement_group(self, cluster_placement_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster_placement_group got unknown kwargs: {extra_kwargs!r}") @@ -841,9 +841,9 @@ def get_cluster_placement_group(self, cluster_placement_group_id, **kwargs): "clusterPlacementGroupId": cluster_placement_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -852,7 +852,7 @@ def get_cluster_placement_group(self, cluster_placement_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -930,7 +930,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -939,9 +939,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -950,7 +950,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1073,7 +1073,7 @@ def list_cluster_placement_groups(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cluster_placement_groups got unknown kwargs: {extra_kwargs!r}") @@ -1111,14 +1111,14 @@ def list_cluster_placement_groups(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1216,7 +1216,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1225,9 +1225,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1251,14 +1251,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1358,7 +1358,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1367,9 +1367,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1393,14 +1393,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1517,7 +1517,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1553,14 +1553,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1649,7 +1649,7 @@ def update_cluster_placement_group(self, cluster_placement_group_id, update_clus "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cluster_placement_group got unknown kwargs: {extra_kwargs!r}") @@ -1658,9 +1658,9 @@ def update_cluster_placement_group(self, cluster_placement_group_id, update_clus "clusterPlacementGroupId": cluster_placement_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1670,7 +1670,7 @@ def update_cluster_placement_group(self, cluster_placement_group_id, update_clus "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py b/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py index 2d54322be..2af509d62 100644 --- a/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +++ b/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py @@ -188,7 +188,7 @@ def change_ccc_infrastructure_compartment(self, ccc_infrastructure_id, change_cc "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ccc_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}") @@ -197,9 +197,9 @@ def change_ccc_infrastructure_compartment(self, ccc_infrastructure_id, change_cc "cccInfrastructureId": ccc_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -210,7 +210,7 @@ def change_ccc_infrastructure_compartment(self, ccc_infrastructure_id, change_cc "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -319,7 +319,7 @@ def change_ccc_upgrade_schedule_compartment(self, ccc_upgrade_schedule_id, chang "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ccc_upgrade_schedule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -328,9 +328,9 @@ def change_ccc_upgrade_schedule_compartment(self, ccc_upgrade_schedule_id, chang "cccUpgradeScheduleId": ccc_upgrade_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -341,7 +341,7 @@ def change_ccc_upgrade_schedule_compartment(self, ccc_upgrade_schedule_id, chang "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -431,7 +431,7 @@ def create_ccc_infrastructure(self, create_ccc_infrastructure_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ccc_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -442,7 +442,7 @@ def create_ccc_infrastructure(self, create_ccc_infrastructure_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -531,7 +531,7 @@ def create_ccc_upgrade_schedule(self, create_ccc_upgrade_schedule_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ccc_upgrade_schedule got unknown kwargs: {extra_kwargs!r}") @@ -542,7 +542,7 @@ def create_ccc_upgrade_schedule(self, create_ccc_upgrade_schedule_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -637,7 +637,7 @@ def delete_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ccc_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -646,9 +646,9 @@ def delete_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): "cccInfrastructureId": ccc_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -658,7 +658,7 @@ def delete_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -748,7 +748,7 @@ def delete_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ccc_upgrade_schedule got unknown kwargs: {extra_kwargs!r}") @@ -757,9 +757,9 @@ def delete_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): "cccUpgradeScheduleId": ccc_upgrade_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -769,7 +769,7 @@ def delete_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -851,7 +851,7 @@ def get_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ccc_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -860,9 +860,9 @@ def get_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): "cccInfrastructureId": ccc_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -871,7 +871,7 @@ def get_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -957,7 +957,7 @@ def get_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ccc_upgrade_schedule got unknown kwargs: {extra_kwargs!r}") @@ -966,9 +966,9 @@ def get_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): "cccUpgradeScheduleId": ccc_upgrade_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -977,7 +977,7 @@ def get_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1118,7 +1118,7 @@ def list_ccc_infrastructures(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ccc_infrastructures got unknown kwargs: {extra_kwargs!r}") @@ -1164,14 +1164,14 @@ def list_ccc_infrastructures(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1312,7 +1312,7 @@ def list_ccc_upgrade_schedules(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ccc_upgrade_schedules got unknown kwargs: {extra_kwargs!r}") @@ -1358,14 +1358,14 @@ def list_ccc_upgrade_schedules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1459,7 +1459,7 @@ def update_ccc_infrastructure(self, ccc_infrastructure_id, update_ccc_infrastruc "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ccc_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -1468,9 +1468,9 @@ def update_ccc_infrastructure(self, ccc_infrastructure_id, update_ccc_infrastruc "cccInfrastructureId": ccc_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1480,7 +1480,7 @@ def update_ccc_infrastructure(self, ccc_infrastructure_id, update_ccc_infrastruc "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1574,7 +1574,7 @@ def update_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, update_ccc_upgrad "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ccc_upgrade_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1583,9 +1583,9 @@ def update_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, update_ccc_upgrad "cccUpgradeScheduleId": ccc_upgrade_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1595,7 +1595,7 @@ def update_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, update_ccc_upgrad "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/compute_instance_agent/compute_instance_agent_client.py b/src/oci/compute_instance_agent/compute_instance_agent_client.py index a5493665a..61a346c81 100644 --- a/src/oci/compute_instance_agent/compute_instance_agent_client.py +++ b/src/oci/compute_instance_agent/compute_instance_agent_client.py @@ -174,7 +174,7 @@ def cancel_instance_agent_command(self, instance_agent_command_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_instance_agent_command got unknown kwargs: {extra_kwargs!r}") @@ -183,9 +183,9 @@ def cancel_instance_agent_command(self, instance_agent_command_id, **kwargs): "instanceAgentCommandId": instance_agent_command_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -195,7 +195,7 @@ def cancel_instance_agent_command(self, instance_agent_command_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -284,7 +284,7 @@ def create_instance_agent_command(self, create_instance_agent_command_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_instance_agent_command got unknown kwargs: {extra_kwargs!r}") @@ -295,7 +295,7 @@ def create_instance_agent_command(self, create_instance_agent_command_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -375,7 +375,7 @@ def get_instance_agent_command(self, instance_agent_command_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_agent_command got unknown kwargs: {extra_kwargs!r}") @@ -384,9 +384,9 @@ def get_instance_agent_command(self, instance_agent_command_id, **kwargs): "instanceAgentCommandId": instance_agent_command_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -395,7 +395,7 @@ def get_instance_agent_command(self, instance_agent_command_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -479,7 +479,7 @@ def get_instance_agent_command_execution(self, instance_agent_command_id, instan "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_agent_command_execution got unknown kwargs: {extra_kwargs!r}") @@ -488,23 +488,23 @@ def get_instance_agent_command_execution(self, instance_agent_command_id, instan "instanceAgentCommandId": instance_agent_command_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "instanceId": instance_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -632,7 +632,7 @@ def list_instance_agent_command_executions(self, compartment_id, instance_id, ** "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_agent_command_executions got unknown kwargs: {extra_kwargs!r}") @@ -667,14 +667,14 @@ def list_instance_agent_command_executions(self, compartment_id, instance_id, ** "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -788,7 +788,7 @@ def list_instance_agent_commands(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_agent_commands got unknown kwargs: {extra_kwargs!r}") @@ -814,14 +814,14 @@ def list_instance_agent_commands(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/compute_instance_agent/plugin_client.py b/src/oci/compute_instance_agent/plugin_client.py index 5f4c14229..c5a455211 100644 --- a/src/oci/compute_instance_agent/plugin_client.py +++ b/src/oci/compute_instance_agent/plugin_client.py @@ -172,7 +172,7 @@ def get_instance_agent_plugin(self, instanceagent_id, compartment_id, plugin_nam "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_agent_plugin got unknown kwargs: {extra_kwargs!r}") @@ -182,23 +182,23 @@ def get_instance_agent_plugin(self, instanceagent_id, compartment_id, plugin_nam "pluginName": plugin_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -330,7 +330,7 @@ def list_instance_agent_plugins(self, compartment_id, instanceagent_id, **kwargs "sort_order", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_agent_plugins got unknown kwargs: {extra_kwargs!r}") @@ -339,9 +339,9 @@ def list_instance_agent_plugins(self, compartment_id, instanceagent_id, **kwargs "instanceagentId": instanceagent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -375,14 +375,14 @@ def list_instance_agent_plugins(self, compartment_id, instanceagent_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/compute_instance_agent/pluginconfig_client.py b/src/oci/compute_instance_agent/pluginconfig_client.py index 4bac07fce..1a3a2a144 100644 --- a/src/oci/compute_instance_agent/pluginconfig_client.py +++ b/src/oci/compute_instance_agent/pluginconfig_client.py @@ -218,7 +218,7 @@ def list_instanceagent_available_plugins(self, compartment_id, os_name, os_versi "sort_order", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instanceagent_available_plugins got unknown kwargs: {extra_kwargs!r}") @@ -247,14 +247,14 @@ def list_instanceagent_available_plugins(self, compartment_id, os_name, os_versi "sortOrder": kwargs.get("sort_order", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/container_engine/container_engine_client.py b/src/oci/container_engine/container_engine_client.py index f3de03eee..0095cdbc2 100644 --- a/src/oci/container_engine/container_engine_client.py +++ b/src/oci/container_engine/container_engine_client.py @@ -172,7 +172,7 @@ def cluster_migrate_to_native_vcn(self, cluster_id, cluster_migrate_to_native_vc "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cluster_migrate_to_native_vcn got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cluster_migrate_to_native_vcn(self, cluster_id, cluster_migrate_to_native_vc "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cluster_migrate_to_native_vcn(self, cluster_id, cluster_migrate_to_native_vc "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def complete_credential_rotation(self, cluster_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"complete_credential_rotation got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def complete_credential_rotation(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -305,7 +305,7 @@ def complete_credential_rotation(self, cluster_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -388,7 +388,7 @@ def create_cluster(self, create_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cluster got unknown kwargs: {extra_kwargs!r}") @@ -399,7 +399,7 @@ def create_cluster(self, create_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -481,7 +481,7 @@ def create_kubeconfig(self, cluster_id, **kwargs): "opc_request_id", "create_cluster_kubeconfig_content_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_kubeconfig got unknown kwargs: {extra_kwargs!r}") @@ -490,9 +490,9 @@ def create_kubeconfig(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -501,7 +501,7 @@ def create_kubeconfig(self, cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -587,7 +587,7 @@ def create_node_pool(self, create_node_pool_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -598,7 +598,7 @@ def create_node_pool(self, create_node_pool_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -681,7 +681,7 @@ def create_virtual_node_pool(self, create_virtual_node_pool_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_virtual_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -692,7 +692,7 @@ def create_virtual_node_pool(self, create_virtual_node_pool_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -778,7 +778,7 @@ def create_workload_mapping(self, cluster_id, create_workload_mapping_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_workload_mapping got unknown kwargs: {extra_kwargs!r}") @@ -787,9 +787,9 @@ def create_workload_mapping(self, cluster_id, create_workload_mapping_details, * "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -799,7 +799,7 @@ def create_workload_mapping(self, cluster_id, create_workload_mapping_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -887,7 +887,7 @@ def delete_cluster(self, cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cluster got unknown kwargs: {extra_kwargs!r}") @@ -896,9 +896,9 @@ def delete_cluster(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -908,7 +908,7 @@ def delete_cluster(self, cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1007,7 +1007,7 @@ def delete_node(self, node_pool_id, node_id, **kwargs): "override_eviction_grace_duration", "is_force_deletion_after_override_grace_duration" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_node got unknown kwargs: {extra_kwargs!r}") @@ -1017,9 +1017,9 @@ def delete_node(self, node_pool_id, node_id, **kwargs): "nodeId": node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1028,7 +1028,7 @@ def delete_node(self, node_pool_id, node_id, **kwargs): "overrideEvictionGraceDuration": kwargs.get("override_eviction_grace_duration", missing), "isForceDeletionAfterOverrideGraceDuration": kwargs.get("is_force_deletion_after_override_grace_duration", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1036,7 +1036,7 @@ def delete_node(self, node_pool_id, node_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1130,7 +1130,7 @@ def delete_node_pool(self, node_pool_id, **kwargs): "override_eviction_grace_duration", "is_force_deletion_after_override_grace_duration" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -1139,9 +1139,9 @@ def delete_node_pool(self, node_pool_id, **kwargs): "nodePoolId": node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1149,7 +1149,7 @@ def delete_node_pool(self, node_pool_id, **kwargs): "overrideEvictionGraceDuration": kwargs.get("override_eviction_grace_duration", missing), "isForceDeletionAfterOverrideGraceDuration": kwargs.get("is_force_deletion_after_override_grace_duration", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1157,7 +1157,7 @@ def delete_node_pool(self, node_pool_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1251,7 +1251,7 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "override_eviction_grace_duration_vnp", "is_force_deletion_after_override_grace_duration_vnp" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_virtual_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -1260,9 +1260,9 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "virtualNodePoolId": virtual_node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1270,7 +1270,7 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "overrideEvictionGraceDurationVnp": kwargs.get("override_eviction_grace_duration_vnp", missing), "isForceDeletionAfterOverrideGraceDurationVnp": kwargs.get("is_force_deletion_after_override_grace_duration_vnp", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1278,7 +1278,7 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1363,7 +1363,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1372,9 +1372,9 @@ def delete_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1384,7 +1384,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1470,7 +1470,7 @@ def delete_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_workload_mapping got unknown kwargs: {extra_kwargs!r}") @@ -1480,9 +1480,9 @@ def delete_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): "workloadMappingId": workload_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1492,7 +1492,7 @@ def delete_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1581,7 +1581,7 @@ def disable_addon(self, cluster_id, addon_name, is_remove_existing_add_on, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_addon got unknown kwargs: {extra_kwargs!r}") @@ -1591,16 +1591,16 @@ def disable_addon(self, cluster_id, addon_name, is_remove_existing_add_on, **kwa "addonName": addon_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isRemoveExistingAddOn": is_remove_existing_add_on } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1608,7 +1608,7 @@ def disable_addon(self, cluster_id, addon_name, is_remove_existing_add_on, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1690,7 +1690,7 @@ def get_addon(self, cluster_id, addon_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_addon got unknown kwargs: {extra_kwargs!r}") @@ -1700,9 +1700,9 @@ def get_addon(self, cluster_id, addon_name, **kwargs): "addonName": addon_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1711,7 +1711,7 @@ def get_addon(self, cluster_id, addon_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1794,7 +1794,7 @@ def get_cluster(self, cluster_id, **kwargs): "opc_request_id", "should_include_oidc_config_file" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1803,23 +1803,23 @@ def get_cluster(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "shouldIncludeOidcConfigFile": kwargs.get("should_include_oidc_config_file", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1900,7 +1900,7 @@ def get_cluster_migrate_to_native_vcn_status(self, cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster_migrate_to_native_vcn_status got unknown kwargs: {extra_kwargs!r}") @@ -1909,9 +1909,9 @@ def get_cluster_migrate_to_native_vcn_status(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1920,7 +1920,7 @@ def get_cluster_migrate_to_native_vcn_status(self, cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2007,7 +2007,7 @@ def get_cluster_options(self, cluster_option_id, **kwargs): "should_list_all_patch_versions", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster_options got unknown kwargs: {extra_kwargs!r}") @@ -2016,9 +2016,9 @@ def get_cluster_options(self, cluster_option_id, **kwargs): "clusterOptionId": cluster_option_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2026,14 +2026,14 @@ def get_cluster_options(self, cluster_option_id, **kwargs): "compartmentId": kwargs.get("compartment_id", missing), "shouldListAllPatchVersions": kwargs.get("should_list_all_patch_versions", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2114,7 +2114,7 @@ def get_credential_rotation_status(self, cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_credential_rotation_status got unknown kwargs: {extra_kwargs!r}") @@ -2123,9 +2123,9 @@ def get_credential_rotation_status(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2134,7 +2134,7 @@ def get_credential_rotation_status(self, cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2213,7 +2213,7 @@ def get_node_pool(self, node_pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -2222,9 +2222,9 @@ def get_node_pool(self, node_pool_id, **kwargs): "nodePoolId": node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2233,7 +2233,7 @@ def get_node_pool(self, node_pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2336,7 +2336,7 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs): "node_pool_k8s_version", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_node_pool_options got unknown kwargs: {extra_kwargs!r}") @@ -2345,9 +2345,9 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs): "nodePoolOptionId": node_pool_option_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2372,14 +2372,14 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs): "nodePoolOsArch": kwargs.get("node_pool_os_arch", missing), "nodePoolK8sVersion": kwargs.get("node_pool_k8s_version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2463,7 +2463,7 @@ def get_virtual_node(self, virtual_node_pool_id, virtual_node_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_virtual_node got unknown kwargs: {extra_kwargs!r}") @@ -2473,9 +2473,9 @@ def get_virtual_node(self, virtual_node_pool_id, virtual_node_id, **kwargs): "virtualNodeId": virtual_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2484,7 +2484,7 @@ def get_virtual_node(self, virtual_node_pool_id, virtual_node_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2563,7 +2563,7 @@ def get_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_virtual_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -2572,9 +2572,9 @@ def get_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "virtualNodePoolId": virtual_node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2583,7 +2583,7 @@ def get_virtual_node_pool(self, virtual_node_pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2662,7 +2662,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2671,9 +2671,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2682,7 +2682,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2764,7 +2764,7 @@ def get_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_workload_mapping got unknown kwargs: {extra_kwargs!r}") @@ -2774,9 +2774,9 @@ def get_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): "workloadMappingId": workload_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2785,7 +2785,7 @@ def get_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2878,7 +2878,7 @@ def install_addon(self, cluster_id, install_addon_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_addon got unknown kwargs: {extra_kwargs!r}") @@ -2887,9 +2887,9 @@ def install_addon(self, cluster_id, install_addon_details, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2900,7 +2900,7 @@ def install_addon(self, cluster_id, install_addon_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3016,7 +3016,7 @@ def list_addon_options(self, kubernetes_version, **kwargs): "sort_by", "should_show_all_versions" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addon_options got unknown kwargs: {extra_kwargs!r}") @@ -3044,14 +3044,14 @@ def list_addon_options(self, kubernetes_version, **kwargs): "sortBy": kwargs.get("sort_by", missing), "shouldShowAllVersions": kwargs.get("should_show_all_versions", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3157,7 +3157,7 @@ def list_addons(self, cluster_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addons got unknown kwargs: {extra_kwargs!r}") @@ -3166,9 +3166,9 @@ def list_addons(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3192,14 +3192,14 @@ def list_addons(self, cluster_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3319,7 +3319,7 @@ def list_clusters(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_clusters got unknown kwargs: {extra_kwargs!r}") @@ -3355,14 +3355,14 @@ def list_clusters(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3484,7 +3484,7 @@ def list_node_pools(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_node_pools got unknown kwargs: {extra_kwargs!r}") @@ -3521,14 +3521,14 @@ def list_node_pools(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": self.base_client.generate_collection_format_param(kwargs.get("lifecycle_state", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3642,7 +3642,7 @@ def list_pod_shapes(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pod_shapes got unknown kwargs: {extra_kwargs!r}") @@ -3670,14 +3670,14 @@ def list_pod_shapes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3797,7 +3797,7 @@ def list_virtual_node_pools(self, compartment_id, **kwargs): "sort_by", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_virtual_node_pools got unknown kwargs: {extra_kwargs!r}") @@ -3834,14 +3834,14 @@ def list_virtual_node_pools(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": self.base_client.generate_collection_format_param(kwargs.get("lifecycle_state", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3951,7 +3951,7 @@ def list_virtual_nodes(self, virtual_node_pool_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_virtual_nodes got unknown kwargs: {extra_kwargs!r}") @@ -3960,9 +3960,9 @@ def list_virtual_nodes(self, virtual_node_pool_id, **kwargs): "virtualNodePoolId": virtual_node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3987,14 +3987,14 @@ def list_virtual_nodes(self, virtual_node_pool_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4078,7 +4078,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4087,23 +4087,23 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4187,7 +4187,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4196,23 +4196,23 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4338,7 +4338,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4375,14 +4375,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4488,7 +4488,7 @@ def list_workload_mappings(self, cluster_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_workload_mappings got unknown kwargs: {extra_kwargs!r}") @@ -4497,9 +4497,9 @@ def list_workload_mappings(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4523,14 +4523,14 @@ def list_workload_mappings(self, cluster_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4622,7 +4622,7 @@ def reboot_cluster_node(self, cluster_id, node_id, reboot_cluster_node_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reboot_cluster_node got unknown kwargs: {extra_kwargs!r}") @@ -4632,9 +4632,9 @@ def reboot_cluster_node(self, cluster_id, node_id, reboot_cluster_node_details, "nodeId": node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4644,7 +4644,7 @@ def reboot_cluster_node(self, cluster_id, node_id, reboot_cluster_node_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4735,7 +4735,7 @@ def replace_boot_volume_cluster_node(self, cluster_id, node_id, replace_boot_vol "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"replace_boot_volume_cluster_node got unknown kwargs: {extra_kwargs!r}") @@ -4745,9 +4745,9 @@ def replace_boot_volume_cluster_node(self, cluster_id, node_id, replace_boot_vol "nodeId": node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4757,7 +4757,7 @@ def replace_boot_volume_cluster_node(self, cluster_id, node_id, replace_boot_vol "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4851,7 +4851,7 @@ def start_credential_rotation(self, cluster_id, start_credential_rotation_detail "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_credential_rotation got unknown kwargs: {extra_kwargs!r}") @@ -4860,9 +4860,9 @@ def start_credential_rotation(self, cluster_id, start_credential_rotation_detail "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4873,7 +4873,7 @@ def start_credential_rotation(self, cluster_id, start_credential_rotation_detail "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4965,7 +4965,7 @@ def update_addon(self, cluster_id, addon_name, update_addon_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_addon got unknown kwargs: {extra_kwargs!r}") @@ -4975,9 +4975,9 @@ def update_addon(self, cluster_id, addon_name, update_addon_details, **kwargs): "addonName": addon_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4987,7 +4987,7 @@ def update_addon(self, cluster_id, addon_name, update_addon_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5075,7 +5075,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cluster got unknown kwargs: {extra_kwargs!r}") @@ -5084,9 +5084,9 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5096,7 +5096,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5184,7 +5184,7 @@ def update_cluster_endpoint_config(self, cluster_id, update_cluster_endpoint_con "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cluster_endpoint_config got unknown kwargs: {extra_kwargs!r}") @@ -5193,9 +5193,9 @@ def update_cluster_endpoint_config(self, cluster_id, update_cluster_endpoint_con "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5205,7 +5205,7 @@ def update_cluster_endpoint_config(self, cluster_id, update_cluster_endpoint_con "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5302,7 +5302,7 @@ def update_node_pool(self, node_pool_id, update_node_pool_details, **kwargs): "override_eviction_grace_duration", "is_force_deletion_after_override_grace_duration" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -5311,9 +5311,9 @@ def update_node_pool(self, node_pool_id, update_node_pool_details, **kwargs): "nodePoolId": node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5321,7 +5321,7 @@ def update_node_pool(self, node_pool_id, update_node_pool_details, **kwargs): "overrideEvictionGraceDuration": kwargs.get("override_eviction_grace_duration", missing), "isForceDeletionAfterOverrideGraceDuration": kwargs.get("is_force_deletion_after_override_grace_duration", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5329,7 +5329,7 @@ def update_node_pool(self, node_pool_id, update_node_pool_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5419,7 +5419,7 @@ def update_virtual_node_pool(self, virtual_node_pool_id, update_virtual_node_poo "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_virtual_node_pool got unknown kwargs: {extra_kwargs!r}") @@ -5428,9 +5428,9 @@ def update_virtual_node_pool(self, virtual_node_pool_id, update_virtual_node_poo "virtualNodePoolId": virtual_node_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5440,7 +5440,7 @@ def update_virtual_node_pool(self, virtual_node_pool_id, update_virtual_node_poo "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5531,7 +5531,7 @@ def update_workload_mapping(self, cluster_id, workload_mapping_id, update_worklo "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_workload_mapping got unknown kwargs: {extra_kwargs!r}") @@ -5541,9 +5541,9 @@ def update_workload_mapping(self, cluster_id, workload_mapping_id, update_worklo "workloadMappingId": workload_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5553,7 +5553,7 @@ def update_workload_mapping(self, cluster_id, workload_mapping_id, update_worklo "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/container_instances/container_instance_client.py b/src/oci/container_instances/container_instance_client.py index 8bfed8060..e8b32d33b 100644 --- a/src/oci/container_instances/container_instance_client.py +++ b/src/oci/container_instances/container_instance_client.py @@ -173,7 +173,7 @@ def change_container_instance_compartment(self, container_instance_id, change_co "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_container_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -182,9 +182,9 @@ def change_container_instance_compartment(self, container_instance_id, change_co "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -194,7 +194,7 @@ def change_container_instance_compartment(self, container_instance_id, change_co "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def create_container_instance(self, create_container_instance_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -291,7 +291,7 @@ def create_container_instance(self, create_container_instance_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -380,7 +380,7 @@ def delete_container_instance(self, container_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -389,9 +389,9 @@ def delete_container_instance(self, container_instance_id, **kwargs): "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -401,7 +401,7 @@ def delete_container_instance(self, container_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -479,7 +479,7 @@ def get_container(self, container_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container got unknown kwargs: {extra_kwargs!r}") @@ -488,9 +488,9 @@ def get_container(self, container_id, **kwargs): "containerId": container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -499,7 +499,7 @@ def get_container(self, container_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -579,7 +579,7 @@ def get_container_instance(self, container_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -588,9 +588,9 @@ def get_container_instance(self, container_instance_id, **kwargs): "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -599,7 +599,7 @@ def get_container_instance(self, container_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -677,7 +677,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -686,9 +686,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -697,7 +697,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -795,7 +795,7 @@ def list_container_instance_shapes(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_instance_shapes got unknown kwargs: {extra_kwargs!r}") @@ -806,14 +806,14 @@ def list_container_instance_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -933,7 +933,7 @@ def list_container_instances(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_instances got unknown kwargs: {extra_kwargs!r}") @@ -969,14 +969,14 @@ def list_container_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1102,7 +1102,7 @@ def list_containers(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_containers got unknown kwargs: {extra_kwargs!r}") @@ -1139,14 +1139,14 @@ def list_containers(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1248,7 +1248,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1257,9 +1257,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1283,14 +1283,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1394,7 +1394,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1403,9 +1403,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1429,14 +1429,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1562,7 +1562,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "resource_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1599,14 +1599,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "resourceId": kwargs.get("resource_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1694,7 +1694,7 @@ def restart_container_instance(self, container_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -1703,9 +1703,9 @@ def restart_container_instance(self, container_instance_id, **kwargs): "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1715,7 +1715,7 @@ def restart_container_instance(self, container_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1798,7 +1798,7 @@ def retrieve_logs(self, container_id, **kwargs): "opc_request_id", "is_previous" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_logs got unknown kwargs: {extra_kwargs!r}") @@ -1807,23 +1807,23 @@ def retrieve_logs(self, container_id, **kwargs): "containerId": container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isPrevious": kwargs.get("is_previous", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, text/plain", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1913,7 +1913,7 @@ def start_container_instance(self, container_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -1922,9 +1922,9 @@ def start_container_instance(self, container_instance_id, **kwargs): "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1934,7 +1934,7 @@ def start_container_instance(self, container_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2020,7 +2020,7 @@ def stop_container_instance(self, container_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -2029,9 +2029,9 @@ def stop_container_instance(self, container_instance_id, **kwargs): "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2041,7 +2041,7 @@ def stop_container_instance(self, container_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2130,7 +2130,7 @@ def update_container(self, container_id, update_container_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container got unknown kwargs: {extra_kwargs!r}") @@ -2139,9 +2139,9 @@ def update_container(self, container_id, update_container_details, **kwargs): "containerId": container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2151,7 +2151,7 @@ def update_container(self, container_id, update_container_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2242,7 +2242,7 @@ def update_container_instance(self, container_instance_id, update_container_inst "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_instance got unknown kwargs: {extra_kwargs!r}") @@ -2251,9 +2251,9 @@ def update_container_instance(self, container_instance_id, update_container_inst "containerInstanceId": container_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2263,7 +2263,7 @@ def update_container_instance(self, container_instance_id, update_container_inst "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/core/blockstorage_client.py b/src/oci/core/blockstorage_client.py index 738c5380d..8ccb2a1a3 100644 --- a/src/oci/core/blockstorage_client.py +++ b/src/oci/core/blockstorage_client.py @@ -176,7 +176,7 @@ def change_boot_volume_backup_compartment(self, boot_volume_backup_id, change_bo "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_boot_volume_backup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def change_boot_volume_backup_compartment(self, boot_volume_backup_id, change_bo "bootVolumeBackupId": boot_volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def change_boot_volume_backup_compartment(self, boot_volume_backup_id, change_bo "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def change_boot_volume_compartment(self, boot_volume_id, change_boot_volume_comp "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_boot_volume_compartment got unknown kwargs: {extra_kwargs!r}") @@ -289,9 +289,9 @@ def change_boot_volume_compartment(self, boot_volume_id, change_boot_volume_comp "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -300,7 +300,7 @@ def change_boot_volume_compartment(self, boot_volume_id, change_boot_volume_comp "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -384,7 +384,7 @@ def change_volume_backup_compartment(self, volume_backup_id, change_volume_backu "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_volume_backup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -393,9 +393,9 @@ def change_volume_backup_compartment(self, volume_backup_id, change_volume_backu "volumeBackupId": volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -404,7 +404,7 @@ def change_volume_backup_compartment(self, volume_backup_id, change_volume_backu "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -488,7 +488,7 @@ def change_volume_compartment(self, volume_id, change_volume_compartment_details "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_volume_compartment got unknown kwargs: {extra_kwargs!r}") @@ -497,9 +497,9 @@ def change_volume_compartment(self, volume_id, change_volume_compartment_details "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -508,7 +508,7 @@ def change_volume_compartment(self, volume_id, change_volume_compartment_details "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -592,7 +592,7 @@ def change_volume_group_backup_compartment(self, volume_group_backup_id, change_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_volume_group_backup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -601,9 +601,9 @@ def change_volume_group_backup_compartment(self, volume_group_backup_id, change_ "volumeGroupBackupId": volume_group_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -612,7 +612,7 @@ def change_volume_group_backup_compartment(self, volume_group_backup_id, change_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -696,7 +696,7 @@ def change_volume_group_compartment(self, volume_group_id, change_volume_group_c "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_volume_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -705,9 +705,9 @@ def change_volume_group_compartment(self, volume_group_id, change_volume_group_c "volumeGroupId": volume_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -716,7 +716,7 @@ def change_volume_group_compartment(self, volume_group_id, change_volume_group_c "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -807,7 +807,7 @@ def copy_boot_volume_backup(self, boot_volume_backup_id, copy_boot_volume_backup "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_boot_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -816,9 +816,9 @@ def copy_boot_volume_backup(self, boot_volume_backup_id, copy_boot_volume_backup "bootVolumeBackupId": boot_volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -828,7 +828,7 @@ def copy_boot_volume_backup(self, boot_volume_backup_id, copy_boot_volume_backup "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -922,7 +922,7 @@ def copy_volume_backup(self, volume_backup_id, copy_volume_backup_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -931,9 +931,9 @@ def copy_volume_backup(self, volume_backup_id, copy_volume_backup_details, **kwa "volumeBackupId": volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -943,7 +943,7 @@ def copy_volume_backup(self, volume_backup_id, copy_volume_backup_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1037,7 +1037,7 @@ def copy_volume_group_backup(self, volume_group_backup_id, copy_volume_group_bac "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_volume_group_backup got unknown kwargs: {extra_kwargs!r}") @@ -1046,9 +1046,9 @@ def copy_volume_group_backup(self, volume_group_backup_id, copy_volume_group_bac "volumeGroupBackupId": volume_group_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1058,7 +1058,7 @@ def copy_volume_group_backup(self, volume_group_backup_id, copy_volume_group_bac "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1146,7 +1146,7 @@ def create_boot_volume(self, create_boot_volume_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_boot_volume got unknown kwargs: {extra_kwargs!r}") @@ -1156,7 +1156,7 @@ def create_boot_volume(self, create_boot_volume_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1244,7 +1244,7 @@ def create_boot_volume_backup(self, create_boot_volume_backup_details, **kwargs) "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_boot_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -1254,7 +1254,7 @@ def create_boot_volume_backup(self, create_boot_volume_backup_details, **kwargs) "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1352,7 +1352,7 @@ def create_volume(self, create_volume_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_volume got unknown kwargs: {extra_kwargs!r}") @@ -1362,7 +1362,7 @@ def create_volume(self, create_volume_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1450,7 +1450,7 @@ def create_volume_backup(self, create_volume_backup_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -1460,7 +1460,7 @@ def create_volume_backup(self, create_volume_backup_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1551,7 +1551,7 @@ def create_volume_backup_policy(self, create_volume_backup_policy_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_volume_backup_policy got unknown kwargs: {extra_kwargs!r}") @@ -1562,7 +1562,7 @@ def create_volume_backup_policy(self, create_volume_backup_policy_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1633,7 +1633,7 @@ def create_volume_backup_policy_assignment(self, create_volume_backup_policy_ass api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicyAssignment/CreateVolumeBackupPolicyAssignment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_volume_backup_policy_assignment got unknown kwargs: {extra_kwargs!r}") @@ -1729,7 +1729,7 @@ def create_volume_group(self, create_volume_group_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_volume_group got unknown kwargs: {extra_kwargs!r}") @@ -1739,7 +1739,7 @@ def create_volume_group(self, create_volume_group_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1823,7 +1823,7 @@ def create_volume_group_backup(self, create_volume_group_backup_details, **kwarg "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_volume_group_backup got unknown kwargs: {extra_kwargs!r}") @@ -1833,7 +1833,7 @@ def create_volume_group_backup(self, create_volume_group_backup_details, **kwarg "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1917,7 +1917,7 @@ def delete_boot_volume(self, boot_volume_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_boot_volume got unknown kwargs: {extra_kwargs!r}") @@ -1926,9 +1926,9 @@ def delete_boot_volume(self, boot_volume_id, **kwargs): "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1937,7 +1937,7 @@ def delete_boot_volume(self, boot_volume_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2013,7 +2013,7 @@ def delete_boot_volume_backup(self, boot_volume_backup_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_boot_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -2022,9 +2022,9 @@ def delete_boot_volume_backup(self, boot_volume_backup_id, **kwargs): "bootVolumeBackupId": boot_volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2033,7 +2033,7 @@ def delete_boot_volume_backup(self, boot_volume_backup_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2109,7 +2109,7 @@ def delete_boot_volume_kms_key(self, boot_volume_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_boot_volume_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -2118,9 +2118,9 @@ def delete_boot_volume_kms_key(self, boot_volume_id, **kwargs): "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2129,7 +2129,7 @@ def delete_boot_volume_kms_key(self, boot_volume_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2210,7 +2210,7 @@ def delete_volume(self, volume_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume got unknown kwargs: {extra_kwargs!r}") @@ -2219,9 +2219,9 @@ def delete_volume(self, volume_id, **kwargs): "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2230,7 +2230,7 @@ def delete_volume(self, volume_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2306,7 +2306,7 @@ def delete_volume_backup(self, volume_backup_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -2315,9 +2315,9 @@ def delete_volume_backup(self, volume_backup_id, **kwargs): "volumeBackupId": volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2326,7 +2326,7 @@ def delete_volume_backup(self, volume_backup_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2413,7 +2413,7 @@ def delete_volume_backup_policy(self, policy_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume_backup_policy got unknown kwargs: {extra_kwargs!r}") @@ -2422,9 +2422,9 @@ def delete_volume_backup_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2434,7 +2434,7 @@ def delete_volume_backup_policy(self, policy_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2510,7 +2510,7 @@ def delete_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs) "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume_backup_policy_assignment got unknown kwargs: {extra_kwargs!r}") @@ -2519,9 +2519,9 @@ def delete_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs) "policyAssignmentId": policy_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2530,7 +2530,7 @@ def delete_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs) "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2609,7 +2609,7 @@ def delete_volume_group(self, volume_group_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume_group got unknown kwargs: {extra_kwargs!r}") @@ -2618,9 +2618,9 @@ def delete_volume_group(self, volume_group_id, **kwargs): "volumeGroupId": volume_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2629,7 +2629,7 @@ def delete_volume_group(self, volume_group_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2708,7 +2708,7 @@ def delete_volume_group_backup(self, volume_group_backup_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume_group_backup got unknown kwargs: {extra_kwargs!r}") @@ -2717,9 +2717,9 @@ def delete_volume_group_backup(self, volume_group_backup_id, **kwargs): "volumeGroupBackupId": volume_group_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2728,7 +2728,7 @@ def delete_volume_group_backup(self, volume_group_backup_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2804,7 +2804,7 @@ def delete_volume_kms_key(self, volume_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_volume_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -2813,9 +2813,9 @@ def delete_volume_kms_key(self, volume_id, **kwargs): "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2824,7 +2824,7 @@ def delete_volume_kms_key(self, volume_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2890,7 +2890,7 @@ def get_block_volume_replica(self, block_volume_replica_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BlockVolumeReplica/GetBlockVolumeReplica" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_block_volume_replica got unknown kwargs: {extra_kwargs!r}") @@ -2899,9 +2899,9 @@ def get_block_volume_replica(self, block_volume_replica_id, **kwargs): "blockVolumeReplicaId": block_volume_replica_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2976,7 +2976,7 @@ def get_boot_volume(self, boot_volume_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolume/GetBootVolume" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_boot_volume got unknown kwargs: {extra_kwargs!r}") @@ -2985,9 +2985,9 @@ def get_boot_volume(self, boot_volume_id, **kwargs): "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3062,7 +3062,7 @@ def get_boot_volume_backup(self, boot_volume_backup_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/GetBootVolumeBackup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_boot_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -3071,9 +3071,9 @@ def get_boot_volume_backup(self, boot_volume_backup_id, **kwargs): "bootVolumeBackupId": boot_volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3158,7 +3158,7 @@ def get_boot_volume_kms_key(self, boot_volume_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_boot_volume_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -3167,9 +3167,9 @@ def get_boot_volume_kms_key(self, boot_volume_id, **kwargs): "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3178,7 +3178,7 @@ def get_boot_volume_kms_key(self, boot_volume_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3246,7 +3246,7 @@ def get_boot_volume_replica(self, boot_volume_replica_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeReplica/GetBootVolumeReplica" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_boot_volume_replica got unknown kwargs: {extra_kwargs!r}") @@ -3255,9 +3255,9 @@ def get_boot_volume_replica(self, boot_volume_replica_id, **kwargs): "bootVolumeReplicaId": boot_volume_replica_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3332,7 +3332,7 @@ def get_volume(self, volume_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Volume/GetVolume" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume got unknown kwargs: {extra_kwargs!r}") @@ -3341,9 +3341,9 @@ def get_volume(self, volume_id, **kwargs): "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3418,7 +3418,7 @@ def get_volume_backup(self, volume_backup_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/GetVolumeBackup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -3427,9 +3427,9 @@ def get_volume_backup(self, volume_backup_id, **kwargs): "volumeBackupId": volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3504,7 +3504,7 @@ def get_volume_backup_policy(self, policy_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicy/GetVolumeBackupPolicy" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_backup_policy got unknown kwargs: {extra_kwargs!r}") @@ -3513,9 +3513,9 @@ def get_volume_backup_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3614,7 +3614,7 @@ def get_volume_backup_policy_asset_assignment(self, asset_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_backup_policy_asset_assignment got unknown kwargs: {extra_kwargs!r}") @@ -3624,7 +3624,7 @@ def get_volume_backup_policy_asset_assignment(self, asset_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3697,7 +3697,7 @@ def get_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicyAssignment/GetVolumeBackupPolicyAssignment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_backup_policy_assignment got unknown kwargs: {extra_kwargs!r}") @@ -3706,9 +3706,9 @@ def get_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs): "policyAssignmentId": policy_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3785,7 +3785,7 @@ def get_volume_group(self, volume_group_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroup/GetVolumeGroup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_group got unknown kwargs: {extra_kwargs!r}") @@ -3794,9 +3794,9 @@ def get_volume_group(self, volume_group_id, **kwargs): "volumeGroupId": volume_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3873,7 +3873,7 @@ def get_volume_group_backup(self, volume_group_backup_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/GetVolumeGroupBackup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_group_backup got unknown kwargs: {extra_kwargs!r}") @@ -3882,9 +3882,9 @@ def get_volume_group_backup(self, volume_group_backup_id, **kwargs): "volumeGroupBackupId": volume_group_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3959,7 +3959,7 @@ def get_volume_group_replica(self, volume_group_replica_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupReplica/GetVolumeGroupReplica" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_group_replica got unknown kwargs: {extra_kwargs!r}") @@ -3968,9 +3968,9 @@ def get_volume_group_replica(self, volume_group_replica_id, **kwargs): "volumeGroupReplicaId": volume_group_replica_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4055,7 +4055,7 @@ def get_volume_kms_key(self, volume_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -4064,9 +4064,9 @@ def get_volume_kms_key(self, volume_id, **kwargs): "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4075,7 +4075,7 @@ def get_volume_kms_key(self, volume_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4208,7 +4208,7 @@ def list_block_volume_replicas(self, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_block_volume_replicas got unknown kwargs: {extra_kwargs!r}") @@ -4245,7 +4245,7 @@ def list_block_volume_replicas(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4381,7 +4381,7 @@ def list_boot_volume_backups(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_boot_volume_backups got unknown kwargs: {extra_kwargs!r}") @@ -4418,7 +4418,7 @@ def list_boot_volume_backups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4556,7 +4556,7 @@ def list_boot_volume_replicas(self, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_boot_volume_replicas got unknown kwargs: {extra_kwargs!r}") @@ -4593,7 +4593,7 @@ def list_boot_volume_replicas(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4701,7 +4701,7 @@ def list_boot_volumes(self, **kwargs): "page", "volume_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_boot_volumes got unknown kwargs: {extra_kwargs!r}") @@ -4713,7 +4713,7 @@ def list_boot_volumes(self, **kwargs): "page": kwargs.get("page", missing), "volumeGroupId": kwargs.get("volume_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4815,7 +4815,7 @@ def list_volume_backup_policies(self, **kwargs): "page", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volume_backup_policies got unknown kwargs: {extra_kwargs!r}") @@ -4825,7 +4825,7 @@ def list_volume_backup_policies(self, **kwargs): "page": kwargs.get("page", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4961,7 +4961,7 @@ def list_volume_backups(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volume_backups got unknown kwargs: {extra_kwargs!r}") @@ -4998,7 +4998,7 @@ def list_volume_backups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5126,7 +5126,7 @@ def list_volume_group_backups(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volume_group_backups got unknown kwargs: {extra_kwargs!r}") @@ -5154,7 +5154,7 @@ def list_volume_group_backups(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5289,7 +5289,7 @@ def list_volume_group_replicas(self, availability_domain, compartment_id, **kwar "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volume_group_replicas got unknown kwargs: {extra_kwargs!r}") @@ -5325,7 +5325,7 @@ def list_volume_group_replicas(self, availability_domain, compartment_id, **kwar "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5462,7 +5462,7 @@ def list_volume_groups(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volume_groups got unknown kwargs: {extra_kwargs!r}") @@ -5498,7 +5498,7 @@ def list_volume_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5641,7 +5641,7 @@ def list_volumes(self, **kwargs): "cluster_placement_group_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volumes got unknown kwargs: {extra_kwargs!r}") @@ -5679,7 +5679,7 @@ def list_volumes(self, **kwargs): "clusterPlacementGroupId": kwargs.get("cluster_placement_group_id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5765,7 +5765,7 @@ def update_boot_volume(self, boot_volume_id, update_boot_volume_details, **kwarg "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_boot_volume got unknown kwargs: {extra_kwargs!r}") @@ -5774,9 +5774,9 @@ def update_boot_volume(self, boot_volume_id, update_boot_volume_details, **kwarg "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5785,7 +5785,7 @@ def update_boot_volume(self, boot_volume_id, update_boot_volume_details, **kwarg "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5869,7 +5869,7 @@ def update_boot_volume_backup(self, boot_volume_backup_id, update_boot_volume_ba "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_boot_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -5878,9 +5878,9 @@ def update_boot_volume_backup(self, boot_volume_backup_id, update_boot_volume_ba "bootVolumeBackupId": boot_volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5889,7 +5889,7 @@ def update_boot_volume_backup(self, boot_volume_backup_id, update_boot_volume_ba "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5972,7 +5972,7 @@ def update_boot_volume_kms_key(self, boot_volume_id, update_boot_volume_kms_key_ "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_boot_volume_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -5981,9 +5981,9 @@ def update_boot_volume_kms_key(self, boot_volume_id, update_boot_volume_kms_key_ "bootVolumeId": boot_volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5992,7 +5992,7 @@ def update_boot_volume_kms_key(self, boot_volume_id, update_boot_volume_kms_key_ "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6076,7 +6076,7 @@ def update_volume(self, volume_id, update_volume_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume got unknown kwargs: {extra_kwargs!r}") @@ -6085,9 +6085,9 @@ def update_volume(self, volume_id, update_volume_details, **kwargs): "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6096,7 +6096,7 @@ def update_volume(self, volume_id, update_volume_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6180,7 +6180,7 @@ def update_volume_backup(self, volume_backup_id, update_volume_backup_details, * "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume_backup got unknown kwargs: {extra_kwargs!r}") @@ -6189,9 +6189,9 @@ def update_volume_backup(self, volume_backup_id, update_volume_backup_details, * "volumeBackupId": volume_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6200,7 +6200,7 @@ def update_volume_backup(self, volume_backup_id, update_volume_backup_details, * "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6302,7 +6302,7 @@ def update_volume_backup_policy(self, policy_id, update_volume_backup_policy_det "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume_backup_policy got unknown kwargs: {extra_kwargs!r}") @@ -6311,9 +6311,9 @@ def update_volume_backup_policy(self, policy_id, update_volume_backup_policy_det "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6324,7 +6324,7 @@ def update_volume_backup_policy(self, policy_id, update_volume_backup_policy_det "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6421,7 +6421,7 @@ def update_volume_group(self, volume_group_id, update_volume_group_details, **kw "if_match", "preserve_volume_replica" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume_group got unknown kwargs: {extra_kwargs!r}") @@ -6430,23 +6430,23 @@ def update_volume_group(self, volume_group_id, update_volume_group_details, **kw "volumeGroupId": volume_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "preserveVolumeReplica": kwargs.get("preserve_volume_replica", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6533,7 +6533,7 @@ def update_volume_group_backup(self, volume_group_backup_id, update_volume_group "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume_group_backup got unknown kwargs: {extra_kwargs!r}") @@ -6542,9 +6542,9 @@ def update_volume_group_backup(self, volume_group_backup_id, update_volume_group "volumeGroupBackupId": volume_group_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6553,7 +6553,7 @@ def update_volume_group_backup(self, volume_group_backup_id, update_volume_group "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6636,7 +6636,7 @@ def update_volume_kms_key(self, volume_id, update_volume_kms_key_details, **kwar "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -6645,9 +6645,9 @@ def update_volume_kms_key(self, volume_id, update_volume_kms_key_details, **kwar "volumeId": volume_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6656,7 +6656,7 @@ def update_volume_kms_key(self, volume_id, update_volume_kms_key_details, **kwar "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/core/compute_client.py b/src/oci/core/compute_client.py index a956d6ae3..8bdf36258 100644 --- a/src/oci/core/compute_client.py +++ b/src/oci/core/compute_client.py @@ -183,7 +183,7 @@ def accept_shielded_integrity_policy(self, instance_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"accept_shielded_integrity_policy got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def accept_shielded_integrity_policy(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def accept_shielded_integrity_policy(self, instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -285,7 +285,7 @@ def add_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): "retry_strategy", "add_image_shape_compatibility_entry_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_image_shape_compatibility_entry got unknown kwargs: {extra_kwargs!r}") @@ -295,9 +295,9 @@ def add_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): "shapeName": shape_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -386,7 +386,7 @@ def attach_boot_volume(self, attach_boot_volume_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_boot_volume got unknown kwargs: {extra_kwargs!r}") @@ -396,7 +396,7 @@ def attach_boot_volume(self, attach_boot_volume_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -495,7 +495,7 @@ def attach_compute_host_group_host(self, compute_host_id, attach_compute_host_gr "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_compute_host_group_host got unknown kwargs: {extra_kwargs!r}") @@ -504,9 +504,9 @@ def attach_compute_host_group_host(self, compute_host_id, attach_compute_host_gr "computeHostId": compute_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -517,7 +517,7 @@ def attach_compute_host_group_host(self, compute_host_id, attach_compute_host_gr "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -606,7 +606,7 @@ def attach_vnic(self, attach_vnic_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_vnic got unknown kwargs: {extra_kwargs!r}") @@ -616,7 +616,7 @@ def attach_vnic(self, attach_vnic_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -697,7 +697,7 @@ def attach_volume(self, attach_volume_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_volume got unknown kwargs: {extra_kwargs!r}") @@ -707,7 +707,7 @@ def attach_volume(self, attach_volume_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -804,7 +804,7 @@ def capture_console_history(self, capture_console_history_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"capture_console_history got unknown kwargs: {extra_kwargs!r}") @@ -814,7 +814,7 @@ def capture_console_history(self, capture_console_history_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -913,7 +913,7 @@ def change_compute_capacity_reservation_compartment(self, capacity_reservation_i "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_capacity_reservation_compartment got unknown kwargs: {extra_kwargs!r}") @@ -922,9 +922,9 @@ def change_compute_capacity_reservation_compartment(self, capacity_reservation_i "capacityReservationId": capacity_reservation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -935,7 +935,7 @@ def change_compute_capacity_reservation_compartment(self, capacity_reservation_i "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1035,7 +1035,7 @@ def change_compute_capacity_topology_compartment(self, compute_capacity_topology "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_capacity_topology_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1044,9 +1044,9 @@ def change_compute_capacity_topology_compartment(self, compute_capacity_topology "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1057,7 +1057,7 @@ def change_compute_capacity_topology_compartment(self, compute_capacity_topology "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1166,7 +1166,7 @@ def change_compute_cluster_compartment(self, compute_cluster_id, change_compute_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1175,9 +1175,9 @@ def change_compute_cluster_compartment(self, compute_cluster_id, change_compute_ "computeClusterId": compute_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1188,7 +1188,7 @@ def change_compute_cluster_compartment(self, compute_cluster_id, change_compute_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1286,7 +1286,7 @@ def change_compute_gpu_memory_cluster_compartment(self, compute_gpu_memory_clust "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_gpu_memory_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1295,9 +1295,9 @@ def change_compute_gpu_memory_cluster_compartment(self, compute_gpu_memory_clust "computeGpuMemoryClusterId": compute_gpu_memory_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1308,7 +1308,7 @@ def change_compute_gpu_memory_cluster_compartment(self, compute_gpu_memory_clust "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1408,7 +1408,7 @@ def change_compute_gpu_memory_fabric_compartment(self, compute_gpu_memory_fabric "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_gpu_memory_fabric_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1417,9 +1417,9 @@ def change_compute_gpu_memory_fabric_compartment(self, compute_gpu_memory_fabric "computeGpuMemoryFabricId": compute_gpu_memory_fabric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1430,7 +1430,7 @@ def change_compute_gpu_memory_fabric_compartment(self, compute_gpu_memory_fabric "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1532,7 +1532,7 @@ def change_compute_host_compartment(self, compute_host_id, change_compute_host_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_host_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1541,9 +1541,9 @@ def change_compute_host_compartment(self, compute_host_id, change_compute_host_c "computeHostId": compute_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1554,7 +1554,7 @@ def change_compute_host_compartment(self, compute_host_id, change_compute_host_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1656,7 +1656,7 @@ def change_compute_host_group_compartment(self, compute_host_group_id, change_co "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_host_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1665,9 +1665,9 @@ def change_compute_host_group_compartment(self, compute_host_group_id, change_co "computeHostGroupId": compute_host_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1678,7 +1678,7 @@ def change_compute_host_group_compartment(self, compute_host_group_id, change_co "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1779,7 +1779,7 @@ def change_compute_image_capability_schema_compartment(self, compute_image_capab "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compute_image_capability_schema_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1788,9 +1788,9 @@ def change_compute_image_capability_schema_compartment(self, compute_image_capab "computeImageCapabilitySchemaId": compute_image_capability_schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1801,7 +1801,7 @@ def change_compute_image_capability_schema_compartment(self, compute_image_capab "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1898,7 +1898,7 @@ def change_dedicated_vm_host_compartment(self, dedicated_vm_host_id, change_dedi "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dedicated_vm_host_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1907,9 +1907,9 @@ def change_dedicated_vm_host_compartment(self, dedicated_vm_host_id, change_dedi "dedicatedVmHostId": dedicated_vm_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1920,7 +1920,7 @@ def change_dedicated_vm_host_compartment(self, dedicated_vm_host_id, change_dedi "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2021,7 +2021,7 @@ def change_image_compartment(self, image_id, change_image_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_image_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2030,9 +2030,9 @@ def change_image_compartment(self, image_id, change_image_compartment_details, * "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2043,7 +2043,7 @@ def change_image_compartment(self, image_id, change_image_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2149,7 +2149,7 @@ def change_instance_compartment(self, instance_id, change_instance_compartment_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2158,9 +2158,9 @@ def change_instance_compartment(self, instance_id, change_instance_compartment_d "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2171,7 +2171,7 @@ def change_instance_compartment(self, instance_id, change_instance_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2252,7 +2252,7 @@ def create_app_catalog_subscription(self, create_app_catalog_subscription_detail "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_app_catalog_subscription got unknown kwargs: {extra_kwargs!r}") @@ -2262,7 +2262,7 @@ def create_app_catalog_subscription(self, create_app_catalog_subscription_detail "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2355,7 +2355,7 @@ def create_compute_capacity_report(self, create_compute_capacity_report_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_capacity_report got unknown kwargs: {extra_kwargs!r}") @@ -2366,7 +2366,7 @@ def create_compute_capacity_report(self, create_compute_capacity_report_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2462,7 +2462,7 @@ def create_compute_capacity_reservation(self, create_compute_capacity_reservatio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_capacity_reservation got unknown kwargs: {extra_kwargs!r}") @@ -2473,7 +2473,7 @@ def create_compute_capacity_reservation(self, create_compute_capacity_reservatio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2564,7 +2564,7 @@ def create_compute_capacity_topology(self, create_compute_capacity_topology_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}") @@ -2575,7 +2575,7 @@ def create_compute_capacity_topology(self, create_compute_capacity_topology_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2688,7 +2688,7 @@ def create_compute_cluster(self, create_compute_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_cluster got unknown kwargs: {extra_kwargs!r}") @@ -2699,7 +2699,7 @@ def create_compute_cluster(self, create_compute_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2785,7 +2785,7 @@ def create_compute_gpu_memory_cluster(self, create_compute_gpu_memory_cluster_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_gpu_memory_cluster got unknown kwargs: {extra_kwargs!r}") @@ -2796,7 +2796,7 @@ def create_compute_gpu_memory_cluster(self, create_compute_gpu_memory_cluster_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2884,7 +2884,7 @@ def create_compute_host_group(self, create_compute_host_group_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_host_group got unknown kwargs: {extra_kwargs!r}") @@ -2895,7 +2895,7 @@ def create_compute_host_group(self, create_compute_host_group_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2978,7 +2978,7 @@ def create_compute_image_capability_schema(self, create_compute_image_capability "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compute_image_capability_schema got unknown kwargs: {extra_kwargs!r}") @@ -2988,7 +2988,7 @@ def create_compute_image_capability_schema(self, create_compute_image_capability "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3081,7 +3081,7 @@ def create_dedicated_vm_host(self, create_dedicated_vm_host_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dedicated_vm_host got unknown kwargs: {extra_kwargs!r}") @@ -3092,7 +3092,7 @@ def create_dedicated_vm_host(self, create_dedicated_vm_host_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3200,7 +3200,7 @@ def create_image(self, create_image_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_image got unknown kwargs: {extra_kwargs!r}") @@ -3210,7 +3210,7 @@ def create_image(self, create_image_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3299,7 +3299,7 @@ def create_instance_console_connection(self, create_instance_console_connection_ "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_instance_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -3309,7 +3309,7 @@ def create_instance_console_connection(self, create_instance_console_connection_ "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3386,7 +3386,7 @@ def delete_app_catalog_subscription(self, listing_id, compartment_id, resource_v api_reference_link = "" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_app_catalog_subscription got unknown kwargs: {extra_kwargs!r}") @@ -3396,7 +3396,7 @@ def delete_app_catalog_subscription(self, listing_id, compartment_id, resource_v "compartmentId": compartment_id, "resourceVersion": resource_version } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3482,7 +3482,7 @@ def delete_compute_capacity_reservation(self, capacity_reservation_id, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compute_capacity_reservation got unknown kwargs: {extra_kwargs!r}") @@ -3491,9 +3491,9 @@ def delete_compute_capacity_reservation(self, capacity_reservation_id, **kwargs) "capacityReservationId": capacity_reservation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3503,7 +3503,7 @@ def delete_compute_capacity_reservation(self, capacity_reservation_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3586,7 +3586,7 @@ def delete_compute_capacity_topology(self, compute_capacity_topology_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}") @@ -3595,9 +3595,9 @@ def delete_compute_capacity_topology(self, compute_capacity_topology_id, **kwarg "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3607,7 +3607,7 @@ def delete_compute_capacity_topology(self, compute_capacity_topology_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3701,7 +3701,7 @@ def delete_compute_cluster(self, compute_cluster_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compute_cluster got unknown kwargs: {extra_kwargs!r}") @@ -3710,9 +3710,9 @@ def delete_compute_cluster(self, compute_cluster_id, **kwargs): "computeClusterId": compute_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3722,7 +3722,7 @@ def delete_compute_cluster(self, compute_cluster_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3803,7 +3803,7 @@ def delete_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compute_gpu_memory_cluster got unknown kwargs: {extra_kwargs!r}") @@ -3812,9 +3812,9 @@ def delete_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwa "computeGpuMemoryClusterId": compute_gpu_memory_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3824,7 +3824,7 @@ def delete_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3909,7 +3909,7 @@ def delete_compute_host_group(self, compute_host_group_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compute_host_group got unknown kwargs: {extra_kwargs!r}") @@ -3918,9 +3918,9 @@ def delete_compute_host_group(self, compute_host_group_id, **kwargs): "computeHostGroupId": compute_host_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3930,7 +3930,7 @@ def delete_compute_host_group(self, compute_host_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4006,7 +4006,7 @@ def delete_compute_image_capability_schema(self, compute_image_capability_schema "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compute_image_capability_schema got unknown kwargs: {extra_kwargs!r}") @@ -4015,9 +4015,9 @@ def delete_compute_image_capability_schema(self, compute_image_capability_schema "computeImageCapabilitySchemaId": compute_image_capability_schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4026,7 +4026,7 @@ def delete_compute_image_capability_schema(self, compute_image_capability_schema "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4102,7 +4102,7 @@ def delete_console_history(self, instance_console_history_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_console_history got unknown kwargs: {extra_kwargs!r}") @@ -4111,9 +4111,9 @@ def delete_console_history(self, instance_console_history_id, **kwargs): "instanceConsoleHistoryId": instance_console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4122,7 +4122,7 @@ def delete_console_history(self, instance_console_history_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4200,7 +4200,7 @@ def delete_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dedicated_vm_host got unknown kwargs: {extra_kwargs!r}") @@ -4209,9 +4209,9 @@ def delete_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): "dedicatedVmHostId": dedicated_vm_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4220,7 +4220,7 @@ def delete_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4298,7 +4298,7 @@ def delete_image(self, image_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_image got unknown kwargs: {extra_kwargs!r}") @@ -4307,9 +4307,9 @@ def delete_image(self, image_id, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4318,7 +4318,7 @@ def delete_image(self, image_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4394,7 +4394,7 @@ def delete_instance_console_connection(self, instance_console_connection_id, **k "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_instance_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -4403,9 +4403,9 @@ def delete_instance_console_connection(self, instance_console_connection_id, **k "instanceConsoleConnectionId": instance_console_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4414,7 +4414,7 @@ def delete_instance_console_connection(self, instance_console_connection_id, **k "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4493,7 +4493,7 @@ def detach_boot_volume(self, boot_volume_attachment_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_boot_volume got unknown kwargs: {extra_kwargs!r}") @@ -4502,9 +4502,9 @@ def detach_boot_volume(self, boot_volume_attachment_id, **kwargs): "bootVolumeAttachmentId": boot_volume_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4513,7 +4513,7 @@ def detach_boot_volume(self, boot_volume_attachment_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4609,7 +4609,7 @@ def detach_compute_host_group_host(self, compute_host_id, detach_compute_host_gr "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_compute_host_group_host got unknown kwargs: {extra_kwargs!r}") @@ -4618,9 +4618,9 @@ def detach_compute_host_group_host(self, compute_host_id, detach_compute_host_gr "computeHostId": compute_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4631,7 +4631,7 @@ def detach_compute_host_group_host(self, compute_host_id, detach_compute_host_gr "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4723,7 +4723,7 @@ def detach_vnic(self, vnic_attachment_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_vnic got unknown kwargs: {extra_kwargs!r}") @@ -4732,9 +4732,9 @@ def detach_vnic(self, vnic_attachment_id, **kwargs): "vnicAttachmentId": vnic_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4743,7 +4743,7 @@ def detach_vnic(self, vnic_attachment_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4822,7 +4822,7 @@ def detach_volume(self, volume_attachment_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_volume got unknown kwargs: {extra_kwargs!r}") @@ -4831,9 +4831,9 @@ def detach_volume(self, volume_attachment_id, **kwargs): "volumeAttachmentId": volume_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4842,7 +4842,7 @@ def detach_volume(self, volume_attachment_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4945,7 +4945,7 @@ def export_image(self, image_id, export_image_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_image got unknown kwargs: {extra_kwargs!r}") @@ -4954,9 +4954,9 @@ def export_image(self, image_id, export_image_details, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4966,7 +4966,7 @@ def export_image(self, image_id, export_image_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5039,7 +5039,7 @@ def get_app_catalog_listing(self, listing_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListing/GetAppCatalogListing" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_app_catalog_listing got unknown kwargs: {extra_kwargs!r}") @@ -5048,9 +5048,9 @@ def get_app_catalog_listing(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5130,7 +5130,7 @@ def get_app_catalog_listing_agreements(self, listing_id, resource_version, **kwa api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListingResourceVersionAgreements/GetAppCatalogListingAgreements" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_app_catalog_listing_agreements got unknown kwargs: {extra_kwargs!r}") @@ -5140,9 +5140,9 @@ def get_app_catalog_listing_agreements(self, listing_id, resource_version, **kwa "resourceVersion": resource_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5222,7 +5222,7 @@ def get_app_catalog_listing_resource_version(self, listing_id, resource_version, api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListingResourceVersion/GetAppCatalogListingResourceVersion" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_app_catalog_listing_resource_version got unknown kwargs: {extra_kwargs!r}") @@ -5232,9 +5232,9 @@ def get_app_catalog_listing_resource_version(self, listing_id, resource_version, "resourceVersion": resource_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5311,7 +5311,7 @@ def get_boot_volume_attachment(self, boot_volume_attachment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeAttachment/GetBootVolumeAttachment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_boot_volume_attachment got unknown kwargs: {extra_kwargs!r}") @@ -5320,9 +5320,9 @@ def get_boot_volume_attachment(self, boot_volume_attachment_id, **kwargs): "bootVolumeAttachmentId": boot_volume_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5406,7 +5406,7 @@ def get_compute_capacity_reservation(self, capacity_reservation_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_capacity_reservation got unknown kwargs: {extra_kwargs!r}") @@ -5415,9 +5415,9 @@ def get_compute_capacity_reservation(self, capacity_reservation_id, **kwargs): "capacityReservationId": capacity_reservation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5426,7 +5426,7 @@ def get_compute_capacity_reservation(self, capacity_reservation_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5505,7 +5505,7 @@ def get_compute_capacity_topology(self, compute_capacity_topology_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}") @@ -5514,9 +5514,9 @@ def get_compute_capacity_topology(self, compute_capacity_topology_id, **kwargs): "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5525,7 +5525,7 @@ def get_compute_capacity_topology(self, compute_capacity_topology_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5612,7 +5612,7 @@ def get_compute_cluster(self, compute_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_cluster got unknown kwargs: {extra_kwargs!r}") @@ -5621,9 +5621,9 @@ def get_compute_cluster(self, compute_cluster_id, **kwargs): "computeClusterId": compute_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5632,7 +5632,7 @@ def get_compute_cluster(self, compute_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5702,7 +5702,7 @@ def get_compute_global_image_capability_schema(self, compute_global_image_capabi api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGlobalImageCapabilitySchema/GetComputeGlobalImageCapabilitySchema" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_global_image_capability_schema got unknown kwargs: {extra_kwargs!r}") @@ -5711,9 +5711,9 @@ def get_compute_global_image_capability_schema(self, compute_global_image_capabi "computeGlobalImageCapabilitySchemaId": compute_global_image_capability_schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5795,7 +5795,7 @@ def get_compute_global_image_capability_schema_version(self, compute_global_imag api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGlobalImageCapabilitySchemaVersion/GetComputeGlobalImageCapabilitySchemaVersion" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_global_image_capability_schema_version got unknown kwargs: {extra_kwargs!r}") @@ -5805,9 +5805,9 @@ def get_compute_global_image_capability_schema_version(self, compute_global_imag "computeGlobalImageCapabilitySchemaVersionName": compute_global_image_capability_schema_version_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5893,7 +5893,7 @@ def get_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_gpu_memory_cluster got unknown kwargs: {extra_kwargs!r}") @@ -5902,9 +5902,9 @@ def get_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwargs "computeGpuMemoryClusterId": compute_gpu_memory_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5913,7 +5913,7 @@ def get_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5990,7 +5990,7 @@ def get_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_gpu_memory_fabric got unknown kwargs: {extra_kwargs!r}") @@ -5999,9 +5999,9 @@ def get_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, **kwargs): "computeGpuMemoryFabricId": compute_gpu_memory_fabric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6010,7 +6010,7 @@ def get_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6091,7 +6091,7 @@ def get_compute_host(self, compute_host_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_host got unknown kwargs: {extra_kwargs!r}") @@ -6100,9 +6100,9 @@ def get_compute_host(self, compute_host_id, **kwargs): "computeHostId": compute_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6111,7 +6111,7 @@ def get_compute_host(self, compute_host_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6192,7 +6192,7 @@ def get_compute_host_group(self, compute_host_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_host_group got unknown kwargs: {extra_kwargs!r}") @@ -6201,9 +6201,9 @@ def get_compute_host_group(self, compute_host_group_id, **kwargs): "computeHostGroupId": compute_host_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6212,7 +6212,7 @@ def get_compute_host_group(self, compute_host_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6290,7 +6290,7 @@ def get_compute_image_capability_schema(self, compute_image_capability_schema_id "retry_strategy", "is_merge_enabled" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compute_image_capability_schema got unknown kwargs: {extra_kwargs!r}") @@ -6299,16 +6299,16 @@ def get_compute_image_capability_schema(self, compute_image_capability_schema_id "computeImageCapabilitySchemaId": compute_image_capability_schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isMergeEnabled": kwargs.get("is_merge_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6387,7 +6387,7 @@ def get_console_history(self, instance_console_history_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/GetConsoleHistory" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_console_history got unknown kwargs: {extra_kwargs!r}") @@ -6396,9 +6396,9 @@ def get_console_history(self, instance_console_history_id, **kwargs): "instanceConsoleHistoryId": instance_console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6487,7 +6487,7 @@ def get_console_history_content(self, instance_console_history_id, **kwargs): "offset", "length" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_console_history_content got unknown kwargs: {extra_kwargs!r}") @@ -6496,9 +6496,9 @@ def get_console_history_content(self, instance_console_history_id, **kwargs): "instanceConsoleHistoryId": instance_console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6506,7 +6506,7 @@ def get_console_history_content(self, instance_console_history_id, **kwargs): "offset": kwargs.get("offset", missing), "length": kwargs.get("length", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6590,7 +6590,7 @@ def get_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dedicated_vm_host got unknown kwargs: {extra_kwargs!r}") @@ -6599,9 +6599,9 @@ def get_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): "dedicatedVmHostId": dedicated_vm_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6610,7 +6610,7 @@ def get_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6680,7 +6680,7 @@ def get_image(self, image_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/GetImage" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_image got unknown kwargs: {extra_kwargs!r}") @@ -6689,9 +6689,9 @@ def get_image(self, image_id, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6782,7 +6782,7 @@ def get_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_image_shape_compatibility_entry got unknown kwargs: {extra_kwargs!r}") @@ -6792,9 +6792,9 @@ def get_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): "shapeName": shape_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6803,7 +6803,7 @@ def get_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6878,7 +6878,7 @@ def get_instance(self, instance_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/GetInstance" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance got unknown kwargs: {extra_kwargs!r}") @@ -6887,9 +6887,9 @@ def get_instance(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6964,7 +6964,7 @@ def get_instance_console_connection(self, instance_console_connection_id, **kwar api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/GetInstanceConsoleConnection" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -6973,9 +6973,9 @@ def get_instance_console_connection(self, instance_console_connection_id, **kwar "instanceConsoleConnectionId": instance_console_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7059,7 +7059,7 @@ def get_instance_maintenance_event(self, instance_maintenance_event_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_maintenance_event got unknown kwargs: {extra_kwargs!r}") @@ -7068,9 +7068,9 @@ def get_instance_maintenance_event(self, instance_maintenance_event_id, **kwargs "instanceMaintenanceEventId": instance_maintenance_event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7079,7 +7079,7 @@ def get_instance_maintenance_event(self, instance_maintenance_event_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7161,7 +7161,7 @@ def get_instance_maintenance_reboot(self, instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_maintenance_reboot got unknown kwargs: {extra_kwargs!r}") @@ -7170,9 +7170,9 @@ def get_instance_maintenance_reboot(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7181,7 +7181,7 @@ def get_instance_maintenance_reboot(self, instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7260,7 +7260,7 @@ def get_measured_boot_report(self, instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_measured_boot_report got unknown kwargs: {extra_kwargs!r}") @@ -7269,9 +7269,9 @@ def get_measured_boot_report(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7280,7 +7280,7 @@ def get_measured_boot_report(self, instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7348,7 +7348,7 @@ def get_vnic_attachment(self, vnic_attachment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicAttachment/GetVnicAttachment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vnic_attachment got unknown kwargs: {extra_kwargs!r}") @@ -7357,9 +7357,9 @@ def get_vnic_attachment(self, vnic_attachment_id, **kwargs): "vnicAttachmentId": vnic_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7434,7 +7434,7 @@ def get_volume_attachment(self, volume_attachment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeAttachment/GetVolumeAttachment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_volume_attachment got unknown kwargs: {extra_kwargs!r}") @@ -7443,9 +7443,9 @@ def get_volume_attachment(self, volume_attachment_id, **kwargs): "volumeAttachmentId": volume_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7523,7 +7523,7 @@ def get_windows_instance_initial_credentials(self, instance_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceCredentials/GetWindowsInstanceInitialCredentials" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_windows_instance_initial_credentials got unknown kwargs: {extra_kwargs!r}") @@ -7532,9 +7532,9 @@ def get_windows_instance_initial_credentials(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7684,7 +7684,7 @@ def instance_action(self, instance_id, action, **kwargs): "if_match", "instance_power_action_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"instance_action got unknown kwargs: {extra_kwargs!r}") @@ -7693,16 +7693,16 @@ def instance_action(self, instance_id, action, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "action": action } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7710,7 +7710,7 @@ def instance_action(self, instance_id, action, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7848,7 +7848,7 @@ def launch_instance(self, launch_instance_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"launch_instance got unknown kwargs: {extra_kwargs!r}") @@ -7858,7 +7858,7 @@ def launch_instance(self, launch_instance_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7956,7 +7956,7 @@ def list_app_catalog_listing_resource_versions(self, listing_id, **kwargs): "page", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_app_catalog_listing_resource_versions got unknown kwargs: {extra_kwargs!r}") @@ -7965,9 +7965,9 @@ def list_app_catalog_listing_resource_versions(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7983,7 +7983,7 @@ def list_app_catalog_listing_resource_versions(self, listing_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8098,7 +8098,7 @@ def list_app_catalog_listings(self, **kwargs): "publisher_type", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_app_catalog_listings got unknown kwargs: {extra_kwargs!r}") @@ -8118,7 +8118,7 @@ def list_app_catalog_listings(self, **kwargs): "publisherType": kwargs.get("publisher_type", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8241,7 +8241,7 @@ def list_app_catalog_subscriptions(self, compartment_id, **kwargs): "sort_order", "listing_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_app_catalog_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -8268,7 +8268,7 @@ def list_app_catalog_subscriptions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "listingId": kwargs.get("listing_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8381,7 +8381,7 @@ def list_boot_volume_attachments(self, availability_domain, compartment_id, **kw "instance_id", "boot_volume_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_boot_volume_attachments got unknown kwargs: {extra_kwargs!r}") @@ -8394,7 +8394,7 @@ def list_boot_volume_attachments(self, availability_domain, compartment_id, **kw "instanceId": kwargs.get("instance_id", missing), "bootVolumeId": kwargs.get("boot_volume_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", @@ -8526,7 +8526,7 @@ def list_compute_capacity_reservation_instance_shapes(self, compartment_id, **kw "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_reservation_instance_shapes got unknown kwargs: {extra_kwargs!r}") @@ -8554,14 +8554,14 @@ def list_compute_capacity_reservation_instance_shapes(self, compartment_id, **kw "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8688,7 +8688,7 @@ def list_compute_capacity_reservation_instances(self, capacity_reservation_id, * "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_reservation_instances got unknown kwargs: {extra_kwargs!r}") @@ -8697,9 +8697,9 @@ def list_compute_capacity_reservation_instances(self, capacity_reservation_id, * "capacityReservationId": capacity_reservation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8725,14 +8725,14 @@ def list_compute_capacity_reservation_instances(self, capacity_reservation_id, * "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8870,7 +8870,7 @@ def list_compute_capacity_reservations(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_reservations got unknown kwargs: {extra_kwargs!r}") @@ -8906,14 +8906,14 @@ def list_compute_capacity_reservations(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9041,7 +9041,7 @@ def list_compute_capacity_topologies(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_topologies got unknown kwargs: {extra_kwargs!r}") @@ -9069,14 +9069,14 @@ def list_compute_capacity_topologies(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9225,7 +9225,7 @@ def list_compute_capacity_topology_compute_bare_metal_hosts(self, compute_capaci "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_topology_compute_bare_metal_hosts got unknown kwargs: {extra_kwargs!r}") @@ -9234,9 +9234,9 @@ def list_compute_capacity_topology_compute_bare_metal_hosts(self, compute_capaci "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9265,14 +9265,14 @@ def list_compute_capacity_topology_compute_bare_metal_hosts(self, compute_capaci "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9405,7 +9405,7 @@ def list_compute_capacity_topology_compute_hpc_islands(self, compute_capacity_to "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_topology_compute_hpc_islands got unknown kwargs: {extra_kwargs!r}") @@ -9414,9 +9414,9 @@ def list_compute_capacity_topology_compute_hpc_islands(self, compute_capacity_to "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9442,14 +9442,14 @@ def list_compute_capacity_topology_compute_hpc_islands(self, compute_capacity_to "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9588,7 +9588,7 @@ def list_compute_capacity_topology_compute_network_blocks(self, compute_capacity "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_capacity_topology_compute_network_blocks got unknown kwargs: {extra_kwargs!r}") @@ -9597,9 +9597,9 @@ def list_compute_capacity_topology_compute_network_blocks(self, compute_capacity "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9626,14 +9626,14 @@ def list_compute_capacity_topology_compute_network_blocks(self, compute_capacity "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9767,7 +9767,7 @@ def list_compute_clusters(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_clusters got unknown kwargs: {extra_kwargs!r}") @@ -9795,14 +9795,14 @@ def list_compute_clusters(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9918,7 +9918,7 @@ def list_compute_global_image_capability_schema_versions(self, compute_global_im "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_global_image_capability_schema_versions got unknown kwargs: {extra_kwargs!r}") @@ -9927,9 +9927,9 @@ def list_compute_global_image_capability_schema_versions(self, compute_global_im "computeGlobalImageCapabilitySchemaId": compute_global_image_capability_schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9954,7 +9954,7 @@ def list_compute_global_image_capability_schema_versions(self, compute_global_im "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10078,7 +10078,7 @@ def list_compute_global_image_capability_schemas(self, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_global_image_capability_schemas got unknown kwargs: {extra_kwargs!r}") @@ -10105,7 +10105,7 @@ def list_compute_global_image_capability_schemas(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10227,7 +10227,7 @@ def list_compute_gpu_memory_cluster_instances(self, compute_gpu_memory_cluster_i "sort_order", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_gpu_memory_cluster_instances got unknown kwargs: {extra_kwargs!r}") @@ -10236,9 +10236,9 @@ def list_compute_gpu_memory_cluster_instances(self, compute_gpu_memory_cluster_i "computeGpuMemoryClusterId": compute_gpu_memory_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10262,14 +10262,14 @@ def list_compute_gpu_memory_cluster_instances(self, compute_gpu_memory_cluster_i "sortOrder": kwargs.get("sort_order", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10413,7 +10413,7 @@ def list_compute_gpu_memory_clusters(self, compartment_id, **kwargs): "sort_order", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_gpu_memory_clusters got unknown kwargs: {extra_kwargs!r}") @@ -10443,14 +10443,14 @@ def list_compute_gpu_memory_clusters(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10607,7 +10607,7 @@ def list_compute_gpu_memory_fabrics(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_gpu_memory_fabrics got unknown kwargs: {extra_kwargs!r}") @@ -10654,14 +10654,14 @@ def list_compute_gpu_memory_fabrics(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10760,7 +10760,7 @@ def list_compute_host_groups(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_host_groups got unknown kwargs: {extra_kwargs!r}") @@ -10770,14 +10770,14 @@ def list_compute_host_groups(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10935,7 +10935,7 @@ def list_compute_hosts(self, compartment_id, **kwargs): "compute_host_group_id", "compute_host_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_hosts got unknown kwargs: {extra_kwargs!r}") @@ -10968,14 +10968,14 @@ def list_compute_hosts(self, compartment_id, **kwargs): "computeHostGroupId": kwargs.get("compute_host_group_id", missing), "computeHostInSubtree": kwargs.get("compute_host_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11098,7 +11098,7 @@ def list_compute_image_capability_schemas(self, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compute_image_capability_schemas got unknown kwargs: {extra_kwargs!r}") @@ -11126,7 +11126,7 @@ def list_compute_image_capability_schemas(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11262,7 +11262,7 @@ def list_console_histories(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_console_histories got unknown kwargs: {extra_kwargs!r}") @@ -11298,7 +11298,7 @@ def list_console_histories(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11411,7 +11411,7 @@ def list_dedicated_vm_host_instance_shapes(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dedicated_vm_host_instance_shapes got unknown kwargs: {extra_kwargs!r}") @@ -11423,14 +11423,14 @@ def list_dedicated_vm_host_instance_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11560,7 +11560,7 @@ def list_dedicated_vm_host_instances(self, compartment_id, dedicated_vm_host_id, "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dedicated_vm_host_instances got unknown kwargs: {extra_kwargs!r}") @@ -11569,9 +11569,9 @@ def list_dedicated_vm_host_instances(self, compartment_id, dedicated_vm_host_id, "dedicatedVmHostId": dedicated_vm_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11598,14 +11598,14 @@ def list_dedicated_vm_host_instances(self, compartment_id, dedicated_vm_host_id, "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11714,7 +11714,7 @@ def list_dedicated_vm_host_shapes(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dedicated_vm_host_shapes got unknown kwargs: {extra_kwargs!r}") @@ -11726,14 +11726,14 @@ def list_dedicated_vm_host_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11885,7 +11885,7 @@ def list_dedicated_vm_hosts(self, compartment_id, **kwargs): "remaining_ocpus_greater_than_or_equal_to", "is_memory_encryption_enabled" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dedicated_vm_hosts got unknown kwargs: {extra_kwargs!r}") @@ -11925,14 +11925,14 @@ def list_dedicated_vm_hosts(self, compartment_id, **kwargs): "remainingOcpusGreaterThanOrEqualTo": kwargs.get("remaining_ocpus_greater_than_or_equal_to", missing), "isMemoryEncryptionEnabled": kwargs.get("is_memory_encryption_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12029,7 +12029,7 @@ def list_image_shape_compatibility_entries(self, image_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_image_shape_compatibility_entries got unknown kwargs: {extra_kwargs!r}") @@ -12038,9 +12038,9 @@ def list_image_shape_compatibility_entries(self, image_id, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12048,14 +12048,14 @@ def list_image_shape_compatibility_entries(self, image_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12211,7 +12211,7 @@ def list_images(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_images got unknown kwargs: {extra_kwargs!r}") @@ -12249,7 +12249,7 @@ def list_images(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12356,7 +12356,7 @@ def list_instance_console_connections(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_console_connections got unknown kwargs: {extra_kwargs!r}") @@ -12367,7 +12367,7 @@ def list_instance_console_connections(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12497,7 +12497,7 @@ def list_instance_devices(self, instance_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_devices got unknown kwargs: {extra_kwargs!r}") @@ -12506,9 +12506,9 @@ def list_instance_devices(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12534,14 +12534,14 @@ def list_instance_devices(self, instance_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12690,7 +12690,7 @@ def list_instance_maintenance_events(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_maintenance_events got unknown kwargs: {extra_kwargs!r}") @@ -12729,14 +12729,14 @@ def list_instance_maintenance_events(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12883,7 +12883,7 @@ def list_instances(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instances got unknown kwargs: {extra_kwargs!r}") @@ -12921,7 +12921,7 @@ def list_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", @@ -13031,7 +13031,7 @@ def list_shapes(self, compartment_id, **kwargs): "page", "image_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_shapes got unknown kwargs: {extra_kwargs!r}") @@ -13043,7 +13043,7 @@ def list_shapes(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "imageId": kwargs.get("image_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -13156,7 +13156,7 @@ def list_vnic_attachments(self, compartment_id, **kwargs): "page", "vnic_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vnic_attachments got unknown kwargs: {extra_kwargs!r}") @@ -13169,7 +13169,7 @@ def list_vnic_attachments(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "vnicId": kwargs.get("vnic_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", @@ -13284,7 +13284,7 @@ def list_volume_attachments(self, compartment_id, **kwargs): "instance_id", "volume_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_volume_attachments got unknown kwargs: {extra_kwargs!r}") @@ -13297,7 +13297,7 @@ def list_volume_attachments(self, compartment_id, **kwargs): "instanceId": kwargs.get("instance_id", missing), "volumeId": kwargs.get("volume_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/x-json-stream", @@ -13375,7 +13375,7 @@ def remove_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs) api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ImageShapeCompatibilityEntry/RemoveImageShapeCompatibilityEntry" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_image_shape_compatibility_entry got unknown kwargs: {extra_kwargs!r}") @@ -13385,9 +13385,9 @@ def remove_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs) "shapeName": shape_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13502,7 +13502,7 @@ def terminate_instance(self, instance_id, **kwargs): "preserve_data_volumes_created_at_launch", "recycle_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_instance got unknown kwargs: {extra_kwargs!r}") @@ -13511,9 +13511,9 @@ def terminate_instance(self, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13529,14 +13529,14 @@ def terminate_instance(self, instance_id, **kwargs): "preserveDataVolumesCreatedAtLaunch": kwargs.get("preserve_data_volumes_created_at_launch", missing), "recycleLevel": kwargs.get("recycle_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13624,7 +13624,7 @@ def update_compute_capacity_reservation(self, capacity_reservation_id, update_co "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_capacity_reservation got unknown kwargs: {extra_kwargs!r}") @@ -13633,9 +13633,9 @@ def update_compute_capacity_reservation(self, capacity_reservation_id, update_co "capacityReservationId": capacity_reservation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13645,7 +13645,7 @@ def update_compute_capacity_reservation(self, capacity_reservation_id, update_co "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13733,7 +13733,7 @@ def update_compute_capacity_topology(self, compute_capacity_topology_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}") @@ -13742,9 +13742,9 @@ def update_compute_capacity_topology(self, compute_capacity_topology_id, update_ "computeCapacityTopologyId": compute_capacity_topology_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13754,7 +13754,7 @@ def update_compute_capacity_topology(self, compute_capacity_topology_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13864,7 +13864,7 @@ def update_compute_cluster(self, compute_cluster_id, update_compute_cluster_deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_cluster got unknown kwargs: {extra_kwargs!r}") @@ -13873,9 +13873,9 @@ def update_compute_cluster(self, compute_cluster_id, update_compute_cluster_deta "computeClusterId": compute_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13886,7 +13886,7 @@ def update_compute_cluster(self, compute_cluster_id, update_compute_cluster_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13983,7 +13983,7 @@ def update_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, updat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_gpu_memory_cluster got unknown kwargs: {extra_kwargs!r}") @@ -13992,9 +13992,9 @@ def update_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, updat "computeGpuMemoryClusterId": compute_gpu_memory_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14005,7 +14005,7 @@ def update_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, updat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14105,7 +14105,7 @@ def update_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, update_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_gpu_memory_fabric got unknown kwargs: {extra_kwargs!r}") @@ -14114,9 +14114,9 @@ def update_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, update_ "computeGpuMemoryFabricId": compute_gpu_memory_fabric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14127,7 +14127,7 @@ def update_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, update_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14228,7 +14228,7 @@ def update_compute_host(self, compute_host_id, update_compute_host_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_host got unknown kwargs: {extra_kwargs!r}") @@ -14237,9 +14237,9 @@ def update_compute_host(self, compute_host_id, update_compute_host_details, **kw "computeHostId": compute_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14250,7 +14250,7 @@ def update_compute_host(self, compute_host_id, update_compute_host_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14349,7 +14349,7 @@ def update_compute_host_group(self, compute_host_group_id, update_compute_host_g "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_host_group got unknown kwargs: {extra_kwargs!r}") @@ -14358,9 +14358,9 @@ def update_compute_host_group(self, compute_host_group_id, update_compute_host_g "computeHostGroupId": compute_host_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14371,7 +14371,7 @@ def update_compute_host_group(self, compute_host_group_id, update_compute_host_g "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14457,7 +14457,7 @@ def update_compute_image_capability_schema(self, compute_image_capability_schema "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compute_image_capability_schema got unknown kwargs: {extra_kwargs!r}") @@ -14466,9 +14466,9 @@ def update_compute_image_capability_schema(self, compute_image_capability_schema "computeImageCapabilitySchemaId": compute_image_capability_schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14477,7 +14477,7 @@ def update_compute_image_capability_schema(self, compute_image_capability_schema "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14560,7 +14560,7 @@ def update_console_history(self, instance_console_history_id, update_console_his "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_console_history got unknown kwargs: {extra_kwargs!r}") @@ -14569,9 +14569,9 @@ def update_console_history(self, instance_console_history_id, update_console_his "instanceConsoleHistoryId": instance_console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14580,7 +14580,7 @@ def update_console_history(self, instance_console_history_id, update_console_his "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14677,7 +14677,7 @@ def update_dedicated_vm_host(self, dedicated_vm_host_id, update_dedicated_vm_hos "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dedicated_vm_host got unknown kwargs: {extra_kwargs!r}") @@ -14686,9 +14686,9 @@ def update_dedicated_vm_host(self, dedicated_vm_host_id, update_dedicated_vm_hos "dedicatedVmHostId": dedicated_vm_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14699,7 +14699,7 @@ def update_dedicated_vm_host(self, dedicated_vm_host_id, update_dedicated_vm_hos "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14793,7 +14793,7 @@ def update_image(self, image_id, update_image_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_image got unknown kwargs: {extra_kwargs!r}") @@ -14802,9 +14802,9 @@ def update_image(self, image_id, update_image_details, **kwargs): "imageId": image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14814,7 +14814,7 @@ def update_image(self, image_id, update_image_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14914,7 +14914,7 @@ def update_instance(self, instance_id, update_instance_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_instance got unknown kwargs: {extra_kwargs!r}") @@ -14923,9 +14923,9 @@ def update_instance(self, instance_id, update_instance_details, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14935,7 +14935,7 @@ def update_instance(self, instance_id, update_instance_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15024,7 +15024,7 @@ def update_instance_console_connection(self, instance_console_connection_id, upd "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_instance_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -15033,9 +15033,9 @@ def update_instance_console_connection(self, instance_console_connection_id, upd "instanceConsoleConnectionId": instance_console_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15045,7 +15045,7 @@ def update_instance_console_connection(self, instance_console_connection_id, upd "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15141,7 +15141,7 @@ def update_instance_maintenance_event(self, instance_maintenance_event_id, updat "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_instance_maintenance_event got unknown kwargs: {extra_kwargs!r}") @@ -15150,9 +15150,9 @@ def update_instance_maintenance_event(self, instance_maintenance_event_id, updat "instanceMaintenanceEventId": instance_maintenance_event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15163,7 +15163,7 @@ def update_instance_maintenance_event(self, instance_maintenance_event_id, updat "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15252,7 +15252,7 @@ def update_volume_attachment(self, volume_attachment_id, update_volume_attachmen "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_volume_attachment got unknown kwargs: {extra_kwargs!r}") @@ -15261,9 +15261,9 @@ def update_volume_attachment(self, volume_attachment_id, update_volume_attachmen "volumeAttachmentId": volume_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15273,7 +15273,7 @@ def update_volume_attachment(self, volume_attachment_id, update_volume_attachmen "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/core/compute_management_client.py b/src/oci/core/compute_management_client.py index e71db20cc..ebe02a81e 100644 --- a/src/oci/core/compute_management_client.py +++ b/src/oci/core/compute_management_client.py @@ -181,7 +181,7 @@ def attach_instance_pool_instance(self, instance_pool_id, attach_instance_pool_i "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_instance_pool_instance got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def attach_instance_pool_instance(self, instance_pool_id, attach_instance_pool_i "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def attach_instance_pool_instance(self, instance_pool_id, attach_instance_pool_i "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -295,7 +295,7 @@ def attach_load_balancer(self, instance_pool_id, attach_load_balancer_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -304,9 +304,9 @@ def attach_load_balancer(self, instance_pool_id, attach_load_balancer_details, * "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -316,7 +316,7 @@ def attach_load_balancer(self, instance_pool_id, attach_load_balancer_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -424,7 +424,7 @@ def change_cluster_network_compartment(self, cluster_network_id, change_cluster_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cluster_network_compartment got unknown kwargs: {extra_kwargs!r}") @@ -433,9 +433,9 @@ def change_cluster_network_compartment(self, cluster_network_id, change_cluster_ "clusterNetworkId": cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -446,7 +446,7 @@ def change_cluster_network_compartment(self, cluster_network_id, change_cluster_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -556,7 +556,7 @@ def change_instance_configuration_compartment(self, instance_configuration_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_instance_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -565,9 +565,9 @@ def change_instance_configuration_compartment(self, instance_configuration_id, c "instanceConfigurationId": instance_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -578,7 +578,7 @@ def change_instance_configuration_compartment(self, instance_configuration_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -682,7 +682,7 @@ def change_instance_pool_compartment(self, instance_pool_id, change_instance_poo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_instance_pool_compartment got unknown kwargs: {extra_kwargs!r}") @@ -691,9 +691,9 @@ def change_instance_pool_compartment(self, instance_pool_id, change_instance_poo "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -704,7 +704,7 @@ def change_instance_pool_compartment(self, instance_pool_id, change_instance_poo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -801,7 +801,7 @@ def create_cluster_network(self, create_cluster_network_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -811,7 +811,7 @@ def create_cluster_network(self, create_cluster_network_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -893,7 +893,7 @@ def create_instance_configuration(self, create_instance_configuration, **kwargs) "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -903,7 +903,7 @@ def create_instance_configuration(self, create_instance_configuration, **kwargs) "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -988,7 +988,7 @@ def create_instance_pool(self, create_instance_pool_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -998,7 +998,7 @@ def create_instance_pool(self, create_instance_pool_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1077,7 +1077,7 @@ def delete_instance_configuration(self, instance_configuration_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1086,9 +1086,9 @@ def delete_instance_configuration(self, instance_configuration_id, **kwargs): "instanceConfigurationId": instance_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1097,7 +1097,7 @@ def delete_instance_configuration(self, instance_configuration_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1180,7 +1180,7 @@ def detach_instance_pool_instance(self, instance_pool_id, detach_instance_pool_i "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_instance_pool_instance got unknown kwargs: {extra_kwargs!r}") @@ -1189,9 +1189,9 @@ def detach_instance_pool_instance(self, instance_pool_id, detach_instance_pool_i "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1200,7 +1200,7 @@ def detach_instance_pool_instance(self, instance_pool_id, detach_instance_pool_i "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1292,7 +1292,7 @@ def detach_load_balancer(self, instance_pool_id, detach_load_balancer_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -1301,9 +1301,9 @@ def detach_load_balancer(self, instance_pool_id, detach_load_balancer_details, * "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1313,7 +1313,7 @@ def detach_load_balancer(self, instance_pool_id, detach_load_balancer_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1388,7 +1388,7 @@ def get_cluster_network(self, cluster_network_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/GetClusterNetwork" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -1397,9 +1397,9 @@ def get_cluster_network(self, cluster_network_id, **kwargs): "clusterNetworkId": cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1474,7 +1474,7 @@ def get_instance_configuration(self, instance_configuration_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/GetInstanceConfiguration" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1483,9 +1483,9 @@ def get_instance_configuration(self, instance_configuration_id, **kwargs): "instanceConfigurationId": instance_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1562,7 +1562,7 @@ def get_instance_pool(self, instance_pool_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/GetInstancePool" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -1571,9 +1571,9 @@ def get_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1655,7 +1655,7 @@ def get_instance_pool_instance(self, instance_pool_id, instance_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolInstance/GetInstancePoolInstance" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_pool_instance got unknown kwargs: {extra_kwargs!r}") @@ -1665,9 +1665,9 @@ def get_instance_pool_instance(self, instance_pool_id, instance_id, **kwargs): "instanceId": instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1747,7 +1747,7 @@ def get_instance_pool_load_balancer_attachment(self, instance_pool_id, instance_ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolLoadBalancerAttachment/GetInstancePoolLoadBalancerAttachment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_instance_pool_load_balancer_attachment got unknown kwargs: {extra_kwargs!r}") @@ -1757,9 +1757,9 @@ def get_instance_pool_load_balancer_attachment(self, instance_pool_id, instance_ "instancePoolLoadBalancerAttachmentId": instance_pool_load_balancer_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1859,7 +1859,7 @@ def launch_instance_configuration(self, instance_configuration_id, instance_conf "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"launch_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1868,9 +1868,9 @@ def launch_instance_configuration(self, instance_configuration_id, instance_conf "instanceConfigurationId": instance_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1879,7 +1879,7 @@ def launch_instance_configuration(self, instance_configuration_id, instance_conf "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2005,7 +2005,7 @@ def list_cluster_network_instances(self, compartment_id, cluster_network_id, **k "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cluster_network_instances got unknown kwargs: {extra_kwargs!r}") @@ -2014,9 +2014,9 @@ def list_cluster_network_instances(self, compartment_id, cluster_network_id, **k "clusterNetworkId": cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2042,7 +2042,7 @@ def list_cluster_network_instances(self, compartment_id, cluster_network_id, **k "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2175,7 +2175,7 @@ def list_cluster_networks(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cluster_networks got unknown kwargs: {extra_kwargs!r}") @@ -2210,7 +2210,7 @@ def list_cluster_networks(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2327,7 +2327,7 @@ def list_instance_configurations(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2353,7 +2353,7 @@ def list_instance_configurations(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2479,7 +2479,7 @@ def list_instance_pool_instances(self, compartment_id, instance_pool_id, **kwarg "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_pool_instances got unknown kwargs: {extra_kwargs!r}") @@ -2488,9 +2488,9 @@ def list_instance_pool_instances(self, compartment_id, instance_pool_id, **kwarg "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2516,7 +2516,7 @@ def list_instance_pool_instances(self, compartment_id, instance_pool_id, **kwarg "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2646,7 +2646,7 @@ def list_instance_pools(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_instance_pools got unknown kwargs: {extra_kwargs!r}") @@ -2681,7 +2681,7 @@ def list_instance_pools(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2775,7 +2775,7 @@ def reset_instance_pool(self, instance_pool_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reset_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -2784,9 +2784,9 @@ def reset_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2796,7 +2796,7 @@ def reset_instance_pool(self, instance_pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2889,7 +2889,7 @@ def softreset_instance_pool(self, instance_pool_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"softreset_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -2898,9 +2898,9 @@ def softreset_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2910,7 +2910,7 @@ def softreset_instance_pool(self, instance_pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3003,7 +3003,7 @@ def softstop_instance_pool(self, instance_pool_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"softstop_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -3012,9 +3012,9 @@ def softstop_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3024,7 +3024,7 @@ def softstop_instance_pool(self, instance_pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3114,7 +3114,7 @@ def start_instance_pool(self, instance_pool_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -3123,9 +3123,9 @@ def start_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3135,7 +3135,7 @@ def start_instance_pool(self, instance_pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3225,7 +3225,7 @@ def stop_instance_pool(self, instance_pool_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -3234,9 +3234,9 @@ def stop_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3246,7 +3246,7 @@ def stop_instance_pool(self, instance_pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3332,7 +3332,7 @@ def terminate_cluster_network(self, cluster_network_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -3341,9 +3341,9 @@ def terminate_cluster_network(self, cluster_network_id, **kwargs): "clusterNetworkId": cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3352,7 +3352,7 @@ def terminate_cluster_network(self, cluster_network_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3437,7 +3437,7 @@ def terminate_instance_pool(self, instance_pool_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -3446,9 +3446,9 @@ def terminate_instance_pool(self, instance_pool_id, **kwargs): "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3457,7 +3457,7 @@ def terminate_instance_pool(self, instance_pool_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3540,7 +3540,7 @@ def termination_proceed_instance_pool_instance(self, instance_pool_id, terminati "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"termination_proceed_instance_pool_instance got unknown kwargs: {extra_kwargs!r}") @@ -3549,9 +3549,9 @@ def termination_proceed_instance_pool_instance(self, instance_pool_id, terminati "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3560,7 +3560,7 @@ def termination_proceed_instance_pool_instance(self, instance_pool_id, terminati "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3655,7 +3655,7 @@ def update_cluster_network(self, cluster_network_id, update_cluster_network_deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -3664,9 +3664,9 @@ def update_cluster_network(self, cluster_network_id, update_cluster_network_deta "clusterNetworkId": cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3676,7 +3676,7 @@ def update_cluster_network(self, cluster_network_id, update_cluster_network_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3768,7 +3768,7 @@ def update_instance_configuration(self, instance_configuration_id, update_instan "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_instance_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3777,9 +3777,9 @@ def update_instance_configuration(self, instance_configuration_id, update_instan "instanceConfigurationId": instance_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3789,7 +3789,7 @@ def update_instance_configuration(self, instance_configuration_id, update_instan "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3885,7 +3885,7 @@ def update_instance_pool(self, instance_pool_id, update_instance_pool_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_instance_pool got unknown kwargs: {extra_kwargs!r}") @@ -3894,9 +3894,9 @@ def update_instance_pool(self, instance_pool_id, update_instance_pool_details, * "instancePoolId": instance_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3906,7 +3906,7 @@ def update_instance_pool(self, instance_pool_id, update_instance_pool_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/core/virtual_network_client.py b/src/oci/core/virtual_network_client.py index 7c7a62786..e137a4a47 100644 --- a/src/oci/core/virtual_network_client.py +++ b/src/oci/core/virtual_network_client.py @@ -165,7 +165,7 @@ def add_drg_route_distribution_statements(self, drg_route_distribution_id, add_d api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/AddDrgRouteDistributionStatements" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_drg_route_distribution_statements got unknown kwargs: {extra_kwargs!r}") @@ -174,9 +174,9 @@ def add_drg_route_distribution_statements(self, drg_route_distribution_id, add_d "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -270,7 +270,7 @@ def add_drg_route_rules(self, drg_route_table_id, add_drg_route_rules_details, * "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_drg_route_rules got unknown kwargs: {extra_kwargs!r}") @@ -279,9 +279,9 @@ def add_drg_route_rules(self, drg_route_table_id, add_drg_route_rules_details, * "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -290,7 +290,7 @@ def add_drg_route_rules(self, drg_route_table_id, add_drg_route_rules_details, * "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -389,7 +389,7 @@ def add_ipv4_subnet_cidr(self, subnet_id, add_ipv4_subnet_cidr_details, **kwargs "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_ipv4_subnet_cidr got unknown kwargs: {extra_kwargs!r}") @@ -398,9 +398,9 @@ def add_ipv4_subnet_cidr(self, subnet_id, add_ipv4_subnet_cidr_details, **kwargs "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -411,7 +411,7 @@ def add_ipv4_subnet_cidr(self, subnet_id, add_ipv4_subnet_cidr_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def add_ipv6_subnet_cidr(self, subnet_id, add_subnet_ipv6_cidr_details, **kwargs "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_ipv6_subnet_cidr got unknown kwargs: {extra_kwargs!r}") @@ -519,9 +519,9 @@ def add_ipv6_subnet_cidr(self, subnet_id, add_subnet_ipv6_cidr_details, **kwargs "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -532,7 +532,7 @@ def add_ipv6_subnet_cidr(self, subnet_id, add_subnet_ipv6_cidr_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -631,7 +631,7 @@ def add_ipv6_vcn_cidr(self, vcn_id, **kwargs): "if_match", "add_vcn_ipv6_cidr_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_ipv6_vcn_cidr got unknown kwargs: {extra_kwargs!r}") @@ -640,9 +640,9 @@ def add_ipv6_vcn_cidr(self, vcn_id, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -653,7 +653,7 @@ def add_ipv6_vcn_cidr(self, vcn_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -727,7 +727,7 @@ def add_network_security_group_security_rules(self, network_security_group_id, a api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/AddNetworkSecurityGroupSecurityRules" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_network_security_group_security_rules got unknown kwargs: {extra_kwargs!r}") @@ -736,9 +736,9 @@ def add_network_security_group_security_rules(self, network_security_group_id, a "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -839,7 +839,7 @@ def add_public_ip_pool_capacity(self, public_ip_pool_id, add_public_ip_pool_capa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_public_ip_pool_capacity got unknown kwargs: {extra_kwargs!r}") @@ -848,9 +848,9 @@ def add_public_ip_pool_capacity(self, public_ip_pool_id, add_public_ip_pool_capa "publicIpPoolId": public_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -860,7 +860,7 @@ def add_public_ip_pool_capacity(self, public_ip_pool_id, add_public_ip_pool_capa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -965,7 +965,7 @@ def add_vcn_cidr(self, vcn_id, add_vcn_cidr_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_vcn_cidr got unknown kwargs: {extra_kwargs!r}") @@ -974,9 +974,9 @@ def add_vcn_cidr(self, vcn_id, add_vcn_cidr_details, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -987,7 +987,7 @@ def add_vcn_cidr(self, vcn_id, add_vcn_cidr_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1068,7 +1068,7 @@ def advertise_byoip_range(self, byoip_range_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"advertise_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -1077,9 +1077,9 @@ def advertise_byoip_range(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1088,7 +1088,7 @@ def advertise_byoip_range(self, byoip_range_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1178,7 +1178,7 @@ def attach_service_id(self, service_gateway_id, attach_service_details, **kwargs "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_service_id got unknown kwargs: {extra_kwargs!r}") @@ -1187,9 +1187,9 @@ def attach_service_id(self, service_gateway_id, attach_service_details, **kwargs "serviceGatewayId": service_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1198,7 +1198,7 @@ def attach_service_id(self, service_gateway_id, attach_service_details, **kwargs "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1276,7 +1276,7 @@ def bulk_add_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_add_ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuitPublicPrefix/BulkAddVirtualCircuitPublicPrefixes" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_add_virtual_circuit_public_prefixes got unknown kwargs: {extra_kwargs!r}") @@ -1285,9 +1285,9 @@ def bulk_add_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_add_ "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1372,7 +1372,7 @@ def bulk_delete_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_d api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuitPublicPrefix/BulkDeleteVirtualCircuitPublicPrefixes" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_delete_virtual_circuit_public_prefixes got unknown kwargs: {extra_kwargs!r}") @@ -1381,9 +1381,9 @@ def bulk_delete_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_d "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1492,7 +1492,7 @@ def change_byoasn_compartment(self, byoasn_id, change_byoasn_compartment_details "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_byoasn_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1501,9 +1501,9 @@ def change_byoasn_compartment(self, byoasn_id, change_byoasn_compartment_details "byoasnId": byoasn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1514,7 +1514,7 @@ def change_byoasn_compartment(self, byoasn_id, change_byoasn_compartment_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1611,7 +1611,7 @@ def change_byoip_range_compartment(self, byoip_range_id, change_byoip_range_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_byoip_range_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1620,9 +1620,9 @@ def change_byoip_range_compartment(self, byoip_range_id, change_byoip_range_comp "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1632,7 +1632,7 @@ def change_byoip_range_compartment(self, byoip_range_id, change_byoip_range_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1733,7 +1733,7 @@ def change_capture_filter_compartment(self, capture_filter_id, change_capture_fi "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_capture_filter_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1742,9 +1742,9 @@ def change_capture_filter_compartment(self, capture_filter_id, change_capture_fi "captureFilterId": capture_filter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1755,7 +1755,7 @@ def change_capture_filter_compartment(self, capture_filter_id, change_capture_fi "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1850,7 +1850,7 @@ def change_cpe_compartment(self, cpe_id, change_cpe_compartment_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cpe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1859,9 +1859,9 @@ def change_cpe_compartment(self, cpe_id, change_cpe_compartment_details, **kwarg "cpeId": cpe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1871,7 +1871,7 @@ def change_cpe_compartment(self, cpe_id, change_cpe_compartment_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1968,7 +1968,7 @@ def change_cross_connect_compartment(self, cross_connect_id, change_cross_connec "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cross_connect_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1977,9 +1977,9 @@ def change_cross_connect_compartment(self, cross_connect_id, change_cross_connec "crossConnectId": cross_connect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1989,7 +1989,7 @@ def change_cross_connect_compartment(self, cross_connect_id, change_cross_connec "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2086,7 +2086,7 @@ def change_cross_connect_group_compartment(self, cross_connect_group_id, change_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cross_connect_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2095,9 +2095,9 @@ def change_cross_connect_group_compartment(self, cross_connect_group_id, change_ "crossConnectGroupId": cross_connect_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2107,7 +2107,7 @@ def change_cross_connect_group_compartment(self, cross_connect_group_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2204,7 +2204,7 @@ def change_dhcp_options_compartment(self, dhcp_id, change_dhcp_options_compartme "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dhcp_options_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2213,9 +2213,9 @@ def change_dhcp_options_compartment(self, dhcp_id, change_dhcp_options_compartme "dhcpId": dhcp_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2225,7 +2225,7 @@ def change_dhcp_options_compartment(self, dhcp_id, change_dhcp_options_compartme "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2320,7 +2320,7 @@ def change_drg_compartment(self, drg_id, change_drg_compartment_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_drg_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2329,9 +2329,9 @@ def change_drg_compartment(self, drg_id, change_drg_compartment_details, **kwarg "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2341,7 +2341,7 @@ def change_drg_compartment(self, drg_id, change_drg_compartment_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2436,7 +2436,7 @@ def change_internet_gateway_compartment(self, ig_id, change_internet_gateway_com "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_internet_gateway_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2445,9 +2445,9 @@ def change_internet_gateway_compartment(self, ig_id, change_internet_gateway_com "igId": ig_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2457,7 +2457,7 @@ def change_internet_gateway_compartment(self, ig_id, change_internet_gateway_com "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2552,7 +2552,7 @@ def change_ip_sec_connection_compartment(self, ipsc_id, change_ip_sec_connection "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ip_sec_connection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2561,9 +2561,9 @@ def change_ip_sec_connection_compartment(self, ipsc_id, change_ip_sec_connection "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2573,7 +2573,7 @@ def change_ip_sec_connection_compartment(self, ipsc_id, change_ip_sec_connection "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2670,7 +2670,7 @@ def change_local_peering_gateway_compartment(self, local_peering_gateway_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_local_peering_gateway_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2679,9 +2679,9 @@ def change_local_peering_gateway_compartment(self, local_peering_gateway_id, cha "localPeeringGatewayId": local_peering_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2691,7 +2691,7 @@ def change_local_peering_gateway_compartment(self, local_peering_gateway_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2786,7 +2786,7 @@ def change_nat_gateway_compartment(self, nat_gateway_id, change_nat_gateway_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_nat_gateway_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2795,9 +2795,9 @@ def change_nat_gateway_compartment(self, nat_gateway_id, change_nat_gateway_comp "natGatewayId": nat_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2807,7 +2807,7 @@ def change_nat_gateway_compartment(self, nat_gateway_id, change_nat_gateway_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2901,7 +2901,7 @@ def change_network_security_group_compartment(self, network_security_group_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_network_security_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2910,9 +2910,9 @@ def change_network_security_group_compartment(self, network_security_group_id, c "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2922,7 +2922,7 @@ def change_network_security_group_compartment(self, network_security_group_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3020,7 +3020,7 @@ def change_public_ip_compartment(self, public_ip_id, change_public_ip_compartmen "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_public_ip_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3029,9 +3029,9 @@ def change_public_ip_compartment(self, public_ip_id, change_public_ip_compartmen "publicIpId": public_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3041,7 +3041,7 @@ def change_public_ip_compartment(self, public_ip_id, change_public_ip_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3136,7 +3136,7 @@ def change_public_ip_pool_compartment(self, public_ip_pool_id, change_public_ip_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_public_ip_pool_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3145,9 +3145,9 @@ def change_public_ip_pool_compartment(self, public_ip_pool_id, change_public_ip_ "publicIpPoolId": public_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3157,7 +3157,7 @@ def change_public_ip_pool_compartment(self, public_ip_pool_id, change_public_ip_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3252,7 +3252,7 @@ def change_remote_peering_connection_compartment(self, remote_peering_connection "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_remote_peering_connection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3261,9 +3261,9 @@ def change_remote_peering_connection_compartment(self, remote_peering_connection "remotePeeringConnectionId": remote_peering_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3273,7 +3273,7 @@ def change_remote_peering_connection_compartment(self, remote_peering_connection "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3370,7 +3370,7 @@ def change_route_table_compartment(self, rt_id, change_route_table_compartment_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_route_table_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3379,9 +3379,9 @@ def change_route_table_compartment(self, rt_id, change_route_table_compartment_d "rtId": rt_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3391,7 +3391,7 @@ def change_route_table_compartment(self, rt_id, change_route_table_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3486,7 +3486,7 @@ def change_security_list_compartment(self, security_list_id, change_security_lis "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_list_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3495,9 +3495,9 @@ def change_security_list_compartment(self, security_list_id, change_security_lis "securityListId": security_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3507,7 +3507,7 @@ def change_security_list_compartment(self, security_list_id, change_security_lis "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3602,7 +3602,7 @@ def change_service_gateway_compartment(self, service_gateway_id, change_service_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_service_gateway_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3611,9 +3611,9 @@ def change_service_gateway_compartment(self, service_gateway_id, change_service_ "serviceGatewayId": service_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3623,7 +3623,7 @@ def change_service_gateway_compartment(self, service_gateway_id, change_service_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3718,7 +3718,7 @@ def change_subnet_compartment(self, subnet_id, change_subnet_compartment_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_subnet_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3727,9 +3727,9 @@ def change_subnet_compartment(self, subnet_id, change_subnet_compartment_details "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3739,7 +3739,7 @@ def change_subnet_compartment(self, subnet_id, change_subnet_compartment_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3834,7 +3834,7 @@ def change_vcn_compartment(self, vcn_id, change_vcn_compartment_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vcn_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3843,9 +3843,9 @@ def change_vcn_compartment(self, vcn_id, change_vcn_compartment_details, **kwarg "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3855,7 +3855,7 @@ def change_vcn_compartment(self, vcn_id, change_vcn_compartment_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3950,7 +3950,7 @@ def change_virtual_circuit_compartment(self, virtual_circuit_id, change_virtual_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_virtual_circuit_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3959,9 +3959,9 @@ def change_virtual_circuit_compartment(self, virtual_circuit_id, change_virtual_ "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3971,7 +3971,7 @@ def change_virtual_circuit_compartment(self, virtual_circuit_id, change_virtual_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4074,7 +4074,7 @@ def change_vlan_compartment(self, vlan_id, change_vlan_compartment_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vlan_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4083,9 +4083,9 @@ def change_vlan_compartment(self, vlan_id, change_vlan_compartment_details, **kw "vlanId": vlan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4096,7 +4096,7 @@ def change_vlan_compartment(self, vlan_id, change_vlan_compartment_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4197,7 +4197,7 @@ def change_vtap_compartment(self, vtap_id, change_vtap_compartment_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vtap_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4206,9 +4206,9 @@ def change_vtap_compartment(self, vtap_id, change_vtap_compartment_details, **kw "vtapId": vtap_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4219,7 +4219,7 @@ def change_vtap_compartment(self, vtap_id, change_vtap_compartment_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4302,7 +4302,7 @@ def connect_local_peering_gateways(self, local_peering_gateway_id, connect_local api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/ConnectLocalPeeringGateways" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"connect_local_peering_gateways got unknown kwargs: {extra_kwargs!r}") @@ -4311,9 +4311,9 @@ def connect_local_peering_gateways(self, local_peering_gateway_id, connect_local "localPeeringGatewayId": local_peering_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4402,7 +4402,7 @@ def connect_remote_peering_connections(self, remote_peering_connection_id, conne api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/ConnectRemotePeeringConnections" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"connect_remote_peering_connections got unknown kwargs: {extra_kwargs!r}") @@ -4411,9 +4411,9 @@ def connect_remote_peering_connections(self, remote_peering_connection_id, conne "remotePeeringConnectionId": remote_peering_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4507,7 +4507,7 @@ def create_byoasn(self, create_byoasn_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_byoasn got unknown kwargs: {extra_kwargs!r}") @@ -4518,7 +4518,7 @@ def create_byoasn(self, create_byoasn_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4606,7 +4606,7 @@ def create_byoip_range(self, create_byoip_range_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -4617,7 +4617,7 @@ def create_byoip_range(self, create_byoip_range_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4715,7 +4715,7 @@ def create_capture_filter(self, create_capture_filter_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_capture_filter got unknown kwargs: {extra_kwargs!r}") @@ -4726,7 +4726,7 @@ def create_capture_filter(self, create_capture_filter_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4827,7 +4827,7 @@ def create_cpe(self, create_cpe_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cpe got unknown kwargs: {extra_kwargs!r}") @@ -4837,7 +4837,7 @@ def create_cpe(self, create_cpe_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4943,7 +4943,7 @@ def create_cross_connect(self, create_cross_connect_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cross_connect got unknown kwargs: {extra_kwargs!r}") @@ -4953,7 +4953,7 @@ def create_cross_connect(self, create_cross_connect_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5055,7 +5055,7 @@ def create_cross_connect_group(self, create_cross_connect_group_details, **kwarg "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cross_connect_group got unknown kwargs: {extra_kwargs!r}") @@ -5065,7 +5065,7 @@ def create_cross_connect_group(self, create_cross_connect_group_details, **kwarg "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5163,7 +5163,7 @@ def create_dhcp_options(self, create_dhcp_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dhcp_options got unknown kwargs: {extra_kwargs!r}") @@ -5173,7 +5173,7 @@ def create_dhcp_options(self, create_dhcp_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5270,7 +5270,7 @@ def create_drg(self, create_drg_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_drg got unknown kwargs: {extra_kwargs!r}") @@ -5280,7 +5280,7 @@ def create_drg(self, create_drg_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5375,7 +5375,7 @@ def create_drg_attachment(self, create_drg_attachment_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_drg_attachment got unknown kwargs: {extra_kwargs!r}") @@ -5385,7 +5385,7 @@ def create_drg_attachment(self, create_drg_attachment_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5469,7 +5469,7 @@ def create_drg_route_distribution(self, create_drg_route_distribution_details, * "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_drg_route_distribution got unknown kwargs: {extra_kwargs!r}") @@ -5479,7 +5479,7 @@ def create_drg_route_distribution(self, create_drg_route_distribution_details, * "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5561,7 +5561,7 @@ def create_drg_route_table(self, create_drg_route_table_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_drg_route_table got unknown kwargs: {extra_kwargs!r}") @@ -5571,7 +5571,7 @@ def create_drg_route_table(self, create_drg_route_table_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5675,7 +5675,7 @@ def create_internet_gateway(self, create_internet_gateway_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_internet_gateway got unknown kwargs: {extra_kwargs!r}") @@ -5685,7 +5685,7 @@ def create_internet_gateway(self, create_internet_gateway_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5798,7 +5798,7 @@ def create_ip_sec_connection(self, create_ip_sec_connection_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ip_sec_connection got unknown kwargs: {extra_kwargs!r}") @@ -5808,7 +5808,7 @@ def create_ip_sec_connection(self, create_ip_sec_connection_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5896,7 +5896,7 @@ def create_ipv6(self, create_ipv6_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ipv6 got unknown kwargs: {extra_kwargs!r}") @@ -5907,7 +5907,7 @@ def create_ipv6(self, create_ipv6_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5988,7 +5988,7 @@ def create_local_peering_gateway(self, create_local_peering_gateway_details, **k "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_local_peering_gateway got unknown kwargs: {extra_kwargs!r}") @@ -5998,7 +5998,7 @@ def create_local_peering_gateway(self, create_local_peering_gateway_details, **k "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6080,7 +6080,7 @@ def create_nat_gateway(self, create_nat_gateway_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_nat_gateway got unknown kwargs: {extra_kwargs!r}") @@ -6090,7 +6090,7 @@ def create_nat_gateway(self, create_nat_gateway_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6171,7 +6171,7 @@ def create_network_security_group(self, create_network_security_group_details, * "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_security_group got unknown kwargs: {extra_kwargs!r}") @@ -6181,7 +6181,7 @@ def create_network_security_group(self, create_network_security_group_details, * "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6266,7 +6266,7 @@ def create_private_ip(self, create_private_ip_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_ip got unknown kwargs: {extra_kwargs!r}") @@ -6276,7 +6276,7 @@ def create_private_ip(self, create_private_ip_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6380,7 +6380,7 @@ def create_public_ip(self, create_public_ip_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_public_ip got unknown kwargs: {extra_kwargs!r}") @@ -6390,7 +6390,7 @@ def create_public_ip(self, create_public_ip_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6476,7 +6476,7 @@ def create_public_ip_pool(self, create_public_ip_pool_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_public_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -6487,7 +6487,7 @@ def create_public_ip_pool(self, create_public_ip_pool_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6568,7 +6568,7 @@ def create_remote_peering_connection(self, create_remote_peering_connection_deta "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_remote_peering_connection got unknown kwargs: {extra_kwargs!r}") @@ -6578,7 +6578,7 @@ def create_remote_peering_connection(self, create_remote_peering_connection_deta "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6681,7 +6681,7 @@ def create_route_table(self, create_route_table_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_route_table got unknown kwargs: {extra_kwargs!r}") @@ -6691,7 +6691,7 @@ def create_route_table(self, create_route_table_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6791,7 +6791,7 @@ def create_security_list(self, create_security_list_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_list got unknown kwargs: {extra_kwargs!r}") @@ -6801,7 +6801,7 @@ def create_security_list(self, create_security_list_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6897,7 +6897,7 @@ def create_service_gateway(self, create_service_gateway_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service_gateway got unknown kwargs: {extra_kwargs!r}") @@ -6907,7 +6907,7 @@ def create_service_gateway(self, create_service_gateway_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7028,7 +7028,7 @@ def create_subnet(self, create_subnet_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_subnet got unknown kwargs: {extra_kwargs!r}") @@ -7038,7 +7038,7 @@ def create_subnet(self, create_subnet_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7160,7 +7160,7 @@ def create_vcn(self, create_vcn_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vcn got unknown kwargs: {extra_kwargs!r}") @@ -7170,7 +7170,7 @@ def create_vcn(self, create_vcn_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7277,7 +7277,7 @@ def create_virtual_circuit(self, create_virtual_circuit_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_virtual_circuit got unknown kwargs: {extra_kwargs!r}") @@ -7287,7 +7287,7 @@ def create_virtual_circuit(self, create_virtual_circuit_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7375,7 +7375,7 @@ def create_vlan(self, create_vlan_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vlan got unknown kwargs: {extra_kwargs!r}") @@ -7386,7 +7386,7 @@ def create_vlan(self, create_vlan_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7484,7 +7484,7 @@ def create_vtap(self, create_vtap_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vtap got unknown kwargs: {extra_kwargs!r}") @@ -7495,7 +7495,7 @@ def create_vtap(self, create_vtap_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7586,7 +7586,7 @@ def delete_byoasn(self, byoasn_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_byoasn got unknown kwargs: {extra_kwargs!r}") @@ -7595,9 +7595,9 @@ def delete_byoasn(self, byoasn_id, **kwargs): "byoasnId": byoasn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7607,7 +7607,7 @@ def delete_byoasn(self, byoasn_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7696,7 +7696,7 @@ def delete_byoip_range(self, byoip_range_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -7705,9 +7705,9 @@ def delete_byoip_range(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7717,7 +7717,7 @@ def delete_byoip_range(self, byoip_range_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7801,7 +7801,7 @@ def delete_capture_filter(self, capture_filter_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_capture_filter got unknown kwargs: {extra_kwargs!r}") @@ -7810,9 +7810,9 @@ def delete_capture_filter(self, capture_filter_id, **kwargs): "captureFilterId": capture_filter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7822,7 +7822,7 @@ def delete_capture_filter(self, capture_filter_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7902,7 +7902,7 @@ def delete_cpe(self, cpe_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cpe got unknown kwargs: {extra_kwargs!r}") @@ -7911,9 +7911,9 @@ def delete_cpe(self, cpe_id, **kwargs): "cpeId": cpe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7922,7 +7922,7 @@ def delete_cpe(self, cpe_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8003,7 +8003,7 @@ def delete_cross_connect(self, cross_connect_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cross_connect got unknown kwargs: {extra_kwargs!r}") @@ -8012,9 +8012,9 @@ def delete_cross_connect(self, cross_connect_id, **kwargs): "crossConnectId": cross_connect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8023,7 +8023,7 @@ def delete_cross_connect(self, cross_connect_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8105,7 +8105,7 @@ def delete_cross_connect_group(self, cross_connect_group_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cross_connect_group got unknown kwargs: {extra_kwargs!r}") @@ -8114,9 +8114,9 @@ def delete_cross_connect_group(self, cross_connect_group_id, **kwargs): "crossConnectGroupId": cross_connect_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8125,7 +8125,7 @@ def delete_cross_connect_group(self, cross_connect_group_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8209,7 +8209,7 @@ def delete_dhcp_options(self, dhcp_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dhcp_options got unknown kwargs: {extra_kwargs!r}") @@ -8218,9 +8218,9 @@ def delete_dhcp_options(self, dhcp_id, **kwargs): "dhcpId": dhcp_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8229,7 +8229,7 @@ def delete_dhcp_options(self, dhcp_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8310,7 +8310,7 @@ def delete_drg(self, drg_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_drg got unknown kwargs: {extra_kwargs!r}") @@ -8319,9 +8319,9 @@ def delete_drg(self, drg_id, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8330,7 +8330,7 @@ def delete_drg(self, drg_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8410,7 +8410,7 @@ def delete_drg_attachment(self, drg_attachment_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_drg_attachment got unknown kwargs: {extra_kwargs!r}") @@ -8419,9 +8419,9 @@ def delete_drg_attachment(self, drg_attachment_id, **kwargs): "drgAttachmentId": drg_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8430,7 +8430,7 @@ def delete_drg_attachment(self, drg_attachment_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8510,7 +8510,7 @@ def delete_drg_route_distribution(self, drg_route_distribution_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_drg_route_distribution got unknown kwargs: {extra_kwargs!r}") @@ -8519,9 +8519,9 @@ def delete_drg_route_distribution(self, drg_route_distribution_id, **kwargs): "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8530,7 +8530,7 @@ def delete_drg_route_distribution(self, drg_route_distribution_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8608,7 +8608,7 @@ def delete_drg_route_table(self, drg_route_table_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_drg_route_table got unknown kwargs: {extra_kwargs!r}") @@ -8617,9 +8617,9 @@ def delete_drg_route_table(self, drg_route_table_id, **kwargs): "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8628,7 +8628,7 @@ def delete_drg_route_table(self, drg_route_table_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8710,7 +8710,7 @@ def delete_internet_gateway(self, ig_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_internet_gateway got unknown kwargs: {extra_kwargs!r}") @@ -8719,9 +8719,9 @@ def delete_internet_gateway(self, ig_id, **kwargs): "igId": ig_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8730,7 +8730,7 @@ def delete_internet_gateway(self, ig_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8815,7 +8815,7 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ip_sec_connection got unknown kwargs: {extra_kwargs!r}") @@ -8824,9 +8824,9 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs): "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8835,7 +8835,7 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8923,7 +8923,7 @@ def delete_ipv6(self, ipv6_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ipv6 got unknown kwargs: {extra_kwargs!r}") @@ -8932,9 +8932,9 @@ def delete_ipv6(self, ipv6_id, **kwargs): "ipv6Id": ipv6_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8944,7 +8944,7 @@ def delete_ipv6(self, ipv6_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9025,7 +9025,7 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_local_peering_gateway got unknown kwargs: {extra_kwargs!r}") @@ -9034,9 +9034,9 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs): "localPeeringGatewayId": local_peering_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9045,7 +9045,7 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9127,7 +9127,7 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_nat_gateway got unknown kwargs: {extra_kwargs!r}") @@ -9136,9 +9136,9 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs): "natGatewayId": nat_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9147,7 +9147,7 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9234,7 +9234,7 @@ def delete_network_security_group(self, network_security_group_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_security_group got unknown kwargs: {extra_kwargs!r}") @@ -9243,9 +9243,9 @@ def delete_network_security_group(self, network_security_group_id, **kwargs): "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9254,7 +9254,7 @@ def delete_network_security_group(self, network_security_group_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9345,7 +9345,7 @@ def delete_private_ip(self, private_ip_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_ip got unknown kwargs: {extra_kwargs!r}") @@ -9354,9 +9354,9 @@ def delete_private_ip(self, private_ip_id, **kwargs): "privateIpId": private_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9365,7 +9365,7 @@ def delete_private_ip(self, private_ip_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9459,7 +9459,7 @@ def delete_public_ip(self, public_ip_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_public_ip got unknown kwargs: {extra_kwargs!r}") @@ -9468,9 +9468,9 @@ def delete_public_ip(self, public_ip_id, **kwargs): "publicIpId": public_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9479,7 +9479,7 @@ def delete_public_ip(self, public_ip_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9566,7 +9566,7 @@ def delete_public_ip_pool(self, public_ip_pool_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_public_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -9575,9 +9575,9 @@ def delete_public_ip_pool(self, public_ip_pool_id, **kwargs): "publicIpPoolId": public_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9587,7 +9587,7 @@ def delete_public_ip_pool(self, public_ip_pool_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9668,7 +9668,7 @@ def delete_remote_peering_connection(self, remote_peering_connection_id, **kwarg "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_remote_peering_connection got unknown kwargs: {extra_kwargs!r}") @@ -9677,9 +9677,9 @@ def delete_remote_peering_connection(self, remote_peering_connection_id, **kwarg "remotePeeringConnectionId": remote_peering_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9688,7 +9688,7 @@ def delete_remote_peering_connection(self, remote_peering_connection_id, **kwarg "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9772,7 +9772,7 @@ def delete_route_table(self, rt_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_route_table got unknown kwargs: {extra_kwargs!r}") @@ -9781,9 +9781,9 @@ def delete_route_table(self, rt_id, **kwargs): "rtId": rt_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9792,7 +9792,7 @@ def delete_route_table(self, rt_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9874,7 +9874,7 @@ def delete_security_list(self, security_list_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_list got unknown kwargs: {extra_kwargs!r}") @@ -9883,9 +9883,9 @@ def delete_security_list(self, security_list_id, **kwargs): "securityListId": security_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9894,7 +9894,7 @@ def delete_security_list(self, security_list_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9973,7 +9973,7 @@ def delete_service_gateway(self, service_gateway_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service_gateway got unknown kwargs: {extra_kwargs!r}") @@ -9982,9 +9982,9 @@ def delete_service_gateway(self, service_gateway_id, **kwargs): "serviceGatewayId": service_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9993,7 +9993,7 @@ def delete_service_gateway(self, service_gateway_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10073,7 +10073,7 @@ def delete_subnet(self, subnet_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_subnet got unknown kwargs: {extra_kwargs!r}") @@ -10082,9 +10082,9 @@ def delete_subnet(self, subnet_id, **kwargs): "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10093,7 +10093,7 @@ def delete_subnet(self, subnet_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10176,7 +10176,7 @@ def delete_vcn(self, vcn_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vcn got unknown kwargs: {extra_kwargs!r}") @@ -10185,9 +10185,9 @@ def delete_vcn(self, vcn_id, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10196,7 +10196,7 @@ def delete_vcn(self, vcn_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10278,7 +10278,7 @@ def delete_virtual_circuit(self, virtual_circuit_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_virtual_circuit got unknown kwargs: {extra_kwargs!r}") @@ -10287,9 +10287,9 @@ def delete_virtual_circuit(self, virtual_circuit_id, **kwargs): "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10298,7 +10298,7 @@ def delete_virtual_circuit(self, virtual_circuit_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10383,7 +10383,7 @@ def delete_vlan(self, vlan_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vlan got unknown kwargs: {extra_kwargs!r}") @@ -10392,9 +10392,9 @@ def delete_vlan(self, vlan_id, **kwargs): "vlanId": vlan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10404,7 +10404,7 @@ def delete_vlan(self, vlan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10488,7 +10488,7 @@ def delete_vtap(self, vtap_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vtap got unknown kwargs: {extra_kwargs!r}") @@ -10497,9 +10497,9 @@ def delete_vtap(self, vtap_id, **kwargs): "vtapId": vtap_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10509,7 +10509,7 @@ def delete_vtap(self, vtap_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10601,7 +10601,7 @@ def detach_service_id(self, service_gateway_id, detach_service_details, **kwargs "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_service_id got unknown kwargs: {extra_kwargs!r}") @@ -10610,9 +10610,9 @@ def detach_service_id(self, service_gateway_id, detach_service_details, **kwargs "serviceGatewayId": service_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10621,7 +10621,7 @@ def detach_service_id(self, service_gateway_id, detach_service_details, **kwargs "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10730,7 +10730,7 @@ def get_all_drg_attachments(self, drg_id, **kwargs): "attachment_type", "is_cross_tenancy" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_all_drg_attachments got unknown kwargs: {extra_kwargs!r}") @@ -10739,9 +10739,9 @@ def get_all_drg_attachments(self, drg_id, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10758,14 +10758,14 @@ def get_all_drg_attachments(self, drg_id, **kwargs): "attachmentType": kwargs.get("attachment_type", missing), "isCrossTenancy": kwargs.get("is_cross_tenancy", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10841,7 +10841,7 @@ def get_allowed_ike_ip_sec_parameters(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_allowed_ike_ip_sec_parameters got unknown kwargs: {extra_kwargs!r}") @@ -10851,7 +10851,7 @@ def get_allowed_ike_ip_sec_parameters(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10932,7 +10932,7 @@ def get_byoasn(self, byoasn_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_byoasn got unknown kwargs: {extra_kwargs!r}") @@ -10941,9 +10941,9 @@ def get_byoasn(self, byoasn_id, **kwargs): "byoasnId": byoasn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10952,7 +10952,7 @@ def get_byoasn(self, byoasn_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11035,7 +11035,7 @@ def get_byoip_range(self, byoip_range_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -11044,9 +11044,9 @@ def get_byoip_range(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11055,7 +11055,7 @@ def get_byoip_range(self, byoip_range_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11134,7 +11134,7 @@ def get_capture_filter(self, capture_filter_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_capture_filter got unknown kwargs: {extra_kwargs!r}") @@ -11143,9 +11143,9 @@ def get_capture_filter(self, capture_filter_id, **kwargs): "captureFilterId": capture_filter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11154,7 +11154,7 @@ def get_capture_filter(self, capture_filter_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11224,7 +11224,7 @@ def get_cpe(self, cpe_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/GetCpe" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cpe got unknown kwargs: {extra_kwargs!r}") @@ -11233,9 +11233,9 @@ def get_cpe(self, cpe_id, **kwargs): "cpeId": cpe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11340,7 +11340,7 @@ def get_cpe_device_config_content(self, cpe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cpe_device_config_content got unknown kwargs: {extra_kwargs!r}") @@ -11349,9 +11349,9 @@ def get_cpe_device_config_content(self, cpe_id, **kwargs): "cpeId": cpe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11360,7 +11360,7 @@ def get_cpe_device_config_content(self, cpe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11449,7 +11449,7 @@ def get_cpe_device_shape(self, cpe_device_shape_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cpe_device_shape got unknown kwargs: {extra_kwargs!r}") @@ -11458,9 +11458,9 @@ def get_cpe_device_shape(self, cpe_device_shape_id, **kwargs): "cpeDeviceShapeId": cpe_device_shape_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11469,7 +11469,7 @@ def get_cpe_device_shape(self, cpe_device_shape_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11541,7 +11541,7 @@ def get_cross_connect(self, cross_connect_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnect/GetCrossConnect" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cross_connect got unknown kwargs: {extra_kwargs!r}") @@ -11550,9 +11550,9 @@ def get_cross_connect(self, cross_connect_id, **kwargs): "crossConnectId": cross_connect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11631,7 +11631,7 @@ def get_cross_connect_group(self, cross_connect_group_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectGroup/GetCrossConnectGroup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cross_connect_group got unknown kwargs: {extra_kwargs!r}") @@ -11640,9 +11640,9 @@ def get_cross_connect_group(self, cross_connect_group_id, **kwargs): "crossConnectGroupId": cross_connect_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11721,7 +11721,7 @@ def get_cross_connect_letter_of_authority(self, cross_connect_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LetterOfAuthority/GetCrossConnectLetterOfAuthority" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cross_connect_letter_of_authority got unknown kwargs: {extra_kwargs!r}") @@ -11730,9 +11730,9 @@ def get_cross_connect_letter_of_authority(self, cross_connect_id, **kwargs): "crossConnectId": cross_connect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11811,7 +11811,7 @@ def get_cross_connect_status(self, cross_connect_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectStatus/GetCrossConnectStatus" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cross_connect_status got unknown kwargs: {extra_kwargs!r}") @@ -11820,9 +11820,9 @@ def get_cross_connect_status(self, cross_connect_id, **kwargs): "crossConnectId": cross_connect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11901,7 +11901,7 @@ def get_dhcp_options(self, dhcp_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DhcpOptions/GetDhcpOptions" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dhcp_options got unknown kwargs: {extra_kwargs!r}") @@ -11910,9 +11910,9 @@ def get_dhcp_options(self, dhcp_id, **kwargs): "dhcpId": dhcp_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11989,7 +11989,7 @@ def get_drg(self, drg_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/GetDrg" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_drg got unknown kwargs: {extra_kwargs!r}") @@ -11998,9 +11998,9 @@ def get_drg(self, drg_id, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12077,7 +12077,7 @@ def get_drg_attachment(self, drg_attachment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/GetDrgAttachment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_drg_attachment got unknown kwargs: {extra_kwargs!r}") @@ -12086,9 +12086,9 @@ def get_drg_attachment(self, drg_attachment_id, **kwargs): "drgAttachmentId": drg_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12177,7 +12177,7 @@ def get_drg_redundancy_status(self, drg_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_drg_redundancy_status got unknown kwargs: {extra_kwargs!r}") @@ -12186,9 +12186,9 @@ def get_drg_redundancy_status(self, drg_id, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12197,7 +12197,7 @@ def get_drg_redundancy_status(self, drg_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12269,7 +12269,7 @@ def get_drg_route_distribution(self, drg_route_distribution_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistribution/GetDrgRouteDistribution" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_drg_route_distribution got unknown kwargs: {extra_kwargs!r}") @@ -12278,9 +12278,9 @@ def get_drg_route_distribution(self, drg_route_distribution_id, **kwargs): "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12357,7 +12357,7 @@ def get_drg_route_table(self, drg_route_table_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteTable/GetDrgRouteTable" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_drg_route_table got unknown kwargs: {extra_kwargs!r}") @@ -12366,9 +12366,9 @@ def get_drg_route_table(self, drg_route_table_id, **kwargs): "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12448,7 +12448,7 @@ def get_fast_connect_provider_service(self, provider_service_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FastConnectProviderService/GetFastConnectProviderService" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fast_connect_provider_service got unknown kwargs: {extra_kwargs!r}") @@ -12457,9 +12457,9 @@ def get_fast_connect_provider_service(self, provider_service_id, **kwargs): "providerServiceId": provider_service_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12545,7 +12545,7 @@ def get_fast_connect_provider_service_key(self, provider_service_id, provider_se api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FastConnectProviderServiceKey/GetFastConnectProviderServiceKey" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fast_connect_provider_service_key got unknown kwargs: {extra_kwargs!r}") @@ -12555,9 +12555,9 @@ def get_fast_connect_provider_service_key(self, provider_service_id, provider_se "providerServiceKeyName": provider_service_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12636,7 +12636,7 @@ def get_internet_gateway(self, ig_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternetGateway/GetInternetGateway" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_internet_gateway got unknown kwargs: {extra_kwargs!r}") @@ -12645,9 +12645,9 @@ def get_internet_gateway(self, ig_id, **kwargs): "igId": ig_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12726,7 +12726,7 @@ def get_ip_sec_connection(self, ipsc_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/GetIpSecConnection" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ip_sec_connection got unknown kwargs: {extra_kwargs!r}") @@ -12735,9 +12735,9 @@ def get_ip_sec_connection(self, ipsc_id, **kwargs): "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12819,7 +12819,7 @@ def get_ip_sec_connection_device_config(self, ipsc_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionDeviceConfig/GetIpSecConnectionDeviceConfig" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ip_sec_connection_device_config got unknown kwargs: {extra_kwargs!r}") @@ -12828,9 +12828,9 @@ def get_ip_sec_connection_device_config(self, ipsc_id, **kwargs): "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12910,7 +12910,7 @@ def get_ip_sec_connection_device_status(self, ipsc_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionDeviceStatus/GetIpSecConnectionDeviceStatus" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ip_sec_connection_device_status got unknown kwargs: {extra_kwargs!r}") @@ -12919,9 +12919,9 @@ def get_ip_sec_connection_device_status(self, ipsc_id, **kwargs): "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13007,7 +13007,7 @@ def get_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnel/GetIpSecConnectionTunnel" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ip_sec_connection_tunnel got unknown kwargs: {extra_kwargs!r}") @@ -13017,9 +13017,9 @@ def get_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, **kwargs): "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13103,7 +13103,7 @@ def get_ip_sec_connection_tunnel_error(self, ipsc_id, tunnel_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnelErrorDetails/GetIpSecConnectionTunnelError" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ip_sec_connection_tunnel_error got unknown kwargs: {extra_kwargs!r}") @@ -13113,9 +13113,9 @@ def get_ip_sec_connection_tunnel_error(self, ipsc_id, tunnel_id, **kwargs): "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13200,7 +13200,7 @@ def get_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, **kwarg api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnelSharedSecret/GetIpSecConnectionTunnelSharedSecret" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ip_sec_connection_tunnel_shared_secret got unknown kwargs: {extra_kwargs!r}") @@ -13210,9 +13210,9 @@ def get_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, **kwarg "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13318,7 +13318,7 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ipsec_cpe_device_config_content got unknown kwargs: {extra_kwargs!r}") @@ -13327,9 +13327,9 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs): "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13338,7 +13338,7 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13425,7 +13425,7 @@ def get_ipv6(self, ipv6_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ipv6 got unknown kwargs: {extra_kwargs!r}") @@ -13434,9 +13434,9 @@ def get_ipv6(self, ipv6_id, **kwargs): "ipv6Id": ipv6_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13445,7 +13445,7 @@ def get_ipv6(self, ipv6_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13515,7 +13515,7 @@ def get_local_peering_gateway(self, local_peering_gateway_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/GetLocalPeeringGateway" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_local_peering_gateway got unknown kwargs: {extra_kwargs!r}") @@ -13524,9 +13524,9 @@ def get_local_peering_gateway(self, local_peering_gateway_id, **kwargs): "localPeeringGatewayId": local_peering_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13603,7 +13603,7 @@ def get_nat_gateway(self, nat_gateway_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NatGateway/GetNatGateway" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_nat_gateway got unknown kwargs: {extra_kwargs!r}") @@ -13612,9 +13612,9 @@ def get_nat_gateway(self, nat_gateway_id, **kwargs): "natGatewayId": nat_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13697,7 +13697,7 @@ def get_network_security_group(self, network_security_group_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/GetNetworkSecurityGroup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_security_group got unknown kwargs: {extra_kwargs!r}") @@ -13706,9 +13706,9 @@ def get_network_security_group(self, network_security_group_id, **kwargs): "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13826,7 +13826,7 @@ def get_networking_topology(self, compartment_id, **kwargs): "if_none_match", "cache_control" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_networking_topology got unknown kwargs: {extra_kwargs!r}") @@ -13843,7 +13843,7 @@ def get_networking_topology(self, compartment_id, **kwargs): "accessLevel": kwargs.get("access_level", missing), "queryCompartmentSubtree": kwargs.get("query_compartment_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -13852,7 +13852,7 @@ def get_networking_topology(self, compartment_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "cache-control": kwargs.get("cache_control", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13928,7 +13928,7 @@ def get_private_ip(self, private_ip_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_ip got unknown kwargs: {extra_kwargs!r}") @@ -13937,9 +13937,9 @@ def get_private_ip(self, private_ip_id, **kwargs): "privateIpId": private_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14030,7 +14030,7 @@ def get_public_ip(self, public_ip_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIp" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_public_ip got unknown kwargs: {extra_kwargs!r}") @@ -14039,9 +14039,9 @@ def get_public_ip(self, public_ip_id, **kwargs): "publicIpId": public_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14122,7 +14122,7 @@ def get_public_ip_by_ip_address(self, get_public_ip_by_ip_address_details, **kwa api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByIpAddress" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_public_ip_by_ip_address got unknown kwargs: {extra_kwargs!r}") @@ -14212,7 +14212,7 @@ def get_public_ip_by_private_ip_id(self, get_public_ip_by_private_ip_id_details, api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_public_ip_by_private_ip_id got unknown kwargs: {extra_kwargs!r}") @@ -14301,7 +14301,7 @@ def get_public_ip_pool(self, public_ip_pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_public_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -14310,9 +14310,9 @@ def get_public_ip_pool(self, public_ip_pool_id, **kwargs): "publicIpPoolId": public_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14321,7 +14321,7 @@ def get_public_ip_pool(self, public_ip_pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14391,7 +14391,7 @@ def get_remote_peering_connection(self, remote_peering_connection_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/GetRemotePeeringConnection" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_remote_peering_connection got unknown kwargs: {extra_kwargs!r}") @@ -14400,9 +14400,9 @@ def get_remote_peering_connection(self, remote_peering_connection_id, **kwargs): "remotePeeringConnectionId": remote_peering_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14488,7 +14488,7 @@ def get_resource_ip_inventory(self, data_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_ip_inventory got unknown kwargs: {extra_kwargs!r}") @@ -14497,9 +14497,9 @@ def get_resource_ip_inventory(self, data_request_id, **kwargs): "dataRequestId": data_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14508,7 +14508,7 @@ def get_resource_ip_inventory(self, data_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14578,7 +14578,7 @@ def get_route_table(self, rt_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/GetRouteTable" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_route_table got unknown kwargs: {extra_kwargs!r}") @@ -14587,9 +14587,9 @@ def get_route_table(self, rt_id, **kwargs): "rtId": rt_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14666,7 +14666,7 @@ def get_security_list(self, security_list_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityList/GetSecurityList" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_list got unknown kwargs: {extra_kwargs!r}") @@ -14675,9 +14675,9 @@ def get_security_list(self, security_list_id, **kwargs): "securityListId": security_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14754,7 +14754,7 @@ def get_service(self, service_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Service/GetService" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service got unknown kwargs: {extra_kwargs!r}") @@ -14763,9 +14763,9 @@ def get_service(self, service_id, **kwargs): "serviceId": service_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14842,7 +14842,7 @@ def get_service_gateway(self, service_gateway_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/GetServiceGateway" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_gateway got unknown kwargs: {extra_kwargs!r}") @@ -14851,9 +14851,9 @@ def get_service_gateway(self, service_gateway_id, **kwargs): "serviceGatewayId": service_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14930,7 +14930,7 @@ def get_subnet(self, subnet_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/GetSubnet" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subnet got unknown kwargs: {extra_kwargs!r}") @@ -14939,9 +14939,9 @@ def get_subnet(self, subnet_id, **kwargs): "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15029,7 +15029,7 @@ def get_subnet_cidr_utilization(self, subnet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subnet_cidr_utilization got unknown kwargs: {extra_kwargs!r}") @@ -15038,9 +15038,9 @@ def get_subnet_cidr_utilization(self, subnet_id, **kwargs): "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15049,7 +15049,7 @@ def get_subnet_cidr_utilization(self, subnet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15130,7 +15130,7 @@ def get_subnet_ip_inventory(self, subnet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subnet_ip_inventory got unknown kwargs: {extra_kwargs!r}") @@ -15139,9 +15139,9 @@ def get_subnet_ip_inventory(self, subnet_id, **kwargs): "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15150,7 +15150,7 @@ def get_subnet_ip_inventory(self, subnet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15266,7 +15266,7 @@ def get_subnet_topology(self, compartment_id, subnet_id, **kwargs): "if_none_match", "cache_control" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subnet_topology got unknown kwargs: {extra_kwargs!r}") @@ -15284,7 +15284,7 @@ def get_subnet_topology(self, compartment_id, subnet_id, **kwargs): "queryCompartmentSubtree": kwargs.get("query_compartment_subtree", missing), "subnetId": subnet_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -15293,7 +15293,7 @@ def get_subnet_topology(self, compartment_id, subnet_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "cache-control": kwargs.get("cache_control", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15381,7 +15381,7 @@ def get_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tunnel_cpe_device_config got unknown kwargs: {extra_kwargs!r}") @@ -15391,9 +15391,9 @@ def get_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, **kwargs): "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15402,7 +15402,7 @@ def get_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15505,7 +15505,7 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tunnel_cpe_device_config_content got unknown kwargs: {extra_kwargs!r}") @@ -15515,9 +15515,9 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs): "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15526,7 +15526,7 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15607,7 +15607,7 @@ def get_upgrade_status(self, drg_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_upgrade_status got unknown kwargs: {extra_kwargs!r}") @@ -15616,9 +15616,9 @@ def get_upgrade_status(self, drg_id, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15627,7 +15627,7 @@ def get_upgrade_status(self, drg_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15697,7 +15697,7 @@ def get_vcn(self, vcn_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/GetVcn" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vcn got unknown kwargs: {extra_kwargs!r}") @@ -15706,9 +15706,9 @@ def get_vcn(self, vcn_id, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15794,7 +15794,7 @@ def get_vcn_dns_resolver_association(self, vcn_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vcn_dns_resolver_association got unknown kwargs: {extra_kwargs!r}") @@ -15803,9 +15803,9 @@ def get_vcn_dns_resolver_association(self, vcn_id, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15814,7 +15814,7 @@ def get_vcn_dns_resolver_association(self, vcn_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15906,7 +15906,7 @@ def get_vcn_overlap(self, vcn_id, get_vcn_overlap_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vcn_overlap got unknown kwargs: {extra_kwargs!r}") @@ -15915,9 +15915,9 @@ def get_vcn_overlap(self, vcn_id, get_vcn_overlap_details, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15927,7 +15927,7 @@ def get_vcn_overlap(self, vcn_id, get_vcn_overlap_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16046,7 +16046,7 @@ def get_vcn_topology(self, compartment_id, vcn_id, **kwargs): "if_none_match", "cache_control" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vcn_topology got unknown kwargs: {extra_kwargs!r}") @@ -16064,7 +16064,7 @@ def get_vcn_topology(self, compartment_id, vcn_id, **kwargs): "queryCompartmentSubtree": kwargs.get("query_compartment_subtree", missing), "vcnId": vcn_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -16073,7 +16073,7 @@ def get_vcn_topology(self, compartment_id, vcn_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "cache-control": kwargs.get("cache_control", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16143,7 +16143,7 @@ def get_virtual_circuit(self, virtual_circuit_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuit/GetVirtualCircuit" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_virtual_circuit got unknown kwargs: {extra_kwargs!r}") @@ -16152,9 +16152,9 @@ def get_virtual_circuit(self, virtual_circuit_id, **kwargs): "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16242,7 +16242,7 @@ def get_vlan(self, vlan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vlan got unknown kwargs: {extra_kwargs!r}") @@ -16251,9 +16251,9 @@ def get_vlan(self, vlan_id, **kwargs): "vlanId": vlan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16262,7 +16262,7 @@ def get_vlan(self, vlan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16337,7 +16337,7 @@ def get_vnic(self, vnic_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vnic/GetVnic" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vnic got unknown kwargs: {extra_kwargs!r}") @@ -16346,9 +16346,9 @@ def get_vnic(self, vnic_id, **kwargs): "vnicId": vnic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16434,7 +16434,7 @@ def get_vtap(self, vtap_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vtap got unknown kwargs: {extra_kwargs!r}") @@ -16443,9 +16443,9 @@ def get_vtap(self, vtap_id, **kwargs): "vtapId": vtap_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16454,7 +16454,7 @@ def get_vtap(self, vtap_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16549,7 +16549,7 @@ def ipv6_vnic_detach(self, ipv6_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ipv6_vnic_detach got unknown kwargs: {extra_kwargs!r}") @@ -16558,9 +16558,9 @@ def ipv6_vnic_detach(self, ipv6_id, **kwargs): "ipv6Id": ipv6_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16571,7 +16571,7 @@ def ipv6_vnic_detach(self, ipv6_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16640,7 +16640,7 @@ def list_allowed_peer_regions_for_remote_peering(self, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PeerRegionForRemotePeering/ListAllowedPeerRegionsForRemotePeering" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_allowed_peer_regions_for_remote_peering got unknown kwargs: {extra_kwargs!r}") @@ -16767,7 +16767,7 @@ def list_byoasns(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_byoasns got unknown kwargs: {extra_kwargs!r}") @@ -16795,14 +16795,14 @@ def list_byoasns(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16902,7 +16902,7 @@ def list_byoip_allocated_ranges(self, byoip_range_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_byoip_allocated_ranges got unknown kwargs: {extra_kwargs!r}") @@ -16911,9 +16911,9 @@ def list_byoip_allocated_ranges(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16921,14 +16921,14 @@ def list_byoip_allocated_ranges(self, byoip_range_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17056,7 +17056,7 @@ def list_byoip_ranges(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_byoip_ranges got unknown kwargs: {extra_kwargs!r}") @@ -17084,14 +17084,14 @@ def list_byoip_ranges(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17225,7 +17225,7 @@ def list_capture_filters(self, compartment_id, **kwargs): "lifecycle_state", "filter_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_capture_filters got unknown kwargs: {extra_kwargs!r}") @@ -17268,14 +17268,14 @@ def list_capture_filters(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "filterType": kwargs.get("filter_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17381,7 +17381,7 @@ def list_cpe_device_shapes(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cpe_device_shapes got unknown kwargs: {extra_kwargs!r}") @@ -17390,14 +17390,14 @@ def list_cpe_device_shapes(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17491,7 +17491,7 @@ def list_cpes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cpes got unknown kwargs: {extra_kwargs!r}") @@ -17501,7 +17501,7 @@ def list_cpes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17631,7 +17631,7 @@ def list_cross_connect_groups(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cross_connect_groups got unknown kwargs: {extra_kwargs!r}") @@ -17666,7 +17666,7 @@ def list_cross_connect_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17766,7 +17766,7 @@ def list_cross_connect_locations(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cross_connect_locations got unknown kwargs: {extra_kwargs!r}") @@ -17776,7 +17776,7 @@ def list_cross_connect_locations(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17863,7 +17863,7 @@ def list_cross_connect_mappings(self, virtual_circuit_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cross_connect_mappings got unknown kwargs: {extra_kwargs!r}") @@ -17872,9 +17872,9 @@ def list_cross_connect_mappings(self, virtual_circuit_id, **kwargs): "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17883,7 +17883,7 @@ def list_cross_connect_mappings(self, virtual_circuit_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18017,7 +18017,7 @@ def list_cross_connects(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cross_connects got unknown kwargs: {extra_kwargs!r}") @@ -18053,7 +18053,7 @@ def list_cross_connects(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18154,7 +18154,7 @@ def list_crossconnect_port_speed_shapes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_crossconnect_port_speed_shapes got unknown kwargs: {extra_kwargs!r}") @@ -18164,7 +18164,7 @@ def list_crossconnect_port_speed_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18303,7 +18303,7 @@ def list_dhcp_options(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dhcp_options got unknown kwargs: {extra_kwargs!r}") @@ -18339,7 +18339,7 @@ def list_dhcp_options(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18502,7 +18502,7 @@ def list_drg_attachments(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drg_attachments got unknown kwargs: {extra_kwargs!r}") @@ -18549,7 +18549,7 @@ def list_drg_attachments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18659,7 +18659,7 @@ def list_drg_route_distribution_statements(self, drg_route_distribution_id, **kw "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drg_route_distribution_statements got unknown kwargs: {extra_kwargs!r}") @@ -18668,9 +18668,9 @@ def list_drg_route_distribution_statements(self, drg_route_distribution_id, **kw "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18694,7 +18694,7 @@ def list_drg_route_distribution_statements(self, drg_route_distribution_id, **kw "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18827,7 +18827,7 @@ def list_drg_route_distributions(self, drg_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drg_route_distributions got unknown kwargs: {extra_kwargs!r}") @@ -18862,7 +18862,7 @@ def list_drg_route_distributions(self, drg_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18966,7 +18966,7 @@ def list_drg_route_rules(self, drg_route_table_id, **kwargs): "page", "route_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drg_route_rules got unknown kwargs: {extra_kwargs!r}") @@ -18975,9 +18975,9 @@ def list_drg_route_rules(self, drg_route_table_id, **kwargs): "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18993,7 +18993,7 @@ def list_drg_route_rules(self, drg_route_table_id, **kwargs): "page": kwargs.get("page", missing), "routeType": kwargs.get("route_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19131,7 +19131,7 @@ def list_drg_route_tables(self, drg_id, **kwargs): "import_drg_route_distribution_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drg_route_tables got unknown kwargs: {extra_kwargs!r}") @@ -19167,7 +19167,7 @@ def list_drg_route_tables(self, drg_id, **kwargs): "importDrgRouteDistributionId": kwargs.get("import_drg_route_distribution_id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19264,7 +19264,7 @@ def list_drgs(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drgs got unknown kwargs: {extra_kwargs!r}") @@ -19274,7 +19274,7 @@ def list_drgs(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19380,7 +19380,7 @@ def list_fast_connect_provider_services(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fast_connect_provider_services got unknown kwargs: {extra_kwargs!r}") @@ -19390,7 +19390,7 @@ def list_fast_connect_provider_services(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19494,7 +19494,7 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fast_connect_provider_virtual_circuit_bandwidth_shapes got unknown kwargs: {extra_kwargs!r}") @@ -19503,9 +19503,9 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s "providerServiceId": provider_service_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19513,7 +19513,7 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19652,7 +19652,7 @@ def list_internet_gateways(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_internet_gateways got unknown kwargs: {extra_kwargs!r}") @@ -19688,7 +19688,7 @@ def list_internet_gateways(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19770,7 +19770,7 @@ def list_ip_inventory(self, list_ip_inventory_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ip_inventory got unknown kwargs: {extra_kwargs!r}") @@ -19780,7 +19780,7 @@ def list_ip_inventory(self, list_ip_inventory_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19885,7 +19885,7 @@ def list_ip_sec_connection_tunnel_routes(self, ipsc_id, tunnel_id, **kwargs): "page", "advertiser" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ip_sec_connection_tunnel_routes got unknown kwargs: {extra_kwargs!r}") @@ -19895,9 +19895,9 @@ def list_ip_sec_connection_tunnel_routes(self, ipsc_id, tunnel_id, **kwargs): "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19913,7 +19913,7 @@ def list_ip_sec_connection_tunnel_routes(self, ipsc_id, tunnel_id, **kwargs): "page": kwargs.get("page", missing), "advertiser": kwargs.get("advertiser", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20019,7 +20019,7 @@ def list_ip_sec_connection_tunnel_security_associations(self, ipsc_id, tunnel_id "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ip_sec_connection_tunnel_security_associations got unknown kwargs: {extra_kwargs!r}") @@ -20029,9 +20029,9 @@ def list_ip_sec_connection_tunnel_security_associations(self, ipsc_id, tunnel_id "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20039,7 +20039,7 @@ def list_ip_sec_connection_tunnel_security_associations(self, ipsc_id, tunnel_id "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20140,7 +20140,7 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ip_sec_connection_tunnels got unknown kwargs: {extra_kwargs!r}") @@ -20149,9 +20149,9 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs): "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20159,7 +20159,7 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20273,7 +20273,7 @@ def list_ip_sec_connections(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ip_sec_connections got unknown kwargs: {extra_kwargs!r}") @@ -20285,7 +20285,7 @@ def list_ip_sec_connections(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20422,7 +20422,7 @@ def list_ipv6s(self, **kwargs): "lifetime", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ipv6s got unknown kwargs: {extra_kwargs!r}") @@ -20436,14 +20436,14 @@ def list_ipv6s(self, **kwargs): "ipState": kwargs.get("ip_state", missing), "lifetime": kwargs.get("lifetime", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20542,7 +20542,7 @@ def list_local_peering_gateways(self, compartment_id, **kwargs): "page", "vcn_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_local_peering_gateways got unknown kwargs: {extra_kwargs!r}") @@ -20553,7 +20553,7 @@ def list_local_peering_gateways(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "vcnId": kwargs.get("vcn_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20688,7 +20688,7 @@ def list_nat_gateways(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_nat_gateways got unknown kwargs: {extra_kwargs!r}") @@ -20724,7 +20724,7 @@ def list_nat_gateways(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20841,7 +20841,7 @@ def list_network_security_group_security_rules(self, network_security_group_id, "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_security_group_security_rules got unknown kwargs: {extra_kwargs!r}") @@ -20850,9 +20850,9 @@ def list_network_security_group_security_rules(self, network_security_group_id, "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20884,7 +20884,7 @@ def list_network_security_group_security_rules(self, network_security_group_id, "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20996,7 +20996,7 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs) "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_security_group_vnics got unknown kwargs: {extra_kwargs!r}") @@ -21005,9 +21005,9 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs) "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21031,7 +21031,7 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs) "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21175,7 +21175,7 @@ def list_network_security_groups(self, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_security_groups got unknown kwargs: {extra_kwargs!r}") @@ -21212,7 +21212,7 @@ def list_network_security_groups(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21357,7 +21357,7 @@ def list_private_ips(self, **kwargs): "lifetime", "vlan_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_ips got unknown kwargs: {extra_kwargs!r}") @@ -21372,7 +21372,7 @@ def list_private_ips(self, **kwargs): "lifetime": kwargs.get("lifetime", missing), "vlanId": kwargs.get("vlan_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21503,7 +21503,7 @@ def list_public_ip_pools(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_public_ip_pools got unknown kwargs: {extra_kwargs!r}") @@ -21531,14 +21531,14 @@ def list_public_ip_pools(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21679,7 +21679,7 @@ def list_public_ips(self, scope, compartment_id, **kwargs): "lifetime", "public_ip_pool_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_public_ips got unknown kwargs: {extra_kwargs!r}") @@ -21706,7 +21706,7 @@ def list_public_ips(self, scope, compartment_id, **kwargs): "compartmentId": compartment_id, "publicIpPoolId": kwargs.get("public_ip_pool_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21810,7 +21810,7 @@ def list_remote_peering_connections(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_remote_peering_connections got unknown kwargs: {extra_kwargs!r}") @@ -21821,7 +21821,7 @@ def list_remote_peering_connections(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21960,7 +21960,7 @@ def list_route_tables(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_route_tables got unknown kwargs: {extra_kwargs!r}") @@ -21996,7 +21996,7 @@ def list_route_tables(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22131,7 +22131,7 @@ def list_security_lists(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_lists got unknown kwargs: {extra_kwargs!r}") @@ -22167,7 +22167,7 @@ def list_security_lists(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22298,7 +22298,7 @@ def list_service_gateways(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_gateways got unknown kwargs: {extra_kwargs!r}") @@ -22333,7 +22333,7 @@ def list_service_gateways(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22426,7 +22426,7 @@ def list_services(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_services got unknown kwargs: {extra_kwargs!r}") @@ -22435,7 +22435,7 @@ def list_services(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22570,7 +22570,7 @@ def list_subnets(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subnets got unknown kwargs: {extra_kwargs!r}") @@ -22606,7 +22606,7 @@ def list_subnets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22734,7 +22734,7 @@ def list_vcns(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vcns got unknown kwargs: {extra_kwargs!r}") @@ -22769,7 +22769,7 @@ def list_vcns(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22866,7 +22866,7 @@ def list_virtual_circuit_associated_tunnels(self, virtual_circuit_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_virtual_circuit_associated_tunnels got unknown kwargs: {extra_kwargs!r}") @@ -22875,9 +22875,9 @@ def list_virtual_circuit_associated_tunnels(self, virtual_circuit_id, **kwargs): "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22885,7 +22885,7 @@ def list_virtual_circuit_associated_tunnels(self, virtual_circuit_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22988,7 +22988,7 @@ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_virtual_circuit_bandwidth_shapes got unknown kwargs: {extra_kwargs!r}") @@ -22998,7 +22998,7 @@ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -23089,7 +23089,7 @@ def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs): "retry_strategy", "verification_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_virtual_circuit_public_prefixes got unknown kwargs: {extra_kwargs!r}") @@ -23098,9 +23098,9 @@ def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs): "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23114,7 +23114,7 @@ def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs): query_params = { "verificationState": kwargs.get("verification_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -23246,7 +23246,7 @@ def list_virtual_circuits(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_virtual_circuits got unknown kwargs: {extra_kwargs!r}") @@ -23281,7 +23281,7 @@ def list_virtual_circuits(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -23422,7 +23422,7 @@ def list_vlans(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vlans got unknown kwargs: {extra_kwargs!r}") @@ -23458,14 +23458,14 @@ def list_vlans(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23622,7 +23622,7 @@ def list_vtaps(self, compartment_id, **kwargs): "display_name", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vtaps got unknown kwargs: {extra_kwargs!r}") @@ -23662,14 +23662,14 @@ def list_vtaps(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23771,7 +23771,7 @@ def modify_ipv4_subnet_cidr(self, subnet_id, modify_ipv4_subnet_cidr_details, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_ipv4_subnet_cidr got unknown kwargs: {extra_kwargs!r}") @@ -23780,9 +23780,9 @@ def modify_ipv4_subnet_cidr(self, subnet_id, modify_ipv4_subnet_cidr_details, ** "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23793,7 +23793,7 @@ def modify_ipv4_subnet_cidr(self, subnet_id, modify_ipv4_subnet_cidr_details, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23900,7 +23900,7 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_vcn_cidr got unknown kwargs: {extra_kwargs!r}") @@ -23909,9 +23909,9 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23922,7 +23922,7 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24018,7 +24018,7 @@ def private_ip_vnic_detach(self, private_ip_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"private_ip_vnic_detach got unknown kwargs: {extra_kwargs!r}") @@ -24027,9 +24027,9 @@ def private_ip_vnic_detach(self, private_ip_id, **kwargs): "privateIpId": private_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24040,7 +24040,7 @@ def private_ip_vnic_detach(self, private_ip_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24114,7 +24114,7 @@ def remove_drg_route_distribution_statements(self, drg_route_distribution_id, re api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/RemoveDrgRouteDistributionStatements" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_drg_route_distribution_statements got unknown kwargs: {extra_kwargs!r}") @@ -24123,9 +24123,9 @@ def remove_drg_route_distribution_statements(self, drg_route_distribution_id, re "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24205,7 +24205,7 @@ def remove_drg_route_rules(self, drg_route_table_id, remove_drg_route_rules_deta api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteRule/RemoveDrgRouteRules" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_drg_route_rules got unknown kwargs: {extra_kwargs!r}") @@ -24214,9 +24214,9 @@ def remove_drg_route_rules(self, drg_route_table_id, remove_drg_route_rules_deta "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24308,7 +24308,7 @@ def remove_export_drg_route_distribution(self, drg_attachment_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_export_drg_route_distribution got unknown kwargs: {extra_kwargs!r}") @@ -24317,9 +24317,9 @@ def remove_export_drg_route_distribution(self, drg_attachment_id, **kwargs): "drgAttachmentId": drg_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24329,7 +24329,7 @@ def remove_export_drg_route_distribution(self, drg_attachment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24415,7 +24415,7 @@ def remove_import_drg_route_distribution(self, drg_route_table_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_import_drg_route_distribution got unknown kwargs: {extra_kwargs!r}") @@ -24424,9 +24424,9 @@ def remove_import_drg_route_distribution(self, drg_route_table_id, **kwargs): "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24436,7 +24436,7 @@ def remove_import_drg_route_distribution(self, drg_route_table_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24532,7 +24532,7 @@ def remove_ipv4_subnet_cidr(self, subnet_id, remove_ipv4_subnet_cidr_details, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_ipv4_subnet_cidr got unknown kwargs: {extra_kwargs!r}") @@ -24541,9 +24541,9 @@ def remove_ipv4_subnet_cidr(self, subnet_id, remove_ipv4_subnet_cidr_details, ** "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24554,7 +24554,7 @@ def remove_ipv4_subnet_cidr(self, subnet_id, remove_ipv4_subnet_cidr_details, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24653,7 +24653,7 @@ def remove_ipv6_subnet_cidr(self, subnet_id, remove_subnet_ipv6_cidr_details, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_ipv6_subnet_cidr got unknown kwargs: {extra_kwargs!r}") @@ -24662,9 +24662,9 @@ def remove_ipv6_subnet_cidr(self, subnet_id, remove_subnet_ipv6_cidr_details, ** "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24675,7 +24675,7 @@ def remove_ipv6_subnet_cidr(self, subnet_id, remove_subnet_ipv6_cidr_details, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24773,7 +24773,7 @@ def remove_ipv6_vcn_cidr(self, vcn_id, **kwargs): "if_match", "remove_vcn_ipv6_cidr_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_ipv6_vcn_cidr got unknown kwargs: {extra_kwargs!r}") @@ -24782,9 +24782,9 @@ def remove_ipv6_vcn_cidr(self, vcn_id, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24795,7 +24795,7 @@ def remove_ipv6_vcn_cidr(self, vcn_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24870,7 +24870,7 @@ def remove_network_security_group_security_rules(self, network_security_group_id api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/RemoveNetworkSecurityGroupSecurityRules" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_network_security_group_security_rules got unknown kwargs: {extra_kwargs!r}") @@ -24879,9 +24879,9 @@ def remove_network_security_group_security_rules(self, network_security_group_id "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24978,7 +24978,7 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_public_ip_pool_capacity got unknown kwargs: {extra_kwargs!r}") @@ -24987,9 +24987,9 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo "publicIpPoolId": public_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24999,7 +24999,7 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25102,7 +25102,7 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_vcn_cidr got unknown kwargs: {extra_kwargs!r}") @@ -25111,9 +25111,9 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25124,7 +25124,7 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25221,7 +25221,7 @@ def set_origin_asn(self, byoip_range_id, set_origin_asn_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_origin_asn got unknown kwargs: {extra_kwargs!r}") @@ -25230,9 +25230,9 @@ def set_origin_asn(self, byoip_range_id, set_origin_asn_details, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25243,7 +25243,7 @@ def set_origin_asn(self, byoip_range_id, set_origin_asn_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25331,7 +25331,7 @@ def set_origin_asn_to_oracle(self, byoip_range_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_origin_asn_to_oracle got unknown kwargs: {extra_kwargs!r}") @@ -25340,9 +25340,9 @@ def set_origin_asn_to_oracle(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25352,7 +25352,7 @@ def set_origin_asn_to_oracle(self, byoip_range_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25438,7 +25438,7 @@ def update_byoasn(self, byoasn_id, update_byoasn_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_byoasn got unknown kwargs: {extra_kwargs!r}") @@ -25447,9 +25447,9 @@ def update_byoasn(self, byoasn_id, update_byoasn_details, **kwargs): "byoasnId": byoasn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25459,7 +25459,7 @@ def update_byoasn(self, byoasn_id, update_byoasn_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25549,7 +25549,7 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -25558,9 +25558,9 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25570,7 +25570,7 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25660,7 +25660,7 @@ def update_capture_filter(self, capture_filter_id, update_capture_filter_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_capture_filter got unknown kwargs: {extra_kwargs!r}") @@ -25669,9 +25669,9 @@ def update_capture_filter(self, capture_filter_id, update_capture_filter_details "captureFilterId": capture_filter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25681,7 +25681,7 @@ def update_capture_filter(self, capture_filter_id, update_capture_filter_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25767,7 +25767,7 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cpe got unknown kwargs: {extra_kwargs!r}") @@ -25776,9 +25776,9 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs): "cpeId": cpe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25787,7 +25787,7 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25874,7 +25874,7 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, * "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cross_connect got unknown kwargs: {extra_kwargs!r}") @@ -25883,9 +25883,9 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, * "crossConnectId": cross_connect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25894,7 +25894,7 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, * "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25982,7 +25982,7 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cross_connect_group got unknown kwargs: {extra_kwargs!r}") @@ -25991,9 +25991,9 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec "crossConnectGroupId": cross_connect_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26002,7 +26002,7 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26092,7 +26092,7 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dhcp_options got unknown kwargs: {extra_kwargs!r}") @@ -26101,9 +26101,9 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs): "dhcpId": dhcp_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26112,7 +26112,7 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26197,7 +26197,7 @@ def update_drg(self, drg_id, update_drg_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drg got unknown kwargs: {extra_kwargs!r}") @@ -26206,9 +26206,9 @@ def update_drg(self, drg_id, update_drg_details, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26217,7 +26217,7 @@ def update_drg(self, drg_id, update_drg_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26303,7 +26303,7 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drg_attachment got unknown kwargs: {extra_kwargs!r}") @@ -26312,9 +26312,9 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details "drgAttachmentId": drg_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26323,7 +26323,7 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26408,7 +26408,7 @@ def update_drg_route_distribution(self, drg_route_distribution_id, update_drg_ro "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drg_route_distribution got unknown kwargs: {extra_kwargs!r}") @@ -26417,9 +26417,9 @@ def update_drg_route_distribution(self, drg_route_distribution_id, update_drg_ro "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26428,7 +26428,7 @@ def update_drg_route_distribution(self, drg_route_distribution_id, update_drg_ro "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26503,7 +26503,7 @@ def update_drg_route_distribution_statements(self, drg_route_distribution_id, up api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/UpdateDrgRouteDistributionStatements" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drg_route_distribution_statements got unknown kwargs: {extra_kwargs!r}") @@ -26512,9 +26512,9 @@ def update_drg_route_distribution_statements(self, drg_route_distribution_id, up "drgRouteDistributionId": drg_route_distribution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26596,7 +26596,7 @@ def update_drg_route_rules(self, drg_route_table_id, update_drg_route_rules_deta api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteRule/UpdateDrgRouteRules" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drg_route_rules got unknown kwargs: {extra_kwargs!r}") @@ -26605,9 +26605,9 @@ def update_drg_route_rules(self, drg_route_table_id, update_drg_route_rules_deta "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26699,7 +26699,7 @@ def update_drg_route_table(self, drg_route_table_id, update_drg_route_table_deta "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drg_route_table got unknown kwargs: {extra_kwargs!r}") @@ -26708,9 +26708,9 @@ def update_drg_route_table(self, drg_route_table_id, update_drg_route_table_deta "drgRouteTableId": drg_route_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26719,7 +26719,7 @@ def update_drg_route_table(self, drg_route_table_id, update_drg_route_table_deta "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26808,7 +26808,7 @@ def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwar "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_internet_gateway got unknown kwargs: {extra_kwargs!r}") @@ -26817,9 +26817,9 @@ def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwar "igId": ig_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26828,7 +26828,7 @@ def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwar "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26916,7 +26916,7 @@ def update_ip_sec_connection(self, ipsc_id, update_ip_sec_connection_details, ** "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ip_sec_connection got unknown kwargs: {extra_kwargs!r}") @@ -26925,9 +26925,9 @@ def update_ip_sec_connection(self, ipsc_id, update_ip_sec_connection_details, ** "ipscId": ipsc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26936,7 +26936,7 @@ def update_ip_sec_connection(self, ipsc_id, update_ip_sec_connection_details, ** "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27044,7 +27044,7 @@ def update_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, update_ip_sec_conn "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ip_sec_connection_tunnel got unknown kwargs: {extra_kwargs!r}") @@ -27054,9 +27054,9 @@ def update_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, update_ip_sec_conn "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27066,7 +27066,7 @@ def update_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, update_ip_sec_conn "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27160,7 +27160,7 @@ def update_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, upda "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ip_sec_connection_tunnel_shared_secret got unknown kwargs: {extra_kwargs!r}") @@ -27170,9 +27170,9 @@ def update_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, upda "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27181,7 +27181,7 @@ def update_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, upda "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27281,7 +27281,7 @@ def update_ipv6(self, ipv6_id, update_ipv6_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ipv6 got unknown kwargs: {extra_kwargs!r}") @@ -27290,9 +27290,9 @@ def update_ipv6(self, ipv6_id, update_ipv6_details, **kwargs): "ipv6Id": ipv6_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27302,7 +27302,7 @@ def update_ipv6(self, ipv6_id, update_ipv6_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27387,7 +27387,7 @@ def update_local_peering_gateway(self, local_peering_gateway_id, update_local_pe "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_local_peering_gateway got unknown kwargs: {extra_kwargs!r}") @@ -27396,9 +27396,9 @@ def update_local_peering_gateway(self, local_peering_gateway_id, update_local_pe "localPeeringGatewayId": local_peering_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27407,7 +27407,7 @@ def update_local_peering_gateway(self, local_peering_gateway_id, update_local_pe "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27492,7 +27492,7 @@ def update_nat_gateway(self, nat_gateway_id, update_nat_gateway_details, **kwarg "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_nat_gateway got unknown kwargs: {extra_kwargs!r}") @@ -27501,9 +27501,9 @@ def update_nat_gateway(self, nat_gateway_id, update_nat_gateway_details, **kwarg "natGatewayId": nat_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27512,7 +27512,7 @@ def update_nat_gateway(self, nat_gateway_id, update_nat_gateway_details, **kwarg "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27613,7 +27613,7 @@ def update_network_security_group(self, network_security_group_id, update_networ "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_security_group got unknown kwargs: {extra_kwargs!r}") @@ -27622,9 +27622,9 @@ def update_network_security_group(self, network_security_group_id, update_networ "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27633,7 +27633,7 @@ def update_network_security_group(self, network_security_group_id, update_networ "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27709,7 +27709,7 @@ def update_network_security_group_security_rules(self, network_security_group_id api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/UpdateNetworkSecurityGroupSecurityRules" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_security_group_security_rules got unknown kwargs: {extra_kwargs!r}") @@ -27718,9 +27718,9 @@ def update_network_security_group_security_rules(self, network_security_group_id "networkSecurityGroupId": network_security_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27823,7 +27823,7 @@ def update_private_ip(self, private_ip_id, update_private_ip_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_ip got unknown kwargs: {extra_kwargs!r}") @@ -27832,9 +27832,9 @@ def update_private_ip(self, private_ip_id, update_private_ip_details, **kwargs): "privateIpId": private_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27843,7 +27843,7 @@ def update_private_ip(self, private_ip_id, update_private_ip_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27969,7 +27969,7 @@ def update_public_ip(self, public_ip_id, update_public_ip_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_public_ip got unknown kwargs: {extra_kwargs!r}") @@ -27978,9 +27978,9 @@ def update_public_ip(self, public_ip_id, update_public_ip_details, **kwargs): "publicIpId": public_ip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27989,7 +27989,7 @@ def update_public_ip(self, public_ip_id, update_public_ip_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28079,7 +28079,7 @@ def update_public_ip_pool(self, public_ip_pool_id, update_public_ip_pool_details "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_public_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -28088,9 +28088,9 @@ def update_public_ip_pool(self, public_ip_pool_id, update_public_ip_pool_details "publicIpPoolId": public_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28100,7 +28100,7 @@ def update_public_ip_pool(self, public_ip_pool_id, update_public_ip_pool_details "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28185,7 +28185,7 @@ def update_remote_peering_connection(self, remote_peering_connection_id, update_ "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_remote_peering_connection got unknown kwargs: {extra_kwargs!r}") @@ -28194,9 +28194,9 @@ def update_remote_peering_connection(self, remote_peering_connection_id, update_ "remotePeeringConnectionId": remote_peering_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28205,7 +28205,7 @@ def update_remote_peering_connection(self, remote_peering_connection_id, update_ "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28295,7 +28295,7 @@ def update_route_table(self, rt_id, update_route_table_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_route_table got unknown kwargs: {extra_kwargs!r}") @@ -28304,9 +28304,9 @@ def update_route_table(self, rt_id, update_route_table_details, **kwargs): "rtId": rt_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28315,7 +28315,7 @@ def update_route_table(self, rt_id, update_route_table_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28404,7 +28404,7 @@ def update_security_list(self, security_list_id, update_security_list_details, * "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_list got unknown kwargs: {extra_kwargs!r}") @@ -28413,9 +28413,9 @@ def update_security_list(self, security_list_id, update_security_list_details, * "securityListId": security_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28424,7 +28424,7 @@ def update_security_list(self, security_list_id, update_security_list_details, * "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28510,7 +28510,7 @@ def update_service_gateway(self, service_gateway_id, update_service_gateway_deta "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_service_gateway got unknown kwargs: {extra_kwargs!r}") @@ -28519,9 +28519,9 @@ def update_service_gateway(self, service_gateway_id, update_service_gateway_deta "serviceGatewayId": service_gateway_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28530,7 +28530,7 @@ def update_service_gateway(self, service_gateway_id, update_service_gateway_deta "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28615,7 +28615,7 @@ def update_subnet(self, subnet_id, update_subnet_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_subnet got unknown kwargs: {extra_kwargs!r}") @@ -28624,9 +28624,9 @@ def update_subnet(self, subnet_id, update_subnet_details, **kwargs): "subnetId": subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28635,7 +28635,7 @@ def update_subnet(self, subnet_id, update_subnet_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28740,7 +28740,7 @@ def update_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, update_tunnel_cpe_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tunnel_cpe_device_config got unknown kwargs: {extra_kwargs!r}") @@ -28750,9 +28750,9 @@ def update_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, update_tunnel_cpe_ "tunnelId": tunnel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28763,7 +28763,7 @@ def update_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, update_tunnel_cpe_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28851,7 +28851,7 @@ def update_vcn(self, vcn_id, update_vcn_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vcn got unknown kwargs: {extra_kwargs!r}") @@ -28860,9 +28860,9 @@ def update_vcn(self, vcn_id, update_vcn_details, **kwargs): "vcnId": vcn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28871,7 +28871,7 @@ def update_vcn(self, vcn_id, update_vcn_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28981,7 +28981,7 @@ def update_virtual_circuit(self, virtual_circuit_id, update_virtual_circuit_deta "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_virtual_circuit got unknown kwargs: {extra_kwargs!r}") @@ -28990,9 +28990,9 @@ def update_virtual_circuit(self, virtual_circuit_id, update_virtual_circuit_deta "virtualCircuitId": virtual_circuit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29001,7 +29001,7 @@ def update_virtual_circuit(self, virtual_circuit_id, update_virtual_circuit_deta "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29094,7 +29094,7 @@ def update_vlan(self, vlan_id, update_vlan_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vlan got unknown kwargs: {extra_kwargs!r}") @@ -29103,9 +29103,9 @@ def update_vlan(self, vlan_id, update_vlan_details, **kwargs): "vlanId": vlan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29115,7 +29115,7 @@ def update_vlan(self, vlan_id, update_vlan_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29200,7 +29200,7 @@ def update_vnic(self, vnic_id, update_vnic_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vnic got unknown kwargs: {extra_kwargs!r}") @@ -29209,9 +29209,9 @@ def update_vnic(self, vnic_id, update_vnic_details, **kwargs): "vnicId": vnic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29220,7 +29220,7 @@ def update_vnic(self, vnic_id, update_vnic_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29310,7 +29310,7 @@ def update_vtap(self, vtap_id, update_vtap_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vtap got unknown kwargs: {extra_kwargs!r}") @@ -29319,9 +29319,9 @@ def update_vtap(self, vtap_id, update_vtap_details, **kwargs): "vtapId": vtap_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29331,7 +29331,7 @@ def update_vtap(self, vtap_id, update_vtap_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29421,7 +29421,7 @@ def upgrade_drg(self, drg_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_drg got unknown kwargs: {extra_kwargs!r}") @@ -29430,9 +29430,9 @@ def upgrade_drg(self, drg_id, **kwargs): "drgId": drg_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29442,7 +29442,7 @@ def upgrade_drg(self, drg_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29537,7 +29537,7 @@ def validate_byoasn(self, byoasn_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_byoasn got unknown kwargs: {extra_kwargs!r}") @@ -29546,9 +29546,9 @@ def validate_byoasn(self, byoasn_id, **kwargs): "byoasnId": byoasn_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29559,7 +29559,7 @@ def validate_byoasn(self, byoasn_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29642,7 +29642,7 @@ def validate_byoip_range(self, byoip_range_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -29651,9 +29651,9 @@ def validate_byoip_range(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29662,7 +29662,7 @@ def validate_byoip_range(self, byoip_range_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29739,7 +29739,7 @@ def withdraw_byoip_range(self, byoip_range_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"withdraw_byoip_range got unknown kwargs: {extra_kwargs!r}") @@ -29748,9 +29748,9 @@ def withdraw_byoip_range(self, byoip_range_id, **kwargs): "byoipRangeId": byoip_range_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29759,7 +29759,7 @@ def withdraw_byoip_range(self, byoip_range_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dashboard_service/dashboard_client.py b/src/oci/dashboard_service/dashboard_client.py index 34eee5e5e..cb158c50a 100644 --- a/src/oci/dashboard_service/dashboard_client.py +++ b/src/oci/dashboard_service/dashboard_client.py @@ -180,7 +180,7 @@ def change_dashboard_group(self, dashboard_id, change_dashboard_group_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dashboard_group got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def change_dashboard_group(self, dashboard_id, change_dashboard_group_details, * "dashboardId": dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_dashboard_group(self, dashboard_id, change_dashboard_group_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -298,7 +298,7 @@ def create_dashboard(self, create_dashboard_details, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -310,7 +310,7 @@ def create_dashboard(self, create_dashboard_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -405,7 +405,7 @@ def delete_dashboard(self, dashboard_id, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -414,9 +414,9 @@ def delete_dashboard(self, dashboard_id, **kwargs): "dashboardId": dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -427,7 +427,7 @@ def delete_dashboard(self, dashboard_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def get_dashboard(self, dashboard_id, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -520,9 +520,9 @@ def get_dashboard(self, dashboard_id, **kwargs): "dashboardId": dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -532,7 +532,7 @@ def get_dashboard(self, dashboard_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -659,7 +659,7 @@ def list_dashboards(self, dashboard_group_id, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dashboards got unknown kwargs: {extra_kwargs!r}") @@ -695,7 +695,7 @@ def list_dashboards(self, dashboard_group_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -703,7 +703,7 @@ def list_dashboards(self, dashboard_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -802,7 +802,7 @@ def update_dashboard(self, dashboard_id, update_dashboard_details, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -811,9 +811,9 @@ def update_dashboard(self, dashboard_id, update_dashboard_details, **kwargs): "dashboardId": dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -824,7 +824,7 @@ def update_dashboard(self, dashboard_id, update_dashboard_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dashboard_service/dashboard_group_client.py b/src/oci/dashboard_service/dashboard_group_client.py index 3295f03f5..05e0003fe 100644 --- a/src/oci/dashboard_service/dashboard_group_client.py +++ b/src/oci/dashboard_service/dashboard_group_client.py @@ -180,7 +180,7 @@ def change_dashboard_group_compartment(self, dashboard_group_id, change_dashboar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dashboard_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def change_dashboard_group_compartment(self, dashboard_group_id, change_dashboar "dashboardGroupId": dashboard_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_dashboard_group_compartment(self, dashboard_group_id, change_dashboar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -298,7 +298,7 @@ def create_dashboard_group(self, create_dashboard_group_details, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dashboard_group got unknown kwargs: {extra_kwargs!r}") @@ -310,7 +310,7 @@ def create_dashboard_group(self, create_dashboard_group_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -405,7 +405,7 @@ def delete_dashboard_group(self, dashboard_group_id, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dashboard_group got unknown kwargs: {extra_kwargs!r}") @@ -414,9 +414,9 @@ def delete_dashboard_group(self, dashboard_group_id, **kwargs): "dashboardGroupId": dashboard_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -427,7 +427,7 @@ def delete_dashboard_group(self, dashboard_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def get_dashboard_group(self, dashboard_group_id, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dashboard_group got unknown kwargs: {extra_kwargs!r}") @@ -520,9 +520,9 @@ def get_dashboard_group(self, dashboard_group_id, **kwargs): "dashboardGroupId": dashboard_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -532,7 +532,7 @@ def get_dashboard_group(self, dashboard_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -659,7 +659,7 @@ def list_dashboard_groups(self, compartment_id, **kwargs): "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dashboard_groups got unknown kwargs: {extra_kwargs!r}") @@ -695,7 +695,7 @@ def list_dashboard_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -703,7 +703,7 @@ def list_dashboard_groups(self, compartment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -802,7 +802,7 @@ def update_dashboard_group(self, dashboard_group_id, update_dashboard_group_deta "opc_request_id", "opc_cross_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dashboard_group got unknown kwargs: {extra_kwargs!r}") @@ -811,9 +811,9 @@ def update_dashboard_group(self, dashboard_group_id, update_dashboard_group_deta "dashboardGroupId": dashboard_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -824,7 +824,7 @@ def update_dashboard_group(self, dashboard_group_id, update_dashboard_group_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-cross-region": kwargs.get("opc_cross_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/data_catalog/data_catalog_client.py b/src/oci/data_catalog/data_catalog_client.py index a730e7594..1907439f1 100644 --- a/src/oci/data_catalog/data_catalog_client.py +++ b/src/oci/data_catalog/data_catalog_client.py @@ -171,7 +171,7 @@ def add_catalog_lock(self, catalog_id, add_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_catalog_lock got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def add_catalog_lock(self, catalog_id, add_resource_lock_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def add_catalog_lock(self, catalog_id, add_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def add_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, add_res "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_catalog_private_endpoint_lock got unknown kwargs: {extra_kwargs!r}") @@ -289,9 +289,9 @@ def add_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, add_res "catalogPrivateEndpointId": catalog_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -301,7 +301,7 @@ def add_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, add_res "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -401,7 +401,7 @@ def add_data_selector_patterns(self, catalog_id, data_asset_key, data_selector_p "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_data_selector_patterns got unknown kwargs: {extra_kwargs!r}") @@ -411,9 +411,9 @@ def add_data_selector_patterns(self, catalog_id, data_asset_key, data_selector_p "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -424,7 +424,7 @@ def add_data_selector_patterns(self, catalog_id, data_asset_key, data_selector_p "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def add_metastore_lock(self, metastore_id, add_resource_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_metastore_lock got unknown kwargs: {extra_kwargs!r}") @@ -522,9 +522,9 @@ def add_metastore_lock(self, metastore_id, add_resource_lock_details, **kwargs): "metastoreId": metastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -534,7 +534,7 @@ def add_metastore_lock(self, metastore_id, add_resource_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def associate_custom_property(self, catalog_id, type_key, associate_custom_prope "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"associate_custom_property got unknown kwargs: {extra_kwargs!r}") @@ -644,9 +644,9 @@ def associate_custom_property(self, catalog_id, type_key, associate_custom_prope "typeKey": type_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -657,7 +657,7 @@ def associate_custom_property(self, catalog_id, type_key, associate_custom_prope "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -755,7 +755,7 @@ def asynchronous_export_data_asset(self, catalog_id, data_asset_key, asynchronou "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"asynchronous_export_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -765,9 +765,9 @@ def asynchronous_export_data_asset(self, catalog_id, data_asset_key, asynchronou "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -781,7 +781,7 @@ def asynchronous_export_data_asset(self, catalog_id, data_asset_key, asynchronou query_params = { "exportType": self.base_client.generate_collection_format_param(export_type, 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -789,7 +789,7 @@ def asynchronous_export_data_asset(self, catalog_id, data_asset_key, asynchronou "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -884,7 +884,7 @@ def asynchronous_export_glossary(self, catalog_id, glossary_key, asynchronous_ex "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"asynchronous_export_glossary got unknown kwargs: {extra_kwargs!r}") @@ -894,9 +894,9 @@ def asynchronous_export_glossary(self, catalog_id, glossary_key, asynchronous_ex "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -906,7 +906,7 @@ def asynchronous_export_glossary(self, catalog_id, glossary_key, asynchronous_ex "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1008,7 +1008,7 @@ def attach_catalog_private_endpoint(self, attach_catalog_private_endpoint_detail "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_catalog_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1017,16 +1017,16 @@ def attach_catalog_private_endpoint(self, attach_catalog_private_endpoint_detail "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1035,7 +1035,7 @@ def attach_catalog_private_endpoint(self, attach_catalog_private_endpoint_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1129,7 +1129,7 @@ def change_catalog_compartment(self, change_catalog_compartment_details, catalog "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_catalog_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1138,16 +1138,16 @@ def change_catalog_compartment(self, change_catalog_compartment_details, catalog "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1155,7 +1155,7 @@ def change_catalog_compartment(self, change_catalog_compartment_details, catalog "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1248,7 +1248,7 @@ def change_catalog_private_endpoint_compartment(self, change_catalog_private_end "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_catalog_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1257,16 +1257,16 @@ def change_catalog_private_endpoint_compartment(self, change_catalog_private_end "catalogPrivateEndpointId": catalog_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1274,7 +1274,7 @@ def change_catalog_private_endpoint_compartment(self, change_catalog_private_end "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1367,7 +1367,7 @@ def change_metastore_compartment(self, change_metastore_compartment_details, met "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_metastore_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1376,16 +1376,16 @@ def change_metastore_compartment(self, change_metastore_compartment_details, met "metastoreId": metastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1393,7 +1393,7 @@ def change_metastore_compartment(self, change_metastore_compartment_details, met "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1488,7 +1488,7 @@ def create_attribute(self, catalog_id, data_asset_key, entity_key, create_attrib "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_attribute got unknown kwargs: {extra_kwargs!r}") @@ -1499,9 +1499,9 @@ def create_attribute(self, catalog_id, data_asset_key, entity_key, create_attrib "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1511,7 +1511,7 @@ def create_attribute(self, catalog_id, data_asset_key, entity_key, create_attrib "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1610,7 +1610,7 @@ def create_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_attribute_tag got unknown kwargs: {extra_kwargs!r}") @@ -1622,9 +1622,9 @@ def create_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute "attributeKey": attribute_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1634,7 +1634,7 @@ def create_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1722,7 +1722,7 @@ def create_catalog(self, create_catalog_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_catalog got unknown kwargs: {extra_kwargs!r}") @@ -1733,7 +1733,7 @@ def create_catalog(self, create_catalog_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1816,7 +1816,7 @@ def create_catalog_private_endpoint(self, create_catalog_private_endpoint_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_catalog_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1827,7 +1827,7 @@ def create_catalog_private_endpoint(self, create_catalog_private_endpoint_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1916,7 +1916,7 @@ def create_connection(self, catalog_id, data_asset_key, create_connection_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection got unknown kwargs: {extra_kwargs!r}") @@ -1926,9 +1926,9 @@ def create_connection(self, catalog_id, data_asset_key, create_connection_detail "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1938,7 +1938,7 @@ def create_connection(self, catalog_id, data_asset_key, create_connection_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2031,7 +2031,7 @@ def create_custom_property(self, catalog_id, namespace_id, create_custom_propert "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_custom_property got unknown kwargs: {extra_kwargs!r}") @@ -2041,9 +2041,9 @@ def create_custom_property(self, catalog_id, namespace_id, create_custom_propert "namespaceId": namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2053,7 +2053,7 @@ def create_custom_property(self, catalog_id, namespace_id, create_custom_propert "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2143,7 +2143,7 @@ def create_data_asset(self, catalog_id, create_data_asset_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -2152,9 +2152,9 @@ def create_data_asset(self, catalog_id, create_data_asset_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2164,7 +2164,7 @@ def create_data_asset(self, catalog_id, create_data_asset_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2257,7 +2257,7 @@ def create_data_asset_tag(self, catalog_id, data_asset_key, create_data_asset_ta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_asset_tag got unknown kwargs: {extra_kwargs!r}") @@ -2267,9 +2267,9 @@ def create_data_asset_tag(self, catalog_id, data_asset_key, create_data_asset_ta "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2279,7 +2279,7 @@ def create_data_asset_tag(self, catalog_id, data_asset_key, create_data_asset_ta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2372,7 +2372,7 @@ def create_entity(self, catalog_id, data_asset_key, create_entity_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_entity got unknown kwargs: {extra_kwargs!r}") @@ -2382,9 +2382,9 @@ def create_entity(self, catalog_id, data_asset_key, create_entity_details, **kwa "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2394,7 +2394,7 @@ def create_entity(self, catalog_id, data_asset_key, create_entity_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2490,7 +2490,7 @@ def create_entity_tag(self, catalog_id, data_asset_key, entity_key, create_entit "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_entity_tag got unknown kwargs: {extra_kwargs!r}") @@ -2501,9 +2501,9 @@ def create_entity_tag(self, catalog_id, data_asset_key, entity_key, create_entit "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2513,7 +2513,7 @@ def create_entity_tag(self, catalog_id, data_asset_key, entity_key, create_entit "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2606,7 +2606,7 @@ def create_folder(self, catalog_id, data_asset_key, create_folder_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_folder got unknown kwargs: {extra_kwargs!r}") @@ -2616,9 +2616,9 @@ def create_folder(self, catalog_id, data_asset_key, create_folder_details, **kwa "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2628,7 +2628,7 @@ def create_folder(self, catalog_id, data_asset_key, create_folder_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2724,7 +2724,7 @@ def create_folder_tag(self, catalog_id, data_asset_key, folder_key, create_folde "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_folder_tag got unknown kwargs: {extra_kwargs!r}") @@ -2735,9 +2735,9 @@ def create_folder_tag(self, catalog_id, data_asset_key, folder_key, create_folde "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2747,7 +2747,7 @@ def create_folder_tag(self, catalog_id, data_asset_key, folder_key, create_folde "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2837,7 +2837,7 @@ def create_glossary(self, catalog_id, create_glossary_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_glossary got unknown kwargs: {extra_kwargs!r}") @@ -2846,9 +2846,9 @@ def create_glossary(self, catalog_id, create_glossary_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2858,7 +2858,7 @@ def create_glossary(self, catalog_id, create_glossary_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2948,7 +2948,7 @@ def create_job(self, catalog_id, create_job_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job got unknown kwargs: {extra_kwargs!r}") @@ -2957,9 +2957,9 @@ def create_job(self, catalog_id, create_job_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2969,7 +2969,7 @@ def create_job(self, catalog_id, create_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3059,7 +3059,7 @@ def create_job_definition(self, catalog_id, create_job_definition_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job_definition got unknown kwargs: {extra_kwargs!r}") @@ -3068,9 +3068,9 @@ def create_job_definition(self, catalog_id, create_job_definition_details, **kwa "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3080,7 +3080,7 @@ def create_job_definition(self, catalog_id, create_job_definition_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3173,7 +3173,7 @@ def create_job_execution(self, catalog_id, job_key, create_job_execution_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job_execution got unknown kwargs: {extra_kwargs!r}") @@ -3183,9 +3183,9 @@ def create_job_execution(self, catalog_id, job_key, create_job_execution_details "jobKey": job_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3195,7 +3195,7 @@ def create_job_execution(self, catalog_id, job_key, create_job_execution_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3282,7 +3282,7 @@ def create_metastore(self, create_metastore_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_metastore got unknown kwargs: {extra_kwargs!r}") @@ -3293,7 +3293,7 @@ def create_metastore(self, create_metastore_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3379,7 +3379,7 @@ def create_namespace(self, catalog_id, create_namespace_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_namespace got unknown kwargs: {extra_kwargs!r}") @@ -3388,9 +3388,9 @@ def create_namespace(self, catalog_id, create_namespace_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3400,7 +3400,7 @@ def create_namespace(self, catalog_id, create_namespace_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3490,7 +3490,7 @@ def create_pattern(self, catalog_id, create_pattern_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pattern got unknown kwargs: {extra_kwargs!r}") @@ -3499,9 +3499,9 @@ def create_pattern(self, catalog_id, create_pattern_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3511,7 +3511,7 @@ def create_pattern(self, catalog_id, create_pattern_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3604,7 +3604,7 @@ def create_term(self, catalog_id, glossary_key, create_term_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_term got unknown kwargs: {extra_kwargs!r}") @@ -3614,9 +3614,9 @@ def create_term(self, catalog_id, glossary_key, create_term_details, **kwargs): "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3626,7 +3626,7 @@ def create_term(self, catalog_id, glossary_key, create_term_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3722,7 +3722,7 @@ def create_term_relationship(self, catalog_id, glossary_key, term_key, create_te "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_term_relationship got unknown kwargs: {extra_kwargs!r}") @@ -3733,9 +3733,9 @@ def create_term_relationship(self, catalog_id, glossary_key, term_key, create_te "termKey": term_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3745,7 +3745,7 @@ def create_term_relationship(self, catalog_id, glossary_key, term_key, create_te "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3841,7 +3841,7 @@ def delete_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_attribute got unknown kwargs: {extra_kwargs!r}") @@ -3853,9 +3853,9 @@ def delete_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key "attributeKey": attribute_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3865,7 +3865,7 @@ def delete_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3959,7 +3959,7 @@ def delete_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_attribute_tag got unknown kwargs: {extra_kwargs!r}") @@ -3972,9 +3972,9 @@ def delete_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3984,7 +3984,7 @@ def delete_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4070,7 +4070,7 @@ def delete_catalog(self, catalog_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_catalog got unknown kwargs: {extra_kwargs!r}") @@ -4079,16 +4079,16 @@ def delete_catalog(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4096,7 +4096,7 @@ def delete_catalog(self, catalog_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4184,7 +4184,7 @@ def delete_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs) "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_catalog_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4193,16 +4193,16 @@ def delete_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs) "catalogPrivateEndpointId": catalog_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4210,7 +4210,7 @@ def delete_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4300,7 +4300,7 @@ def delete_connection(self, catalog_id, data_asset_key, connection_key, **kwargs "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection got unknown kwargs: {extra_kwargs!r}") @@ -4311,9 +4311,9 @@ def delete_connection(self, catalog_id, data_asset_key, connection_key, **kwargs "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4323,7 +4323,7 @@ def delete_connection(self, catalog_id, data_asset_key, connection_key, **kwargs "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4411,7 +4411,7 @@ def delete_custom_property(self, catalog_id, namespace_id, custom_property_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_custom_property got unknown kwargs: {extra_kwargs!r}") @@ -4422,9 +4422,9 @@ def delete_custom_property(self, catalog_id, namespace_id, custom_property_key, "customPropertyKey": custom_property_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4434,7 +4434,7 @@ def delete_custom_property(self, catalog_id, namespace_id, custom_property_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4519,7 +4519,7 @@ def delete_data_asset(self, catalog_id, data_asset_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -4529,9 +4529,9 @@ def delete_data_asset(self, catalog_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4541,7 +4541,7 @@ def delete_data_asset(self, catalog_id, data_asset_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4629,7 +4629,7 @@ def delete_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_asset_tag got unknown kwargs: {extra_kwargs!r}") @@ -4640,9 +4640,9 @@ def delete_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4652,7 +4652,7 @@ def delete_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4740,7 +4740,7 @@ def delete_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_entity got unknown kwargs: {extra_kwargs!r}") @@ -4751,9 +4751,9 @@ def delete_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4763,7 +4763,7 @@ def delete_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4854,7 +4854,7 @@ def delete_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_entity_tag got unknown kwargs: {extra_kwargs!r}") @@ -4866,9 +4866,9 @@ def delete_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **k "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4878,7 +4878,7 @@ def delete_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4966,7 +4966,7 @@ def delete_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_folder got unknown kwargs: {extra_kwargs!r}") @@ -4977,9 +4977,9 @@ def delete_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4989,7 +4989,7 @@ def delete_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5080,7 +5080,7 @@ def delete_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_folder_tag got unknown kwargs: {extra_kwargs!r}") @@ -5092,9 +5092,9 @@ def delete_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **k "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5104,7 +5104,7 @@ def delete_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5189,7 +5189,7 @@ def delete_glossary(self, catalog_id, glossary_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_glossary got unknown kwargs: {extra_kwargs!r}") @@ -5199,9 +5199,9 @@ def delete_glossary(self, catalog_id, glossary_key, **kwargs): "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5211,7 +5211,7 @@ def delete_glossary(self, catalog_id, glossary_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5296,7 +5296,7 @@ def delete_job(self, catalog_id, job_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job got unknown kwargs: {extra_kwargs!r}") @@ -5306,9 +5306,9 @@ def delete_job(self, catalog_id, job_key, **kwargs): "jobKey": job_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5318,7 +5318,7 @@ def delete_job(self, catalog_id, job_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5403,7 +5403,7 @@ def delete_job_definition(self, catalog_id, job_definition_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job_definition got unknown kwargs: {extra_kwargs!r}") @@ -5413,9 +5413,9 @@ def delete_job_definition(self, catalog_id, job_definition_key, **kwargs): "jobDefinitionKey": job_definition_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5425,7 +5425,7 @@ def delete_job_definition(self, catalog_id, job_definition_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5511,7 +5511,7 @@ def delete_metastore(self, metastore_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_metastore got unknown kwargs: {extra_kwargs!r}") @@ -5520,16 +5520,16 @@ def delete_metastore(self, metastore_id, **kwargs): "metastoreId": metastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5537,7 +5537,7 @@ def delete_metastore(self, metastore_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5624,7 +5624,7 @@ def delete_namespace(self, catalog_id, namespace_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_namespace got unknown kwargs: {extra_kwargs!r}") @@ -5634,9 +5634,9 @@ def delete_namespace(self, catalog_id, namespace_id, **kwargs): "namespaceId": namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5646,7 +5646,7 @@ def delete_namespace(self, catalog_id, namespace_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5731,7 +5731,7 @@ def delete_pattern(self, catalog_id, pattern_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pattern got unknown kwargs: {extra_kwargs!r}") @@ -5741,9 +5741,9 @@ def delete_pattern(self, catalog_id, pattern_key, **kwargs): "patternKey": pattern_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5753,7 +5753,7 @@ def delete_pattern(self, catalog_id, pattern_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5841,7 +5841,7 @@ def delete_term(self, catalog_id, glossary_key, term_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_term got unknown kwargs: {extra_kwargs!r}") @@ -5852,9 +5852,9 @@ def delete_term(self, catalog_id, glossary_key, term_key, **kwargs): "termKey": term_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5864,7 +5864,7 @@ def delete_term(self, catalog_id, glossary_key, term_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5955,7 +5955,7 @@ def delete_term_relationship(self, catalog_id, glossary_key, term_key, term_rela "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_term_relationship got unknown kwargs: {extra_kwargs!r}") @@ -5967,9 +5967,9 @@ def delete_term_relationship(self, catalog_id, glossary_key, term_key, term_rela "termRelationshipKey": term_relationship_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5979,7 +5979,7 @@ def delete_term_relationship(self, catalog_id, glossary_key, term_key, term_rela "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6068,7 +6068,7 @@ def detach_catalog_private_endpoint(self, detach_catalog_private_endpoint_detail "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_catalog_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6077,16 +6077,16 @@ def detach_catalog_private_endpoint(self, detach_catalog_private_endpoint_detail "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6094,7 +6094,7 @@ def detach_catalog_private_endpoint(self, detach_catalog_private_endpoint_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6194,7 +6194,7 @@ def disassociate_custom_property(self, catalog_id, type_key, disassociate_custom "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disassociate_custom_property got unknown kwargs: {extra_kwargs!r}") @@ -6204,9 +6204,9 @@ def disassociate_custom_property(self, catalog_id, type_key, disassociate_custom "typeKey": type_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6217,7 +6217,7 @@ def disassociate_custom_property(self, catalog_id, type_key, disassociate_custom "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6307,7 +6307,7 @@ def expand_tree_for_glossary(self, catalog_id, glossary_key, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"expand_tree_for_glossary got unknown kwargs: {extra_kwargs!r}") @@ -6317,9 +6317,9 @@ def expand_tree_for_glossary(self, catalog_id, glossary_key, **kwargs): "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6329,7 +6329,7 @@ def expand_tree_for_glossary(self, catalog_id, glossary_key, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6423,7 +6423,7 @@ def export_glossary(self, catalog_id, glossary_key, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_glossary got unknown kwargs: {extra_kwargs!r}") @@ -6433,16 +6433,16 @@ def export_glossary(self, catalog_id, glossary_key, **kwargs): "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isRelationshipExported": kwargs.get("is_relationship_exported", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", @@ -6450,7 +6450,7 @@ def export_glossary(self, catalog_id, glossary_key, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6554,7 +6554,7 @@ def fetch_entity_lineage(self, catalog_id, data_asset_key, entity_key, fetch_ent "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"fetch_entity_lineage got unknown kwargs: {extra_kwargs!r}") @@ -6565,9 +6565,9 @@ def fetch_entity_lineage(self, catalog_id, data_asset_key, entity_key, fetch_ent "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6575,7 +6575,7 @@ def fetch_entity_lineage(self, catalog_id, data_asset_key, entity_key, fetch_ent "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6583,7 +6583,7 @@ def fetch_entity_lineage(self, catalog_id, data_asset_key, entity_key, fetch_ent "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6684,7 +6684,7 @@ def get_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key, * "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_attribute got unknown kwargs: {extra_kwargs!r}") @@ -6696,9 +6696,9 @@ def get_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key, * "attributeKey": attribute_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6714,14 +6714,14 @@ def get_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key, * "isIncludeObjectRelationships": kwargs.get("is_include_object_relationships", missing), "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6819,7 +6819,7 @@ def get_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute_ke "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_attribute_tag got unknown kwargs: {extra_kwargs!r}") @@ -6832,9 +6832,9 @@ def get_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute_ke "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6849,14 +6849,14 @@ def get_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute_ke query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6936,7 +6936,7 @@ def get_catalog(self, catalog_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_catalog got unknown kwargs: {extra_kwargs!r}") @@ -6945,9 +6945,9 @@ def get_catalog(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6956,7 +6956,7 @@ def get_catalog(self, catalog_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7034,7 +7034,7 @@ def get_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_catalog_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -7043,9 +7043,9 @@ def get_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs): "catalogPrivateEndpointId": catalog_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7054,7 +7054,7 @@ def get_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7144,7 +7144,7 @@ def get_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection got unknown kwargs: {extra_kwargs!r}") @@ -7155,9 +7155,9 @@ def get_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7172,14 +7172,14 @@ def get_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7271,7 +7271,7 @@ def get_custom_property(self, catalog_id, namespace_id, custom_property_key, **k "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_custom_property got unknown kwargs: {extra_kwargs!r}") @@ -7282,9 +7282,9 @@ def get_custom_property(self, catalog_id, namespace_id, custom_property_key, **k "customPropertyKey": custom_property_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7299,14 +7299,14 @@ def get_custom_property(self, catalog_id, namespace_id, custom_property_key, **k query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7395,7 +7395,7 @@ def get_data_asset(self, catalog_id, data_asset_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -7405,9 +7405,9 @@ def get_data_asset(self, catalog_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7422,14 +7422,14 @@ def get_data_asset(self, catalog_id, data_asset_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7521,7 +7521,7 @@ def get_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_asset_tag got unknown kwargs: {extra_kwargs!r}") @@ -7532,9 +7532,9 @@ def get_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7549,14 +7549,14 @@ def get_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7652,7 +7652,7 @@ def get_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_entity got unknown kwargs: {extra_kwargs!r}") @@ -7663,9 +7663,9 @@ def get_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7681,14 +7681,14 @@ def get_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): "isIncludeObjectRelationships": kwargs.get("is_include_object_relationships", missing), "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7783,7 +7783,7 @@ def get_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **kwar "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_entity_tag got unknown kwargs: {extra_kwargs!r}") @@ -7795,9 +7795,9 @@ def get_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **kwar "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7812,14 +7812,14 @@ def get_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **kwar query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7915,7 +7915,7 @@ def get_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_folder got unknown kwargs: {extra_kwargs!r}") @@ -7926,9 +7926,9 @@ def get_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7944,14 +7944,14 @@ def get_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): "isIncludeObjectRelationships": kwargs.get("is_include_object_relationships", missing), "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8046,7 +8046,7 @@ def get_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **kwar "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_folder_tag got unknown kwargs: {extra_kwargs!r}") @@ -8058,9 +8058,9 @@ def get_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **kwar "tagKey": tag_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8075,14 +8075,14 @@ def get_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **kwar query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8171,7 +8171,7 @@ def get_glossary(self, catalog_id, glossary_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_glossary got unknown kwargs: {extra_kwargs!r}") @@ -8181,9 +8181,9 @@ def get_glossary(self, catalog_id, glossary_key, **kwargs): "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8198,14 +8198,14 @@ def get_glossary(self, catalog_id, glossary_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8294,7 +8294,7 @@ def get_job(self, catalog_id, job_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job got unknown kwargs: {extra_kwargs!r}") @@ -8304,9 +8304,9 @@ def get_job(self, catalog_id, job_key, **kwargs): "jobKey": job_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8321,14 +8321,14 @@ def get_job(self, catalog_id, job_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8417,7 +8417,7 @@ def get_job_definition(self, catalog_id, job_definition_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_definition got unknown kwargs: {extra_kwargs!r}") @@ -8427,9 +8427,9 @@ def get_job_definition(self, catalog_id, job_definition_key, **kwargs): "jobDefinitionKey": job_definition_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8444,14 +8444,14 @@ def get_job_definition(self, catalog_id, job_definition_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8543,7 +8543,7 @@ def get_job_execution(self, catalog_id, job_key, job_execution_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_execution got unknown kwargs: {extra_kwargs!r}") @@ -8554,9 +8554,9 @@ def get_job_execution(self, catalog_id, job_key, job_execution_key, **kwargs): "jobExecutionKey": job_execution_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8571,14 +8571,14 @@ def get_job_execution(self, catalog_id, job_key, job_execution_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8673,7 +8673,7 @@ def get_job_log(self, catalog_id, job_key, job_execution_key, job_log_key, **kwa "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_log got unknown kwargs: {extra_kwargs!r}") @@ -8685,9 +8685,9 @@ def get_job_log(self, catalog_id, job_key, job_execution_key, job_log_key, **kwa "jobLogKey": job_log_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8702,14 +8702,14 @@ def get_job_log(self, catalog_id, job_key, job_execution_key, job_log_key, **kwa query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8804,7 +8804,7 @@ def get_job_metrics(self, catalog_id, job_key, job_execution_key, job_metrics_ke "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_metrics got unknown kwargs: {extra_kwargs!r}") @@ -8816,9 +8816,9 @@ def get_job_metrics(self, catalog_id, job_key, job_execution_key, job_metrics_ke "jobMetricsKey": job_metrics_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8833,14 +8833,14 @@ def get_job_metrics(self, catalog_id, job_key, job_execution_key, job_metrics_ke query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8920,7 +8920,7 @@ def get_metastore(self, metastore_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_metastore got unknown kwargs: {extra_kwargs!r}") @@ -8929,9 +8929,9 @@ def get_metastore(self, metastore_id, **kwargs): "metastoreId": metastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8940,7 +8940,7 @@ def get_metastore(self, metastore_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9027,7 +9027,7 @@ def get_namespace(self, catalog_id, namespace_id, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_namespace got unknown kwargs: {extra_kwargs!r}") @@ -9037,9 +9037,9 @@ def get_namespace(self, catalog_id, namespace_id, **kwargs): "namespaceId": namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9054,14 +9054,14 @@ def get_namespace(self, catalog_id, namespace_id, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9150,7 +9150,7 @@ def get_pattern(self, catalog_id, pattern_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pattern got unknown kwargs: {extra_kwargs!r}") @@ -9160,9 +9160,9 @@ def get_pattern(self, catalog_id, pattern_key, **kwargs): "patternKey": pattern_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9177,14 +9177,14 @@ def get_pattern(self, catalog_id, pattern_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9276,7 +9276,7 @@ def get_term(self, catalog_id, glossary_key, term_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_term got unknown kwargs: {extra_kwargs!r}") @@ -9287,9 +9287,9 @@ def get_term(self, catalog_id, glossary_key, term_key, **kwargs): "termKey": term_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9304,14 +9304,14 @@ def get_term(self, catalog_id, glossary_key, term_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9406,7 +9406,7 @@ def get_term_relationship(self, catalog_id, glossary_key, term_key, term_relatio "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_term_relationship got unknown kwargs: {extra_kwargs!r}") @@ -9418,9 +9418,9 @@ def get_term_relationship(self, catalog_id, glossary_key, term_key, term_relatio "termRelationshipKey": term_relationship_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9435,14 +9435,14 @@ def get_term_relationship(self, catalog_id, glossary_key, term_key, term_relatio query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9531,7 +9531,7 @@ def get_type(self, catalog_id, type_key, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_type got unknown kwargs: {extra_kwargs!r}") @@ -9541,9 +9541,9 @@ def get_type(self, catalog_id, type_key, **kwargs): "typeKey": type_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9558,14 +9558,14 @@ def get_type(self, catalog_id, type_key, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9645,7 +9645,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -9654,9 +9654,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9665,7 +9665,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9765,7 +9765,7 @@ def import_connection(self, catalog_id, data_asset_key, import_connection_detail "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_connection got unknown kwargs: {extra_kwargs!r}") @@ -9775,9 +9775,9 @@ def import_connection(self, catalog_id, data_asset_key, import_connection_detail "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9788,7 +9788,7 @@ def import_connection(self, catalog_id, data_asset_key, import_connection_detail "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9890,7 +9890,7 @@ def import_data_asset(self, catalog_id, data_asset_key, import_data_asset_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -9900,9 +9900,9 @@ def import_data_asset(self, catalog_id, data_asset_key, import_data_asset_detail "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9917,7 +9917,7 @@ def import_data_asset(self, catalog_id, data_asset_key, import_data_asset_detail "importType": self.base_client.generate_collection_format_param(import_type, 'multi'), "isMissingValueIgnored": kwargs.get("is_missing_value_ignored", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9925,7 +9925,7 @@ def import_data_asset(self, catalog_id, data_asset_key, import_data_asset_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10024,7 +10024,7 @@ def import_glossary(self, catalog_id, glossary_key, import_glossary_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_glossary got unknown kwargs: {extra_kwargs!r}") @@ -10034,16 +10034,16 @@ def import_glossary(self, catalog_id, glossary_key, import_glossary_details, **k "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isRelationshipImported": kwargs.get("is_relationship_imported", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10051,7 +10051,7 @@ def import_glossary(self, catalog_id, glossary_key, import_glossary_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10144,7 +10144,7 @@ def import_lineage(self, catalog_id, data_asset_key, import_lineage_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_lineage got unknown kwargs: {extra_kwargs!r}") @@ -10154,9 +10154,9 @@ def import_lineage(self, catalog_id, data_asset_key, import_lineage_details, **k "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10166,7 +10166,7 @@ def import_lineage(self, catalog_id, data_asset_key, import_lineage_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10289,7 +10289,7 @@ def list_aggregated_physical_entities(self, catalog_id, data_asset_key, entity_k "is_include_properties", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_aggregated_physical_entities got unknown kwargs: {extra_kwargs!r}") @@ -10300,9 +10300,9 @@ def list_aggregated_physical_entities(self, catalog_id, data_asset_key, entity_k "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10337,14 +10337,14 @@ def list_aggregated_physical_entities(self, catalog_id, data_asset_key, entity_k "page": kwargs.get("page", missing), "isIncludeProperties": kwargs.get("is_include_properties", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10487,7 +10487,7 @@ def list_attribute_tags(self, catalog_id, data_asset_key, entity_key, attribute_ "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attribute_tags got unknown kwargs: {extra_kwargs!r}") @@ -10499,9 +10499,9 @@ def list_attribute_tags(self, catalog_id, data_asset_key, entity_key, attribute_ "attributeKey": attribute_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10547,14 +10547,14 @@ def list_attribute_tags(self, catalog_id, data_asset_key, entity_key, attribute_ "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10749,7 +10749,7 @@ def list_attributes(self, catalog_id, data_asset_key, entity_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attributes got unknown kwargs: {extra_kwargs!r}") @@ -10760,9 +10760,9 @@ def list_attributes(self, catalog_id, data_asset_key, entity_key, **kwargs): "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10820,14 +10820,14 @@ def list_attributes(self, catalog_id, data_asset_key, entity_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10937,7 +10937,7 @@ def list_catalog_private_endpoints(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_catalog_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -10972,14 +10972,14 @@ def list_catalog_private_endpoints(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11087,7 +11087,7 @@ def list_catalogs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_catalogs got unknown kwargs: {extra_kwargs!r}") @@ -11122,14 +11122,14 @@ def list_catalogs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11286,7 +11286,7 @@ def list_connections(self, catalog_id, data_asset_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connections got unknown kwargs: {extra_kwargs!r}") @@ -11296,9 +11296,9 @@ def list_connections(self, catalog_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11348,14 +11348,14 @@ def list_connections(self, catalog_id, data_asset_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11512,7 +11512,7 @@ def list_custom_properties(self, catalog_id, namespace_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_custom_properties got unknown kwargs: {extra_kwargs!r}") @@ -11522,9 +11522,9 @@ def list_custom_properties(self, catalog_id, namespace_id, **kwargs): "namespaceId": namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11589,14 +11589,14 @@ def list_custom_properties(self, catalog_id, namespace_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11733,7 +11733,7 @@ def list_data_asset_tags(self, catalog_id, data_asset_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_asset_tags got unknown kwargs: {extra_kwargs!r}") @@ -11743,9 +11743,9 @@ def list_data_asset_tags(self, catalog_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11791,14 +11791,14 @@ def list_data_asset_tags(self, catalog_id, data_asset_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11948,7 +11948,7 @@ def list_data_assets(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_assets got unknown kwargs: {extra_kwargs!r}") @@ -11957,9 +11957,9 @@ def list_data_assets(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12008,14 +12008,14 @@ def list_data_assets(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12140,7 +12140,7 @@ def list_derived_logical_entities(self, catalog_id, pattern_key, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_derived_logical_entities got unknown kwargs: {extra_kwargs!r}") @@ -12150,9 +12150,9 @@ def list_derived_logical_entities(self, catalog_id, pattern_key, **kwargs): "patternKey": pattern_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12177,7 +12177,7 @@ def list_derived_logical_entities(self, catalog_id, pattern_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12186,7 +12186,7 @@ def list_derived_logical_entities(self, catalog_id, pattern_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12395,7 +12395,7 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): "opc_request_id", "is_process" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_entities got unknown kwargs: {extra_kwargs!r}") @@ -12405,9 +12405,9 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12475,14 +12475,14 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): "page": kwargs.get("page", missing), "isProcess": kwargs.get("is_process", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12622,7 +12622,7 @@ def list_entity_tags(self, catalog_id, data_asset_key, entity_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_entity_tags got unknown kwargs: {extra_kwargs!r}") @@ -12633,9 +12633,9 @@ def list_entity_tags(self, catalog_id, data_asset_key, entity_key, **kwargs): "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12681,14 +12681,14 @@ def list_entity_tags(self, catalog_id, data_asset_key, entity_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12828,7 +12828,7 @@ def list_folder_tags(self, catalog_id, data_asset_key, folder_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_folder_tags got unknown kwargs: {extra_kwargs!r}") @@ -12839,9 +12839,9 @@ def list_folder_tags(self, catalog_id, data_asset_key, folder_key, **kwargs): "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12887,14 +12887,14 @@ def list_folder_tags(self, catalog_id, data_asset_key, folder_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13076,7 +13076,7 @@ def list_folders(self, catalog_id, data_asset_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_folders got unknown kwargs: {extra_kwargs!r}") @@ -13086,9 +13086,9 @@ def list_folders(self, catalog_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13150,14 +13150,14 @@ def list_folders(self, catalog_id, data_asset_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13299,7 +13299,7 @@ def list_glossaries(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_glossaries got unknown kwargs: {extra_kwargs!r}") @@ -13308,9 +13308,9 @@ def list_glossaries(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13357,14 +13357,14 @@ def list_glossaries(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13538,7 +13538,7 @@ def list_job_definitions(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_definitions got unknown kwargs: {extra_kwargs!r}") @@ -13547,9 +13547,9 @@ def list_job_definitions(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13617,14 +13617,14 @@ def list_job_definitions(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13811,7 +13811,7 @@ def list_job_executions(self, catalog_id, job_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_executions got unknown kwargs: {extra_kwargs!r}") @@ -13821,9 +13821,9 @@ def list_job_executions(self, catalog_id, job_key, **kwargs): "jobKey": job_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13886,14 +13886,14 @@ def list_job_executions(self, catalog_id, job_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14035,7 +14035,7 @@ def list_job_logs(self, catalog_id, job_key, job_execution_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_logs got unknown kwargs: {extra_kwargs!r}") @@ -14046,9 +14046,9 @@ def list_job_logs(self, catalog_id, job_key, job_execution_key, **kwargs): "jobExecutionKey": job_execution_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14094,14 +14094,14 @@ def list_job_logs(self, catalog_id, job_key, job_execution_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14270,7 +14270,7 @@ def list_job_metrics(self, catalog_id, job_key, job_execution_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_metrics got unknown kwargs: {extra_kwargs!r}") @@ -14281,9 +14281,9 @@ def list_job_metrics(self, catalog_id, job_key, job_execution_key, **kwargs): "jobExecutionKey": job_execution_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14328,14 +14328,14 @@ def list_job_metrics(self, catalog_id, job_key, job_execution_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14534,7 +14534,7 @@ def list_jobs(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jobs got unknown kwargs: {extra_kwargs!r}") @@ -14543,9 +14543,9 @@ def list_jobs(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14617,14 +14617,14 @@ def list_jobs(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14734,7 +14734,7 @@ def list_metastores(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_metastores got unknown kwargs: {extra_kwargs!r}") @@ -14769,14 +14769,14 @@ def list_metastores(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14916,7 +14916,7 @@ def list_namespaces(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -14925,9 +14925,9 @@ def list_namespaces(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14974,14 +14974,14 @@ def list_namespaces(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15123,7 +15123,7 @@ def list_patterns(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_patterns got unknown kwargs: {extra_kwargs!r}") @@ -15132,9 +15132,9 @@ def list_patterns(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15181,14 +15181,14 @@ def list_patterns(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15352,7 +15352,7 @@ def list_rules(self, catalog_id, data_asset_key, entity_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rules got unknown kwargs: {extra_kwargs!r}") @@ -15363,9 +15363,9 @@ def list_rules(self, catalog_id, data_asset_key, entity_key, **kwargs): "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15429,14 +15429,14 @@ def list_rules(self, catalog_id, data_asset_key, entity_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15558,7 +15558,7 @@ def list_tags(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tags got unknown kwargs: {extra_kwargs!r}") @@ -15567,9 +15567,9 @@ def list_tags(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15612,14 +15612,14 @@ def list_tags(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15747,7 +15747,7 @@ def list_term_relationships(self, catalog_id, glossary_key, term_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_term_relationships got unknown kwargs: {extra_kwargs!r}") @@ -15758,9 +15758,9 @@ def list_term_relationships(self, catalog_id, glossary_key, term_key, **kwargs): "termKey": term_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15803,14 +15803,14 @@ def list_term_relationships(self, catalog_id, glossary_key, term_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15953,7 +15953,7 @@ def list_terms(self, catalog_id, glossary_key, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_terms got unknown kwargs: {extra_kwargs!r}") @@ -15963,9 +15963,9 @@ def list_terms(self, catalog_id, glossary_key, **kwargs): "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16019,14 +16019,14 @@ def list_terms(self, catalog_id, glossary_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16162,7 +16162,7 @@ def list_types(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_types got unknown kwargs: {extra_kwargs!r}") @@ -16171,9 +16171,9 @@ def list_types(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16220,14 +16220,14 @@ def list_types(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16327,7 +16327,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -16336,9 +16336,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16362,14 +16362,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16469,7 +16469,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -16478,9 +16478,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16504,14 +16504,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16599,7 +16599,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -16609,14 +16609,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16714,7 +16714,7 @@ def object_stats(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"object_stats got unknown kwargs: {extra_kwargs!r}") @@ -16723,9 +16723,9 @@ def object_stats(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16749,14 +16749,14 @@ def object_stats(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16854,7 +16854,7 @@ def parse_connection(self, catalog_id, data_asset_key, parse_connection_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"parse_connection got unknown kwargs: {extra_kwargs!r}") @@ -16864,16 +16864,16 @@ def parse_connection(self, catalog_id, data_asset_key, parse_connection_details, "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "connectionKey": kwargs.get("connection_key", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -16881,7 +16881,7 @@ def parse_connection(self, catalog_id, data_asset_key, parse_connection_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16974,7 +16974,7 @@ def process_recommendation(self, catalog_id, process_recommendation_details, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"process_recommendation got unknown kwargs: {extra_kwargs!r}") @@ -16983,9 +16983,9 @@ def process_recommendation(self, catalog_id, process_recommendation_details, **k "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16995,7 +16995,7 @@ def process_recommendation(self, catalog_id, process_recommendation_details, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17094,7 +17094,7 @@ def recommendations(self, catalog_id, recommendation_type, source_object_key, so "recommendation_status", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"recommendations got unknown kwargs: {extra_kwargs!r}") @@ -17103,9 +17103,9 @@ def recommendations(self, catalog_id, recommendation_type, source_object_key, so "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17135,14 +17135,14 @@ def recommendations(self, catalog_id, recommendation_type, source_object_key, so "sourceObjectType": source_object_type, "recommendationStatus": kwargs.get("recommendation_status", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17230,7 +17230,7 @@ def remove_catalog_lock(self, catalog_id, remove_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_catalog_lock got unknown kwargs: {extra_kwargs!r}") @@ -17239,9 +17239,9 @@ def remove_catalog_lock(self, catalog_id, remove_resource_lock_details, **kwargs "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17251,7 +17251,7 @@ def remove_catalog_lock(self, catalog_id, remove_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17339,7 +17339,7 @@ def remove_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, remo "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_catalog_private_endpoint_lock got unknown kwargs: {extra_kwargs!r}") @@ -17348,9 +17348,9 @@ def remove_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, remo "catalogPrivateEndpointId": catalog_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17360,7 +17360,7 @@ def remove_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, remo "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17460,7 +17460,7 @@ def remove_data_selector_patterns(self, catalog_id, data_asset_key, data_selecto "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_data_selector_patterns got unknown kwargs: {extra_kwargs!r}") @@ -17470,9 +17470,9 @@ def remove_data_selector_patterns(self, catalog_id, data_asset_key, data_selecto "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17483,7 +17483,7 @@ def remove_data_selector_patterns(self, catalog_id, data_asset_key, data_selecto "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17572,7 +17572,7 @@ def remove_metastore_lock(self, metastore_id, remove_resource_lock_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_metastore_lock got unknown kwargs: {extra_kwargs!r}") @@ -17581,9 +17581,9 @@ def remove_metastore_lock(self, metastore_id, remove_resource_lock_details, **kw "metastoreId": metastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17593,7 +17593,7 @@ def remove_metastore_lock(self, metastore_id, remove_resource_lock_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17715,7 +17715,7 @@ def search_criteria(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_criteria got unknown kwargs: {extra_kwargs!r}") @@ -17724,9 +17724,9 @@ def search_criteria(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17761,14 +17761,14 @@ def search_criteria(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17863,7 +17863,7 @@ def suggest_matches(self, catalog_id, input_text, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"suggest_matches got unknown kwargs: {extra_kwargs!r}") @@ -17872,9 +17872,9 @@ def suggest_matches(self, catalog_id, input_text, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17883,14 +17883,14 @@ def suggest_matches(self, catalog_id, input_text, **kwargs): "inputText": input_text, "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17989,7 +17989,7 @@ def synchronous_export_data_asset(self, catalog_id, data_asset_key, synchronous_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"synchronous_export_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -17999,9 +17999,9 @@ def synchronous_export_data_asset(self, catalog_id, data_asset_key, synchronous_ "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18015,7 +18015,7 @@ def synchronous_export_data_asset(self, catalog_id, data_asset_key, synchronous_ query_params = { "exportType": self.base_client.generate_collection_format_param(export_type, 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", @@ -18023,7 +18023,7 @@ def synchronous_export_data_asset(self, catalog_id, data_asset_key, synchronous_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18118,7 +18118,7 @@ def test_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_connection got unknown kwargs: {extra_kwargs!r}") @@ -18129,9 +18129,9 @@ def test_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18141,7 +18141,7 @@ def test_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18240,7 +18240,7 @@ def update_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_attribute got unknown kwargs: {extra_kwargs!r}") @@ -18252,9 +18252,9 @@ def update_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key "attributeKey": attribute_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18264,7 +18264,7 @@ def update_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18357,7 +18357,7 @@ def update_catalog(self, catalog_id, update_catalog_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_catalog got unknown kwargs: {extra_kwargs!r}") @@ -18366,16 +18366,16 @@ def update_catalog(self, catalog_id, update_catalog_details, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18383,7 +18383,7 @@ def update_catalog(self, catalog_id, update_catalog_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18478,7 +18478,7 @@ def update_catalog_private_endpoint(self, catalog_private_endpoint_id, update_ca "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_catalog_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -18487,16 +18487,16 @@ def update_catalog_private_endpoint(self, catalog_private_endpoint_id, update_ca "catalogPrivateEndpointId": catalog_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18504,7 +18504,7 @@ def update_catalog_private_endpoint(self, catalog_private_endpoint_id, update_ca "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18599,7 +18599,7 @@ def update_connection(self, catalog_id, data_asset_key, connection_key, update_c "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_connection got unknown kwargs: {extra_kwargs!r}") @@ -18610,9 +18610,9 @@ def update_connection(self, catalog_id, data_asset_key, connection_key, update_c "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18622,7 +18622,7 @@ def update_connection(self, catalog_id, data_asset_key, connection_key, update_c "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18717,7 +18717,7 @@ def update_custom_property(self, catalog_id, namespace_id, custom_property_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_custom_property got unknown kwargs: {extra_kwargs!r}") @@ -18728,9 +18728,9 @@ def update_custom_property(self, catalog_id, namespace_id, custom_property_key, "customPropertyKey": custom_property_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18740,7 +18740,7 @@ def update_custom_property(self, catalog_id, namespace_id, custom_property_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18832,7 +18832,7 @@ def update_data_asset(self, catalog_id, data_asset_key, update_data_asset_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -18842,9 +18842,9 @@ def update_data_asset(self, catalog_id, data_asset_key, update_data_asset_detail "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18854,7 +18854,7 @@ def update_data_asset(self, catalog_id, data_asset_key, update_data_asset_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18949,7 +18949,7 @@ def update_entity(self, catalog_id, data_asset_key, entity_key, update_entity_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_entity got unknown kwargs: {extra_kwargs!r}") @@ -18960,9 +18960,9 @@ def update_entity(self, catalog_id, data_asset_key, entity_key, update_entity_de "entityKey": entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18972,7 +18972,7 @@ def update_entity(self, catalog_id, data_asset_key, entity_key, update_entity_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19067,7 +19067,7 @@ def update_folder(self, catalog_id, data_asset_key, folder_key, update_folder_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_folder got unknown kwargs: {extra_kwargs!r}") @@ -19078,9 +19078,9 @@ def update_folder(self, catalog_id, data_asset_key, folder_key, update_folder_de "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19090,7 +19090,7 @@ def update_folder(self, catalog_id, data_asset_key, folder_key, update_folder_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19182,7 +19182,7 @@ def update_glossary(self, catalog_id, glossary_key, update_glossary_details, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_glossary got unknown kwargs: {extra_kwargs!r}") @@ -19192,9 +19192,9 @@ def update_glossary(self, catalog_id, glossary_key, update_glossary_details, **k "glossaryKey": glossary_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19204,7 +19204,7 @@ def update_glossary(self, catalog_id, glossary_key, update_glossary_details, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19296,7 +19296,7 @@ def update_job(self, catalog_id, job_key, update_job_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job got unknown kwargs: {extra_kwargs!r}") @@ -19306,9 +19306,9 @@ def update_job(self, catalog_id, job_key, update_job_details, **kwargs): "jobKey": job_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19318,7 +19318,7 @@ def update_job(self, catalog_id, job_key, update_job_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19410,7 +19410,7 @@ def update_job_definition(self, catalog_id, job_definition_key, update_job_defin "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job_definition got unknown kwargs: {extra_kwargs!r}") @@ -19420,9 +19420,9 @@ def update_job_definition(self, catalog_id, job_definition_key, update_job_defin "jobDefinitionKey": job_definition_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19432,7 +19432,7 @@ def update_job_definition(self, catalog_id, job_definition_key, update_job_defin "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19525,7 +19525,7 @@ def update_metastore(self, metastore_id, update_metastore_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_metastore got unknown kwargs: {extra_kwargs!r}") @@ -19534,16 +19534,16 @@ def update_metastore(self, metastore_id, update_metastore_details, **kwargs): "metastoreId": metastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19551,7 +19551,7 @@ def update_metastore(self, metastore_id, update_metastore_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19645,7 +19645,7 @@ def update_namespace(self, catalog_id, namespace_id, update_namespace_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_namespace got unknown kwargs: {extra_kwargs!r}") @@ -19655,9 +19655,9 @@ def update_namespace(self, catalog_id, namespace_id, update_namespace_details, * "namespaceId": namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19667,7 +19667,7 @@ def update_namespace(self, catalog_id, namespace_id, update_namespace_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19759,7 +19759,7 @@ def update_pattern(self, catalog_id, pattern_key, update_pattern_details, **kwar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pattern got unknown kwargs: {extra_kwargs!r}") @@ -19769,9 +19769,9 @@ def update_pattern(self, catalog_id, pattern_key, update_pattern_details, **kwar "patternKey": pattern_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19781,7 +19781,7 @@ def update_pattern(self, catalog_id, pattern_key, update_pattern_details, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19876,7 +19876,7 @@ def update_term(self, catalog_id, glossary_key, term_key, update_term_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_term got unknown kwargs: {extra_kwargs!r}") @@ -19887,9 +19887,9 @@ def update_term(self, catalog_id, glossary_key, term_key, update_term_details, * "termKey": term_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19899,7 +19899,7 @@ def update_term(self, catalog_id, glossary_key, term_key, update_term_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19997,7 +19997,7 @@ def update_term_relationship(self, catalog_id, glossary_key, term_key, term_rela "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_term_relationship got unknown kwargs: {extra_kwargs!r}") @@ -20009,9 +20009,9 @@ def update_term_relationship(self, catalog_id, glossary_key, term_key, term_rela "termRelationshipKey": term_relationship_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20021,7 +20021,7 @@ def update_term_relationship(self, catalog_id, glossary_key, term_key, term_rela "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20124,7 +20124,7 @@ def upload_credentials(self, catalog_id, data_asset_key, connection_key, upload_ "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_credentials got unknown kwargs: {extra_kwargs!r}") @@ -20135,9 +20135,9 @@ def upload_credentials(self, catalog_id, data_asset_key, connection_key, upload_ "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20148,7 +20148,7 @@ def upload_credentials(self, catalog_id, data_asset_key, connection_key, upload_ "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20247,7 +20247,7 @@ def users(self, catalog_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"users got unknown kwargs: {extra_kwargs!r}") @@ -20256,9 +20256,9 @@ def users(self, catalog_id, **kwargs): "catalogId": catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20282,14 +20282,14 @@ def users(self, catalog_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20383,7 +20383,7 @@ def validate_connection(self, catalog_id, data_asset_key, validate_connection_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_connection got unknown kwargs: {extra_kwargs!r}") @@ -20393,9 +20393,9 @@ def validate_connection(self, catalog_id, data_asset_key, validate_connection_de "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20405,7 +20405,7 @@ def validate_connection(self, catalog_id, data_asset_key, validate_connection_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20500,7 +20500,7 @@ def validate_pattern(self, catalog_id, pattern_key, validate_pattern_details, ** "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_pattern got unknown kwargs: {extra_kwargs!r}") @@ -20510,9 +20510,9 @@ def validate_pattern(self, catalog_id, pattern_key, validate_pattern_details, ** "patternKey": pattern_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20522,7 +20522,7 @@ def validate_pattern(self, catalog_id, pattern_key, validate_pattern_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/data_flow/data_flow_client.py b/src/oci/data_flow/data_flow_client.py index 990babc75..47a90b298 100644 --- a/src/oci/data_flow/data_flow_client.py +++ b/src/oci/data_flow/data_flow_client.py @@ -167,7 +167,7 @@ def cascading_delete_application(self, application_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_application got unknown kwargs: {extra_kwargs!r}") @@ -176,9 +176,9 @@ def cascading_delete_application(self, application_id, **kwargs): "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,7 +188,7 @@ def cascading_delete_application(self, application_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def change_application_compartment(self, application_id, change_application_comp "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_application_compartment got unknown kwargs: {extra_kwargs!r}") @@ -289,9 +289,9 @@ def change_application_compartment(self, application_id, change_application_comp "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -302,7 +302,7 @@ def change_application_compartment(self, application_id, change_application_comp "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -399,7 +399,7 @@ def change_pool_compartment(self, pool_id, change_pool_compartment_details, **kw "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_pool_compartment got unknown kwargs: {extra_kwargs!r}") @@ -408,9 +408,9 @@ def change_pool_compartment(self, pool_id, change_pool_compartment_details, **kw "poolId": pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -421,7 +421,7 @@ def change_pool_compartment(self, pool_id, change_pool_compartment_details, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -519,9 +519,9 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -531,7 +531,7 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -627,7 +627,7 @@ def change_run_compartment(self, run_id, change_run_compartment_details, **kwarg "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_run_compartment got unknown kwargs: {extra_kwargs!r}") @@ -636,9 +636,9 @@ def change_run_compartment(self, run_id, change_run_compartment_details, **kwarg "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -649,7 +649,7 @@ def change_run_compartment(self, run_id, change_run_compartment_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -743,7 +743,7 @@ def change_sql_endpoint_compartment(self, sql_endpoint_id, change_sql_endpoint_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sql_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -752,9 +752,9 @@ def change_sql_endpoint_compartment(self, sql_endpoint_id, change_sql_endpoint_c "sqlEndpointId": sql_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -765,7 +765,7 @@ def change_sql_endpoint_compartment(self, sql_endpoint_id, change_sql_endpoint_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -850,7 +850,7 @@ def create_application(self, create_application_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application got unknown kwargs: {extra_kwargs!r}") @@ -861,7 +861,7 @@ def create_application(self, create_application_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -946,7 +946,7 @@ def create_pool(self, create_pool_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pool got unknown kwargs: {extra_kwargs!r}") @@ -957,7 +957,7 @@ def create_pool(self, create_pool_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1044,7 +1044,7 @@ def create_private_endpoint(self, create_private_endpoint_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1055,7 +1055,7 @@ def create_private_endpoint(self, create_private_endpoint_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1145,7 +1145,7 @@ def create_run(self, create_run_details, **kwargs): "opc_request_id", "opc_parent_rpt_url" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_run got unknown kwargs: {extra_kwargs!r}") @@ -1157,7 +1157,7 @@ def create_run(self, create_run_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-parent-rpt-url": kwargs.get("opc_parent_rpt_url", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1242,7 +1242,7 @@ def create_sql_endpoint(self, create_sql_endpoint_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sql_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1253,7 +1253,7 @@ def create_sql_endpoint(self, create_sql_endpoint_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1334,7 +1334,7 @@ def create_statement(self, create_statement_details, run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_statement got unknown kwargs: {extra_kwargs!r}") @@ -1343,9 +1343,9 @@ def create_statement(self, create_statement_details, run_id, **kwargs): "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1354,7 +1354,7 @@ def create_statement(self, create_statement_details, run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1439,7 +1439,7 @@ def delete_application(self, application_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application got unknown kwargs: {extra_kwargs!r}") @@ -1448,9 +1448,9 @@ def delete_application(self, application_id, **kwargs): "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1460,7 +1460,7 @@ def delete_application(self, application_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1541,7 +1541,7 @@ def delete_pool(self, pool_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pool got unknown kwargs: {extra_kwargs!r}") @@ -1550,9 +1550,9 @@ def delete_pool(self, pool_id, **kwargs): "poolId": pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1562,7 +1562,7 @@ def delete_pool(self, pool_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1643,7 +1643,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1652,9 +1652,9 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1664,7 +1664,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1746,7 +1746,7 @@ def delete_run(self, run_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_run got unknown kwargs: {extra_kwargs!r}") @@ -1755,9 +1755,9 @@ def delete_run(self, run_id, **kwargs): "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1767,7 +1767,7 @@ def delete_run(self, run_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1848,7 +1848,7 @@ def delete_sql_endpoint(self, sql_endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sql_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1857,9 +1857,9 @@ def delete_sql_endpoint(self, sql_endpoint_id, **kwargs): "sqlEndpointId": sql_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1869,7 +1869,7 @@ def delete_sql_endpoint(self, sql_endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1953,7 +1953,7 @@ def delete_statement(self, run_id, statement_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_statement got unknown kwargs: {extra_kwargs!r}") @@ -1963,9 +1963,9 @@ def delete_statement(self, run_id, statement_id, **kwargs): "statementId": statement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1975,7 +1975,7 @@ def delete_statement(self, run_id, statement_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2052,7 +2052,7 @@ def get_application(self, application_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application got unknown kwargs: {extra_kwargs!r}") @@ -2061,9 +2061,9 @@ def get_application(self, application_id, **kwargs): "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2072,7 +2072,7 @@ def get_application(self, application_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2151,7 +2151,7 @@ def get_pool(self, pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pool got unknown kwargs: {extra_kwargs!r}") @@ -2160,9 +2160,9 @@ def get_pool(self, pool_id, **kwargs): "poolId": pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2171,7 +2171,7 @@ def get_pool(self, pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2250,7 +2250,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2259,9 +2259,9 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2270,7 +2270,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2349,7 +2349,7 @@ def get_run(self, run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_run got unknown kwargs: {extra_kwargs!r}") @@ -2358,9 +2358,9 @@ def get_run(self, run_id, **kwargs): "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2369,7 +2369,7 @@ def get_run(self, run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2451,7 +2451,7 @@ def get_run_log(self, run_id, name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_run_log got unknown kwargs: {extra_kwargs!r}") @@ -2461,9 +2461,9 @@ def get_run_log(self, run_id, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2472,7 +2472,7 @@ def get_run_log(self, run_id, name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2551,7 +2551,7 @@ def get_sql_endpoint(self, sql_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2560,9 +2560,9 @@ def get_sql_endpoint(self, sql_endpoint_id, **kwargs): "sqlEndpointId": sql_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2571,7 +2571,7 @@ def get_sql_endpoint(self, sql_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2653,7 +2653,7 @@ def get_statement(self, run_id, statement_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_statement got unknown kwargs: {extra_kwargs!r}") @@ -2663,9 +2663,9 @@ def get_statement(self, run_id, statement_id, **kwargs): "statementId": statement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2674,7 +2674,7 @@ def get_statement(self, run_id, statement_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2753,7 +2753,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2762,9 +2762,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2773,7 +2773,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2889,7 +2889,7 @@ def list_applications(self, compartment_id, **kwargs): "display_name_starts_with", "spark_version" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_applications got unknown kwargs: {extra_kwargs!r}") @@ -2919,14 +2919,14 @@ def list_applications(self, compartment_id, **kwargs): "displayNameStartsWith": kwargs.get("display_name_starts_with", missing), "sparkVersion": kwargs.get("spark_version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3044,7 +3044,7 @@ def list_pools(self, compartment_id, **kwargs): "owner_principal_id", "display_name_starts_with" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pools got unknown kwargs: {extra_kwargs!r}") @@ -3081,14 +3081,14 @@ def list_pools(self, compartment_id, **kwargs): "ownerPrincipalId": kwargs.get("owner_principal_id", missing), "displayNameStartsWith": kwargs.get("display_name_starts_with", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3206,7 +3206,7 @@ def list_private_endpoints(self, compartment_id, **kwargs): "owner_principal_id", "display_name_starts_with" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -3243,14 +3243,14 @@ def list_private_endpoints(self, compartment_id, **kwargs): "ownerPrincipalId": kwargs.get("owner_principal_id", missing), "displayNameStartsWith": kwargs.get("display_name_starts_with", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3338,7 +3338,7 @@ def list_run_logs(self, run_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_run_logs got unknown kwargs: {extra_kwargs!r}") @@ -3347,9 +3347,9 @@ def list_run_logs(self, run_id, **kwargs): "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3357,14 +3357,14 @@ def list_run_logs(self, run_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3496,7 +3496,7 @@ def list_runs(self, compartment_id, **kwargs): "sort_order", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runs got unknown kwargs: {extra_kwargs!r}") @@ -3536,14 +3536,14 @@ def list_runs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3659,7 +3659,7 @@ def list_sql_endpoints(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -3695,14 +3695,14 @@ def list_sql_endpoints(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3808,7 +3808,7 @@ def list_statements(self, run_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_statements got unknown kwargs: {extra_kwargs!r}") @@ -3817,9 +3817,9 @@ def list_statements(self, run_id, **kwargs): "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3851,14 +3851,14 @@ def list_statements(self, run_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3948,7 +3948,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3957,9 +3957,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3967,14 +3967,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4064,7 +4064,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4073,9 +4073,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4083,14 +4083,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4180,7 +4180,7 @@ def list_work_requests(self, compartment_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4190,14 +4190,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4289,7 +4289,7 @@ def start_pool(self, pool_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_pool got unknown kwargs: {extra_kwargs!r}") @@ -4298,9 +4298,9 @@ def start_pool(self, pool_id, **kwargs): "poolId": pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4311,7 +4311,7 @@ def start_pool(self, pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4402,7 +4402,7 @@ def start_sql_endpoint(self, sql_endpoint_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_sql_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4411,9 +4411,9 @@ def start_sql_endpoint(self, sql_endpoint_id, **kwargs): "sqlEndpointId": sql_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4424,7 +4424,7 @@ def start_sql_endpoint(self, sql_endpoint_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4515,7 +4515,7 @@ def stop_pool(self, pool_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_pool got unknown kwargs: {extra_kwargs!r}") @@ -4524,9 +4524,9 @@ def stop_pool(self, pool_id, **kwargs): "poolId": pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4537,7 +4537,7 @@ def stop_pool(self, pool_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4628,7 +4628,7 @@ def stop_sql_endpoint(self, sql_endpoint_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_sql_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4637,9 +4637,9 @@ def stop_sql_endpoint(self, sql_endpoint_id, **kwargs): "sqlEndpointId": sql_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4650,7 +4650,7 @@ def stop_sql_endpoint(self, sql_endpoint_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4737,7 +4737,7 @@ def update_application(self, update_application_details, application_id, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_application got unknown kwargs: {extra_kwargs!r}") @@ -4746,9 +4746,9 @@ def update_application(self, update_application_details, application_id, **kwarg "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4758,7 +4758,7 @@ def update_application(self, update_application_details, application_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4848,7 +4848,7 @@ def update_pool(self, update_pool_details, pool_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pool got unknown kwargs: {extra_kwargs!r}") @@ -4857,9 +4857,9 @@ def update_pool(self, update_pool_details, pool_id, **kwargs): "poolId": pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4869,7 +4869,7 @@ def update_pool(self, update_pool_details, pool_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4957,7 +4957,7 @@ def update_private_endpoint(self, update_private_endpoint_details, private_endpo "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4966,9 +4966,9 @@ def update_private_endpoint(self, update_private_endpoint_details, private_endpo "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4978,7 +4978,7 @@ def update_private_endpoint(self, update_private_endpoint_details, private_endpo "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5064,7 +5064,7 @@ def update_run(self, update_run_details, run_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_run got unknown kwargs: {extra_kwargs!r}") @@ -5073,9 +5073,9 @@ def update_run(self, update_run_details, run_id, **kwargs): "runId": run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5085,7 +5085,7 @@ def update_run(self, update_run_details, run_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5173,7 +5173,7 @@ def update_sql_endpoint(self, update_sql_endpoint_details, sql_endpoint_id, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sql_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -5182,9 +5182,9 @@ def update_sql_endpoint(self, update_sql_endpoint_details, sql_endpoint_id, **kw "sqlEndpointId": sql_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5194,7 +5194,7 @@ def update_sql_endpoint(self, update_sql_endpoint_details, sql_endpoint_id, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/data_integration/data_integration_client.py b/src/oci/data_integration/data_integration_client.py index d327554da..a18aeb7f5 100644 --- a/src/oci/data_integration/data_integration_client.py +++ b/src/oci/data_integration/data_integration_client.py @@ -175,7 +175,7 @@ def change_compartment(self, workspace_id, change_compartment_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_compartment got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def change_compartment(self, workspace_id, change_compartment_details, **kwargs) "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -197,7 +197,7 @@ def change_compartment(self, workspace_id, change_compartment_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -292,7 +292,7 @@ def change_dis_application_compartment(self, workspace_id, dis_application_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dis_application_compartment got unknown kwargs: {extra_kwargs!r}") @@ -302,9 +302,9 @@ def change_dis_application_compartment(self, workspace_id, dis_application_id, c "disApplicationId": dis_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -315,7 +315,7 @@ def change_dis_application_compartment(self, workspace_id, dis_application_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -401,7 +401,7 @@ def create_application(self, workspace_id, create_application_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application got unknown kwargs: {extra_kwargs!r}") @@ -410,9 +410,9 @@ def create_application(self, workspace_id, create_application_details, **kwargs) "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -422,7 +422,7 @@ def create_application(self, workspace_id, create_application_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def create_application_detailed_description(self, workspace_id, application_key, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -523,9 +523,9 @@ def create_application_detailed_description(self, workspace_id, application_key, "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -535,7 +535,7 @@ def create_application_detailed_description(self, workspace_id, application_key, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -623,7 +623,7 @@ def create_connection(self, workspace_id, create_connection_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection got unknown kwargs: {extra_kwargs!r}") @@ -632,9 +632,9 @@ def create_connection(self, workspace_id, create_connection_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -644,7 +644,7 @@ def create_connection(self, workspace_id, create_connection_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -732,7 +732,7 @@ def create_connection_validation(self, workspace_id, create_connection_validatio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection_validation got unknown kwargs: {extra_kwargs!r}") @@ -741,9 +741,9 @@ def create_connection_validation(self, workspace_id, create_connection_validatio "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -753,7 +753,7 @@ def create_connection_validation(self, workspace_id, create_connection_validatio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -841,7 +841,7 @@ def create_copy_object_request(self, workspace_id, create_copy_object_request_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_copy_object_request got unknown kwargs: {extra_kwargs!r}") @@ -850,9 +850,9 @@ def create_copy_object_request(self, workspace_id, create_copy_object_request_de "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -862,7 +862,7 @@ def create_copy_object_request(self, workspace_id, create_copy_object_request_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -950,7 +950,7 @@ def create_data_asset(self, workspace_id, create_data_asset_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -959,9 +959,9 @@ def create_data_asset(self, workspace_id, create_data_asset_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -971,7 +971,7 @@ def create_data_asset(self, workspace_id, create_data_asset_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1059,7 +1059,7 @@ def create_data_flow(self, workspace_id, create_data_flow_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_flow got unknown kwargs: {extra_kwargs!r}") @@ -1068,9 +1068,9 @@ def create_data_flow(self, workspace_id, create_data_flow_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1080,7 +1080,7 @@ def create_data_flow(self, workspace_id, create_data_flow_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1168,7 +1168,7 @@ def create_data_flow_validation(self, workspace_id, create_data_flow_validation_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_flow_validation got unknown kwargs: {extra_kwargs!r}") @@ -1177,9 +1177,9 @@ def create_data_flow_validation(self, workspace_id, create_data_flow_validation_ "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1189,7 +1189,7 @@ def create_data_flow_validation(self, workspace_id, create_data_flow_validation_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1277,7 +1277,7 @@ def create_dis_application(self, workspace_id, create_dis_application_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dis_application got unknown kwargs: {extra_kwargs!r}") @@ -1286,9 +1286,9 @@ def create_dis_application(self, workspace_id, create_dis_application_details, * "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1298,7 +1298,7 @@ def create_dis_application(self, workspace_id, create_dis_application_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1389,7 +1389,7 @@ def create_dis_application_detailed_description(self, workspace_id, application_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dis_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -1399,9 +1399,9 @@ def create_dis_application_detailed_description(self, workspace_id, application_ "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1411,7 +1411,7 @@ def create_dis_application_detailed_description(self, workspace_id, application_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1511,7 +1511,7 @@ def create_entity_shape(self, workspace_id, connection_key, schema_resource_name "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_entity_shape got unknown kwargs: {extra_kwargs!r}") @@ -1522,9 +1522,9 @@ def create_entity_shape(self, workspace_id, connection_key, schema_resource_name "schemaResourceName": schema_resource_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1535,7 +1535,7 @@ def create_entity_shape(self, workspace_id, connection_key, schema_resource_name "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1623,7 +1623,7 @@ def create_export_request(self, workspace_id, create_export_request_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_export_request got unknown kwargs: {extra_kwargs!r}") @@ -1632,9 +1632,9 @@ def create_export_request(self, workspace_id, create_export_request_details, **k "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1644,7 +1644,7 @@ def create_export_request(self, workspace_id, create_export_request_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1735,7 +1735,7 @@ def create_external_publication(self, workspace_id, task_key, create_external_pu "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_publication got unknown kwargs: {extra_kwargs!r}") @@ -1745,9 +1745,9 @@ def create_external_publication(self, workspace_id, task_key, create_external_pu "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1757,7 +1757,7 @@ def create_external_publication(self, workspace_id, task_key, create_external_pu "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1848,7 +1848,7 @@ def create_external_publication_validation(self, workspace_id, task_key, create_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_publication_validation got unknown kwargs: {extra_kwargs!r}") @@ -1858,9 +1858,9 @@ def create_external_publication_validation(self, workspace_id, task_key, create_ "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1870,7 +1870,7 @@ def create_external_publication_validation(self, workspace_id, task_key, create_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1959,7 +1959,7 @@ def create_folder(self, workspace_id, create_folder_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_folder got unknown kwargs: {extra_kwargs!r}") @@ -1968,9 +1968,9 @@ def create_folder(self, workspace_id, create_folder_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1980,7 +1980,7 @@ def create_folder(self, workspace_id, create_folder_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2069,7 +2069,7 @@ def create_function_library(self, workspace_id, create_function_library_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_function_library got unknown kwargs: {extra_kwargs!r}") @@ -2078,9 +2078,9 @@ def create_function_library(self, workspace_id, create_function_library_details, "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2090,7 +2090,7 @@ def create_function_library(self, workspace_id, create_function_library_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2178,7 +2178,7 @@ def create_import_request(self, workspace_id, create_import_request_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_import_request got unknown kwargs: {extra_kwargs!r}") @@ -2187,9 +2187,9 @@ def create_import_request(self, workspace_id, create_import_request_details, **k "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2199,7 +2199,7 @@ def create_import_request(self, workspace_id, create_import_request_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2290,7 +2290,7 @@ def create_patch(self, workspace_id, application_key, create_patch_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_patch got unknown kwargs: {extra_kwargs!r}") @@ -2300,9 +2300,9 @@ def create_patch(self, workspace_id, application_key, create_patch_details, **kw "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2312,7 +2312,7 @@ def create_patch(self, workspace_id, application_key, create_patch_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2400,7 +2400,7 @@ def create_pipeline(self, workspace_id, create_pipeline_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -2409,9 +2409,9 @@ def create_pipeline(self, workspace_id, create_pipeline_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2421,7 +2421,7 @@ def create_pipeline(self, workspace_id, create_pipeline_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2509,7 +2509,7 @@ def create_pipeline_validation(self, workspace_id, create_pipeline_validation_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pipeline_validation got unknown kwargs: {extra_kwargs!r}") @@ -2518,9 +2518,9 @@ def create_pipeline_validation(self, workspace_id, create_pipeline_validation_de "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2530,7 +2530,7 @@ def create_pipeline_validation(self, workspace_id, create_pipeline_validation_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2618,7 +2618,7 @@ def create_project(self, workspace_id, create_project_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_project got unknown kwargs: {extra_kwargs!r}") @@ -2627,9 +2627,9 @@ def create_project(self, workspace_id, create_project_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2639,7 +2639,7 @@ def create_project(self, workspace_id, create_project_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2730,7 +2730,7 @@ def create_schedule(self, workspace_id, application_key, create_schedule_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_schedule got unknown kwargs: {extra_kwargs!r}") @@ -2740,9 +2740,9 @@ def create_schedule(self, workspace_id, application_key, create_schedule_details "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2752,7 +2752,7 @@ def create_schedule(self, workspace_id, application_key, create_schedule_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2840,7 +2840,7 @@ def create_task(self, workspace_id, create_task_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_task got unknown kwargs: {extra_kwargs!r}") @@ -2849,9 +2849,9 @@ def create_task(self, workspace_id, create_task_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2861,7 +2861,7 @@ def create_task(self, workspace_id, create_task_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2952,7 +2952,7 @@ def create_task_run(self, workspace_id, application_key, create_task_run_details "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_task_run got unknown kwargs: {extra_kwargs!r}") @@ -2962,9 +2962,9 @@ def create_task_run(self, workspace_id, application_key, create_task_run_details "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2974,7 +2974,7 @@ def create_task_run(self, workspace_id, application_key, create_task_run_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3065,7 +3065,7 @@ def create_task_schedule(self, workspace_id, application_key, create_task_schedu "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -3075,9 +3075,9 @@ def create_task_schedule(self, workspace_id, application_key, create_task_schedu "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3087,7 +3087,7 @@ def create_task_schedule(self, workspace_id, application_key, create_task_schedu "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3175,7 +3175,7 @@ def create_task_validation(self, workspace_id, create_task_validation_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_task_validation got unknown kwargs: {extra_kwargs!r}") @@ -3184,9 +3184,9 @@ def create_task_validation(self, workspace_id, create_task_validation_details, * "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3196,7 +3196,7 @@ def create_task_validation(self, workspace_id, create_task_validation_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3284,7 +3284,7 @@ def create_user_defined_function(self, workspace_id, create_user_defined_functio "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_user_defined_function got unknown kwargs: {extra_kwargs!r}") @@ -3293,9 +3293,9 @@ def create_user_defined_function(self, workspace_id, create_user_defined_functio "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3305,7 +3305,7 @@ def create_user_defined_function(self, workspace_id, create_user_defined_functio "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3393,7 +3393,7 @@ def create_user_defined_function_validation(self, workspace_id, create_user_defi "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_user_defined_function_validation got unknown kwargs: {extra_kwargs!r}") @@ -3402,9 +3402,9 @@ def create_user_defined_function_validation(self, workspace_id, create_user_defi "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3414,7 +3414,7 @@ def create_user_defined_function_validation(self, workspace_id, create_user_defi "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3499,7 +3499,7 @@ def create_workspace(self, create_workspace_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_workspace got unknown kwargs: {extra_kwargs!r}") @@ -3510,7 +3510,7 @@ def create_workspace(self, create_workspace_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3596,7 +3596,7 @@ def delete_application(self, workspace_id, application_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application got unknown kwargs: {extra_kwargs!r}") @@ -3606,9 +3606,9 @@ def delete_application(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3618,7 +3618,7 @@ def delete_application(self, workspace_id, application_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3703,7 +3703,7 @@ def delete_application_detailed_description(self, workspace_id, application_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -3713,9 +3713,9 @@ def delete_application_detailed_description(self, workspace_id, application_key, "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3725,7 +3725,7 @@ def delete_application_detailed_description(self, workspace_id, application_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3810,7 +3810,7 @@ def delete_connection(self, workspace_id, connection_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection got unknown kwargs: {extra_kwargs!r}") @@ -3820,9 +3820,9 @@ def delete_connection(self, workspace_id, connection_key, **kwargs): "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3832,7 +3832,7 @@ def delete_connection(self, workspace_id, connection_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3917,7 +3917,7 @@ def delete_connection_validation(self, workspace_id, connection_validation_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection_validation got unknown kwargs: {extra_kwargs!r}") @@ -3927,9 +3927,9 @@ def delete_connection_validation(self, workspace_id, connection_validation_key, "connectionValidationKey": connection_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3939,7 +3939,7 @@ def delete_connection_validation(self, workspace_id, connection_validation_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4024,7 +4024,7 @@ def delete_copy_object_request(self, workspace_id, copy_object_request_key, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_copy_object_request got unknown kwargs: {extra_kwargs!r}") @@ -4034,9 +4034,9 @@ def delete_copy_object_request(self, workspace_id, copy_object_request_key, **kw "copyObjectRequestKey": copy_object_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4046,7 +4046,7 @@ def delete_copy_object_request(self, workspace_id, copy_object_request_key, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4131,7 +4131,7 @@ def delete_data_asset(self, workspace_id, data_asset_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -4141,9 +4141,9 @@ def delete_data_asset(self, workspace_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4153,7 +4153,7 @@ def delete_data_asset(self, workspace_id, data_asset_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4238,7 +4238,7 @@ def delete_data_flow(self, workspace_id, data_flow_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_flow got unknown kwargs: {extra_kwargs!r}") @@ -4248,9 +4248,9 @@ def delete_data_flow(self, workspace_id, data_flow_key, **kwargs): "dataFlowKey": data_flow_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4260,7 +4260,7 @@ def delete_data_flow(self, workspace_id, data_flow_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4345,7 +4345,7 @@ def delete_data_flow_validation(self, workspace_id, data_flow_validation_key, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_flow_validation got unknown kwargs: {extra_kwargs!r}") @@ -4355,9 +4355,9 @@ def delete_data_flow_validation(self, workspace_id, data_flow_validation_key, ** "dataFlowValidationKey": data_flow_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4367,7 +4367,7 @@ def delete_data_flow_validation(self, workspace_id, data_flow_validation_key, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4452,7 +4452,7 @@ def delete_dis_application(self, workspace_id, dis_application_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dis_application got unknown kwargs: {extra_kwargs!r}") @@ -4462,9 +4462,9 @@ def delete_dis_application(self, workspace_id, dis_application_id, **kwargs): "disApplicationId": dis_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4474,7 +4474,7 @@ def delete_dis_application(self, workspace_id, dis_application_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4559,7 +4559,7 @@ def delete_dis_application_detailed_description(self, workspace_id, application_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dis_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -4569,9 +4569,9 @@ def delete_dis_application_detailed_description(self, workspace_id, application_ "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4581,7 +4581,7 @@ def delete_dis_application_detailed_description(self, workspace_id, application_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4666,7 +4666,7 @@ def delete_export_request(self, workspace_id, export_request_key, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_export_request got unknown kwargs: {extra_kwargs!r}") @@ -4676,9 +4676,9 @@ def delete_export_request(self, workspace_id, export_request_key, **kwargs): "exportRequestKey": export_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4688,7 +4688,7 @@ def delete_export_request(self, workspace_id, export_request_key, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4776,7 +4776,7 @@ def delete_external_publication(self, workspace_id, task_key, external_publicati "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_publication got unknown kwargs: {extra_kwargs!r}") @@ -4787,9 +4787,9 @@ def delete_external_publication(self, workspace_id, task_key, external_publicati "externalPublicationsKey": external_publications_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4799,7 +4799,7 @@ def delete_external_publication(self, workspace_id, task_key, external_publicati "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4887,7 +4887,7 @@ def delete_external_publication_validation(self, workspace_id, task_key, externa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_publication_validation got unknown kwargs: {extra_kwargs!r}") @@ -4898,9 +4898,9 @@ def delete_external_publication_validation(self, workspace_id, task_key, externa "externalPublicationValidationKey": external_publication_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4910,7 +4910,7 @@ def delete_external_publication_validation(self, workspace_id, task_key, externa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4995,7 +4995,7 @@ def delete_folder(self, workspace_id, folder_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_folder got unknown kwargs: {extra_kwargs!r}") @@ -5005,9 +5005,9 @@ def delete_folder(self, workspace_id, folder_key, **kwargs): "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5017,7 +5017,7 @@ def delete_folder(self, workspace_id, folder_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5102,7 +5102,7 @@ def delete_function_library(self, workspace_id, function_library_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_function_library got unknown kwargs: {extra_kwargs!r}") @@ -5112,9 +5112,9 @@ def delete_function_library(self, workspace_id, function_library_key, **kwargs): "functionLibraryKey": function_library_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5124,7 +5124,7 @@ def delete_function_library(self, workspace_id, function_library_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5209,7 +5209,7 @@ def delete_import_request(self, import_request_key, workspace_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_import_request got unknown kwargs: {extra_kwargs!r}") @@ -5219,9 +5219,9 @@ def delete_import_request(self, import_request_key, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5231,7 +5231,7 @@ def delete_import_request(self, import_request_key, workspace_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5319,7 +5319,7 @@ def delete_patch(self, workspace_id, application_key, patch_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_patch got unknown kwargs: {extra_kwargs!r}") @@ -5330,9 +5330,9 @@ def delete_patch(self, workspace_id, application_key, patch_key, **kwargs): "patchKey": patch_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5342,7 +5342,7 @@ def delete_patch(self, workspace_id, application_key, patch_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5427,7 +5427,7 @@ def delete_pipeline(self, workspace_id, pipeline_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -5437,9 +5437,9 @@ def delete_pipeline(self, workspace_id, pipeline_key, **kwargs): "pipelineKey": pipeline_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5449,7 +5449,7 @@ def delete_pipeline(self, workspace_id, pipeline_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5534,7 +5534,7 @@ def delete_pipeline_validation(self, workspace_id, pipeline_validation_key, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pipeline_validation got unknown kwargs: {extra_kwargs!r}") @@ -5544,9 +5544,9 @@ def delete_pipeline_validation(self, workspace_id, pipeline_validation_key, **kw "pipelineValidationKey": pipeline_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5556,7 +5556,7 @@ def delete_pipeline_validation(self, workspace_id, pipeline_validation_key, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5641,7 +5641,7 @@ def delete_project(self, workspace_id, project_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project got unknown kwargs: {extra_kwargs!r}") @@ -5651,9 +5651,9 @@ def delete_project(self, workspace_id, project_key, **kwargs): "projectKey": project_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5663,7 +5663,7 @@ def delete_project(self, workspace_id, project_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5751,7 +5751,7 @@ def delete_schedule(self, workspace_id, application_key, schedule_key, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_schedule got unknown kwargs: {extra_kwargs!r}") @@ -5762,9 +5762,9 @@ def delete_schedule(self, workspace_id, application_key, schedule_key, **kwargs) "scheduleKey": schedule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5774,7 +5774,7 @@ def delete_schedule(self, workspace_id, application_key, schedule_key, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5859,7 +5859,7 @@ def delete_task(self, workspace_id, task_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_task got unknown kwargs: {extra_kwargs!r}") @@ -5869,9 +5869,9 @@ def delete_task(self, workspace_id, task_key, **kwargs): "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5881,7 +5881,7 @@ def delete_task(self, workspace_id, task_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5969,7 +5969,7 @@ def delete_task_run(self, workspace_id, application_key, task_run_key, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_task_run got unknown kwargs: {extra_kwargs!r}") @@ -5980,9 +5980,9 @@ def delete_task_run(self, workspace_id, application_key, task_run_key, **kwargs) "taskRunKey": task_run_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5992,7 +5992,7 @@ def delete_task_run(self, workspace_id, application_key, task_run_key, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6080,7 +6080,7 @@ def delete_task_schedule(self, workspace_id, application_key, task_schedule_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -6091,9 +6091,9 @@ def delete_task_schedule(self, workspace_id, application_key, task_schedule_key, "taskScheduleKey": task_schedule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6103,7 +6103,7 @@ def delete_task_schedule(self, workspace_id, application_key, task_schedule_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6188,7 +6188,7 @@ def delete_task_validation(self, workspace_id, task_validation_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_task_validation got unknown kwargs: {extra_kwargs!r}") @@ -6198,9 +6198,9 @@ def delete_task_validation(self, workspace_id, task_validation_key, **kwargs): "taskValidationKey": task_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6210,7 +6210,7 @@ def delete_task_validation(self, workspace_id, task_validation_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6295,7 +6295,7 @@ def delete_user_defined_function(self, workspace_id, user_defined_function_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_user_defined_function got unknown kwargs: {extra_kwargs!r}") @@ -6305,9 +6305,9 @@ def delete_user_defined_function(self, workspace_id, user_defined_function_key, "userDefinedFunctionKey": user_defined_function_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6317,7 +6317,7 @@ def delete_user_defined_function(self, workspace_id, user_defined_function_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6402,7 +6402,7 @@ def delete_user_defined_function_validation(self, workspace_id, user_defined_fun "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_user_defined_function_validation got unknown kwargs: {extra_kwargs!r}") @@ -6412,9 +6412,9 @@ def delete_user_defined_function_validation(self, workspace_id, user_defined_fun "userDefinedFunctionValidationKey": user_defined_function_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6424,7 +6424,7 @@ def delete_user_defined_function_validation(self, workspace_id, user_defined_fun "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6514,7 +6514,7 @@ def delete_workspace(self, workspace_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_workspace got unknown kwargs: {extra_kwargs!r}") @@ -6523,9 +6523,9 @@ def delete_workspace(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6533,7 +6533,7 @@ def delete_workspace(self, workspace_id, **kwargs): "quiesceTimeout": kwargs.get("quiesce_timeout", missing), "isForceOperation": kwargs.get("is_force_operation", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6541,7 +6541,7 @@ def delete_workspace(self, workspace_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6622,7 +6622,7 @@ def get_application(self, workspace_id, application_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application got unknown kwargs: {extra_kwargs!r}") @@ -6632,9 +6632,9 @@ def get_application(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6643,7 +6643,7 @@ def get_application(self, workspace_id, application_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6724,7 +6724,7 @@ def get_application_detailed_description(self, workspace_id, application_key, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -6734,9 +6734,9 @@ def get_application_detailed_description(self, workspace_id, application_key, ** "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6745,7 +6745,7 @@ def get_application_detailed_description(self, workspace_id, application_key, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6829,7 +6829,7 @@ def get_composite_state(self, workspace_id, application_key, aggregator_key, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_composite_state got unknown kwargs: {extra_kwargs!r}") @@ -6839,23 +6839,23 @@ def get_composite_state(self, workspace_id, application_key, aggregator_key, **k "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "aggregatorKey": aggregator_key } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6938,7 +6938,7 @@ def get_connection(self, workspace_id, connection_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection got unknown kwargs: {extra_kwargs!r}") @@ -6948,9 +6948,9 @@ def get_connection(self, workspace_id, connection_key, **kwargs): "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6959,7 +6959,7 @@ def get_connection(self, workspace_id, connection_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7040,7 +7040,7 @@ def get_connection_validation(self, workspace_id, connection_validation_key, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection_validation got unknown kwargs: {extra_kwargs!r}") @@ -7050,9 +7050,9 @@ def get_connection_validation(self, workspace_id, connection_validation_key, **k "connectionValidationKey": connection_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7061,7 +7061,7 @@ def get_connection_validation(self, workspace_id, connection_validation_key, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7142,7 +7142,7 @@ def get_copy_object_request(self, workspace_id, copy_object_request_key, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_copy_object_request got unknown kwargs: {extra_kwargs!r}") @@ -7152,9 +7152,9 @@ def get_copy_object_request(self, workspace_id, copy_object_request_key, **kwarg "copyObjectRequestKey": copy_object_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7163,7 +7163,7 @@ def get_copy_object_request(self, workspace_id, copy_object_request_key, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7245,7 +7245,7 @@ def get_count_statistic(self, workspace_id, count_statistic_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_count_statistic got unknown kwargs: {extra_kwargs!r}") @@ -7255,9 +7255,9 @@ def get_count_statistic(self, workspace_id, count_statistic_key, **kwargs): "countStatisticKey": count_statistic_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7266,7 +7266,7 @@ def get_count_statistic(self, workspace_id, count_statistic_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7347,7 +7347,7 @@ def get_data_asset(self, workspace_id, data_asset_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -7357,9 +7357,9 @@ def get_data_asset(self, workspace_id, data_asset_key, **kwargs): "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7368,7 +7368,7 @@ def get_data_asset(self, workspace_id, data_asset_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7455,7 +7455,7 @@ def get_data_entity(self, workspace_id, connection_key, schema_resource_name, da "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_entity got unknown kwargs: {extra_kwargs!r}") @@ -7467,9 +7467,9 @@ def get_data_entity(self, workspace_id, connection_key, schema_resource_name, da "dataEntityKey": data_entity_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7478,7 +7478,7 @@ def get_data_entity(self, workspace_id, connection_key, schema_resource_name, da "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7563,7 +7563,7 @@ def get_data_flow(self, workspace_id, data_flow_key, **kwargs): "opc_request_id", "expand_references" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_flow got unknown kwargs: {extra_kwargs!r}") @@ -7573,23 +7573,23 @@ def get_data_flow(self, workspace_id, data_flow_key, **kwargs): "dataFlowKey": data_flow_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "expandReferences": kwargs.get("expand_references", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7672,7 +7672,7 @@ def get_data_flow_validation(self, workspace_id, data_flow_validation_key, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_flow_validation got unknown kwargs: {extra_kwargs!r}") @@ -7682,9 +7682,9 @@ def get_data_flow_validation(self, workspace_id, data_flow_validation_key, **kwa "dataFlowValidationKey": data_flow_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7693,7 +7693,7 @@ def get_data_flow_validation(self, workspace_id, data_flow_validation_key, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7777,7 +7777,7 @@ def get_dependent_object(self, workspace_id, application_key, dependent_object_k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dependent_object got unknown kwargs: {extra_kwargs!r}") @@ -7788,9 +7788,9 @@ def get_dependent_object(self, workspace_id, application_key, dependent_object_k "dependentObjectKey": dependent_object_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7799,7 +7799,7 @@ def get_dependent_object(self, workspace_id, application_key, dependent_object_k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7880,7 +7880,7 @@ def get_dis_application(self, workspace_id, dis_application_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dis_application got unknown kwargs: {extra_kwargs!r}") @@ -7890,9 +7890,9 @@ def get_dis_application(self, workspace_id, dis_application_id, **kwargs): "disApplicationId": dis_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7901,7 +7901,7 @@ def get_dis_application(self, workspace_id, dis_application_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7982,7 +7982,7 @@ def get_dis_application_detailed_description(self, workspace_id, application_key "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dis_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -7992,9 +7992,9 @@ def get_dis_application_detailed_description(self, workspace_id, application_key "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8003,7 +8003,7 @@ def get_dis_application_detailed_description(self, workspace_id, application_key "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8084,7 +8084,7 @@ def get_export_request(self, workspace_id, export_request_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_export_request got unknown kwargs: {extra_kwargs!r}") @@ -8094,9 +8094,9 @@ def get_export_request(self, workspace_id, export_request_key, **kwargs): "exportRequestKey": export_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8105,7 +8105,7 @@ def get_export_request(self, workspace_id, export_request_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8189,7 +8189,7 @@ def get_external_publication(self, workspace_id, task_key, external_publications "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_publication got unknown kwargs: {extra_kwargs!r}") @@ -8200,9 +8200,9 @@ def get_external_publication(self, workspace_id, task_key, external_publications "externalPublicationsKey": external_publications_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8211,7 +8211,7 @@ def get_external_publication(self, workspace_id, task_key, external_publications "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8295,7 +8295,7 @@ def get_external_publication_validation(self, workspace_id, task_key, external_p "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_publication_validation got unknown kwargs: {extra_kwargs!r}") @@ -8306,9 +8306,9 @@ def get_external_publication_validation(self, workspace_id, task_key, external_p "externalPublicationValidationKey": external_publication_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8317,7 +8317,7 @@ def get_external_publication_validation(self, workspace_id, task_key, external_p "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8404,7 +8404,7 @@ def get_folder(self, workspace_id, folder_key, **kwargs): "opc_request_id", "projection" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_folder got unknown kwargs: {extra_kwargs!r}") @@ -8414,9 +8414,9 @@ def get_folder(self, workspace_id, folder_key, **kwargs): "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8431,14 +8431,14 @@ def get_folder(self, workspace_id, folder_key, **kwargs): query_params = { "projection": self.base_client.generate_collection_format_param(kwargs.get("projection", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8527,7 +8527,7 @@ def get_function_library(self, workspace_id, function_library_key, **kwargs): "opc_request_id", "projection" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_function_library got unknown kwargs: {extra_kwargs!r}") @@ -8537,9 +8537,9 @@ def get_function_library(self, workspace_id, function_library_key, **kwargs): "functionLibraryKey": function_library_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8554,14 +8554,14 @@ def get_function_library(self, workspace_id, function_library_key, **kwargs): query_params = { "projection": self.base_client.generate_collection_format_param(kwargs.get("projection", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8656,7 +8656,7 @@ def get_import_request(self, workspace_id, import_request_key, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_import_request got unknown kwargs: {extra_kwargs!r}") @@ -8666,9 +8666,9 @@ def get_import_request(self, workspace_id, import_request_key, **kwargs): "importRequestKey": import_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8676,14 +8676,14 @@ def get_import_request(self, workspace_id, import_request_key, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8769,7 +8769,7 @@ def get_patch(self, workspace_id, application_key, patch_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_patch got unknown kwargs: {extra_kwargs!r}") @@ -8780,9 +8780,9 @@ def get_patch(self, workspace_id, application_key, patch_key, **kwargs): "patchKey": patch_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8791,7 +8791,7 @@ def get_patch(self, workspace_id, application_key, patch_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8876,7 +8876,7 @@ def get_pipeline(self, workspace_id, pipeline_key, **kwargs): "opc_request_id", "expand_references" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -8886,23 +8886,23 @@ def get_pipeline(self, workspace_id, pipeline_key, **kwargs): "pipelineKey": pipeline_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "expandReferences": kwargs.get("expand_references", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8985,7 +8985,7 @@ def get_pipeline_validation(self, workspace_id, pipeline_validation_key, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pipeline_validation got unknown kwargs: {extra_kwargs!r}") @@ -8995,9 +8995,9 @@ def get_pipeline_validation(self, workspace_id, pipeline_validation_key, **kwarg "pipelineValidationKey": pipeline_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9006,7 +9006,7 @@ def get_pipeline_validation(self, workspace_id, pipeline_validation_key, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9093,7 +9093,7 @@ def get_project(self, workspace_id, project_key, **kwargs): "opc_request_id", "projection" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project got unknown kwargs: {extra_kwargs!r}") @@ -9103,9 +9103,9 @@ def get_project(self, workspace_id, project_key, **kwargs): "projectKey": project_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9120,14 +9120,14 @@ def get_project(self, workspace_id, project_key, **kwargs): query_params = { "projection": self.base_client.generate_collection_format_param(kwargs.get("projection", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9217,7 +9217,7 @@ def get_published_object(self, workspace_id, application_key, published_object_k "opc_request_id", "expand_references" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_published_object got unknown kwargs: {extra_kwargs!r}") @@ -9228,23 +9228,23 @@ def get_published_object(self, workspace_id, application_key, published_object_k "publishedObjectKey": published_object_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "expandReferences": kwargs.get("expand_references", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9330,7 +9330,7 @@ def get_reference(self, workspace_id, application_key, reference_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_reference got unknown kwargs: {extra_kwargs!r}") @@ -9341,9 +9341,9 @@ def get_reference(self, workspace_id, application_key, reference_key, **kwargs): "referenceKey": reference_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9352,7 +9352,7 @@ def get_reference(self, workspace_id, application_key, reference_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9439,7 +9439,7 @@ def get_runtime_operator(self, workspace_id, application_key, runtime_pipeline_k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_runtime_operator got unknown kwargs: {extra_kwargs!r}") @@ -9451,9 +9451,9 @@ def get_runtime_operator(self, workspace_id, application_key, runtime_pipeline_k "runtimeOperatorKey": runtime_operator_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9462,7 +9462,7 @@ def get_runtime_operator(self, workspace_id, application_key, runtime_pipeline_k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9550,7 +9550,7 @@ def get_runtime_pipeline(self, workspace_id, application_key, runtime_pipeline_k "opc_request_id", "expand_references" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_runtime_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -9561,23 +9561,23 @@ def get_runtime_pipeline(self, workspace_id, application_key, runtime_pipeline_k "runtimePipelineKey": runtime_pipeline_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "expandReferences": kwargs.get("expand_references", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9663,7 +9663,7 @@ def get_schedule(self, workspace_id, application_key, schedule_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_schedule got unknown kwargs: {extra_kwargs!r}") @@ -9674,9 +9674,9 @@ def get_schedule(self, workspace_id, application_key, schedule_key, **kwargs): "scheduleKey": schedule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9685,7 +9685,7 @@ def get_schedule(self, workspace_id, application_key, schedule_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9769,7 +9769,7 @@ def get_schema(self, workspace_id, connection_key, schema_resource_name, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_schema got unknown kwargs: {extra_kwargs!r}") @@ -9780,9 +9780,9 @@ def get_schema(self, workspace_id, connection_key, schema_resource_name, **kwarg "schemaResourceName": schema_resource_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9791,7 +9791,7 @@ def get_schema(self, workspace_id, connection_key, schema_resource_name, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9876,7 +9876,7 @@ def get_task(self, workspace_id, task_key, **kwargs): "opc_request_id", "expand_references" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_task got unknown kwargs: {extra_kwargs!r}") @@ -9886,23 +9886,23 @@ def get_task(self, workspace_id, task_key, **kwargs): "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "expandReferences": kwargs.get("expand_references", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9988,7 +9988,7 @@ def get_task_run(self, workspace_id, application_key, task_run_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_task_run got unknown kwargs: {extra_kwargs!r}") @@ -9999,9 +9999,9 @@ def get_task_run(self, workspace_id, application_key, task_run_key, **kwargs): "taskRunKey": task_run_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10010,7 +10010,7 @@ def get_task_run(self, workspace_id, application_key, task_run_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10094,7 +10094,7 @@ def get_task_schedule(self, workspace_id, application_key, task_schedule_key, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -10105,9 +10105,9 @@ def get_task_schedule(self, workspace_id, application_key, task_schedule_key, ** "taskScheduleKey": task_schedule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10116,7 +10116,7 @@ def get_task_schedule(self, workspace_id, application_key, task_schedule_key, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10197,7 +10197,7 @@ def get_task_validation(self, workspace_id, task_validation_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_task_validation got unknown kwargs: {extra_kwargs!r}") @@ -10207,9 +10207,9 @@ def get_task_validation(self, workspace_id, task_validation_key, **kwargs): "taskValidationKey": task_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10218,7 +10218,7 @@ def get_task_validation(self, workspace_id, task_validation_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10299,7 +10299,7 @@ def get_template(self, workspace_id, template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_template got unknown kwargs: {extra_kwargs!r}") @@ -10309,9 +10309,9 @@ def get_template(self, workspace_id, template_id, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10320,7 +10320,7 @@ def get_template(self, workspace_id, template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10401,7 +10401,7 @@ def get_user_defined_function(self, workspace_id, user_defined_function_key, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_defined_function got unknown kwargs: {extra_kwargs!r}") @@ -10411,9 +10411,9 @@ def get_user_defined_function(self, workspace_id, user_defined_function_key, **k "userDefinedFunctionKey": user_defined_function_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10422,7 +10422,7 @@ def get_user_defined_function(self, workspace_id, user_defined_function_key, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10503,7 +10503,7 @@ def get_user_defined_function_validation(self, workspace_id, user_defined_functi "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_defined_function_validation got unknown kwargs: {extra_kwargs!r}") @@ -10513,9 +10513,9 @@ def get_user_defined_function_validation(self, workspace_id, user_defined_functi "userDefinedFunctionValidationKey": user_defined_function_validation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10524,7 +10524,7 @@ def get_user_defined_function_validation(self, workspace_id, user_defined_functi "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10602,7 +10602,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -10611,9 +10611,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10622,7 +10622,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10700,7 +10700,7 @@ def get_workspace(self, workspace_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_workspace got unknown kwargs: {extra_kwargs!r}") @@ -10709,9 +10709,9 @@ def get_workspace(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10720,7 +10720,7 @@ def get_workspace(self, workspace_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10838,7 +10838,7 @@ def list_applications(self, workspace_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_applications got unknown kwargs: {extra_kwargs!r}") @@ -10847,9 +10847,9 @@ def list_applications(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10877,14 +10877,14 @@ def list_applications(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11004,7 +11004,7 @@ def list_connection_validations(self, workspace_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connection_validations got unknown kwargs: {extra_kwargs!r}") @@ -11013,9 +11013,9 @@ def list_connection_validations(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11043,14 +11043,14 @@ def list_connection_validations(self, workspace_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11169,7 +11169,7 @@ def list_connections(self, workspace_id, data_asset_key, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connections got unknown kwargs: {extra_kwargs!r}") @@ -11178,9 +11178,9 @@ def list_connections(self, workspace_id, data_asset_key, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11208,14 +11208,14 @@ def list_connections(self, workspace_id, data_asset_key, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11343,7 +11343,7 @@ def list_copy_object_requests(self, workspace_id, **kwargs): "time_started_in_millis", "time_ended_in_millis" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_copy_object_requests got unknown kwargs: {extra_kwargs!r}") @@ -11352,9 +11352,9 @@ def list_copy_object_requests(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11397,14 +11397,14 @@ def list_copy_object_requests(self, workspace_id, **kwargs): "timeStartedInMillis": kwargs.get("time_started_in_millis", missing), "timeEndedInMillis": kwargs.get("time_ended_in_millis", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11520,7 +11520,7 @@ def list_data_assets(self, workspace_id, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_assets got unknown kwargs: {extra_kwargs!r}") @@ -11529,9 +11529,9 @@ def list_data_assets(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11558,14 +11558,14 @@ def list_data_assets(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11699,7 +11699,7 @@ def list_data_entities(self, workspace_id, connection_key, schema_resource_name, "is_pattern", "include_types" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_entities got unknown kwargs: {extra_kwargs!r}") @@ -11710,9 +11710,9 @@ def list_data_entities(self, workspace_id, connection_key, schema_resource_name, "schemaResourceName": schema_resource_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11742,14 +11742,14 @@ def list_data_entities(self, workspace_id, connection_key, schema_resource_name, "isPattern": kwargs.get("is_pattern", missing), "includeTypes": self.base_client.generate_collection_format_param(kwargs.get("include_types", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11869,7 +11869,7 @@ def list_data_flow_validations(self, workspace_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_flow_validations got unknown kwargs: {extra_kwargs!r}") @@ -11878,9 +11878,9 @@ def list_data_flow_validations(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11908,14 +11908,14 @@ def list_data_flow_validations(self, workspace_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12035,7 +12035,7 @@ def list_data_flows(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_flows got unknown kwargs: {extra_kwargs!r}") @@ -12044,9 +12044,9 @@ def list_data_flows(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12074,14 +12074,14 @@ def list_data_flows(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12216,7 +12216,7 @@ def list_dependent_objects(self, workspace_id, application_key, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dependent_objects got unknown kwargs: {extra_kwargs!r}") @@ -12226,9 +12226,9 @@ def list_dependent_objects(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12258,14 +12258,14 @@ def list_dependent_objects(self, workspace_id, application_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12396,7 +12396,7 @@ def list_dis_application_task_run_lineages(self, workspace_id, dis_application_i "time_upated_less_than", "time_upated_less_than_or_equal_to" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dis_application_task_run_lineages got unknown kwargs: {extra_kwargs!r}") @@ -12406,9 +12406,9 @@ def list_dis_application_task_run_lineages(self, workspace_id, dis_application_i "disApplicationId": dis_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12438,14 +12438,14 @@ def list_dis_application_task_run_lineages(self, workspace_id, dis_application_i "timeUpatedLessThan": kwargs.get("time_upated_less_than", missing), "timeUpatedLessThanOrEqualTo": kwargs.get("time_upated_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12568,7 +12568,7 @@ def list_dis_applications(self, workspace_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dis_applications got unknown kwargs: {extra_kwargs!r}") @@ -12577,9 +12577,9 @@ def list_dis_applications(self, workspace_id, compartment_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12608,14 +12608,14 @@ def list_dis_applications(self, workspace_id, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12743,7 +12743,7 @@ def list_export_requests(self, workspace_id, **kwargs): "time_started_in_millis", "time_ended_in_millis" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_export_requests got unknown kwargs: {extra_kwargs!r}") @@ -12752,9 +12752,9 @@ def list_export_requests(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12797,14 +12797,14 @@ def list_export_requests(self, workspace_id, **kwargs): "timeStartedInMillis": kwargs.get("time_started_in_millis", missing), "timeEndedInMillis": kwargs.get("time_ended_in_millis", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12923,7 +12923,7 @@ def list_external_publication_validations(self, workspace_id, task_key, **kwargs "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_publication_validations got unknown kwargs: {extra_kwargs!r}") @@ -12933,9 +12933,9 @@ def list_external_publication_validations(self, workspace_id, task_key, **kwargs "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12962,14 +12962,14 @@ def list_external_publication_validations(self, workspace_id, task_key, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13084,7 +13084,7 @@ def list_external_publications(self, workspace_id, task_key, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_publications got unknown kwargs: {extra_kwargs!r}") @@ -13094,9 +13094,9 @@ def list_external_publications(self, workspace_id, task_key, **kwargs): "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13122,14 +13122,14 @@ def list_external_publications(self, workspace_id, task_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13253,7 +13253,7 @@ def list_folders(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_folders got unknown kwargs: {extra_kwargs!r}") @@ -13262,9 +13262,9 @@ def list_folders(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13293,14 +13293,14 @@ def list_folders(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13420,7 +13420,7 @@ def list_function_libraries(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_function_libraries got unknown kwargs: {extra_kwargs!r}") @@ -13429,9 +13429,9 @@ def list_function_libraries(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13459,14 +13459,14 @@ def list_function_libraries(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13594,7 +13594,7 @@ def list_import_requests(self, workspace_id, **kwargs): "time_started_in_millis", "time_ended_in_millis" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_import_requests got unknown kwargs: {extra_kwargs!r}") @@ -13603,9 +13603,9 @@ def list_import_requests(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13648,14 +13648,14 @@ def list_import_requests(self, workspace_id, **kwargs): "timeStartedInMillis": kwargs.get("time_started_in_millis", missing), "timeEndedInMillis": kwargs.get("time_ended_in_millis", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13774,7 +13774,7 @@ def list_patch_changes(self, workspace_id, application_key, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_patch_changes got unknown kwargs: {extra_kwargs!r}") @@ -13784,9 +13784,9 @@ def list_patch_changes(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13813,14 +13813,14 @@ def list_patch_changes(self, workspace_id, application_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13939,7 +13939,7 @@ def list_patches(self, workspace_id, application_key, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_patches got unknown kwargs: {extra_kwargs!r}") @@ -13949,9 +13949,9 @@ def list_patches(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13978,14 +13978,14 @@ def list_patches(self, workspace_id, application_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14105,7 +14105,7 @@ def list_pipeline_validations(self, workspace_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipeline_validations got unknown kwargs: {extra_kwargs!r}") @@ -14114,9 +14114,9 @@ def list_pipeline_validations(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14144,14 +14144,14 @@ def list_pipeline_validations(self, workspace_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14271,7 +14271,7 @@ def list_pipelines(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -14280,9 +14280,9 @@ def list_pipelines(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14310,14 +14310,14 @@ def list_pipelines(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14437,7 +14437,7 @@ def list_projects(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_projects got unknown kwargs: {extra_kwargs!r}") @@ -14446,9 +14446,9 @@ def list_projects(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14476,14 +14476,14 @@ def list_projects(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14622,7 +14622,7 @@ def list_published_objects(self, workspace_id, application_key, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_published_objects got unknown kwargs: {extra_kwargs!r}") @@ -14632,9 +14632,9 @@ def list_published_objects(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14665,14 +14665,14 @@ def list_published_objects(self, workspace_id, application_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14783,7 +14783,7 @@ def list_references(self, workspace_id, application_key, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_references got unknown kwargs: {extra_kwargs!r}") @@ -14793,9 +14793,9 @@ def list_references(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14820,14 +14820,14 @@ def list_references(self, workspace_id, application_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14957,7 +14957,7 @@ def list_runtime_operators(self, workspace_id, application_key, runtime_pipeline "sort_by", "aggregator_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runtime_operators got unknown kwargs: {extra_kwargs!r}") @@ -14968,9 +14968,9 @@ def list_runtime_operators(self, workspace_id, application_key, runtime_pipeline "runtimePipelineKey": runtime_pipeline_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14999,14 +14999,14 @@ def list_runtime_operators(self, workspace_id, application_key, runtime_pipeline "sortBy": kwargs.get("sort_by", missing), "aggregatorType": self.base_client.generate_collection_format_param(kwargs.get("aggregator_type", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15141,7 +15141,7 @@ def list_runtime_pipelines(self, workspace_id, application_key, **kwargs): "aggregator_type", "filter" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runtime_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -15151,9 +15151,9 @@ def list_runtime_pipelines(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15184,14 +15184,14 @@ def list_runtime_pipelines(self, workspace_id, application_key, **kwargs): "aggregatorType": self.base_client.generate_collection_format_param(kwargs.get("aggregator_type", missing), 'multi'), "filter": self.base_client.generate_collection_format_param(kwargs.get("filter", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15314,7 +15314,7 @@ def list_schedules(self, workspace_id, application_key, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schedules got unknown kwargs: {extra_kwargs!r}") @@ -15324,9 +15324,9 @@ def list_schedules(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15354,14 +15354,14 @@ def list_schedules(self, workspace_id, application_key, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15487,7 +15487,7 @@ def list_schemas(self, workspace_id, connection_key, schema_resource_name, **kwa "name_list", "include_types" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schemas got unknown kwargs: {extra_kwargs!r}") @@ -15497,9 +15497,9 @@ def list_schemas(self, workspace_id, connection_key, schema_resource_name, **kwa "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15528,14 +15528,14 @@ def list_schemas(self, workspace_id, connection_key, schema_resource_name, **kwa "nameList": self.base_client.generate_collection_format_param(kwargs.get("name_list", missing), 'multi'), "includeTypes": self.base_client.generate_collection_format_param(kwargs.get("include_types", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15666,7 +15666,7 @@ def list_task_run_lineages(self, workspace_id, application_key, **kwargs): "time_upated_less_than", "time_upated_less_than_or_equal_to" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_run_lineages got unknown kwargs: {extra_kwargs!r}") @@ -15676,9 +15676,9 @@ def list_task_run_lineages(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15708,14 +15708,14 @@ def list_task_run_lineages(self, workspace_id, application_key, **kwargs): "timeUpatedLessThan": kwargs.get("time_upated_less_than", missing), "timeUpatedLessThanOrEqualTo": kwargs.get("time_upated_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15825,7 +15825,7 @@ def list_task_run_logs(self, workspace_id, application_key, task_run_key, **kwar "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_run_logs got unknown kwargs: {extra_kwargs!r}") @@ -15836,9 +15836,9 @@ def list_task_run_logs(self, workspace_id, application_key, task_run_key, **kwar "taskRunKey": task_run_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15862,14 +15862,14 @@ def list_task_run_logs(self, workspace_id, application_key, task_run_key, **kwar "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16008,7 +16008,7 @@ def list_task_runs(self, workspace_id, application_key, **kwargs): "name_starts_with", "name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_runs got unknown kwargs: {extra_kwargs!r}") @@ -16018,9 +16018,9 @@ def list_task_runs(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16052,14 +16052,14 @@ def list_task_runs(self, workspace_id, application_key, **kwargs): "nameStartsWith": kwargs.get("name_starts_with", missing), "nameContains": kwargs.get("name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16186,7 +16186,7 @@ def list_task_schedules(self, workspace_id, application_key, **kwargs): "opc_request_id", "is_enabled" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_schedules got unknown kwargs: {extra_kwargs!r}") @@ -16196,9 +16196,9 @@ def list_task_schedules(self, workspace_id, application_key, **kwargs): "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16227,14 +16227,14 @@ def list_task_schedules(self, workspace_id, application_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "isEnabled": kwargs.get("is_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16354,7 +16354,7 @@ def list_task_validations(self, workspace_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_validations got unknown kwargs: {extra_kwargs!r}") @@ -16363,9 +16363,9 @@ def list_task_validations(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16393,14 +16393,14 @@ def list_task_validations(self, workspace_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16528,7 +16528,7 @@ def list_tasks(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tasks got unknown kwargs: {extra_kwargs!r}") @@ -16537,9 +16537,9 @@ def list_tasks(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16569,14 +16569,14 @@ def list_tasks(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16692,7 +16692,7 @@ def list_templates(self, workspace_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_templates got unknown kwargs: {extra_kwargs!r}") @@ -16701,9 +16701,9 @@ def list_templates(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16730,14 +16730,14 @@ def list_templates(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16857,7 +16857,7 @@ def list_user_defined_function_validations(self, workspace_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_defined_function_validations got unknown kwargs: {extra_kwargs!r}") @@ -16866,9 +16866,9 @@ def list_user_defined_function_validations(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16896,14 +16896,14 @@ def list_user_defined_function_validations(self, workspace_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17023,7 +17023,7 @@ def list_user_defined_functions(self, workspace_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_defined_functions got unknown kwargs: {extra_kwargs!r}") @@ -17032,9 +17032,9 @@ def list_user_defined_functions(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17062,14 +17062,14 @@ def list_user_defined_functions(self, workspace_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17173,7 +17173,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -17182,9 +17182,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17208,14 +17208,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17319,7 +17319,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -17328,9 +17328,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17354,14 +17354,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17475,7 +17475,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -17510,14 +17510,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17629,7 +17629,7 @@ def list_workspaces(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_workspaces got unknown kwargs: {extra_kwargs!r}") @@ -17664,14 +17664,14 @@ def list_workspaces(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17759,7 +17759,7 @@ def start_workspace(self, workspace_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_workspace got unknown kwargs: {extra_kwargs!r}") @@ -17768,9 +17768,9 @@ def start_workspace(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17781,7 +17781,7 @@ def start_workspace(self, workspace_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17876,7 +17876,7 @@ def stop_workspace(self, workspace_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_workspace got unknown kwargs: {extra_kwargs!r}") @@ -17885,9 +17885,9 @@ def stop_workspace(self, workspace_id, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17895,7 +17895,7 @@ def stop_workspace(self, workspace_id, **kwargs): "quiesceTimeout": kwargs.get("quiesce_timeout", missing), "isForceOperation": kwargs.get("is_force_operation", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17904,7 +17904,7 @@ def stop_workspace(self, workspace_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17995,7 +17995,7 @@ def update_application(self, workspace_id, application_key, update_application_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_application got unknown kwargs: {extra_kwargs!r}") @@ -18005,9 +18005,9 @@ def update_application(self, workspace_id, application_key, update_application_d "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18017,7 +18017,7 @@ def update_application(self, workspace_id, application_key, update_application_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18109,7 +18109,7 @@ def update_application_detailed_description(self, workspace_id, application_key, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -18119,9 +18119,9 @@ def update_application_detailed_description(self, workspace_id, application_key, "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18131,7 +18131,7 @@ def update_application_detailed_description(self, workspace_id, application_key, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18223,7 +18223,7 @@ def update_connection(self, workspace_id, connection_key, update_connection_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_connection got unknown kwargs: {extra_kwargs!r}") @@ -18233,9 +18233,9 @@ def update_connection(self, workspace_id, connection_key, update_connection_deta "connectionKey": connection_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18245,7 +18245,7 @@ def update_connection(self, workspace_id, connection_key, update_connection_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18337,7 +18337,7 @@ def update_copy_object_request(self, workspace_id, copy_object_request_key, upda "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_copy_object_request got unknown kwargs: {extra_kwargs!r}") @@ -18347,9 +18347,9 @@ def update_copy_object_request(self, workspace_id, copy_object_request_key, upda "copyObjectRequestKey": copy_object_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18359,7 +18359,7 @@ def update_copy_object_request(self, workspace_id, copy_object_request_key, upda "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18451,7 +18451,7 @@ def update_data_asset(self, workspace_id, data_asset_key, update_data_asset_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_asset got unknown kwargs: {extra_kwargs!r}") @@ -18461,9 +18461,9 @@ def update_data_asset(self, workspace_id, data_asset_key, update_data_asset_deta "dataAssetKey": data_asset_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18473,7 +18473,7 @@ def update_data_asset(self, workspace_id, data_asset_key, update_data_asset_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18565,7 +18565,7 @@ def update_data_flow(self, workspace_id, data_flow_key, update_data_flow_details "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_flow got unknown kwargs: {extra_kwargs!r}") @@ -18575,9 +18575,9 @@ def update_data_flow(self, workspace_id, data_flow_key, update_data_flow_details "dataFlowKey": data_flow_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18587,7 +18587,7 @@ def update_data_flow(self, workspace_id, data_flow_key, update_data_flow_details "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18679,7 +18679,7 @@ def update_dis_application(self, workspace_id, dis_application_id, update_dis_ap "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dis_application got unknown kwargs: {extra_kwargs!r}") @@ -18689,9 +18689,9 @@ def update_dis_application(self, workspace_id, dis_application_id, update_dis_ap "disApplicationId": dis_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18701,7 +18701,7 @@ def update_dis_application(self, workspace_id, dis_application_id, update_dis_ap "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18793,7 +18793,7 @@ def update_dis_application_detailed_description(self, workspace_id, application_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dis_application_detailed_description got unknown kwargs: {extra_kwargs!r}") @@ -18803,9 +18803,9 @@ def update_dis_application_detailed_description(self, workspace_id, application_ "applicationKey": application_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18815,7 +18815,7 @@ def update_dis_application_detailed_description(self, workspace_id, application_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18907,7 +18907,7 @@ def update_export_request(self, workspace_id, export_request_key, update_export_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_export_request got unknown kwargs: {extra_kwargs!r}") @@ -18917,9 +18917,9 @@ def update_export_request(self, workspace_id, export_request_key, update_export_ "exportRequestKey": export_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18929,7 +18929,7 @@ def update_export_request(self, workspace_id, export_request_key, update_export_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19024,7 +19024,7 @@ def update_external_publication(self, workspace_id, task_key, external_publicati "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_publication got unknown kwargs: {extra_kwargs!r}") @@ -19035,9 +19035,9 @@ def update_external_publication(self, workspace_id, task_key, external_publicati "externalPublicationsKey": external_publications_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19047,7 +19047,7 @@ def update_external_publication(self, workspace_id, task_key, external_publicati "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19139,7 +19139,7 @@ def update_folder(self, workspace_id, folder_key, update_folder_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_folder got unknown kwargs: {extra_kwargs!r}") @@ -19149,9 +19149,9 @@ def update_folder(self, workspace_id, folder_key, update_folder_details, **kwarg "folderKey": folder_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19161,7 +19161,7 @@ def update_folder(self, workspace_id, folder_key, update_folder_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19253,7 +19253,7 @@ def update_function_library(self, workspace_id, function_library_key, update_fun "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_function_library got unknown kwargs: {extra_kwargs!r}") @@ -19263,9 +19263,9 @@ def update_function_library(self, workspace_id, function_library_key, update_fun "functionLibraryKey": function_library_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19275,7 +19275,7 @@ def update_function_library(self, workspace_id, function_library_key, update_fun "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19367,7 +19367,7 @@ def update_import_request(self, workspace_id, import_request_key, update_import_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_import_request got unknown kwargs: {extra_kwargs!r}") @@ -19377,9 +19377,9 @@ def update_import_request(self, workspace_id, import_request_key, update_import_ "importRequestKey": import_request_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19389,7 +19389,7 @@ def update_import_request(self, workspace_id, import_request_key, update_import_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19481,7 +19481,7 @@ def update_pipeline(self, workspace_id, pipeline_key, update_pipeline_details, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -19491,9 +19491,9 @@ def update_pipeline(self, workspace_id, pipeline_key, update_pipeline_details, * "pipelineKey": pipeline_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19503,7 +19503,7 @@ def update_pipeline(self, workspace_id, pipeline_key, update_pipeline_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19595,7 +19595,7 @@ def update_project(self, workspace_id, project_key, update_project_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project got unknown kwargs: {extra_kwargs!r}") @@ -19605,9 +19605,9 @@ def update_project(self, workspace_id, project_key, update_project_details, **kw "projectKey": project_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19617,7 +19617,7 @@ def update_project(self, workspace_id, project_key, update_project_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19716,7 +19716,7 @@ def update_reference(self, workspace_id, application_key, reference_key, update_ "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_reference got unknown kwargs: {extra_kwargs!r}") @@ -19727,9 +19727,9 @@ def update_reference(self, workspace_id, application_key, reference_key, update_ "referenceKey": reference_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19740,7 +19740,7 @@ def update_reference(self, workspace_id, application_key, reference_key, update_ "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19836,7 +19836,7 @@ def update_schedule(self, workspace_id, application_key, schedule_key, update_sc "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_schedule got unknown kwargs: {extra_kwargs!r}") @@ -19847,9 +19847,9 @@ def update_schedule(self, workspace_id, application_key, schedule_key, update_sc "scheduleKey": schedule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19859,7 +19859,7 @@ def update_schedule(self, workspace_id, application_key, schedule_key, update_sc "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19951,7 +19951,7 @@ def update_task(self, workspace_id, task_key, update_task_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_task got unknown kwargs: {extra_kwargs!r}") @@ -19961,9 +19961,9 @@ def update_task(self, workspace_id, task_key, update_task_details, **kwargs): "taskKey": task_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19973,7 +19973,7 @@ def update_task(self, workspace_id, task_key, update_task_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20068,7 +20068,7 @@ def update_task_run(self, workspace_id, application_key, task_run_key, update_ta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_task_run got unknown kwargs: {extra_kwargs!r}") @@ -20079,9 +20079,9 @@ def update_task_run(self, workspace_id, application_key, task_run_key, update_ta "taskRunKey": task_run_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20091,7 +20091,7 @@ def update_task_run(self, workspace_id, application_key, task_run_key, update_ta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20186,7 +20186,7 @@ def update_task_schedule(self, workspace_id, application_key, task_schedule_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -20197,9 +20197,9 @@ def update_task_schedule(self, workspace_id, application_key, task_schedule_key, "taskScheduleKey": task_schedule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20209,7 +20209,7 @@ def update_task_schedule(self, workspace_id, application_key, task_schedule_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20301,7 +20301,7 @@ def update_user_defined_function(self, workspace_id, user_defined_function_key, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_user_defined_function got unknown kwargs: {extra_kwargs!r}") @@ -20311,9 +20311,9 @@ def update_user_defined_function(self, workspace_id, user_defined_function_key, "userDefinedFunctionKey": user_defined_function_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20323,7 +20323,7 @@ def update_user_defined_function(self, workspace_id, user_defined_function_key, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20412,7 +20412,7 @@ def update_workspace(self, workspace_id, update_workspace_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_workspace got unknown kwargs: {extra_kwargs!r}") @@ -20421,9 +20421,9 @@ def update_workspace(self, workspace_id, update_workspace_details, **kwargs): "workspaceId": workspace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20433,7 +20433,7 @@ def update_workspace(self, workspace_id, update_workspace_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/data_labeling_service/data_labeling_management_client.py b/src/oci/data_labeling_service/data_labeling_management_client.py index 4c4c01e1d..6a73d2993 100644 --- a/src/oci/data_labeling_service/data_labeling_management_client.py +++ b/src/oci/data_labeling_service/data_labeling_management_client.py @@ -179,7 +179,7 @@ def add_dataset_labels(self, dataset_id, add_dataset_labels_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_dataset_labels got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def add_dataset_labels(self, dataset_id, add_dataset_labels_details, **kwargs): "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def add_dataset_labels(self, dataset_id, add_dataset_labels_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def change_dataset_compartment(self, dataset_id, change_dataset_compartment_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dataset_compartment got unknown kwargs: {extra_kwargs!r}") @@ -300,9 +300,9 @@ def change_dataset_compartment(self, dataset_id, change_dataset_compartment_deta "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -312,7 +312,7 @@ def change_dataset_compartment(self, dataset_id, change_dataset_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -398,7 +398,7 @@ def create_dataset(self, create_dataset_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dataset got unknown kwargs: {extra_kwargs!r}") @@ -409,7 +409,7 @@ def create_dataset(self, create_dataset_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -496,7 +496,7 @@ def delete_dataset(self, dataset_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dataset got unknown kwargs: {extra_kwargs!r}") @@ -505,9 +505,9 @@ def delete_dataset(self, dataset_id, **kwargs): "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -517,7 +517,7 @@ def delete_dataset(self, dataset_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def generate_dataset_records(self, dataset_id, generate_dataset_records_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_dataset_records got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def generate_dataset_records(self, dataset_id, generate_dataset_records_details, "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -634,7 +634,7 @@ def generate_dataset_records(self, dataset_id, generate_dataset_records_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -713,7 +713,7 @@ def get_dataset(self, dataset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dataset got unknown kwargs: {extra_kwargs!r}") @@ -722,9 +722,9 @@ def get_dataset(self, dataset_id, **kwargs): "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -733,7 +733,7 @@ def get_dataset(self, dataset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -811,7 +811,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -820,9 +820,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -831,7 +831,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -928,7 +928,7 @@ def import_pre_annotated_data(self, dataset_id, import_pre_annotated_data_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_pre_annotated_data got unknown kwargs: {extra_kwargs!r}") @@ -937,9 +937,9 @@ def import_pre_annotated_data(self, dataset_id, import_pre_annotated_data_detail "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -950,7 +950,7 @@ def import_pre_annotated_data(self, dataset_id, import_pre_annotated_data_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1043,7 +1043,7 @@ def list_annotation_formats(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_annotation_formats got unknown kwargs: {extra_kwargs!r}") @@ -1061,14 +1061,14 @@ def list_annotation_formats(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1184,7 +1184,7 @@ def list_datasets(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_datasets got unknown kwargs: {extra_kwargs!r}") @@ -1221,14 +1221,14 @@ def list_datasets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1314,7 +1314,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1323,9 +1323,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1333,14 +1333,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1428,7 +1428,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1437,9 +1437,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1447,14 +1447,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1546,7 +1546,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1557,14 +1557,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1661,7 +1661,7 @@ def remove_dataset_labels(self, dataset_id, remove_dataset_labels_details, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_dataset_labels got unknown kwargs: {extra_kwargs!r}") @@ -1670,9 +1670,9 @@ def remove_dataset_labels(self, dataset_id, remove_dataset_labels_details, **kwa "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1683,7 +1683,7 @@ def remove_dataset_labels(self, dataset_id, remove_dataset_labels_details, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1781,7 +1781,7 @@ def rename_dataset_labels(self, dataset_id, rename_dataset_labels_details, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rename_dataset_labels got unknown kwargs: {extra_kwargs!r}") @@ -1790,9 +1790,9 @@ def rename_dataset_labels(self, dataset_id, rename_dataset_labels_details, **kwa "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1803,7 +1803,7 @@ def rename_dataset_labels(self, dataset_id, rename_dataset_labels_details, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1902,7 +1902,7 @@ def snapshot_dataset(self, dataset_id, snapshot_dataset_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"snapshot_dataset got unknown kwargs: {extra_kwargs!r}") @@ -1911,9 +1911,9 @@ def snapshot_dataset(self, dataset_id, snapshot_dataset_details, **kwargs): "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1924,7 +1924,7 @@ def snapshot_dataset(self, dataset_id, snapshot_dataset_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2014,7 +2014,7 @@ def update_dataset(self, dataset_id, update_dataset_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dataset got unknown kwargs: {extra_kwargs!r}") @@ -2023,9 +2023,9 @@ def update_dataset(self, dataset_id, update_dataset_details, **kwargs): "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2035,7 +2035,7 @@ def update_dataset(self, dataset_id, update_dataset_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/data_labeling_service_dataplane/data_labeling_client.py b/src/oci/data_labeling_service_dataplane/data_labeling_client.py index 13a98621c..3d81a71e0 100644 --- a/src/oci/data_labeling_service_dataplane/data_labeling_client.py +++ b/src/oci/data_labeling_service_dataplane/data_labeling_client.py @@ -168,7 +168,7 @@ def create_annotation(self, create_annotation_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_annotation got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_annotation(self, create_annotation_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -266,7 +266,7 @@ def create_record(self, create_record_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_record got unknown kwargs: {extra_kwargs!r}") @@ -277,7 +277,7 @@ def create_record(self, create_record_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -364,7 +364,7 @@ def delete_annotation(self, annotation_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_annotation got unknown kwargs: {extra_kwargs!r}") @@ -373,9 +373,9 @@ def delete_annotation(self, annotation_id, **kwargs): "annotationId": annotation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -385,7 +385,7 @@ def delete_annotation(self, annotation_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -469,7 +469,7 @@ def delete_record(self, record_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_record got unknown kwargs: {extra_kwargs!r}") @@ -478,9 +478,9 @@ def delete_record(self, record_id, **kwargs): "recordId": record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -490,7 +490,7 @@ def delete_record(self, record_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -566,7 +566,7 @@ def get_annotation(self, annotation_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_annotation got unknown kwargs: {extra_kwargs!r}") @@ -575,9 +575,9 @@ def get_annotation(self, annotation_id, **kwargs): "annotationId": annotation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -586,7 +586,7 @@ def get_annotation(self, annotation_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -664,7 +664,7 @@ def get_dataset(self, dataset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dataset got unknown kwargs: {extra_kwargs!r}") @@ -673,9 +673,9 @@ def get_dataset(self, dataset_id, **kwargs): "datasetId": dataset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -684,7 +684,7 @@ def get_dataset(self, dataset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -762,7 +762,7 @@ def get_record(self, record_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_record got unknown kwargs: {extra_kwargs!r}") @@ -771,9 +771,9 @@ def get_record(self, record_id, **kwargs): "recordId": record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -782,7 +782,7 @@ def get_record(self, record_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -868,7 +868,7 @@ def get_record_content(self, record_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_record_content got unknown kwargs: {extra_kwargs!r}") @@ -877,9 +877,9 @@ def get_record_content(self, record_id, **kwargs): "recordId": record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -889,7 +889,7 @@ def get_record_content(self, record_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -975,7 +975,7 @@ def get_record_preview_content(self, record_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_record_preview_content got unknown kwargs: {extra_kwargs!r}") @@ -984,9 +984,9 @@ def get_record_preview_content(self, record_id, **kwargs): "recordId": record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -996,7 +996,7 @@ def get_record_preview_content(self, record_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1123,7 +1123,7 @@ def list_annotations(self, compartment_id, dataset_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_annotations got unknown kwargs: {extra_kwargs!r}") @@ -1163,14 +1163,14 @@ def list_annotations(self, compartment_id, dataset_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1293,7 +1293,7 @@ def list_records(self, compartment_id, dataset_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_records got unknown kwargs: {extra_kwargs!r}") @@ -1332,14 +1332,14 @@ def list_records(self, compartment_id, dataset_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1456,7 +1456,7 @@ def summarize_annotation_analytics(self, compartment_id, dataset_id, **kwargs): "annotation_group_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_annotation_analytics got unknown kwargs: {extra_kwargs!r}") @@ -1500,14 +1500,14 @@ def summarize_annotation_analytics(self, compartment_id, dataset_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "annotationGroupBy": kwargs.get("annotation_group_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1620,7 +1620,7 @@ def summarize_record_analytics(self, compartment_id, dataset_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_record_analytics got unknown kwargs: {extra_kwargs!r}") @@ -1663,14 +1663,14 @@ def summarize_record_analytics(self, compartment_id, dataset_id, **kwargs): "recordGroupBy": kwargs.get("record_group_by", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1759,7 +1759,7 @@ def update_annotation(self, annotation_id, update_annotation_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_annotation got unknown kwargs: {extra_kwargs!r}") @@ -1768,9 +1768,9 @@ def update_annotation(self, annotation_id, update_annotation_details, **kwargs): "annotationId": annotation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1780,7 +1780,7 @@ def update_annotation(self, annotation_id, update_annotation_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1871,7 +1871,7 @@ def update_record(self, record_id, update_record_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_record got unknown kwargs: {extra_kwargs!r}") @@ -1880,9 +1880,9 @@ def update_record(self, record_id, update_record_details, **kwargs): "recordId": record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1892,7 +1892,7 @@ def update_record(self, record_id, update_record_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/data_safe/data_safe_client.py b/src/oci/data_safe/data_safe_client.py index dacc38ecc..7ee229dcf 100644 --- a/src/oci/data_safe/data_safe_client.py +++ b/src/oci/data_safe/data_safe_client.py @@ -179,7 +179,7 @@ def activate_target_database(self, activate_target_database_details, target_data "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_target_database got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def activate_target_database(self, activate_target_database_details, target_data "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def activate_target_database(self, activate_target_database_details, target_data "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def add_masking_columns_from_sdm(self, masking_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_masking_columns_from_sdm got unknown kwargs: {extra_kwargs!r}") @@ -300,9 +300,9 @@ def add_masking_columns_from_sdm(self, masking_policy_id, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -312,7 +312,7 @@ def add_masking_columns_from_sdm(self, masking_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -417,7 +417,7 @@ def alerts_update(self, alerts_update_details, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"alerts_update got unknown kwargs: {extra_kwargs!r}") @@ -433,7 +433,7 @@ def alerts_update(self, alerts_update_details, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -442,7 +442,7 @@ def alerts_update(self, alerts_update_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -535,7 +535,7 @@ def apply_discovery_job_results(self, sensitive_data_model_id, apply_discovery_j "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"apply_discovery_job_results got unknown kwargs: {extra_kwargs!r}") @@ -544,9 +544,9 @@ def apply_discovery_job_results(self, sensitive_data_model_id, apply_discovery_j "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -556,7 +556,7 @@ def apply_discovery_job_results(self, sensitive_data_model_id, apply_discovery_j "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -657,7 +657,7 @@ def apply_sdm_masking_policy_difference(self, masking_policy_id, apply_sdm_maski "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"apply_sdm_masking_policy_difference got unknown kwargs: {extra_kwargs!r}") @@ -666,9 +666,9 @@ def apply_sdm_masking_policy_difference(self, masking_policy_id, apply_sdm_maski "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -679,7 +679,7 @@ def apply_sdm_masking_policy_difference(self, masking_policy_id, apply_sdm_maski "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -776,7 +776,7 @@ def apply_security_assessment_template(self, security_assessment_id, security_as "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"apply_security_assessment_template got unknown kwargs: {extra_kwargs!r}") @@ -785,9 +785,9 @@ def apply_security_assessment_template(self, security_assessment_id, security_as "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -798,7 +798,7 @@ def apply_security_assessment_template(self, security_assessment_id, security_as "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -888,7 +888,7 @@ def bulk_create_sensitive_types(self, bulk_create_sensitive_types_details, opc_c "buffer_limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_create_sensitive_types got unknown kwargs: {extra_kwargs!r}") @@ -898,7 +898,7 @@ def bulk_create_sensitive_types(self, bulk_create_sensitive_types_details, opc_c "opc-compartment-id": opc_compartment_id, "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1002,7 +1002,7 @@ def bulk_create_sql_firewall_allowed_sqls(self, bulk_create_sql_firewall_allowed "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_create_sql_firewall_allowed_sqls got unknown kwargs: {extra_kwargs!r}") @@ -1013,7 +1013,7 @@ def bulk_create_sql_firewall_allowed_sqls(self, bulk_create_sql_firewall_allowed "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1097,7 +1097,7 @@ def bulk_create_unified_audit_policy(self, bulk_create_unified_audit_policy_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_create_unified_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -1108,7 +1108,7 @@ def bulk_create_unified_audit_policy(self, bulk_create_unified_audit_policy_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1185,7 +1185,7 @@ def bulk_delete_sql_firewall_allowed_sqls(self, bulk_delete_sql_firewall_allowed "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_delete_sql_firewall_allowed_sqls got unknown kwargs: {extra_kwargs!r}") @@ -1195,7 +1195,7 @@ def bulk_delete_sql_firewall_allowed_sqls(self, bulk_delete_sql_firewall_allowed "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1289,7 +1289,7 @@ def calculate_audit_volume_available(self, audit_profile_id, calculate_audit_vol "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"calculate_audit_volume_available got unknown kwargs: {extra_kwargs!r}") @@ -1298,9 +1298,9 @@ def calculate_audit_volume_available(self, audit_profile_id, calculate_audit_vol "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1311,7 +1311,7 @@ def calculate_audit_volume_available(self, audit_profile_id, calculate_audit_vol "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1408,7 +1408,7 @@ def calculate_audit_volume_collected(self, audit_profile_id, calculate_audit_vol "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"calculate_audit_volume_collected got unknown kwargs: {extra_kwargs!r}") @@ -1417,9 +1417,9 @@ def calculate_audit_volume_collected(self, audit_profile_id, calculate_audit_vol "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1430,7 +1430,7 @@ def calculate_audit_volume_collected(self, audit_profile_id, calculate_audit_vol "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1517,7 +1517,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1526,9 +1526,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1538,7 +1538,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1632,7 +1632,7 @@ def change_alert_compartment(self, alert_id, change_alert_compartment_details, * "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_alert_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1641,9 +1641,9 @@ def change_alert_compartment(self, alert_id, change_alert_compartment_details, * "alertId": alert_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1654,7 +1654,7 @@ def change_alert_compartment(self, alert_id, change_alert_compartment_details, * "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1751,7 +1751,7 @@ def change_alert_policy_compartment(self, alert_policy_id, change_alert_policy_c "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_alert_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1760,9 +1760,9 @@ def change_alert_policy_compartment(self, alert_policy_id, change_alert_policy_c "alertPolicyId": alert_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1773,7 +1773,7 @@ def change_alert_policy_compartment(self, alert_policy_id, change_alert_policy_c "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1870,7 +1870,7 @@ def change_attribute_set_compartment(self, attribute_set_id, change_attribute_se "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_attribute_set_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1879,9 +1879,9 @@ def change_attribute_set_compartment(self, attribute_set_id, change_attribute_se "attributeSetId": attribute_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1892,7 +1892,7 @@ def change_attribute_set_compartment(self, attribute_set_id, change_attribute_se "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1989,7 +1989,7 @@ def change_audit_archive_retrieval_compartment(self, audit_archive_retrieval_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_audit_archive_retrieval_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1998,9 +1998,9 @@ def change_audit_archive_retrieval_compartment(self, audit_archive_retrieval_id, "auditArchiveRetrievalId": audit_archive_retrieval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2011,7 +2011,7 @@ def change_audit_archive_retrieval_compartment(self, audit_archive_retrieval_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2108,7 +2108,7 @@ def change_audit_policy_compartment(self, audit_policy_id, change_audit_policy_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_audit_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2117,9 +2117,9 @@ def change_audit_policy_compartment(self, audit_policy_id, change_audit_policy_c "auditPolicyId": audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2130,7 +2130,7 @@ def change_audit_policy_compartment(self, audit_policy_id, change_audit_policy_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2227,7 +2227,7 @@ def change_audit_profile_compartment(self, audit_profile_id, change_audit_profil "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_audit_profile_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2236,9 +2236,9 @@ def change_audit_profile_compartment(self, audit_profile_id, change_audit_profil "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2249,7 +2249,7 @@ def change_audit_profile_compartment(self, audit_profile_id, change_audit_profil "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2339,7 +2339,7 @@ def change_data_safe_private_endpoint_compartment(self, data_safe_private_endpoi "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_data_safe_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2348,9 +2348,9 @@ def change_data_safe_private_endpoint_compartment(self, data_safe_private_endpoi "dataSafePrivateEndpointId": data_safe_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2360,7 +2360,7 @@ def change_data_safe_private_endpoint_compartment(self, data_safe_private_endpoi "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2456,7 +2456,7 @@ def change_database_security_config_compartment(self, database_security_config_i "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_security_config_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2465,9 +2465,9 @@ def change_database_security_config_compartment(self, database_security_config_i "databaseSecurityConfigId": database_security_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2478,7 +2478,7 @@ def change_database_security_config_compartment(self, database_security_config_i "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2575,7 +2575,7 @@ def change_discovery_job_compartment(self, discovery_job_id, change_discovery_jo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_discovery_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2584,9 +2584,9 @@ def change_discovery_job_compartment(self, discovery_job_id, change_discovery_jo "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2597,7 +2597,7 @@ def change_discovery_job_compartment(self, discovery_job_id, change_discovery_jo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2694,7 +2694,7 @@ def change_library_masking_format_compartment(self, library_masking_format_id, c "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_library_masking_format_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2703,9 +2703,9 @@ def change_library_masking_format_compartment(self, library_masking_format_id, c "libraryMaskingFormatId": library_masking_format_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2716,7 +2716,7 @@ def change_library_masking_format_compartment(self, library_masking_format_id, c "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2813,7 +2813,7 @@ def change_masking_policy_compartment(self, masking_policy_id, change_masking_po "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_masking_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2822,9 +2822,9 @@ def change_masking_policy_compartment(self, masking_policy_id, change_masking_po "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2835,7 +2835,7 @@ def change_masking_policy_compartment(self, masking_policy_id, change_masking_po "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2932,7 +2932,7 @@ def change_masking_policy_health_report_compartment(self, masking_policy_health_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_masking_policy_health_report_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2941,9 +2941,9 @@ def change_masking_policy_health_report_compartment(self, masking_policy_health_ "maskingPolicyHealthReportId": masking_policy_health_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2954,7 +2954,7 @@ def change_masking_policy_health_report_compartment(self, masking_policy_health_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3051,7 +3051,7 @@ def change_on_prem_connector_compartment(self, on_prem_connector_id, change_on_p "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_on_prem_connector_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3060,9 +3060,9 @@ def change_on_prem_connector_compartment(self, on_prem_connector_id, change_on_p "onPremConnectorId": on_prem_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3073,7 +3073,7 @@ def change_on_prem_connector_compartment(self, on_prem_connector_id, change_on_p "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3170,7 +3170,7 @@ def change_report_compartment(self, report_id, change_report_compartment_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_report_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3179,9 +3179,9 @@ def change_report_compartment(self, report_id, change_report_compartment_details "reportId": report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3192,7 +3192,7 @@ def change_report_compartment(self, report_id, change_report_compartment_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3289,7 +3289,7 @@ def change_report_definition_compartment(self, report_definition_id, change_repo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_report_definition_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3298,9 +3298,9 @@ def change_report_definition_compartment(self, report_definition_id, change_repo "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3311,7 +3311,7 @@ def change_report_definition_compartment(self, report_definition_id, change_repo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3408,7 +3408,7 @@ def change_retention(self, audit_profile_id, change_retention_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_retention got unknown kwargs: {extra_kwargs!r}") @@ -3417,9 +3417,9 @@ def change_retention(self, audit_profile_id, change_retention_details, **kwargs) "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3430,7 +3430,7 @@ def change_retention(self, audit_profile_id, change_retention_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3527,7 +3527,7 @@ def change_sdm_masking_policy_difference_compartment(self, sdm_masking_policy_di "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sdm_masking_policy_difference_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3536,9 +3536,9 @@ def change_sdm_masking_policy_difference_compartment(self, sdm_masking_policy_di "sdmMaskingPolicyDifferenceId": sdm_masking_policy_difference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3549,7 +3549,7 @@ def change_sdm_masking_policy_difference_compartment(self, sdm_masking_policy_di "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3650,7 +3650,7 @@ def change_security_assessment_compartment(self, security_assessment_id, change_ "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_assessment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3659,9 +3659,9 @@ def change_security_assessment_compartment(self, security_assessment_id, change_ "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3672,7 +3672,7 @@ def change_security_assessment_compartment(self, security_assessment_id, change_ "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3769,7 +3769,7 @@ def change_security_policy_compartment(self, security_policy_id, change_security "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3778,9 +3778,9 @@ def change_security_policy_compartment(self, security_policy_id, change_security "securityPolicyId": security_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3791,7 +3791,7 @@ def change_security_policy_compartment(self, security_policy_id, change_security "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3888,7 +3888,7 @@ def change_security_policy_config_compartment(self, security_policy_config_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_policy_config_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3897,9 +3897,9 @@ def change_security_policy_config_compartment(self, security_policy_config_id, c "securityPolicyConfigId": security_policy_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3910,7 +3910,7 @@ def change_security_policy_config_compartment(self, security_policy_config_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4007,7 +4007,7 @@ def change_security_policy_deployment_compartment(self, security_policy_deployme "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_policy_deployment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4016,9 +4016,9 @@ def change_security_policy_deployment_compartment(self, security_policy_deployme "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4029,7 +4029,7 @@ def change_security_policy_deployment_compartment(self, security_policy_deployme "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4126,7 +4126,7 @@ def change_sensitive_data_model_compartment(self, sensitive_data_model_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sensitive_data_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4135,9 +4135,9 @@ def change_sensitive_data_model_compartment(self, sensitive_data_model_id, chang "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4148,7 +4148,7 @@ def change_sensitive_data_model_compartment(self, sensitive_data_model_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4245,7 +4245,7 @@ def change_sensitive_type_compartment(self, sensitive_type_id, change_sensitive_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sensitive_type_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4254,9 +4254,9 @@ def change_sensitive_type_compartment(self, sensitive_type_id, change_sensitive_ "sensitiveTypeId": sensitive_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4267,7 +4267,7 @@ def change_sensitive_type_compartment(self, sensitive_type_id, change_sensitive_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4364,7 +4364,7 @@ def change_sensitive_type_group_compartment(self, sensitive_type_group_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sensitive_type_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4373,9 +4373,9 @@ def change_sensitive_type_group_compartment(self, sensitive_type_group_id, chang "sensitiveTypeGroupId": sensitive_type_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4386,7 +4386,7 @@ def change_sensitive_type_group_compartment(self, sensitive_type_group_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4483,7 +4483,7 @@ def change_sensitive_types_export_compartment(self, sensitive_types_export_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sensitive_types_export_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4492,9 +4492,9 @@ def change_sensitive_types_export_compartment(self, sensitive_types_export_id, c "sensitiveTypesExportId": sensitive_types_export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4505,7 +4505,7 @@ def change_sensitive_types_export_compartment(self, sensitive_types_export_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4602,7 +4602,7 @@ def change_sql_collection_compartment(self, sql_collection_id, change_sql_collec "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sql_collection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4611,9 +4611,9 @@ def change_sql_collection_compartment(self, sql_collection_id, change_sql_collec "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4624,7 +4624,7 @@ def change_sql_collection_compartment(self, sql_collection_id, change_sql_collec "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4721,7 +4721,7 @@ def change_sql_firewall_policy_compartment(self, sql_firewall_policy_id, change_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sql_firewall_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4730,9 +4730,9 @@ def change_sql_firewall_policy_compartment(self, sql_firewall_policy_id, change_ "sqlFirewallPolicyId": sql_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4743,7 +4743,7 @@ def change_sql_firewall_policy_compartment(self, sql_firewall_policy_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4840,7 +4840,7 @@ def change_target_alert_policy_association_compartment(self, target_alert_policy "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_target_alert_policy_association_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4849,9 +4849,9 @@ def change_target_alert_policy_association_compartment(self, target_alert_policy "targetAlertPolicyAssociationId": target_alert_policy_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4862,7 +4862,7 @@ def change_target_alert_policy_association_compartment(self, target_alert_policy "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4959,7 +4959,7 @@ def change_target_database_compartment(self, target_database_id, change_target_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_target_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4968,9 +4968,9 @@ def change_target_database_compartment(self, target_database_id, change_target_d "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4981,7 +4981,7 @@ def change_target_database_compartment(self, target_database_id, change_target_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5078,7 +5078,7 @@ def change_target_database_group_compartment(self, target_database_group_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_target_database_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5087,9 +5087,9 @@ def change_target_database_group_compartment(self, target_database_group_id, cha "targetDatabaseGroupId": target_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5100,7 +5100,7 @@ def change_target_database_group_compartment(self, target_database_group_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5197,7 +5197,7 @@ def change_unified_audit_policy_compartment(self, unified_audit_policy_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_unified_audit_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5206,9 +5206,9 @@ def change_unified_audit_policy_compartment(self, unified_audit_policy_id, chang "unifiedAuditPolicyId": unified_audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5219,7 +5219,7 @@ def change_unified_audit_policy_compartment(self, unified_audit_policy_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5316,7 +5316,7 @@ def change_unified_audit_policy_definition_compartment(self, unified_audit_polic "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_unified_audit_policy_definition_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5325,9 +5325,9 @@ def change_unified_audit_policy_definition_compartment(self, unified_audit_polic "unifiedAuditPolicyDefinitionId": unified_audit_policy_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5338,7 +5338,7 @@ def change_unified_audit_policy_definition_compartment(self, unified_audit_polic "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5439,7 +5439,7 @@ def change_user_assessment_compartment(self, user_assessment_id, change_user_ass "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_user_assessment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5448,9 +5448,9 @@ def change_user_assessment_compartment(self, user_assessment_id, change_user_ass "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5461,7 +5461,7 @@ def change_user_assessment_compartment(self, user_assessment_id, change_user_ass "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5559,7 +5559,7 @@ def compare_security_assessment(self, security_assessment_id, compare_security_a "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"compare_security_assessment got unknown kwargs: {extra_kwargs!r}") @@ -5568,9 +5568,9 @@ def compare_security_assessment(self, security_assessment_id, compare_security_a "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5581,7 +5581,7 @@ def compare_security_assessment(self, security_assessment_id, compare_security_a "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5678,7 +5678,7 @@ def compare_to_template_baseline(self, security_assessment_id, compare_to_templa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"compare_to_template_baseline got unknown kwargs: {extra_kwargs!r}") @@ -5687,9 +5687,9 @@ def compare_to_template_baseline(self, security_assessment_id, compare_to_templa "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5700,7 +5700,7 @@ def compare_to_template_baseline(self, security_assessment_id, compare_to_templa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5798,7 +5798,7 @@ def compare_user_assessment(self, user_assessment_id, compare_user_assessment_de "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"compare_user_assessment got unknown kwargs: {extra_kwargs!r}") @@ -5807,9 +5807,9 @@ def compare_user_assessment(self, user_assessment_id, compare_user_assessment_de "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5820,7 +5820,7 @@ def compare_user_assessment(self, user_assessment_id, compare_user_assessment_de "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5906,7 +5906,7 @@ def create_alert_policy(self, create_alert_policy_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_alert_policy got unknown kwargs: {extra_kwargs!r}") @@ -5917,7 +5917,7 @@ def create_alert_policy(self, create_alert_policy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6006,7 +6006,7 @@ def create_alert_policy_rule(self, create_alert_policy_rule_details, alert_polic "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_alert_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -6015,9 +6015,9 @@ def create_alert_policy_rule(self, create_alert_policy_rule_details, alert_polic "alertPolicyId": alert_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6027,7 +6027,7 @@ def create_alert_policy_rule(self, create_alert_policy_rule_details, alert_polic "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6115,7 +6115,7 @@ def create_attribute_set(self, create_attribute_set_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_attribute_set got unknown kwargs: {extra_kwargs!r}") @@ -6126,7 +6126,7 @@ def create_attribute_set(self, create_attribute_set_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6214,7 +6214,7 @@ def create_audit_archive_retrieval(self, create_audit_archive_retrieval_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_audit_archive_retrieval got unknown kwargs: {extra_kwargs!r}") @@ -6225,7 +6225,7 @@ def create_audit_archive_retrieval(self, create_audit_archive_retrieval_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6311,7 +6311,7 @@ def create_audit_profile(self, create_audit_profile_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_audit_profile got unknown kwargs: {extra_kwargs!r}") @@ -6322,7 +6322,7 @@ def create_audit_profile(self, create_audit_profile_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6408,7 +6408,7 @@ def create_data_safe_private_endpoint(self, create_data_safe_private_endpoint_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_safe_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6419,7 +6419,7 @@ def create_data_safe_private_endpoint(self, create_data_safe_private_endpoint_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6509,7 +6509,7 @@ def create_discovery_job(self, create_discovery_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_discovery_job got unknown kwargs: {extra_kwargs!r}") @@ -6520,7 +6520,7 @@ def create_discovery_job(self, create_discovery_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6610,7 +6610,7 @@ def create_library_masking_format(self, create_library_masking_format_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_library_masking_format got unknown kwargs: {extra_kwargs!r}") @@ -6621,7 +6621,7 @@ def create_library_masking_format(self, create_library_masking_format_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6729,7 +6729,7 @@ def create_masking_column(self, create_masking_column_details, masking_policy_id "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_masking_column got unknown kwargs: {extra_kwargs!r}") @@ -6738,9 +6738,9 @@ def create_masking_column(self, create_masking_column_details, masking_policy_id "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6750,7 +6750,7 @@ def create_masking_column(self, create_masking_column_details, masking_policy_id "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6852,7 +6852,7 @@ def create_masking_policy(self, create_masking_policy_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_masking_policy got unknown kwargs: {extra_kwargs!r}") @@ -6863,7 +6863,7 @@ def create_masking_policy(self, create_masking_policy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6949,7 +6949,7 @@ def create_on_prem_connector(self, create_on_prem_connector_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_on_prem_connector got unknown kwargs: {extra_kwargs!r}") @@ -6960,7 +6960,7 @@ def create_on_prem_connector(self, create_on_prem_connector_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7057,7 +7057,7 @@ def create_peer_target_database(self, target_database_id, create_peer_target_dat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_peer_target_database got unknown kwargs: {extra_kwargs!r}") @@ -7066,9 +7066,9 @@ def create_peer_target_database(self, target_database_id, create_peer_target_dat "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7079,7 +7079,7 @@ def create_peer_target_database(self, target_database_id, create_peer_target_dat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7170,7 +7170,7 @@ def create_referential_relation(self, sensitive_data_model_id, create_referentia "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_referential_relation got unknown kwargs: {extra_kwargs!r}") @@ -7179,9 +7179,9 @@ def create_referential_relation(self, sensitive_data_model_id, create_referentia "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7191,7 +7191,7 @@ def create_referential_relation(self, sensitive_data_model_id, create_referentia "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7277,7 +7277,7 @@ def create_report_definition(self, create_report_definition_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_report_definition got unknown kwargs: {extra_kwargs!r}") @@ -7288,7 +7288,7 @@ def create_report_definition(self, create_report_definition_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7378,7 +7378,7 @@ def create_sdm_masking_policy_difference(self, create_sdm_masking_policy_differe "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sdm_masking_policy_difference got unknown kwargs: {extra_kwargs!r}") @@ -7389,7 +7389,7 @@ def create_sdm_masking_policy_difference(self, create_sdm_masking_policy_differe "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7479,7 +7479,7 @@ def create_security_assessment(self, create_security_assessment_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_assessment got unknown kwargs: {extra_kwargs!r}") @@ -7490,7 +7490,7 @@ def create_security_assessment(self, create_security_assessment_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7576,7 +7576,7 @@ def create_security_policy(self, create_security_policy_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_policy got unknown kwargs: {extra_kwargs!r}") @@ -7587,7 +7587,7 @@ def create_security_policy(self, create_security_policy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7673,7 +7673,7 @@ def create_security_policy_config(self, create_security_policy_config_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_policy_config got unknown kwargs: {extra_kwargs!r}") @@ -7684,7 +7684,7 @@ def create_security_policy_config(self, create_security_policy_config_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7770,7 +7770,7 @@ def create_security_policy_deployment(self, create_security_policy_deployment_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_policy_deployment got unknown kwargs: {extra_kwargs!r}") @@ -7781,7 +7781,7 @@ def create_security_policy_deployment(self, create_security_policy_deployment_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7870,7 +7870,7 @@ def create_sensitive_column(self, sensitive_data_model_id, create_sensitive_colu "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sensitive_column got unknown kwargs: {extra_kwargs!r}") @@ -7879,9 +7879,9 @@ def create_sensitive_column(self, sensitive_data_model_id, create_sensitive_colu "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7891,7 +7891,7 @@ def create_sensitive_column(self, sensitive_data_model_id, create_sensitive_colu "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7979,7 +7979,7 @@ def create_sensitive_data_model(self, create_sensitive_data_model_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sensitive_data_model got unknown kwargs: {extra_kwargs!r}") @@ -7990,7 +7990,7 @@ def create_sensitive_data_model(self, create_sensitive_data_model_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8078,7 +8078,7 @@ def create_sensitive_type(self, create_sensitive_type_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sensitive_type got unknown kwargs: {extra_kwargs!r}") @@ -8089,7 +8089,7 @@ def create_sensitive_type(self, create_sensitive_type_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8175,7 +8175,7 @@ def create_sensitive_type_group(self, create_sensitive_type_group_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sensitive_type_group got unknown kwargs: {extra_kwargs!r}") @@ -8186,7 +8186,7 @@ def create_sensitive_type_group(self, create_sensitive_type_group_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8274,7 +8274,7 @@ def create_sensitive_types_export(self, create_sensitive_types_export_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sensitive_types_export got unknown kwargs: {extra_kwargs!r}") @@ -8285,7 +8285,7 @@ def create_sensitive_types_export(self, create_sensitive_types_export_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8371,7 +8371,7 @@ def create_sql_collection(self, create_sql_collection_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sql_collection got unknown kwargs: {extra_kwargs!r}") @@ -8382,7 +8382,7 @@ def create_sql_collection(self, create_sql_collection_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8468,7 +8468,7 @@ def create_target_alert_policy_association(self, create_target_alert_policy_asso "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target_alert_policy_association got unknown kwargs: {extra_kwargs!r}") @@ -8479,7 +8479,7 @@ def create_target_alert_policy_association(self, create_target_alert_policy_asso "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8565,7 +8565,7 @@ def create_target_database(self, create_target_database_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target_database got unknown kwargs: {extra_kwargs!r}") @@ -8576,7 +8576,7 @@ def create_target_database(self, create_target_database_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8662,7 +8662,7 @@ def create_target_database_group(self, create_target_database_group_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_target_database_group got unknown kwargs: {extra_kwargs!r}") @@ -8673,7 +8673,7 @@ def create_target_database_group(self, create_target_database_group_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8759,7 +8759,7 @@ def create_unified_audit_policy(self, create_unified_audit_policy_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_unified_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -8770,7 +8770,7 @@ def create_unified_audit_policy(self, create_unified_audit_policy_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8860,7 +8860,7 @@ def create_user_assessment(self, create_user_assessment_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_user_assessment got unknown kwargs: {extra_kwargs!r}") @@ -8871,7 +8871,7 @@ def create_user_assessment(self, create_user_assessment_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8965,7 +8965,7 @@ def deactivate_target_database(self, target_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_target_database got unknown kwargs: {extra_kwargs!r}") @@ -8974,9 +8974,9 @@ def deactivate_target_database(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8987,7 +8987,7 @@ def deactivate_target_database(self, target_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9072,7 +9072,7 @@ def delete_alert_policy(self, alert_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_alert_policy got unknown kwargs: {extra_kwargs!r}") @@ -9081,9 +9081,9 @@ def delete_alert_policy(self, alert_policy_id, **kwargs): "alertPolicyId": alert_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9093,7 +9093,7 @@ def delete_alert_policy(self, alert_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9180,7 +9180,7 @@ def delete_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_alert_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -9190,9 +9190,9 @@ def delete_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): "ruleKey": rule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9202,7 +9202,7 @@ def delete_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9286,7 +9286,7 @@ def delete_attribute_set(self, attribute_set_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_attribute_set got unknown kwargs: {extra_kwargs!r}") @@ -9295,9 +9295,9 @@ def delete_attribute_set(self, attribute_set_id, **kwargs): "attributeSetId": attribute_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9307,7 +9307,7 @@ def delete_attribute_set(self, attribute_set_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9392,7 +9392,7 @@ def delete_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_audit_archive_retrieval got unknown kwargs: {extra_kwargs!r}") @@ -9401,9 +9401,9 @@ def delete_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): "auditArchiveRetrievalId": audit_archive_retrieval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9413,7 +9413,7 @@ def delete_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9498,7 +9498,7 @@ def delete_audit_profile(self, audit_profile_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_audit_profile got unknown kwargs: {extra_kwargs!r}") @@ -9507,9 +9507,9 @@ def delete_audit_profile(self, audit_profile_id, **kwargs): "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9519,7 +9519,7 @@ def delete_audit_profile(self, audit_profile_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9603,7 +9603,7 @@ def delete_audit_trail(self, audit_trail_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_audit_trail got unknown kwargs: {extra_kwargs!r}") @@ -9612,9 +9612,9 @@ def delete_audit_trail(self, audit_trail_id, **kwargs): "auditTrailId": audit_trail_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9624,7 +9624,7 @@ def delete_audit_trail(self, audit_trail_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9708,7 +9708,7 @@ def delete_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_safe_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -9717,9 +9717,9 @@ def delete_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwa "dataSafePrivateEndpointId": data_safe_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9729,7 +9729,7 @@ def delete_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9813,7 +9813,7 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_discovery_job got unknown kwargs: {extra_kwargs!r}") @@ -9822,9 +9822,9 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9834,7 +9834,7 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9921,7 +9921,7 @@ def delete_discovery_job_result(self, discovery_job_id, result_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_discovery_job_result got unknown kwargs: {extra_kwargs!r}") @@ -9931,9 +9931,9 @@ def delete_discovery_job_result(self, discovery_job_id, result_key, **kwargs): "resultKey": result_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9943,7 +9943,7 @@ def delete_discovery_job_result(self, discovery_job_id, result_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10027,7 +10027,7 @@ def delete_library_masking_format(self, library_masking_format_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_library_masking_format got unknown kwargs: {extra_kwargs!r}") @@ -10036,9 +10036,9 @@ def delete_library_masking_format(self, library_masking_format_id, **kwargs): "libraryMaskingFormatId": library_masking_format_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10048,7 +10048,7 @@ def delete_library_masking_format(self, library_masking_format_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10135,7 +10135,7 @@ def delete_masking_column(self, masking_column_key, masking_policy_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_masking_column got unknown kwargs: {extra_kwargs!r}") @@ -10145,9 +10145,9 @@ def delete_masking_column(self, masking_column_key, masking_policy_id, **kwargs) "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10157,7 +10157,7 @@ def delete_masking_column(self, masking_column_key, masking_policy_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10241,7 +10241,7 @@ def delete_masking_policy(self, masking_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_masking_policy got unknown kwargs: {extra_kwargs!r}") @@ -10250,9 +10250,9 @@ def delete_masking_policy(self, masking_policy_id, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10262,7 +10262,7 @@ def delete_masking_policy(self, masking_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10346,7 +10346,7 @@ def delete_masking_policy_health_report(self, masking_policy_health_report_id, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_masking_policy_health_report got unknown kwargs: {extra_kwargs!r}") @@ -10355,9 +10355,9 @@ def delete_masking_policy_health_report(self, masking_policy_health_report_id, * "maskingPolicyHealthReportId": masking_policy_health_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10367,7 +10367,7 @@ def delete_masking_policy_health_report(self, masking_policy_health_report_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10451,7 +10451,7 @@ def delete_masking_report(self, masking_report_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_masking_report got unknown kwargs: {extra_kwargs!r}") @@ -10460,9 +10460,9 @@ def delete_masking_report(self, masking_report_id, **kwargs): "maskingReportId": masking_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10472,7 +10472,7 @@ def delete_masking_report(self, masking_report_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10556,7 +10556,7 @@ def delete_on_prem_connector(self, on_prem_connector_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_on_prem_connector got unknown kwargs: {extra_kwargs!r}") @@ -10565,9 +10565,9 @@ def delete_on_prem_connector(self, on_prem_connector_id, **kwargs): "onPremConnectorId": on_prem_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10577,7 +10577,7 @@ def delete_on_prem_connector(self, on_prem_connector_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10664,7 +10664,7 @@ def delete_peer_target_database(self, target_database_id, peer_target_database_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_peer_target_database got unknown kwargs: {extra_kwargs!r}") @@ -10674,9 +10674,9 @@ def delete_peer_target_database(self, target_database_id, peer_target_database_i "peerTargetDatabaseId": peer_target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10686,7 +10686,7 @@ def delete_peer_target_database(self, target_database_id, peer_target_database_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10773,7 +10773,7 @@ def delete_referential_relation(self, sensitive_data_model_id, referential_relat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_referential_relation got unknown kwargs: {extra_kwargs!r}") @@ -10783,9 +10783,9 @@ def delete_referential_relation(self, sensitive_data_model_id, referential_relat "referentialRelationKey": referential_relation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10795,7 +10795,7 @@ def delete_referential_relation(self, sensitive_data_model_id, referential_relat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10879,7 +10879,7 @@ def delete_report_definition(self, report_definition_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_report_definition got unknown kwargs: {extra_kwargs!r}") @@ -10888,9 +10888,9 @@ def delete_report_definition(self, report_definition_id, **kwargs): "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10900,7 +10900,7 @@ def delete_report_definition(self, report_definition_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10984,7 +10984,7 @@ def delete_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sdm_masking_policy_difference got unknown kwargs: {extra_kwargs!r}") @@ -10993,9 +10993,9 @@ def delete_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, "sdmMaskingPolicyDifferenceId": sdm_masking_policy_difference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11005,7 +11005,7 @@ def delete_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11092,7 +11092,7 @@ def delete_security_assessment(self, security_assessment_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_assessment got unknown kwargs: {extra_kwargs!r}") @@ -11101,9 +11101,9 @@ def delete_security_assessment(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11113,7 +11113,7 @@ def delete_security_assessment(self, security_assessment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11197,7 +11197,7 @@ def delete_security_policy(self, security_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_policy got unknown kwargs: {extra_kwargs!r}") @@ -11206,9 +11206,9 @@ def delete_security_policy(self, security_policy_id, **kwargs): "securityPolicyId": security_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11218,7 +11218,7 @@ def delete_security_policy(self, security_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11302,7 +11302,7 @@ def delete_security_policy_config(self, security_policy_config_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_policy_config got unknown kwargs: {extra_kwargs!r}") @@ -11311,9 +11311,9 @@ def delete_security_policy_config(self, security_policy_config_id, **kwargs): "securityPolicyConfigId": security_policy_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11323,7 +11323,7 @@ def delete_security_policy_config(self, security_policy_config_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11407,7 +11407,7 @@ def delete_security_policy_deployment(self, security_policy_deployment_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_policy_deployment got unknown kwargs: {extra_kwargs!r}") @@ -11416,9 +11416,9 @@ def delete_security_policy_deployment(self, security_policy_deployment_id, **kwa "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11428,7 +11428,7 @@ def delete_security_policy_deployment(self, security_policy_deployment_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11515,7 +11515,7 @@ def delete_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sensitive_column got unknown kwargs: {extra_kwargs!r}") @@ -11525,9 +11525,9 @@ def delete_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, "sensitiveColumnKey": sensitive_column_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11537,7 +11537,7 @@ def delete_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11621,7 +11621,7 @@ def delete_sensitive_data_model(self, sensitive_data_model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sensitive_data_model got unknown kwargs: {extra_kwargs!r}") @@ -11630,9 +11630,9 @@ def delete_sensitive_data_model(self, sensitive_data_model_id, **kwargs): "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11642,7 +11642,7 @@ def delete_sensitive_data_model(self, sensitive_data_model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11726,7 +11726,7 @@ def delete_sensitive_type(self, sensitive_type_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sensitive_type got unknown kwargs: {extra_kwargs!r}") @@ -11735,9 +11735,9 @@ def delete_sensitive_type(self, sensitive_type_id, **kwargs): "sensitiveTypeId": sensitive_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11747,7 +11747,7 @@ def delete_sensitive_type(self, sensitive_type_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11831,7 +11831,7 @@ def delete_sensitive_type_group(self, sensitive_type_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sensitive_type_group got unknown kwargs: {extra_kwargs!r}") @@ -11840,9 +11840,9 @@ def delete_sensitive_type_group(self, sensitive_type_group_id, **kwargs): "sensitiveTypeGroupId": sensitive_type_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11852,7 +11852,7 @@ def delete_sensitive_type_group(self, sensitive_type_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11936,7 +11936,7 @@ def delete_sensitive_types_export(self, sensitive_types_export_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sensitive_types_export got unknown kwargs: {extra_kwargs!r}") @@ -11945,9 +11945,9 @@ def delete_sensitive_types_export(self, sensitive_types_export_id, **kwargs): "sensitiveTypesExportId": sensitive_types_export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11957,7 +11957,7 @@ def delete_sensitive_types_export(self, sensitive_types_export_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12041,7 +12041,7 @@ def delete_sql_collection(self, sql_collection_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sql_collection got unknown kwargs: {extra_kwargs!r}") @@ -12050,9 +12050,9 @@ def delete_sql_collection(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12062,7 +12062,7 @@ def delete_sql_collection(self, sql_collection_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12146,7 +12146,7 @@ def delete_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sql_firewall_allowed_sql got unknown kwargs: {extra_kwargs!r}") @@ -12155,9 +12155,9 @@ def delete_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs) "sqlFirewallAllowedSqlId": sql_firewall_allowed_sql_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12167,7 +12167,7 @@ def delete_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12251,7 +12251,7 @@ def delete_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sql_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -12260,9 +12260,9 @@ def delete_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): "sqlFirewallPolicyId": sql_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12272,7 +12272,7 @@ def delete_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12356,7 +12356,7 @@ def delete_target_alert_policy_association(self, target_alert_policy_association "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target_alert_policy_association got unknown kwargs: {extra_kwargs!r}") @@ -12365,9 +12365,9 @@ def delete_target_alert_policy_association(self, target_alert_policy_association "targetAlertPolicyAssociationId": target_alert_policy_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12377,7 +12377,7 @@ def delete_target_alert_policy_association(self, target_alert_policy_association "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12461,7 +12461,7 @@ def delete_target_database(self, target_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target_database got unknown kwargs: {extra_kwargs!r}") @@ -12470,9 +12470,9 @@ def delete_target_database(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12482,7 +12482,7 @@ def delete_target_database(self, target_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12566,7 +12566,7 @@ def delete_target_database_group(self, target_database_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_target_database_group got unknown kwargs: {extra_kwargs!r}") @@ -12575,9 +12575,9 @@ def delete_target_database_group(self, target_database_group_id, **kwargs): "targetDatabaseGroupId": target_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12587,7 +12587,7 @@ def delete_target_database_group(self, target_database_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12671,7 +12671,7 @@ def delete_unified_audit_policy(self, unified_audit_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_unified_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -12680,9 +12680,9 @@ def delete_unified_audit_policy(self, unified_audit_policy_id, **kwargs): "unifiedAuditPolicyId": unified_audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12692,7 +12692,7 @@ def delete_unified_audit_policy(self, unified_audit_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12776,7 +12776,7 @@ def delete_unified_audit_policy_definition(self, unified_audit_policy_definition "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_unified_audit_policy_definition got unknown kwargs: {extra_kwargs!r}") @@ -12785,9 +12785,9 @@ def delete_unified_audit_policy_definition(self, unified_audit_policy_definition "unifiedAuditPolicyDefinitionId": unified_audit_policy_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12797,7 +12797,7 @@ def delete_unified_audit_policy_definition(self, unified_audit_policy_definition "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12884,7 +12884,7 @@ def delete_user_assessment(self, user_assessment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_user_assessment got unknown kwargs: {extra_kwargs!r}") @@ -12893,9 +12893,9 @@ def delete_user_assessment(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12905,7 +12905,7 @@ def delete_user_assessment(self, user_assessment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12996,7 +12996,7 @@ def deploy_security_policy_deployment(self, security_policy_deployment_id, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deploy_security_policy_deployment got unknown kwargs: {extra_kwargs!r}") @@ -13005,9 +13005,9 @@ def deploy_security_policy_deployment(self, security_policy_deployment_id, **kwa "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13018,7 +13018,7 @@ def deploy_security_policy_deployment(self, security_policy_deployment_id, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13113,7 +13113,7 @@ def discover_audit_trails(self, audit_profile_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"discover_audit_trails got unknown kwargs: {extra_kwargs!r}") @@ -13122,9 +13122,9 @@ def discover_audit_trails(self, audit_profile_id, **kwargs): "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13135,7 +13135,7 @@ def discover_audit_trails(self, audit_profile_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13218,7 +13218,7 @@ def download_discovery_report(self, sensitive_data_model_id, download_discovery_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_discovery_report got unknown kwargs: {extra_kwargs!r}") @@ -13227,9 +13227,9 @@ def download_discovery_report(self, sensitive_data_model_id, download_discovery_ "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13238,7 +13238,7 @@ def download_discovery_report(self, sensitive_data_model_id, download_discovery_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13321,7 +13321,7 @@ def download_masking_log(self, masking_policy_id, download_masking_log_details, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_masking_log got unknown kwargs: {extra_kwargs!r}") @@ -13330,9 +13330,9 @@ def download_masking_log(self, masking_policy_id, download_masking_log_details, "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13341,7 +13341,7 @@ def download_masking_log(self, masking_policy_id, download_masking_log_details, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13427,7 +13427,7 @@ def download_masking_policy(self, masking_policy_id, download_masking_policy_det "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_masking_policy got unknown kwargs: {extra_kwargs!r}") @@ -13436,9 +13436,9 @@ def download_masking_policy(self, masking_policy_id, download_masking_policy_det "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13447,7 +13447,7 @@ def download_masking_policy(self, masking_policy_id, download_masking_policy_det "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13532,7 +13532,7 @@ def download_masking_report(self, masking_policy_id, download_masking_report_det "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_masking_report got unknown kwargs: {extra_kwargs!r}") @@ -13541,9 +13541,9 @@ def download_masking_report(self, masking_policy_id, download_masking_report_det "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13552,7 +13552,7 @@ def download_masking_report(self, masking_policy_id, download_masking_report_det "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13644,7 +13644,7 @@ def download_privilege_script(self, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_privilege_script got unknown kwargs: {extra_kwargs!r}") @@ -13656,7 +13656,7 @@ def download_privilege_script(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13752,7 +13752,7 @@ def download_security_assessment_report(self, security_assessment_id, download_s "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_security_assessment_report got unknown kwargs: {extra_kwargs!r}") @@ -13761,9 +13761,9 @@ def download_security_assessment_report(self, security_assessment_id, download_s "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13774,7 +13774,7 @@ def download_security_assessment_report(self, security_assessment_id, download_s "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13861,7 +13861,7 @@ def download_sensitive_data_model(self, sensitive_data_model_id, download_sensit "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_sensitive_data_model got unknown kwargs: {extra_kwargs!r}") @@ -13870,9 +13870,9 @@ def download_sensitive_data_model(self, sensitive_data_model_id, download_sensit "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13881,7 +13881,7 @@ def download_sensitive_data_model(self, sensitive_data_model_id, download_sensit "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13966,7 +13966,7 @@ def download_sensitive_types_export(self, sensitive_types_export_id, download_se "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_sensitive_types_export got unknown kwargs: {extra_kwargs!r}") @@ -13975,9 +13975,9 @@ def download_sensitive_types_export(self, sensitive_types_export_id, download_se "sensitiveTypesExportId": sensitive_types_export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13986,7 +13986,7 @@ def download_sensitive_types_export(self, sensitive_types_export_id, download_se "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14085,7 +14085,7 @@ def download_user_assessment_report(self, user_assessment_id, download_user_asse "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_user_assessment_report got unknown kwargs: {extra_kwargs!r}") @@ -14094,9 +14094,9 @@ def download_user_assessment_report(self, user_assessment_id, download_user_asse "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14107,7 +14107,7 @@ def download_user_assessment_report(self, user_assessment_id, download_user_asse "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14200,7 +14200,7 @@ def enable_data_safe_configuration(self, enable_data_safe_configuration_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_data_safe_configuration got unknown kwargs: {extra_kwargs!r}") @@ -14208,7 +14208,7 @@ def enable_data_safe_configuration(self, enable_data_safe_configuration_details, query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -14216,7 +14216,7 @@ def enable_data_safe_configuration(self, enable_data_safe_configuration_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14300,7 +14300,7 @@ def generate_discovery_report_for_download(self, sensitive_data_model_id, genera "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_discovery_report_for_download got unknown kwargs: {extra_kwargs!r}") @@ -14309,9 +14309,9 @@ def generate_discovery_report_for_download(self, sensitive_data_model_id, genera "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14320,7 +14320,7 @@ def generate_discovery_report_for_download(self, sensitive_data_model_id, genera "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14408,7 +14408,7 @@ def generate_health_report(self, masking_policy_id, generate_health_report_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_health_report got unknown kwargs: {extra_kwargs!r}") @@ -14417,9 +14417,9 @@ def generate_health_report(self, masking_policy_id, generate_health_report_detai "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14429,7 +14429,7 @@ def generate_health_report(self, masking_policy_id, generate_health_report_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14515,7 +14515,7 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_masking_policy_for_download got unknown kwargs: {extra_kwargs!r}") @@ -14524,9 +14524,9 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14535,7 +14535,7 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14619,7 +14619,7 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_masking_report_for_download got unknown kwargs: {extra_kwargs!r}") @@ -14628,9 +14628,9 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14639,7 +14639,7 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14735,7 +14735,7 @@ def generate_on_prem_connector_configuration(self, generate_on_prem_connector_co "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_on_prem_connector_configuration got unknown kwargs: {extra_kwargs!r}") @@ -14744,9 +14744,9 @@ def generate_on_prem_connector_configuration(self, generate_on_prem_connector_co "onPremConnectorId": on_prem_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14757,7 +14757,7 @@ def generate_on_prem_connector_configuration(self, generate_on_prem_connector_co "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14868,7 +14868,7 @@ def generate_report(self, report_definition_id, generate_report_details, **kwarg "opc_retry_token", "scim_query" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_report got unknown kwargs: {extra_kwargs!r}") @@ -14877,16 +14877,16 @@ def generate_report(self, report_definition_id, generate_report_details, **kwarg "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "scimQuery": kwargs.get("scim_query", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -14895,7 +14895,7 @@ def generate_report(self, report_definition_id, generate_report_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14995,7 +14995,7 @@ def generate_security_assessment_report(self, security_assessment_id, generate_s "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_security_assessment_report got unknown kwargs: {extra_kwargs!r}") @@ -15004,9 +15004,9 @@ def generate_security_assessment_report(self, security_assessment_id, generate_s "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15017,7 +15017,7 @@ def generate_security_assessment_report(self, security_assessment_id, generate_s "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15102,7 +15102,7 @@ def generate_sensitive_data_model_for_download(self, sensitive_data_model_id, ge "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_sensitive_data_model_for_download got unknown kwargs: {extra_kwargs!r}") @@ -15111,9 +15111,9 @@ def generate_sensitive_data_model_for_download(self, sensitive_data_model_id, ge "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15122,7 +15122,7 @@ def generate_sensitive_data_model_for_download(self, sensitive_data_model_id, ge "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15215,7 +15215,7 @@ def generate_sql_firewall_policy(self, sql_collection_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_sql_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -15224,9 +15224,9 @@ def generate_sql_firewall_policy(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15237,7 +15237,7 @@ def generate_sql_firewall_policy(self, sql_collection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15333,7 +15333,7 @@ def generate_user_assessment_report(self, user_assessment_id, generate_user_asse "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_user_assessment_report got unknown kwargs: {extra_kwargs!r}") @@ -15342,9 +15342,9 @@ def generate_user_assessment_report(self, user_assessment_id, generate_user_asse "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15355,7 +15355,7 @@ def generate_user_assessment_report(self, user_assessment_id, generate_user_asse "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15434,7 +15434,7 @@ def get_alert(self, alert_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alert got unknown kwargs: {extra_kwargs!r}") @@ -15443,9 +15443,9 @@ def get_alert(self, alert_id, **kwargs): "alertId": alert_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15454,7 +15454,7 @@ def get_alert(self, alert_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15532,7 +15532,7 @@ def get_alert_policy(self, alert_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alert_policy got unknown kwargs: {extra_kwargs!r}") @@ -15541,9 +15541,9 @@ def get_alert_policy(self, alert_policy_id, **kwargs): "alertPolicyId": alert_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15552,7 +15552,7 @@ def get_alert_policy(self, alert_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15633,7 +15633,7 @@ def get_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alert_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -15643,9 +15643,9 @@ def get_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): "ruleKey": rule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15654,7 +15654,7 @@ def get_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15740,7 +15740,7 @@ def get_attribute_set(self, attribute_set_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_attribute_set got unknown kwargs: {extra_kwargs!r}") @@ -15749,9 +15749,9 @@ def get_attribute_set(self, attribute_set_id, **kwargs): "attributeSetId": attribute_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15761,7 +15761,7 @@ def get_attribute_set(self, attribute_set_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15847,7 +15847,7 @@ def get_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_audit_archive_retrieval got unknown kwargs: {extra_kwargs!r}") @@ -15856,9 +15856,9 @@ def get_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): "auditArchiveRetrievalId": audit_archive_retrieval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15868,7 +15868,7 @@ def get_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15946,7 +15946,7 @@ def get_audit_policy(self, audit_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -15955,9 +15955,9 @@ def get_audit_policy(self, audit_policy_id, **kwargs): "auditPolicyId": audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15966,7 +15966,7 @@ def get_audit_policy(self, audit_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16044,7 +16044,7 @@ def get_audit_profile(self, audit_profile_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_audit_profile got unknown kwargs: {extra_kwargs!r}") @@ -16053,9 +16053,9 @@ def get_audit_profile(self, audit_profile_id, **kwargs): "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16064,7 +16064,7 @@ def get_audit_profile(self, audit_profile_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16142,7 +16142,7 @@ def get_audit_trail(self, audit_trail_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_audit_trail got unknown kwargs: {extra_kwargs!r}") @@ -16151,9 +16151,9 @@ def get_audit_trail(self, audit_trail_id, **kwargs): "auditTrailId": audit_trail_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16162,7 +16162,7 @@ def get_audit_trail(self, audit_trail_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16255,7 +16255,7 @@ def get_compatible_formats_for_data_types(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compatible_formats_for_data_types got unknown kwargs: {extra_kwargs!r}") @@ -16264,14 +16264,14 @@ def get_compatible_formats_for_data_types(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16378,7 +16378,7 @@ def get_compatible_formats_for_sensitive_types(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compatible_formats_for_sensitive_types got unknown kwargs: {extra_kwargs!r}") @@ -16397,14 +16397,14 @@ def get_compatible_formats_for_sensitive_types(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16483,7 +16483,7 @@ def get_data_safe_configuration(self, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_safe_configuration got unknown kwargs: {extra_kwargs!r}") @@ -16491,14 +16491,14 @@ def get_data_safe_configuration(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16576,7 +16576,7 @@ def get_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_safe_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -16585,9 +16585,9 @@ def get_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwargs "dataSafePrivateEndpointId": data_safe_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16596,7 +16596,7 @@ def get_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16674,7 +16674,7 @@ def get_database_security_config(self, database_security_config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_security_config got unknown kwargs: {extra_kwargs!r}") @@ -16683,9 +16683,9 @@ def get_database_security_config(self, database_security_config_id, **kwargs): "databaseSecurityConfigId": database_security_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16694,7 +16694,7 @@ def get_database_security_config(self, database_security_config_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16775,7 +16775,7 @@ def get_database_table_access_entry(self, security_policy_report_id, database_ta "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_table_access_entry got unknown kwargs: {extra_kwargs!r}") @@ -16785,9 +16785,9 @@ def get_database_table_access_entry(self, security_policy_report_id, database_ta "databaseTableAccessEntryKey": database_table_access_entry_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16796,7 +16796,7 @@ def get_database_table_access_entry(self, security_policy_report_id, database_ta "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16877,7 +16877,7 @@ def get_database_view_access_entry(self, security_policy_report_id, database_vie "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_view_access_entry got unknown kwargs: {extra_kwargs!r}") @@ -16887,9 +16887,9 @@ def get_database_view_access_entry(self, security_policy_report_id, database_vie "databaseViewAccessEntryKey": database_view_access_entry_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16898,7 +16898,7 @@ def get_database_view_access_entry(self, security_policy_report_id, database_vie "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16979,7 +16979,7 @@ def get_difference_column(self, sdm_masking_policy_difference_id, difference_col "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_difference_column got unknown kwargs: {extra_kwargs!r}") @@ -16989,9 +16989,9 @@ def get_difference_column(self, sdm_masking_policy_difference_id, difference_col "differenceColumnKey": difference_column_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17000,7 +17000,7 @@ def get_difference_column(self, sdm_masking_policy_difference_id, difference_col "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17078,7 +17078,7 @@ def get_discovery_job(self, discovery_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_discovery_job got unknown kwargs: {extra_kwargs!r}") @@ -17087,9 +17087,9 @@ def get_discovery_job(self, discovery_job_id, **kwargs): "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17098,7 +17098,7 @@ def get_discovery_job(self, discovery_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17179,7 +17179,7 @@ def get_discovery_job_result(self, discovery_job_id, result_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_discovery_job_result got unknown kwargs: {extra_kwargs!r}") @@ -17189,9 +17189,9 @@ def get_discovery_job_result(self, discovery_job_id, result_key, **kwargs): "resultKey": result_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17200,7 +17200,7 @@ def get_discovery_job_result(self, discovery_job_id, result_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17294,7 +17294,7 @@ def get_group_members(self, target_database_group_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_group_members got unknown kwargs: {extra_kwargs!r}") @@ -17303,9 +17303,9 @@ def get_group_members(self, target_database_group_id, **kwargs): "targetDatabaseGroupId": target_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17314,14 +17314,14 @@ def get_group_members(self, target_database_group_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17401,7 +17401,7 @@ def get_library_masking_format(self, library_masking_format_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_library_masking_format got unknown kwargs: {extra_kwargs!r}") @@ -17410,9 +17410,9 @@ def get_library_masking_format(self, library_masking_format_id, **kwargs): "libraryMaskingFormatId": library_masking_format_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17421,7 +17421,7 @@ def get_library_masking_format(self, library_masking_format_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17502,7 +17502,7 @@ def get_masking_column(self, masking_policy_id, masking_column_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_masking_column got unknown kwargs: {extra_kwargs!r}") @@ -17512,9 +17512,9 @@ def get_masking_column(self, masking_policy_id, masking_column_key, **kwargs): "maskingColumnKey": masking_column_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17523,7 +17523,7 @@ def get_masking_column(self, masking_policy_id, masking_column_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17601,7 +17601,7 @@ def get_masking_policy(self, masking_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_masking_policy got unknown kwargs: {extra_kwargs!r}") @@ -17610,9 +17610,9 @@ def get_masking_policy(self, masking_policy_id, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17621,7 +17621,7 @@ def get_masking_policy(self, masking_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17699,7 +17699,7 @@ def get_masking_policy_health_report(self, masking_policy_health_report_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_masking_policy_health_report got unknown kwargs: {extra_kwargs!r}") @@ -17708,9 +17708,9 @@ def get_masking_policy_health_report(self, masking_policy_health_report_id, **kw "maskingPolicyHealthReportId": masking_policy_health_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17719,7 +17719,7 @@ def get_masking_policy_health_report(self, masking_policy_health_report_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17797,7 +17797,7 @@ def get_masking_report(self, masking_report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_masking_report got unknown kwargs: {extra_kwargs!r}") @@ -17806,9 +17806,9 @@ def get_masking_report(self, masking_report_id, **kwargs): "maskingReportId": masking_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17817,7 +17817,7 @@ def get_masking_report(self, masking_report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17895,7 +17895,7 @@ def get_on_prem_connector(self, on_prem_connector_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_on_prem_connector got unknown kwargs: {extra_kwargs!r}") @@ -17904,9 +17904,9 @@ def get_on_prem_connector(self, on_prem_connector_id, **kwargs): "onPremConnectorId": on_prem_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17915,7 +17915,7 @@ def get_on_prem_connector(self, on_prem_connector_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17996,7 +17996,7 @@ def get_peer_target_database(self, target_database_id, peer_target_database_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_peer_target_database got unknown kwargs: {extra_kwargs!r}") @@ -18006,9 +18006,9 @@ def get_peer_target_database(self, target_database_id, peer_target_database_id, "peerTargetDatabaseId": peer_target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18017,7 +18017,7 @@ def get_peer_target_database(self, target_database_id, peer_target_database_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18101,7 +18101,7 @@ def get_profile(self, user_assessment_id, profile_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_profile got unknown kwargs: {extra_kwargs!r}") @@ -18111,9 +18111,9 @@ def get_profile(self, user_assessment_id, profile_name, **kwargs): "profileName": profile_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18122,7 +18122,7 @@ def get_profile(self, user_assessment_id, profile_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18203,7 +18203,7 @@ def get_referential_relation(self, sensitive_data_model_id, referential_relation "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_referential_relation got unknown kwargs: {extra_kwargs!r}") @@ -18213,9 +18213,9 @@ def get_referential_relation(self, sensitive_data_model_id, referential_relation "referentialRelationKey": referential_relation_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18224,7 +18224,7 @@ def get_referential_relation(self, sensitive_data_model_id, referential_relation "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18302,7 +18302,7 @@ def get_report(self, report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_report got unknown kwargs: {extra_kwargs!r}") @@ -18311,9 +18311,9 @@ def get_report(self, report_id, **kwargs): "reportId": report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18322,7 +18322,7 @@ def get_report(self, report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18400,7 +18400,7 @@ def get_report_content(self, report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_report_content got unknown kwargs: {extra_kwargs!r}") @@ -18409,9 +18409,9 @@ def get_report_content(self, report_id, **kwargs): "reportId": report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18420,7 +18420,7 @@ def get_report_content(self, report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18498,7 +18498,7 @@ def get_report_definition(self, report_definition_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_report_definition got unknown kwargs: {extra_kwargs!r}") @@ -18507,9 +18507,9 @@ def get_report_definition(self, report_definition_id, **kwargs): "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18518,7 +18518,7 @@ def get_report_definition(self, report_definition_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18596,7 +18596,7 @@ def get_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sdm_masking_policy_difference got unknown kwargs: {extra_kwargs!r}") @@ -18605,9 +18605,9 @@ def get_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, ** "sdmMaskingPolicyDifferenceId": sdm_masking_policy_difference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18616,7 +18616,7 @@ def get_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18694,7 +18694,7 @@ def get_security_assessment(self, security_assessment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_assessment got unknown kwargs: {extra_kwargs!r}") @@ -18703,9 +18703,9 @@ def get_security_assessment(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18714,7 +18714,7 @@ def get_security_assessment(self, security_assessment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18795,7 +18795,7 @@ def get_security_assessment_comparison(self, security_assessment_id, comparison_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_assessment_comparison got unknown kwargs: {extra_kwargs!r}") @@ -18805,9 +18805,9 @@ def get_security_assessment_comparison(self, security_assessment_id, comparison_ "comparisonSecurityAssessmentId": comparison_security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18816,7 +18816,7 @@ def get_security_assessment_comparison(self, security_assessment_id, comparison_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18894,7 +18894,7 @@ def get_security_policy(self, security_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_policy got unknown kwargs: {extra_kwargs!r}") @@ -18903,9 +18903,9 @@ def get_security_policy(self, security_policy_id, **kwargs): "securityPolicyId": security_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18914,7 +18914,7 @@ def get_security_policy(self, security_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18992,7 +18992,7 @@ def get_security_policy_config(self, security_policy_config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_policy_config got unknown kwargs: {extra_kwargs!r}") @@ -19001,9 +19001,9 @@ def get_security_policy_config(self, security_policy_config_id, **kwargs): "securityPolicyConfigId": security_policy_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19012,7 +19012,7 @@ def get_security_policy_config(self, security_policy_config_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19090,7 +19090,7 @@ def get_security_policy_deployment(self, security_policy_deployment_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_policy_deployment got unknown kwargs: {extra_kwargs!r}") @@ -19099,9 +19099,9 @@ def get_security_policy_deployment(self, security_policy_deployment_id, **kwargs "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19110,7 +19110,7 @@ def get_security_policy_deployment(self, security_policy_deployment_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19194,7 +19194,7 @@ def get_security_policy_entry_state(self, security_policy_deployment_id, securit "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_policy_entry_state got unknown kwargs: {extra_kwargs!r}") @@ -19204,9 +19204,9 @@ def get_security_policy_entry_state(self, security_policy_deployment_id, securit "securityPolicyEntryStateId": security_policy_entry_state_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19215,7 +19215,7 @@ def get_security_policy_entry_state(self, security_policy_deployment_id, securit "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19293,7 +19293,7 @@ def get_security_policy_report(self, security_policy_report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_policy_report got unknown kwargs: {extra_kwargs!r}") @@ -19302,9 +19302,9 @@ def get_security_policy_report(self, security_policy_report_id, **kwargs): "securityPolicyReportId": security_policy_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19313,7 +19313,7 @@ def get_security_policy_report(self, security_policy_report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19394,7 +19394,7 @@ def get_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sensitive_column got unknown kwargs: {extra_kwargs!r}") @@ -19404,9 +19404,9 @@ def get_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, ** "sensitiveColumnKey": sensitive_column_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19415,7 +19415,7 @@ def get_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19493,7 +19493,7 @@ def get_sensitive_data_model(self, sensitive_data_model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sensitive_data_model got unknown kwargs: {extra_kwargs!r}") @@ -19502,9 +19502,9 @@ def get_sensitive_data_model(self, sensitive_data_model_id, **kwargs): "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19513,7 +19513,7 @@ def get_sensitive_data_model(self, sensitive_data_model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19591,7 +19591,7 @@ def get_sensitive_type(self, sensitive_type_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sensitive_type got unknown kwargs: {extra_kwargs!r}") @@ -19600,9 +19600,9 @@ def get_sensitive_type(self, sensitive_type_id, **kwargs): "sensitiveTypeId": sensitive_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19611,7 +19611,7 @@ def get_sensitive_type(self, sensitive_type_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19689,7 +19689,7 @@ def get_sensitive_type_group(self, sensitive_type_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sensitive_type_group got unknown kwargs: {extra_kwargs!r}") @@ -19698,9 +19698,9 @@ def get_sensitive_type_group(self, sensitive_type_group_id, **kwargs): "sensitiveTypeGroupId": sensitive_type_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19709,7 +19709,7 @@ def get_sensitive_type_group(self, sensitive_type_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19787,7 +19787,7 @@ def get_sensitive_types_export(self, sensitive_types_export_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sensitive_types_export got unknown kwargs: {extra_kwargs!r}") @@ -19796,9 +19796,9 @@ def get_sensitive_types_export(self, sensitive_types_export_id, **kwargs): "sensitiveTypesExportId": sensitive_types_export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19807,7 +19807,7 @@ def get_sensitive_types_export(self, sensitive_types_export_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19885,7 +19885,7 @@ def get_sql_collection(self, sql_collection_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_collection got unknown kwargs: {extra_kwargs!r}") @@ -19894,9 +19894,9 @@ def get_sql_collection(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19905,7 +19905,7 @@ def get_sql_collection(self, sql_collection_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19983,7 +19983,7 @@ def get_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_firewall_allowed_sql got unknown kwargs: {extra_kwargs!r}") @@ -19992,9 +19992,9 @@ def get_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs): "sqlFirewallAllowedSqlId": sql_firewall_allowed_sql_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20003,7 +20003,7 @@ def get_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20081,7 +20081,7 @@ def get_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -20090,9 +20090,9 @@ def get_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): "sqlFirewallPolicyId": sql_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20101,7 +20101,7 @@ def get_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20179,7 +20179,7 @@ def get_target_alert_policy_association(self, target_alert_policy_association_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_alert_policy_association got unknown kwargs: {extra_kwargs!r}") @@ -20188,9 +20188,9 @@ def get_target_alert_policy_association(self, target_alert_policy_association_id "targetAlertPolicyAssociationId": target_alert_policy_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20199,7 +20199,7 @@ def get_target_alert_policy_association(self, target_alert_policy_association_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20277,7 +20277,7 @@ def get_target_database(self, target_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_database got unknown kwargs: {extra_kwargs!r}") @@ -20286,9 +20286,9 @@ def get_target_database(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20297,7 +20297,7 @@ def get_target_database(self, target_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20375,7 +20375,7 @@ def get_target_database_group(self, target_database_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_target_database_group got unknown kwargs: {extra_kwargs!r}") @@ -20384,9 +20384,9 @@ def get_target_database_group(self, target_database_group_id, **kwargs): "targetDatabaseGroupId": target_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20395,7 +20395,7 @@ def get_target_database_group(self, target_database_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20488,7 +20488,7 @@ def get_template_baseline_comparison(self, security_assessment_id, comparison_se "finding_key", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_template_baseline_comparison got unknown kwargs: {extra_kwargs!r}") @@ -20498,9 +20498,9 @@ def get_template_baseline_comparison(self, security_assessment_id, comparison_se "comparisonSecurityAssessmentId": comparison_security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20509,14 +20509,14 @@ def get_template_baseline_comparison(self, security_assessment_id, comparison_se "category": kwargs.get("category", missing), "findingKey": kwargs.get("finding_key", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20596,7 +20596,7 @@ def get_unified_audit_policy(self, unified_audit_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_unified_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -20605,9 +20605,9 @@ def get_unified_audit_policy(self, unified_audit_policy_id, **kwargs): "unifiedAuditPolicyId": unified_audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20616,7 +20616,7 @@ def get_unified_audit_policy(self, unified_audit_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20694,7 +20694,7 @@ def get_unified_audit_policy_definition(self, unified_audit_policy_definition_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_unified_audit_policy_definition got unknown kwargs: {extra_kwargs!r}") @@ -20703,9 +20703,9 @@ def get_unified_audit_policy_definition(self, unified_audit_policy_definition_id "unifiedAuditPolicyDefinitionId": unified_audit_policy_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20714,7 +20714,7 @@ def get_unified_audit_policy_definition(self, unified_audit_policy_definition_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20792,7 +20792,7 @@ def get_user_assessment(self, user_assessment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_assessment got unknown kwargs: {extra_kwargs!r}") @@ -20801,9 +20801,9 @@ def get_user_assessment(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20812,7 +20812,7 @@ def get_user_assessment(self, user_assessment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20893,7 +20893,7 @@ def get_user_assessment_comparison(self, user_assessment_id, comparison_user_ass "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_assessment_comparison got unknown kwargs: {extra_kwargs!r}") @@ -20903,9 +20903,9 @@ def get_user_assessment_comparison(self, user_assessment_id, comparison_user_ass "comparisonUserAssessmentId": comparison_user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20914,7 +20914,7 @@ def get_user_assessment_comparison(self, user_assessment_id, comparison_user_ass "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20992,7 +20992,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -21001,9 +21001,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21012,7 +21012,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21201,7 +21201,7 @@ def list_alert_analytics(self, compartment_id, **kwargs): "group_by", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alert_analytics got unknown kwargs: {extra_kwargs!r}") @@ -21258,7 +21258,7 @@ def list_alert_analytics(self, compartment_id, **kwargs): "summaryField": self.base_client.generate_collection_format_param(kwargs.get("summary_field", missing), 'multi'), "groupBy": self.base_client.generate_collection_format_param(kwargs.get("group_by", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21267,7 +21267,7 @@ def list_alert_analytics(self, compartment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21427,7 +21427,7 @@ def list_alert_policies(self, compartment_id, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alert_policies got unknown kwargs: {extra_kwargs!r}") @@ -21483,14 +21483,14 @@ def list_alert_policies(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21581,7 +21581,7 @@ def list_alert_policy_rules(self, alert_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alert_policy_rules got unknown kwargs: {extra_kwargs!r}") @@ -21590,9 +21590,9 @@ def list_alert_policy_rules(self, alert_policy_id, **kwargs): "alertPolicyId": alert_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21600,14 +21600,14 @@ def list_alert_policy_rules(self, alert_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21762,7 +21762,7 @@ def list_alerts(self, compartment_id, **kwargs): "scim_query", "field" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alerts got unknown kwargs: {extra_kwargs!r}") @@ -21808,14 +21808,14 @@ def list_alerts(self, compartment_id, **kwargs): "scimQuery": kwargs.get("scim_query", missing), "field": self.base_client.generate_collection_format_param(kwargs.get("field", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21930,7 +21930,7 @@ def list_associated_resources(self, attribute_set_id, **kwargs): "associated_resource_type", "associated_resource_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_associated_resources got unknown kwargs: {extra_kwargs!r}") @@ -21939,9 +21939,9 @@ def list_associated_resources(self, attribute_set_id, **kwargs): "attributeSetId": attribute_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21958,7 +21958,7 @@ def list_associated_resources(self, attribute_set_id, **kwargs): "associatedResourceType": kwargs.get("associated_resource_type", missing), "associatedResourceId": kwargs.get("associated_resource_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21967,7 +21967,7 @@ def list_associated_resources(self, attribute_set_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22131,7 +22131,7 @@ def list_attribute_sets(self, compartment_id, **kwargs): "is_user_defined", "in_use" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attribute_sets got unknown kwargs: {extra_kwargs!r}") @@ -22193,14 +22193,14 @@ def list_attribute_sets(self, compartment_id, **kwargs): "isUserDefined": kwargs.get("is_user_defined", missing), "inUse": kwargs.get("in_use", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22344,7 +22344,7 @@ def list_audit_archive_retrievals(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_archive_retrievals got unknown kwargs: {extra_kwargs!r}") @@ -22392,14 +22392,14 @@ def list_audit_archive_retrievals(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22590,7 +22590,7 @@ def list_audit_event_analytics(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_event_analytics got unknown kwargs: {extra_kwargs!r}") @@ -22647,7 +22647,7 @@ def list_audit_event_analytics(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22656,7 +22656,7 @@ def list_audit_event_analytics(self, compartment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22802,7 +22802,7 @@ def list_audit_events(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_events got unknown kwargs: {extra_kwargs!r}") @@ -22838,14 +22838,14 @@ def list_audit_events(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/xml", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22999,7 +22999,7 @@ def list_audit_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_policies got unknown kwargs: {extra_kwargs!r}") @@ -23046,14 +23046,14 @@ def list_audit_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23204,7 +23204,7 @@ def list_audit_policy_analytics(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_policy_analytics got unknown kwargs: {extra_kwargs!r}") @@ -23251,14 +23251,14 @@ def list_audit_policy_analytics(self, compartment_id, **kwargs): "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23386,7 +23386,7 @@ def list_audit_profile_analytics(self, compartment_id, **kwargs): "target_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_profile_analytics got unknown kwargs: {extra_kwargs!r}") @@ -23422,14 +23422,14 @@ def list_audit_profile_analytics(self, compartment_id, **kwargs): "groupBy": self.base_client.generate_collection_format_param(kwargs.get("group_by", missing), 'multi'), "targetType": kwargs.get("target_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23604,7 +23604,7 @@ def list_audit_profiles(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_profiles got unknown kwargs: {extra_kwargs!r}") @@ -23662,14 +23662,14 @@ def list_audit_profiles(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23817,7 +23817,7 @@ def list_audit_trail_analytics(self, compartment_id, **kwargs): "target_database_group_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_trail_analytics got unknown kwargs: {extra_kwargs!r}") @@ -23850,14 +23850,14 @@ def list_audit_trail_analytics(self, compartment_id, **kwargs): "queryTimeZone": kwargs.get("query_time_zone", missing), "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24016,7 +24016,7 @@ def list_audit_trails(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_audit_trails got unknown kwargs: {extra_kwargs!r}") @@ -24071,14 +24071,14 @@ def list_audit_trails(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24209,7 +24209,7 @@ def list_available_audit_volumes(self, audit_profile_id, work_request_id, **kwar "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_available_audit_volumes got unknown kwargs: {extra_kwargs!r}") @@ -24218,9 +24218,9 @@ def list_available_audit_volumes(self, audit_profile_id, work_request_id, **kwar "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24248,14 +24248,14 @@ def list_available_audit_volumes(self, audit_profile_id, work_request_id, **kwar "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24396,7 +24396,7 @@ def list_checks(self, security_assessment_id, **kwargs): "access_level", "key" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_checks got unknown kwargs: {extra_kwargs!r}") @@ -24405,9 +24405,9 @@ def list_checks(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24467,14 +24467,14 @@ def list_checks(self, security_assessment_id, **kwargs): "accessLevel": kwargs.get("access_level", missing), "key": kwargs.get("key", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24603,7 +24603,7 @@ def list_collected_audit_volumes(self, audit_profile_id, work_request_id, **kwar "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_collected_audit_volumes got unknown kwargs: {extra_kwargs!r}") @@ -24612,9 +24612,9 @@ def list_collected_audit_volumes(self, audit_profile_id, work_request_id, **kwar "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24641,14 +24641,14 @@ def list_collected_audit_volumes(self, audit_profile_id, work_request_id, **kwar "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24780,7 +24780,7 @@ def list_columns(self, target_database_id, **kwargs): "table_name_contains", "column_name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_columns got unknown kwargs: {extra_kwargs!r}") @@ -24789,9 +24789,9 @@ def list_columns(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24822,14 +24822,14 @@ def list_columns(self, target_database_id, **kwargs): "tableNameContains": kwargs.get("table_name_contains", missing), "columnNameContains": kwargs.get("column_name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24963,7 +24963,7 @@ def list_data_safe_private_endpoints(self, compartment_id, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_safe_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -25008,14 +25008,14 @@ def list_data_safe_private_endpoints(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25187,7 +25187,7 @@ def list_database_security_configs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_security_configs got unknown kwargs: {extra_kwargs!r}") @@ -25236,14 +25236,14 @@ def list_database_security_configs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25359,7 +25359,7 @@ def list_database_table_access_entries(self, security_policy_report_id, **kwargs "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_table_access_entries got unknown kwargs: {extra_kwargs!r}") @@ -25368,9 +25368,9 @@ def list_database_table_access_entries(self, security_policy_report_id, **kwargs "securityPolicyReportId": security_policy_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25395,14 +25395,14 @@ def list_database_table_access_entries(self, security_policy_report_id, **kwargs "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25524,7 +25524,7 @@ def list_database_view_access_entries(self, security_policy_report_id, **kwargs) "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_view_access_entries got unknown kwargs: {extra_kwargs!r}") @@ -25533,9 +25533,9 @@ def list_database_view_access_entries(self, security_policy_report_id, **kwargs) "securityPolicyReportId": security_policy_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25561,14 +25561,14 @@ def list_database_view_access_entries(self, security_policy_report_id, **kwargs) "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25703,7 +25703,7 @@ def list_difference_columns(self, sdm_masking_policy_difference_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_difference_columns got unknown kwargs: {extra_kwargs!r}") @@ -25712,9 +25712,9 @@ def list_difference_columns(self, sdm_masking_policy_difference_id, **kwargs): "sdmMaskingPolicyDifferenceId": sdm_masking_policy_difference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25765,14 +25765,14 @@ def list_difference_columns(self, sdm_masking_policy_difference_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25914,7 +25914,7 @@ def list_discovery_analytics(self, compartment_id, **kwargs): "is_common", "sensitive_type_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_discovery_analytics got unknown kwargs: {extra_kwargs!r}") @@ -25955,14 +25955,14 @@ def list_discovery_analytics(self, compartment_id, **kwargs): "isCommon": kwargs.get("is_common", missing), "sensitiveTypeGroupId": kwargs.get("sensitive_type_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26101,7 +26101,7 @@ def list_discovery_job_results(self, discovery_job_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_discovery_job_results got unknown kwargs: {extra_kwargs!r}") @@ -26110,9 +26110,9 @@ def list_discovery_job_results(self, discovery_job_id, **kwargs): "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26165,14 +26165,14 @@ def list_discovery_job_results(self, discovery_job_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26313,7 +26313,7 @@ def list_discovery_jobs(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_discovery_jobs got unknown kwargs: {extra_kwargs!r}") @@ -26360,14 +26360,14 @@ def list_discovery_jobs(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26550,7 +26550,7 @@ def list_finding_analytics(self, compartment_id, **kwargs): "contains_severity", "scim_query" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_finding_analytics got unknown kwargs: {extra_kwargs!r}") @@ -26617,14 +26617,14 @@ def list_finding_analytics(self, compartment_id, **kwargs): "containsSeverity": self.base_client.generate_collection_format_param(kwargs.get("contains_severity", missing), 'multi'), "scimQuery": kwargs.get("scim_query", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26829,7 +26829,7 @@ def list_findings(self, security_assessment_id, **kwargs): "sort_order", "finding_key" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_findings got unknown kwargs: {extra_kwargs!r}") @@ -26838,9 +26838,9 @@ def list_findings(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26931,14 +26931,14 @@ def list_findings(self, security_assessment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "findingKey": kwargs.get("finding_key", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27102,7 +27102,7 @@ def list_findings_change_audit_logs(self, security_assessment_id, **kwargs): "time_updated_less_than", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_findings_change_audit_logs got unknown kwargs: {extra_kwargs!r}") @@ -27111,9 +27111,9 @@ def list_findings_change_audit_logs(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27153,14 +27153,14 @@ def list_findings_change_audit_logs(self, security_assessment_id, **kwargs): "timeUpdatedGreaterThanOrEqualTo": kwargs.get("time_updated_greater_than_or_equal_to", missing), "timeUpdatedLessThan": kwargs.get("time_updated_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27298,7 +27298,7 @@ def list_grants(self, user_assessment_id, user_key, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_grants got unknown kwargs: {extra_kwargs!r}") @@ -27308,9 +27308,9 @@ def list_grants(self, user_assessment_id, user_key, **kwargs): "userKey": user_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27341,14 +27341,14 @@ def list_grants(self, user_assessment_id, user_key, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27444,7 +27444,7 @@ def list_grouped_sensitive_types(self, sensitive_type_group_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_grouped_sensitive_types got unknown kwargs: {extra_kwargs!r}") @@ -27453,9 +27453,9 @@ def list_grouped_sensitive_types(self, sensitive_type_group_id, **kwargs): "sensitiveTypeGroupId": sensitive_type_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27464,14 +27464,14 @@ def list_grouped_sensitive_types(self, sensitive_type_group_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27629,7 +27629,7 @@ def list_library_masking_formats(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_library_masking_formats got unknown kwargs: {extra_kwargs!r}") @@ -27684,14 +27684,14 @@ def list_library_masking_formats(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27819,7 +27819,7 @@ def list_masked_columns(self, masking_report_id, **kwargs): "sensitive_type_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masked_columns got unknown kwargs: {extra_kwargs!r}") @@ -27828,9 +27828,9 @@ def list_masked_columns(self, masking_report_id, **kwargs): "maskingReportId": masking_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27868,14 +27868,14 @@ def list_masked_columns(self, masking_report_id, **kwargs): "maskingColumnGroup": self.base_client.generate_collection_format_param(kwargs.get("masking_column_group", missing), 'multi'), "sensitiveTypeId": kwargs.get("sensitive_type_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28008,7 +28008,7 @@ def list_masking_analytics(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_analytics got unknown kwargs: {extra_kwargs!r}") @@ -28047,14 +28047,14 @@ def list_masking_analytics(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28242,7 +28242,7 @@ def list_masking_columns(self, masking_policy_id, **kwargs): "time_updated_less_than", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_columns got unknown kwargs: {extra_kwargs!r}") @@ -28251,9 +28251,9 @@ def list_masking_columns(self, masking_policy_id, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28314,14 +28314,14 @@ def list_masking_columns(self, masking_policy_id, **kwargs): "timeUpdatedGreaterThanOrEqualTo": kwargs.get("time_updated_greater_than_or_equal_to", missing), "timeUpdatedLessThan": kwargs.get("time_updated_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28431,7 +28431,7 @@ def list_masking_errors(self, masking_report_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_errors got unknown kwargs: {extra_kwargs!r}") @@ -28440,9 +28440,9 @@ def list_masking_errors(self, masking_report_id, **kwargs): "maskingReportId": masking_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28474,14 +28474,14 @@ def list_masking_errors(self, masking_report_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28600,7 +28600,7 @@ def list_masking_objects(self, masking_policy_id, **kwargs): "object_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_objects got unknown kwargs: {extra_kwargs!r}") @@ -28609,9 +28609,9 @@ def list_masking_objects(self, masking_policy_id, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28646,14 +28646,14 @@ def list_masking_objects(self, masking_policy_id, **kwargs): "objectName": self.base_client.generate_collection_format_param(kwargs.get("object_name", missing), 'multi'), "objectType": self.base_client.generate_collection_format_param(kwargs.get("object_type", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28813,7 +28813,7 @@ def list_masking_policies(self, compartment_id, **kwargs): "access_level", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_policies got unknown kwargs: {extra_kwargs!r}") @@ -28862,14 +28862,14 @@ def list_masking_policies(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28977,7 +28977,7 @@ def list_masking_policy_health_report_logs(self, masking_policy_health_report_id "sort_by", "message_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_policy_health_report_logs got unknown kwargs: {extra_kwargs!r}") @@ -28986,9 +28986,9 @@ def list_masking_policy_health_report_logs(self, masking_policy_health_report_id "maskingPolicyHealthReportId": masking_policy_health_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29020,14 +29020,14 @@ def list_masking_policy_health_report_logs(self, masking_policy_health_report_id "sortBy": kwargs.get("sort_by", missing), "messageType": kwargs.get("message_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29167,7 +29167,7 @@ def list_masking_policy_health_reports(self, compartment_id, **kwargs): "masking_policy_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_policy_health_reports got unknown kwargs: {extra_kwargs!r}") @@ -29214,14 +29214,14 @@ def list_masking_policy_health_reports(self, compartment_id, **kwargs): "maskingPolicyId": kwargs.get("masking_policy_id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29345,7 +29345,7 @@ def list_masking_policy_referential_relations(self, masking_policy_id, **kwargs) "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_policy_referential_relations got unknown kwargs: {extra_kwargs!r}") @@ -29354,9 +29354,9 @@ def list_masking_policy_referential_relations(self, masking_policy_id, **kwargs) "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29392,14 +29392,14 @@ def list_masking_policy_referential_relations(self, masking_policy_id, **kwargs) "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29529,7 +29529,7 @@ def list_masking_reports(self, compartment_id, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_reports got unknown kwargs: {extra_kwargs!r}") @@ -29567,14 +29567,14 @@ def list_masking_reports(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29681,7 +29681,7 @@ def list_masking_schemas(self, masking_policy_id, **kwargs): "schema_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_masking_schemas got unknown kwargs: {extra_kwargs!r}") @@ -29690,9 +29690,9 @@ def list_masking_schemas(self, masking_policy_id, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29717,14 +29717,14 @@ def list_masking_schemas(self, masking_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "schemaName": self.base_client.generate_collection_format_param(kwargs.get("schema_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29858,7 +29858,7 @@ def list_on_prem_connectors(self, compartment_id, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_on_prem_connectors got unknown kwargs: {extra_kwargs!r}") @@ -29903,14 +29903,14 @@ def list_on_prem_connectors(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30023,7 +30023,7 @@ def list_password_expiry_date_analytics(self, user_assessment_id, **kwargs): "time_password_expiry_less_than", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_password_expiry_date_analytics got unknown kwargs: {extra_kwargs!r}") @@ -30032,9 +30032,9 @@ def list_password_expiry_date_analytics(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30051,14 +30051,14 @@ def list_password_expiry_date_analytics(self, user_assessment_id, **kwargs): "userCategory": kwargs.get("user_category", missing), "timePasswordExpiryLessThan": kwargs.get("time_password_expiry_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30165,7 +30165,7 @@ def list_peer_target_databases(self, target_database_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_peer_target_databases got unknown kwargs: {extra_kwargs!r}") @@ -30174,9 +30174,9 @@ def list_peer_target_databases(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30184,7 +30184,7 @@ def list_peer_target_databases(self, target_database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -30193,7 +30193,7 @@ def list_peer_target_databases(self, target_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30339,7 +30339,7 @@ def list_profile_analytics(self, user_assessment_id, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_profile_analytics got unknown kwargs: {extra_kwargs!r}") @@ -30348,9 +30348,9 @@ def list_profile_analytics(self, user_assessment_id, compartment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30386,14 +30386,14 @@ def list_profile_analytics(self, user_assessment_id, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30592,7 +30592,7 @@ def list_profile_summaries(self, user_assessment_id, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_profile_summaries got unknown kwargs: {extra_kwargs!r}") @@ -30601,9 +30601,9 @@ def list_profile_summaries(self, user_assessment_id, compartment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30651,14 +30651,14 @@ def list_profile_summaries(self, user_assessment_id, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30789,7 +30789,7 @@ def list_referential_relations(self, sensitive_data_model_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_referential_relations got unknown kwargs: {extra_kwargs!r}") @@ -30798,9 +30798,9 @@ def list_referential_relations(self, sensitive_data_model_id, **kwargs): "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30837,14 +30837,14 @@ def list_referential_relations(self, sensitive_data_model_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30992,7 +30992,7 @@ def list_report_definitions(self, compartment_id, **kwargs): "lifecycle_state", "category" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_report_definitions got unknown kwargs: {extra_kwargs!r}") @@ -31053,14 +31053,14 @@ def list_report_definitions(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "category": kwargs.get("category", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31227,7 +31227,7 @@ def list_reports(self, compartment_id, **kwargs): "type", "data_source" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_reports got unknown kwargs: {extra_kwargs!r}") @@ -31298,14 +31298,14 @@ def list_reports(self, compartment_id, **kwargs): "type": kwargs.get("type", missing), "dataSource": kwargs.get("data_source", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31403,7 +31403,7 @@ def list_role_grant_paths(self, security_policy_report_id, grantee, granted_role "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_role_grant_paths got unknown kwargs: {extra_kwargs!r}") @@ -31412,9 +31412,9 @@ def list_role_grant_paths(self, security_policy_report_id, grantee, granted_role "securityPolicyReportId": security_policy_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31424,14 +31424,14 @@ def list_role_grant_paths(self, security_policy_report_id, grantee, granted_role "grantee": grantee, "grantedRole": granted_role } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31551,7 +31551,7 @@ def list_roles(self, target_database_id, **kwargs): "sort_by", "role_name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_roles got unknown kwargs: {extra_kwargs!r}") @@ -31560,9 +31560,9 @@ def list_roles(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31590,14 +31590,14 @@ def list_roles(self, target_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "roleNameContains": kwargs.get("role_name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31713,7 +31713,7 @@ def list_schemas(self, target_database_id, **kwargs): "is_oracle_maintained", "schema_name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schemas got unknown kwargs: {extra_kwargs!r}") @@ -31722,9 +31722,9 @@ def list_schemas(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31751,14 +31751,14 @@ def list_schemas(self, target_database_id, **kwargs): "isOracleMaintained": kwargs.get("is_oracle_maintained", missing), "schemaNameContains": kwargs.get("schema_name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31895,7 +31895,7 @@ def list_sdm_masking_policy_differences(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sdm_masking_policy_differences got unknown kwargs: {extra_kwargs!r}") @@ -31941,14 +31941,14 @@ def list_sdm_masking_policy_differences(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32149,7 +32149,7 @@ def list_security_assessments(self, compartment_id, **kwargs): "target_database_group_id", "template_assessment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_assessments got unknown kwargs: {extra_kwargs!r}") @@ -32225,14 +32225,14 @@ def list_security_assessments(self, compartment_id, **kwargs): "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing), "templateAssessmentId": kwargs.get("template_assessment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32339,7 +32339,7 @@ def list_security_feature_analytics(self, compartment_id, **kwargs): "opc_request_id", "target_database_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_feature_analytics got unknown kwargs: {extra_kwargs!r}") @@ -32358,14 +32358,14 @@ def list_security_feature_analytics(self, compartment_id, **kwargs): "targetId": kwargs.get("target_id", missing), "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32543,7 +32543,7 @@ def list_security_features(self, compartment_id, **kwargs): "page", "target_database_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_features got unknown kwargs: {extra_kwargs!r}") @@ -32652,14 +32652,14 @@ def list_security_features(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32810,7 +32810,7 @@ def list_security_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_policies got unknown kwargs: {extra_kwargs!r}") @@ -32863,14 +32863,14 @@ def list_security_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33038,7 +33038,7 @@ def list_security_policy_configs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_policy_configs got unknown kwargs: {extra_kwargs!r}") @@ -33086,14 +33086,14 @@ def list_security_policy_configs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33252,7 +33252,7 @@ def list_security_policy_deployments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_policy_deployments got unknown kwargs: {extra_kwargs!r}") @@ -33307,14 +33307,14 @@ def list_security_policy_deployments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33426,7 +33426,7 @@ def list_security_policy_entry_states(self, security_policy_deployment_id, **kwa "target_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_policy_entry_states got unknown kwargs: {extra_kwargs!r}") @@ -33435,9 +33435,9 @@ def list_security_policy_entry_states(self, security_policy_deployment_id, **kwa "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33463,14 +33463,14 @@ def list_security_policy_entry_states(self, security_policy_deployment_id, **kwa "securityPolicyEntryType": kwargs.get("security_policy_entry_type", missing), "targetId": kwargs.get("target_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33621,7 +33621,7 @@ def list_security_policy_reports(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_policy_reports got unknown kwargs: {extra_kwargs!r}") @@ -33667,14 +33667,14 @@ def list_security_policy_reports(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33825,7 +33825,7 @@ def list_sensitive_column_analytics(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_column_analytics got unknown kwargs: {extra_kwargs!r}") @@ -33861,14 +33861,14 @@ def list_sensitive_column_analytics(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34082,7 +34082,7 @@ def list_sensitive_columns(self, sensitive_data_model_id, **kwargs): "opc_request_id", "is_case_in_sensitive" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_columns got unknown kwargs: {extra_kwargs!r}") @@ -34091,9 +34091,9 @@ def list_sensitive_columns(self, sensitive_data_model_id, **kwargs): "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34181,14 +34181,14 @@ def list_sensitive_columns(self, sensitive_data_model_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "isCaseInSensitive": kwargs.get("is_case_in_sensitive", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34297,7 +34297,7 @@ def list_sensitive_data_model_sensitive_types(self, sensitive_data_model_id, **k "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_data_model_sensitive_types got unknown kwargs: {extra_kwargs!r}") @@ -34306,9 +34306,9 @@ def list_sensitive_data_model_sensitive_types(self, sensitive_data_model_id, **k "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34333,14 +34333,14 @@ def list_sensitive_data_model_sensitive_types(self, sensitive_data_model_id, **k "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34496,7 +34496,7 @@ def list_sensitive_data_models(self, compartment_id, **kwargs): "page", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_data_models got unknown kwargs: {extra_kwargs!r}") @@ -34544,14 +34544,14 @@ def list_sensitive_data_models(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34668,7 +34668,7 @@ def list_sensitive_objects(self, sensitive_data_model_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_objects got unknown kwargs: {extra_kwargs!r}") @@ -34677,9 +34677,9 @@ def list_sensitive_objects(self, sensitive_data_model_id, **kwargs): "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34714,14 +34714,14 @@ def list_sensitive_objects(self, sensitive_data_model_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34830,7 +34830,7 @@ def list_sensitive_schemas(self, sensitive_data_model_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_schemas got unknown kwargs: {extra_kwargs!r}") @@ -34839,9 +34839,9 @@ def list_sensitive_schemas(self, sensitive_data_model_id, **kwargs): "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34866,14 +34866,14 @@ def list_sensitive_schemas(self, sensitive_data_model_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35025,7 +35025,7 @@ def list_sensitive_type_groups(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_type_groups got unknown kwargs: {extra_kwargs!r}") @@ -35072,14 +35072,14 @@ def list_sensitive_type_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35254,7 +35254,7 @@ def list_sensitive_types(self, compartment_id, **kwargs): "lifecycle_state", "is_common" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_types got unknown kwargs: {extra_kwargs!r}") @@ -35320,14 +35320,14 @@ def list_sensitive_types(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "isCommon": kwargs.get("is_common", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35479,7 +35479,7 @@ def list_sensitive_types_exports(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sensitive_types_exports got unknown kwargs: {extra_kwargs!r}") @@ -35526,14 +35526,14 @@ def list_sensitive_types_exports(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35684,7 +35684,7 @@ def list_sql_collection_analytics(self, compartment_id, **kwargs): "time_started", "time_ended" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_collection_analytics got unknown kwargs: {extra_kwargs!r}") @@ -35724,14 +35724,14 @@ def list_sql_collection_analytics(self, compartment_id, **kwargs): "timeStarted": kwargs.get("time_started", missing), "timeEnded": kwargs.get("time_ended", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35839,7 +35839,7 @@ def list_sql_collection_log_insights(self, time_started, time_ended, sql_collect "opc_request_id", "group_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_collection_log_insights got unknown kwargs: {extra_kwargs!r}") @@ -35848,9 +35848,9 @@ def list_sql_collection_log_insights(self, time_started, time_ended, sql_collect "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35868,14 +35868,14 @@ def list_sql_collection_log_insights(self, time_started, time_ended, sql_collect "timeEnded": time_ended, "groupBy": kwargs.get("group_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36052,7 +36052,7 @@ def list_sql_collections(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_collections got unknown kwargs: {extra_kwargs!r}") @@ -36102,14 +36102,14 @@ def list_sql_collections(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36244,7 +36244,7 @@ def list_sql_firewall_allowed_sql_analytics(self, compartment_id, **kwargs): "group_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_firewall_allowed_sql_analytics got unknown kwargs: {extra_kwargs!r}") @@ -36273,14 +36273,14 @@ def list_sql_firewall_allowed_sql_analytics(self, compartment_id, **kwargs): "scimQuery": kwargs.get("scim_query", missing), "groupBy": self.base_client.generate_collection_format_param(kwargs.get("group_by", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36421,7 +36421,7 @@ def list_sql_firewall_allowed_sqls(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_firewall_allowed_sqls got unknown kwargs: {extra_kwargs!r}") @@ -36457,14 +36457,14 @@ def list_sql_firewall_allowed_sqls(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36642,7 +36642,7 @@ def list_sql_firewall_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_firewall_policies got unknown kwargs: {extra_kwargs!r}") @@ -36699,14 +36699,14 @@ def list_sql_firewall_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36851,7 +36851,7 @@ def list_sql_firewall_policy_analytics(self, compartment_id, **kwargs): "time_ended", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_firewall_policy_analytics got unknown kwargs: {extra_kwargs!r}") @@ -36890,14 +36890,14 @@ def list_sql_firewall_policy_analytics(self, compartment_id, **kwargs): "timeStarted": kwargs.get("time_started", missing), "timeEnded": kwargs.get("time_ended", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37063,7 +37063,7 @@ def list_sql_firewall_violation_analytics(self, compartment_id, **kwargs): "group_by", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_firewall_violation_analytics got unknown kwargs: {extra_kwargs!r}") @@ -37120,7 +37120,7 @@ def list_sql_firewall_violation_analytics(self, compartment_id, **kwargs): "summaryField": self.base_client.generate_collection_format_param(kwargs.get("summary_field", missing), 'multi'), "groupBy": self.base_client.generate_collection_format_param(kwargs.get("group_by", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -37128,7 +37128,7 @@ def list_sql_firewall_violation_analytics(self, compartment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37257,7 +37257,7 @@ def list_sql_firewall_violations(self, compartment_id, **kwargs): "sort_by", "scim_query" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_firewall_violations got unknown kwargs: {extra_kwargs!r}") @@ -37293,14 +37293,14 @@ def list_sql_firewall_violations(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "scimQuery": kwargs.get("scim_query", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/xml", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37418,7 +37418,7 @@ def list_tables(self, target_database_id, **kwargs): "table_name_contains", "schema_name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tables got unknown kwargs: {extra_kwargs!r}") @@ -37427,9 +37427,9 @@ def list_tables(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -37457,14 +37457,14 @@ def list_tables(self, target_database_id, **kwargs): "tableNameContains": kwargs.get("table_name_contains", missing), "schemaNameContains": kwargs.get("schema_name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37619,7 +37619,7 @@ def list_target_alert_policy_associations(self, compartment_id, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_alert_policy_associations got unknown kwargs: {extra_kwargs!r}") @@ -37667,14 +37667,14 @@ def list_target_alert_policy_associations(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37834,7 +37834,7 @@ def list_target_database_groups(self, compartment_id, **kwargs): "page", "target_database_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_database_groups got unknown kwargs: {extra_kwargs!r}") @@ -37882,14 +37882,14 @@ def list_target_database_groups(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38037,7 +38037,7 @@ def list_target_databases(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_databases got unknown kwargs: {extra_kwargs!r}") @@ -38099,14 +38099,14 @@ def list_target_databases(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38214,7 +38214,7 @@ def list_target_overrides(self, audit_profile_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_overrides got unknown kwargs: {extra_kwargs!r}") @@ -38223,9 +38223,9 @@ def list_target_overrides(self, audit_profile_id, **kwargs): "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38250,14 +38250,14 @@ def list_target_overrides(self, audit_profile_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38404,7 +38404,7 @@ def list_template_analytics(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_template_analytics got unknown kwargs: {extra_kwargs!r}") @@ -38430,14 +38430,14 @@ def list_template_analytics(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38571,7 +38571,7 @@ def list_template_association_analytics(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_template_association_analytics got unknown kwargs: {extra_kwargs!r}") @@ -38594,14 +38594,14 @@ def list_template_association_analytics(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38777,7 +38777,7 @@ def list_unified_audit_policies(self, compartment_id, **kwargs): "opc_request_id", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_unified_audit_policies got unknown kwargs: {extra_kwargs!r}") @@ -38827,14 +38827,14 @@ def list_unified_audit_policies(self, compartment_id, **kwargs): "compartmentId": compartment_id, "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38993,7 +38993,7 @@ def list_unified_audit_policy_definitions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_unified_audit_policy_definitions got unknown kwargs: {extra_kwargs!r}") @@ -39048,14 +39048,14 @@ def list_unified_audit_policy_definitions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39157,7 +39157,7 @@ def list_user_access_analytics(self, user_assessment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_access_analytics got unknown kwargs: {extra_kwargs!r}") @@ -39166,9 +39166,9 @@ def list_user_access_analytics(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39192,14 +39192,14 @@ def list_user_access_analytics(self, user_assessment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39414,7 +39414,7 @@ def list_user_analytics(self, user_assessment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_analytics got unknown kwargs: {extra_kwargs!r}") @@ -39423,9 +39423,9 @@ def list_user_analytics(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39472,14 +39472,14 @@ def list_user_analytics(self, user_assessment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39678,7 +39678,7 @@ def list_user_assessments(self, compartment_id, **kwargs): "target_type", "target_database_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_assessments got unknown kwargs: {extra_kwargs!r}") @@ -39753,14 +39753,14 @@ def list_user_assessments(self, compartment_id, **kwargs): "targetType": kwargs.get("target_type", missing), "targetDatabaseGroupId": kwargs.get("target_database_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39988,7 +39988,7 @@ def list_users(self, user_assessment_id, **kwargs): "schema_list", "are_all_schemas_accessible" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_users got unknown kwargs: {extra_kwargs!r}") @@ -39997,9 +39997,9 @@ def list_users(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40051,14 +40051,14 @@ def list_users(self, user_assessment_id, **kwargs): "schemaList": self.base_client.generate_collection_format_param(kwargs.get("schema_list", missing), 'multi'), "areAllSchemasAccessible": kwargs.get("are_all_schemas_accessible", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40150,7 +40150,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -40159,9 +40159,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40169,14 +40169,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40268,7 +40268,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -40277,9 +40277,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40287,14 +40287,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40425,7 +40425,7 @@ def list_work_requests(self, compartment_id, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -40463,14 +40463,14 @@ def list_work_requests(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40558,7 +40558,7 @@ def mask_data(self, masking_policy_id, mask_data_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"mask_data got unknown kwargs: {extra_kwargs!r}") @@ -40567,9 +40567,9 @@ def mask_data(self, masking_policy_id, mask_data_details, **kwargs): "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40579,7 +40579,7 @@ def mask_data(self, masking_policy_id, mask_data_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40676,7 +40676,7 @@ def modify_global_settings(self, modify_global_settings_details, compartment_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_global_settings got unknown kwargs: {extra_kwargs!r}") @@ -40685,9 +40685,9 @@ def modify_global_settings(self, modify_global_settings_details, compartment_id, "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40698,7 +40698,7 @@ def modify_global_settings(self, modify_global_settings_details, compartment_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40799,7 +40799,7 @@ def patch_alerts(self, patch_alerts_details, **kwargs): "compartment_id_in_subtree", "access_level" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_alerts got unknown kwargs: {extra_kwargs!r}") @@ -40815,7 +40815,7 @@ def patch_alerts(self, patch_alerts_details, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "accessLevel": kwargs.get("access_level", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -40823,7 +40823,7 @@ def patch_alerts(self, patch_alerts_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40913,7 +40913,7 @@ def patch_checks(self, security_assessment_id, patch_checks_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_checks got unknown kwargs: {extra_kwargs!r}") @@ -40922,9 +40922,9 @@ def patch_checks(self, security_assessment_id, patch_checks_details, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40934,7 +40934,7 @@ def patch_checks(self, security_assessment_id, patch_checks_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41024,7 +41024,7 @@ def patch_discovery_job_results(self, discovery_job_id, patch_discovery_job_resu "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_discovery_job_results got unknown kwargs: {extra_kwargs!r}") @@ -41033,9 +41033,9 @@ def patch_discovery_job_results(self, discovery_job_id, patch_discovery_job_resu "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41045,7 +41045,7 @@ def patch_discovery_job_results(self, discovery_job_id, patch_discovery_job_resu "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41134,7 +41134,7 @@ def patch_findings(self, security_assessment_id, patch_findings_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_findings got unknown kwargs: {extra_kwargs!r}") @@ -41143,9 +41143,9 @@ def patch_findings(self, security_assessment_id, patch_findings_details, **kwarg "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41155,7 +41155,7 @@ def patch_findings(self, security_assessment_id, patch_findings_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41245,7 +41245,7 @@ def patch_grouped_sensitive_types(self, sensitive_type_group_id, patch_grouped_s "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_grouped_sensitive_types got unknown kwargs: {extra_kwargs!r}") @@ -41254,9 +41254,9 @@ def patch_grouped_sensitive_types(self, sensitive_type_group_id, patch_grouped_s "sensitiveTypeGroupId": sensitive_type_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41266,7 +41266,7 @@ def patch_grouped_sensitive_types(self, sensitive_type_group_id, patch_grouped_s "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41357,7 +41357,7 @@ def patch_masking_columns(self, masking_policy_id, patch_masking_columns_details "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_masking_columns got unknown kwargs: {extra_kwargs!r}") @@ -41366,9 +41366,9 @@ def patch_masking_columns(self, masking_policy_id, patch_masking_columns_details "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41378,7 +41378,7 @@ def patch_masking_columns(self, masking_policy_id, patch_masking_columns_details "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41468,7 +41468,7 @@ def patch_sdm_masking_policy_difference_columns(self, sdm_masking_policy_differe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_sdm_masking_policy_difference_columns got unknown kwargs: {extra_kwargs!r}") @@ -41477,9 +41477,9 @@ def patch_sdm_masking_policy_difference_columns(self, sdm_masking_policy_differe "sdmMaskingPolicyDifferenceId": sdm_masking_policy_difference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41489,7 +41489,7 @@ def patch_sdm_masking_policy_difference_columns(self, sdm_masking_policy_differe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41580,7 +41580,7 @@ def patch_sensitive_columns(self, sensitive_data_model_id, patch_sensitive_colum "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_sensitive_columns got unknown kwargs: {extra_kwargs!r}") @@ -41589,9 +41589,9 @@ def patch_sensitive_columns(self, sensitive_data_model_id, patch_sensitive_colum "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41601,7 +41601,7 @@ def patch_sensitive_columns(self, sensitive_data_model_id, patch_sensitive_colum "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41688,7 +41688,7 @@ def patch_sql_firewall_allowed_sql(self, patch_sql_firewall_allowed_sql_details, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_sql_firewall_allowed_sql got unknown kwargs: {extra_kwargs!r}") @@ -41699,7 +41699,7 @@ def patch_sql_firewall_allowed_sql(self, patch_sql_firewall_allowed_sql_details, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41783,7 +41783,7 @@ def patch_target_alert_policy_association(self, patch_target_alert_policy_associ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_target_alert_policy_association got unknown kwargs: {extra_kwargs!r}") @@ -41794,7 +41794,7 @@ def patch_target_alert_policy_association(self, patch_target_alert_policy_associ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41888,7 +41888,7 @@ def provision_audit_policy(self, provision_audit_policy_details, audit_policy_id "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"provision_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -41897,9 +41897,9 @@ def provision_audit_policy(self, provision_audit_policy_details, audit_policy_id "auditPolicyId": audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41910,7 +41910,7 @@ def provision_audit_policy(self, provision_audit_policy_details, audit_policy_id "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42004,7 +42004,7 @@ def purge_sql_collection_logs(self, sql_collection_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"purge_sql_collection_logs got unknown kwargs: {extra_kwargs!r}") @@ -42013,9 +42013,9 @@ def purge_sql_collection_logs(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42026,7 +42026,7 @@ def purge_sql_collection_logs(self, sql_collection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42118,7 +42118,7 @@ def refresh_database_security_configuration(self, database_security_config_id, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_database_security_configuration got unknown kwargs: {extra_kwargs!r}") @@ -42127,9 +42127,9 @@ def refresh_database_security_configuration(self, database_security_config_id, * "databaseSecurityConfigId": database_security_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42140,7 +42140,7 @@ def refresh_database_security_configuration(self, database_security_config_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42236,7 +42236,7 @@ def refresh_security_assessment(self, security_assessment_id, run_security_asses "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_security_assessment got unknown kwargs: {extra_kwargs!r}") @@ -42245,9 +42245,9 @@ def refresh_security_assessment(self, security_assessment_id, run_security_asses "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42258,7 +42258,7 @@ def refresh_security_assessment(self, security_assessment_id, run_security_asses "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42352,7 +42352,7 @@ def refresh_security_policy_deployment(self, security_policy_deployment_id, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_security_policy_deployment got unknown kwargs: {extra_kwargs!r}") @@ -42361,9 +42361,9 @@ def refresh_security_policy_deployment(self, security_policy_deployment_id, **kw "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42374,7 +42374,7 @@ def refresh_security_policy_deployment(self, security_policy_deployment_id, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42466,7 +42466,7 @@ def refresh_sql_collection_log_insights(self, sql_collection_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_sql_collection_log_insights got unknown kwargs: {extra_kwargs!r}") @@ -42475,9 +42475,9 @@ def refresh_sql_collection_log_insights(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42488,7 +42488,7 @@ def refresh_sql_collection_log_insights(self, sql_collection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42580,7 +42580,7 @@ def refresh_target_database(self, target_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_target_database got unknown kwargs: {extra_kwargs!r}") @@ -42589,9 +42589,9 @@ def refresh_target_database(self, target_database_id, **kwargs): "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42602,7 +42602,7 @@ def refresh_target_database(self, target_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42699,7 +42699,7 @@ def refresh_user_assessment(self, user_assessment_id, run_user_assessment_detail "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_user_assessment got unknown kwargs: {extra_kwargs!r}") @@ -42708,9 +42708,9 @@ def refresh_user_assessment(self, user_assessment_id, run_user_assessment_detail "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42721,7 +42721,7 @@ def refresh_user_assessment(self, user_assessment_id, run_user_assessment_detail "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42815,7 +42815,7 @@ def remove_schedule_report(self, report_definition_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_schedule_report got unknown kwargs: {extra_kwargs!r}") @@ -42824,9 +42824,9 @@ def remove_schedule_report(self, report_definition_id, **kwargs): "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42837,7 +42837,7 @@ def remove_schedule_report(self, report_definition_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42929,7 +42929,7 @@ def remove_security_assessment_template(self, security_assessment_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_security_assessment_template got unknown kwargs: {extra_kwargs!r}") @@ -42938,9 +42938,9 @@ def remove_security_assessment_template(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42951,7 +42951,7 @@ def remove_security_assessment_template(self, security_assessment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43036,7 +43036,7 @@ def resume_audit_trail(self, audit_trail_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_audit_trail got unknown kwargs: {extra_kwargs!r}") @@ -43045,9 +43045,9 @@ def resume_audit_trail(self, audit_trail_id, **kwargs): "auditTrailId": audit_trail_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43057,7 +43057,7 @@ def resume_audit_trail(self, audit_trail_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43148,7 +43148,7 @@ def resume_work_request(self, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_work_request got unknown kwargs: {extra_kwargs!r}") @@ -43157,9 +43157,9 @@ def resume_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43170,7 +43170,7 @@ def resume_work_request(self, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43262,7 +43262,7 @@ def retrieve_audit_policies(self, audit_policy_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_audit_policies got unknown kwargs: {extra_kwargs!r}") @@ -43271,9 +43271,9 @@ def retrieve_audit_policies(self, audit_policy_id, **kwargs): "auditPolicyId": audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43284,7 +43284,7 @@ def retrieve_audit_policies(self, audit_policy_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43379,7 +43379,7 @@ def schedule_report(self, report_definition_id, schedule_report_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_report got unknown kwargs: {extra_kwargs!r}") @@ -43388,9 +43388,9 @@ def schedule_report(self, report_definition_id, schedule_report_details, **kwarg "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43401,7 +43401,7 @@ def schedule_report(self, report_definition_id, schedule_report_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43499,7 +43499,7 @@ def set_security_assessment_baseline(self, security_assessment_id, **kwargs): "opc_request_id", "base_line_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_security_assessment_baseline got unknown kwargs: {extra_kwargs!r}") @@ -43508,9 +43508,9 @@ def set_security_assessment_baseline(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43521,7 +43521,7 @@ def set_security_assessment_baseline(self, security_assessment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43619,7 +43619,7 @@ def set_user_assessment_baseline(self, user_assessment_id, **kwargs): "opc_request_id", "base_line_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_user_assessment_baseline got unknown kwargs: {extra_kwargs!r}") @@ -43628,9 +43628,9 @@ def set_user_assessment_baseline(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43641,7 +43641,7 @@ def set_user_assessment_baseline(self, user_assessment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43738,7 +43738,7 @@ def start_audit_trail(self, start_audit_trail_details, audit_trail_id, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_audit_trail got unknown kwargs: {extra_kwargs!r}") @@ -43747,9 +43747,9 @@ def start_audit_trail(self, start_audit_trail_details, audit_trail_id, **kwargs) "auditTrailId": audit_trail_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43760,7 +43760,7 @@ def start_audit_trail(self, start_audit_trail_details, audit_trail_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43854,7 +43854,7 @@ def start_sql_collection(self, sql_collection_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_sql_collection got unknown kwargs: {extra_kwargs!r}") @@ -43863,9 +43863,9 @@ def start_sql_collection(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43876,7 +43876,7 @@ def start_sql_collection(self, sql_collection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43961,7 +43961,7 @@ def stop_audit_trail(self, audit_trail_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_audit_trail got unknown kwargs: {extra_kwargs!r}") @@ -43970,9 +43970,9 @@ def stop_audit_trail(self, audit_trail_id, **kwargs): "auditTrailId": audit_trail_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43982,7 +43982,7 @@ def stop_audit_trail(self, audit_trail_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44073,7 +44073,7 @@ def stop_sql_collection(self, sql_collection_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_sql_collection got unknown kwargs: {extra_kwargs!r}") @@ -44082,9 +44082,9 @@ def stop_sql_collection(self, sql_collection_id, **kwargs): "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44095,7 +44095,7 @@ def stop_sql_collection(self, sql_collection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44187,7 +44187,7 @@ def suspend_work_request(self, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"suspend_work_request got unknown kwargs: {extra_kwargs!r}") @@ -44196,9 +44196,9 @@ def suspend_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44209,7 +44209,7 @@ def suspend_work_request(self, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44307,7 +44307,7 @@ def unset_security_assessment_baseline(self, security_assessment_id, **kwargs): "opc_request_id", "unset_security_assessment_baseline_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unset_security_assessment_baseline got unknown kwargs: {extra_kwargs!r}") @@ -44316,9 +44316,9 @@ def unset_security_assessment_baseline(self, security_assessment_id, **kwargs): "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44329,7 +44329,7 @@ def unset_security_assessment_baseline(self, security_assessment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44429,7 +44429,7 @@ def unset_user_assessment_baseline(self, user_assessment_id, **kwargs): "opc_request_id", "unset_user_assessment_baseline_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unset_user_assessment_baseline got unknown kwargs: {extra_kwargs!r}") @@ -44438,9 +44438,9 @@ def unset_user_assessment_baseline(self, user_assessment_id, **kwargs): "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44451,7 +44451,7 @@ def unset_user_assessment_baseline(self, user_assessment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44541,7 +44541,7 @@ def update_alert(self, alert_id, update_alert_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_alert got unknown kwargs: {extra_kwargs!r}") @@ -44550,9 +44550,9 @@ def update_alert(self, alert_id, update_alert_details, **kwargs): "alertId": alert_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44562,7 +44562,7 @@ def update_alert(self, alert_id, update_alert_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44653,7 +44653,7 @@ def update_alert_policy(self, alert_policy_id, update_alert_policy_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_alert_policy got unknown kwargs: {extra_kwargs!r}") @@ -44662,9 +44662,9 @@ def update_alert_policy(self, alert_policy_id, update_alert_policy_details, **kw "alertPolicyId": alert_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44674,7 +44674,7 @@ def update_alert_policy(self, alert_policy_id, update_alert_policy_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44766,7 +44766,7 @@ def update_alert_policy_rule(self, alert_policy_id, rule_key, update_alert_polic "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_alert_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -44776,9 +44776,9 @@ def update_alert_policy_rule(self, alert_policy_id, rule_key, update_alert_polic "ruleKey": rule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44788,7 +44788,7 @@ def update_alert_policy_rule(self, alert_policy_id, rule_key, update_alert_polic "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44877,7 +44877,7 @@ def update_attribute_set(self, attribute_set_id, update_attribute_set_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_attribute_set got unknown kwargs: {extra_kwargs!r}") @@ -44886,9 +44886,9 @@ def update_attribute_set(self, attribute_set_id, update_attribute_set_details, * "attributeSetId": attribute_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44898,7 +44898,7 @@ def update_attribute_set(self, attribute_set_id, update_attribute_set_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44987,7 +44987,7 @@ def update_audit_archive_retrieval(self, audit_archive_retrieval_id, update_audi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_audit_archive_retrieval got unknown kwargs: {extra_kwargs!r}") @@ -44996,9 +44996,9 @@ def update_audit_archive_retrieval(self, audit_archive_retrieval_id, update_audi "auditArchiveRetrievalId": audit_archive_retrieval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45008,7 +45008,7 @@ def update_audit_archive_retrieval(self, audit_archive_retrieval_id, update_audi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45097,7 +45097,7 @@ def update_audit_policy(self, audit_policy_id, update_audit_policy_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -45106,9 +45106,9 @@ def update_audit_policy(self, audit_policy_id, update_audit_policy_details, **kw "auditPolicyId": audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45118,7 +45118,7 @@ def update_audit_policy(self, audit_policy_id, update_audit_policy_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45207,7 +45207,7 @@ def update_audit_profile(self, audit_profile_id, update_audit_profile_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_audit_profile got unknown kwargs: {extra_kwargs!r}") @@ -45216,9 +45216,9 @@ def update_audit_profile(self, audit_profile_id, update_audit_profile_details, * "auditProfileId": audit_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45228,7 +45228,7 @@ def update_audit_profile(self, audit_profile_id, update_audit_profile_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45317,7 +45317,7 @@ def update_audit_trail(self, audit_trail_id, update_audit_trail_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_audit_trail got unknown kwargs: {extra_kwargs!r}") @@ -45326,9 +45326,9 @@ def update_audit_trail(self, audit_trail_id, update_audit_trail_details, **kwarg "auditTrailId": audit_trail_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45338,7 +45338,7 @@ def update_audit_trail(self, audit_trail_id, update_audit_trail_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45427,7 +45427,7 @@ def update_data_safe_private_endpoint(self, data_safe_private_endpoint_id, updat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_safe_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -45436,9 +45436,9 @@ def update_data_safe_private_endpoint(self, data_safe_private_endpoint_id, updat "dataSafePrivateEndpointId": data_safe_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45448,7 +45448,7 @@ def update_data_safe_private_endpoint(self, data_safe_private_endpoint_id, updat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45537,7 +45537,7 @@ def update_database_security_config(self, database_security_config_id, update_da "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_security_config got unknown kwargs: {extra_kwargs!r}") @@ -45546,9 +45546,9 @@ def update_database_security_config(self, database_security_config_id, update_da "databaseSecurityConfigId": database_security_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45558,7 +45558,7 @@ def update_database_security_config(self, database_security_config_id, update_da "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45657,7 +45657,7 @@ def update_finding(self, security_assessment_id, finding_key, update_finding_det "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_finding got unknown kwargs: {extra_kwargs!r}") @@ -45667,9 +45667,9 @@ def update_finding(self, security_assessment_id, finding_key, update_finding_det "findingKey": finding_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45680,7 +45680,7 @@ def update_finding(self, security_assessment_id, finding_key, update_finding_det "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45770,7 +45770,7 @@ def update_library_masking_format(self, library_masking_format_id, update_librar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_library_masking_format got unknown kwargs: {extra_kwargs!r}") @@ -45779,9 +45779,9 @@ def update_library_masking_format(self, library_masking_format_id, update_librar "libraryMaskingFormatId": library_masking_format_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45791,7 +45791,7 @@ def update_library_masking_format(self, library_masking_format_id, update_librar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45884,7 +45884,7 @@ def update_masking_column(self, masking_column_key, masking_policy_id, update_ma "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_masking_column got unknown kwargs: {extra_kwargs!r}") @@ -45894,9 +45894,9 @@ def update_masking_column(self, masking_column_key, masking_policy_id, update_ma "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45906,7 +45906,7 @@ def update_masking_column(self, masking_column_key, masking_policy_id, update_ma "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45995,7 +45995,7 @@ def update_masking_policy(self, masking_policy_id, update_masking_policy_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_masking_policy got unknown kwargs: {extra_kwargs!r}") @@ -46004,9 +46004,9 @@ def update_masking_policy(self, masking_policy_id, update_masking_policy_details "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46016,7 +46016,7 @@ def update_masking_policy(self, masking_policy_id, update_masking_policy_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46105,7 +46105,7 @@ def update_on_prem_connector(self, on_prem_connector_id, update_on_prem_connecto "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_on_prem_connector got unknown kwargs: {extra_kwargs!r}") @@ -46114,9 +46114,9 @@ def update_on_prem_connector(self, on_prem_connector_id, update_on_prem_connecto "onPremConnectorId": on_prem_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46126,7 +46126,7 @@ def update_on_prem_connector(self, on_prem_connector_id, update_on_prem_connecto "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46222,7 +46222,7 @@ def update_on_prem_connector_wallet(self, update_on_prem_connector_wallet_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_on_prem_connector_wallet got unknown kwargs: {extra_kwargs!r}") @@ -46231,9 +46231,9 @@ def update_on_prem_connector_wallet(self, update_on_prem_connector_wallet_detail "onPremConnectorId": on_prem_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46244,7 +46244,7 @@ def update_on_prem_connector_wallet(self, update_on_prem_connector_wallet_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46344,7 +46344,7 @@ def update_peer_target_database(self, target_database_id, peer_target_database_i "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_peer_target_database got unknown kwargs: {extra_kwargs!r}") @@ -46354,9 +46354,9 @@ def update_peer_target_database(self, target_database_id, peer_target_database_i "peerTargetDatabaseId": peer_target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46367,7 +46367,7 @@ def update_peer_target_database(self, target_database_id, peer_target_database_i "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46464,7 +46464,7 @@ def update_report(self, report_id, update_report_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_report got unknown kwargs: {extra_kwargs!r}") @@ -46473,9 +46473,9 @@ def update_report(self, report_id, update_report_details, **kwargs): "reportId": report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46486,7 +46486,7 @@ def update_report(self, report_id, update_report_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46583,7 +46583,7 @@ def update_report_definition(self, report_definition_id, update_report_definitio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_report_definition got unknown kwargs: {extra_kwargs!r}") @@ -46592,9 +46592,9 @@ def update_report_definition(self, report_definition_id, update_report_definitio "reportDefinitionId": report_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46605,7 +46605,7 @@ def update_report_definition(self, report_definition_id, update_report_definitio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46695,7 +46695,7 @@ def update_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sdm_masking_policy_difference got unknown kwargs: {extra_kwargs!r}") @@ -46704,9 +46704,9 @@ def update_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, "sdmMaskingPolicyDifferenceId": sdm_masking_policy_difference_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46716,7 +46716,7 @@ def update_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46805,7 +46805,7 @@ def update_security_assessment(self, security_assessment_id, update_security_ass "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_assessment got unknown kwargs: {extra_kwargs!r}") @@ -46814,9 +46814,9 @@ def update_security_assessment(self, security_assessment_id, update_security_ass "securityAssessmentId": security_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46826,7 +46826,7 @@ def update_security_assessment(self, security_assessment_id, update_security_ass "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46915,7 +46915,7 @@ def update_security_policy(self, security_policy_id, update_security_policy_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_policy got unknown kwargs: {extra_kwargs!r}") @@ -46924,9 +46924,9 @@ def update_security_policy(self, security_policy_id, update_security_policy_deta "securityPolicyId": security_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46936,7 +46936,7 @@ def update_security_policy(self, security_policy_id, update_security_policy_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47025,7 +47025,7 @@ def update_security_policy_config(self, security_policy_config_id, update_securi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_policy_config got unknown kwargs: {extra_kwargs!r}") @@ -47034,9 +47034,9 @@ def update_security_policy_config(self, security_policy_config_id, update_securi "securityPolicyConfigId": security_policy_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47046,7 +47046,7 @@ def update_security_policy_config(self, security_policy_config_id, update_securi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47135,7 +47135,7 @@ def update_security_policy_deployment(self, security_policy_deployment_id, updat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_policy_deployment got unknown kwargs: {extra_kwargs!r}") @@ -47144,9 +47144,9 @@ def update_security_policy_deployment(self, security_policy_deployment_id, updat "securityPolicyDeploymentId": security_policy_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47156,7 +47156,7 @@ def update_security_policy_deployment(self, security_policy_deployment_id, updat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47248,7 +47248,7 @@ def update_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sensitive_column got unknown kwargs: {extra_kwargs!r}") @@ -47258,9 +47258,9 @@ def update_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, "sensitiveColumnKey": sensitive_column_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47270,7 +47270,7 @@ def update_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47360,7 +47360,7 @@ def update_sensitive_data_model(self, sensitive_data_model_id, update_sensitive_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sensitive_data_model got unknown kwargs: {extra_kwargs!r}") @@ -47369,9 +47369,9 @@ def update_sensitive_data_model(self, sensitive_data_model_id, update_sensitive_ "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47381,7 +47381,7 @@ def update_sensitive_data_model(self, sensitive_data_model_id, update_sensitive_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47470,7 +47470,7 @@ def update_sensitive_type(self, sensitive_type_id, update_sensitive_type_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sensitive_type got unknown kwargs: {extra_kwargs!r}") @@ -47479,9 +47479,9 @@ def update_sensitive_type(self, sensitive_type_id, update_sensitive_type_details "sensitiveTypeId": sensitive_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47491,7 +47491,7 @@ def update_sensitive_type(self, sensitive_type_id, update_sensitive_type_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47580,7 +47580,7 @@ def update_sensitive_type_group(self, sensitive_type_group_id, update_sensitive_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sensitive_type_group got unknown kwargs: {extra_kwargs!r}") @@ -47589,9 +47589,9 @@ def update_sensitive_type_group(self, sensitive_type_group_id, update_sensitive_ "sensitiveTypeGroupId": sensitive_type_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47601,7 +47601,7 @@ def update_sensitive_type_group(self, sensitive_type_group_id, update_sensitive_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47690,7 +47690,7 @@ def update_sensitive_types_export(self, sensitive_types_export_id, update_sensit "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sensitive_types_export got unknown kwargs: {extra_kwargs!r}") @@ -47699,9 +47699,9 @@ def update_sensitive_types_export(self, sensitive_types_export_id, update_sensit "sensitiveTypesExportId": sensitive_types_export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47711,7 +47711,7 @@ def update_sensitive_types_export(self, sensitive_types_export_id, update_sensit "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47800,7 +47800,7 @@ def update_sql_collection(self, sql_collection_id, update_sql_collection_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sql_collection got unknown kwargs: {extra_kwargs!r}") @@ -47809,9 +47809,9 @@ def update_sql_collection(self, sql_collection_id, update_sql_collection_details "sqlCollectionId": sql_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47821,7 +47821,7 @@ def update_sql_collection(self, sql_collection_id, update_sql_collection_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47910,7 +47910,7 @@ def update_sql_firewall_policy(self, sql_firewall_policy_id, update_sql_firewall "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sql_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -47919,9 +47919,9 @@ def update_sql_firewall_policy(self, sql_firewall_policy_id, update_sql_firewall "sqlFirewallPolicyId": sql_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47931,7 +47931,7 @@ def update_sql_firewall_policy(self, sql_firewall_policy_id, update_sql_firewall "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48020,7 +48020,7 @@ def update_target_alert_policy_association(self, target_alert_policy_association "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_alert_policy_association got unknown kwargs: {extra_kwargs!r}") @@ -48029,9 +48029,9 @@ def update_target_alert_policy_association(self, target_alert_policy_association "targetAlertPolicyAssociationId": target_alert_policy_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48041,7 +48041,7 @@ def update_target_alert_policy_association(self, target_alert_policy_association "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48137,7 +48137,7 @@ def update_target_database(self, target_database_id, update_target_database_deta "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_database got unknown kwargs: {extra_kwargs!r}") @@ -48146,9 +48146,9 @@ def update_target_database(self, target_database_id, update_target_database_deta "targetDatabaseId": target_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48159,7 +48159,7 @@ def update_target_database(self, target_database_id, update_target_database_deta "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48256,7 +48256,7 @@ def update_target_database_group(self, target_database_group_id, update_target_d "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_target_database_group got unknown kwargs: {extra_kwargs!r}") @@ -48265,9 +48265,9 @@ def update_target_database_group(self, target_database_group_id, update_target_d "targetDatabaseGroupId": target_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48278,7 +48278,7 @@ def update_target_database_group(self, target_database_group_id, update_target_d "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48368,7 +48368,7 @@ def update_unified_audit_policy(self, unified_audit_policy_id, update_unified_au "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_unified_audit_policy got unknown kwargs: {extra_kwargs!r}") @@ -48377,9 +48377,9 @@ def update_unified_audit_policy(self, unified_audit_policy_id, update_unified_au "unifiedAuditPolicyId": unified_audit_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48389,7 +48389,7 @@ def update_unified_audit_policy(self, unified_audit_policy_id, update_unified_au "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48478,7 +48478,7 @@ def update_unified_audit_policy_definition(self, unified_audit_policy_definition "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_unified_audit_policy_definition got unknown kwargs: {extra_kwargs!r}") @@ -48487,9 +48487,9 @@ def update_unified_audit_policy_definition(self, unified_audit_policy_definition "unifiedAuditPolicyDefinitionId": unified_audit_policy_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48499,7 +48499,7 @@ def update_unified_audit_policy_definition(self, unified_audit_policy_definition "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48588,7 +48588,7 @@ def update_user_assessment(self, user_assessment_id, update_user_assessment_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_user_assessment got unknown kwargs: {extra_kwargs!r}") @@ -48597,9 +48597,9 @@ def update_user_assessment(self, user_assessment_id, update_user_assessment_deta "userAssessmentId": user_assessment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48609,7 +48609,7 @@ def update_user_assessment(self, user_assessment_id, update_user_assessment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48710,7 +48710,7 @@ def upload_masking_policy(self, upload_masking_policy_details, masking_policy_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_masking_policy got unknown kwargs: {extra_kwargs!r}") @@ -48719,9 +48719,9 @@ def upload_masking_policy(self, upload_masking_policy_details, masking_policy_id "maskingPolicyId": masking_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48730,7 +48730,7 @@ def upload_masking_policy(self, upload_masking_policy_details, masking_policy_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -48851,7 +48851,7 @@ def upload_sensitive_data_model(self, sensitive_data_model_id, upload_sensitive_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_sensitive_data_model got unknown kwargs: {extra_kwargs!r}") @@ -48860,9 +48860,9 @@ def upload_sensitive_data_model(self, sensitive_data_model_id, upload_sensitive_ "sensitiveDataModelId": sensitive_data_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48871,7 +48871,7 @@ def upload_sensitive_data_model(self, sensitive_data_model_id, upload_sensitive_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: diff --git a/src/oci/data_science/data_science_client.py b/src/oci/data_science/data_science_client.py index 16892359e..4c1c3e626 100644 --- a/src/oci/data_science/data_science_client.py +++ b/src/oci/data_science/data_science_client.py @@ -171,7 +171,7 @@ def activate_model(self, model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_model got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def activate_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def activate_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def activate_model_deployment(self, model_deployment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_model_deployment got unknown kwargs: {extra_kwargs!r}") @@ -289,9 +289,9 @@ def activate_model_deployment(self, model_deployment_id, **kwargs): "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -301,7 +301,7 @@ def activate_model_deployment(self, model_deployment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -385,7 +385,7 @@ def activate_model_group(self, model_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_model_group got unknown kwargs: {extra_kwargs!r}") @@ -394,9 +394,9 @@ def activate_model_group(self, model_group_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -406,7 +406,7 @@ def activate_model_group(self, model_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -494,7 +494,7 @@ def activate_notebook_session(self, notebook_session_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_notebook_session got unknown kwargs: {extra_kwargs!r}") @@ -503,9 +503,9 @@ def activate_notebook_session(self, notebook_session_id, **kwargs): "notebookSessionId": notebook_session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -515,7 +515,7 @@ def activate_notebook_session(self, notebook_session_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -601,7 +601,7 @@ def activate_schedule(self, schedule_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_schedule got unknown kwargs: {extra_kwargs!r}") @@ -610,9 +610,9 @@ def activate_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -623,7 +623,7 @@ def activate_schedule(self, schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -710,7 +710,7 @@ def cancel_job_run(self, job_run_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_job_run got unknown kwargs: {extra_kwargs!r}") @@ -719,9 +719,9 @@ def cancel_job_run(self, job_run_id, **kwargs): "jobRunId": job_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -731,7 +731,7 @@ def cancel_job_run(self, job_run_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -825,7 +825,7 @@ def cancel_pipeline_run(self, pipeline_run_id, **kwargs): "if_match", "terminate_gracefully" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_pipeline_run got unknown kwargs: {extra_kwargs!r}") @@ -834,16 +834,16 @@ def cancel_pipeline_run(self, pipeline_run_id, **kwargs): "pipelineRunId": pipeline_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "terminateGracefully": kwargs.get("terminate_gracefully", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -852,7 +852,7 @@ def cancel_pipeline_run(self, pipeline_run_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -941,7 +941,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -950,9 +950,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -962,7 +962,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1051,7 +1051,7 @@ def change_data_science_private_endpoint_compartment(self, data_science_private_ "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_data_science_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1060,9 +1060,9 @@ def change_data_science_private_endpoint_compartment(self, data_science_private_ "dataSciencePrivateEndpointId": data_science_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1073,7 +1073,7 @@ def change_data_science_private_endpoint_compartment(self, data_science_private_ "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1165,7 +1165,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1174,9 +1174,9 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1186,7 +1186,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1275,7 +1275,7 @@ def change_job_run_compartment(self, job_run_id, change_job_run_compartment_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_job_run_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1284,9 +1284,9 @@ def change_job_run_compartment(self, job_run_id, change_job_run_compartment_deta "jobRunId": job_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1296,7 +1296,7 @@ def change_job_run_compartment(self, job_run_id, change_job_run_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1387,7 +1387,7 @@ def change_ml_application_compartment(self, ml_application_id, change_ml_applica "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ml_application_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1396,9 +1396,9 @@ def change_ml_application_compartment(self, ml_application_id, change_ml_applica "mlApplicationId": ml_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1409,7 +1409,7 @@ def change_ml_application_compartment(self, ml_application_id, change_ml_applica "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1503,7 +1503,7 @@ def change_ml_application_implementation_compartment(self, ml_application_implem "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ml_application_implementation_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1512,9 +1512,9 @@ def change_ml_application_implementation_compartment(self, ml_application_implem "mlApplicationImplementationId": ml_application_implementation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1525,7 +1525,7 @@ def change_ml_application_implementation_compartment(self, ml_application_implem "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1619,7 +1619,7 @@ def change_ml_application_instance_compartment(self, ml_application_instance_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ml_application_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1628,9 +1628,9 @@ def change_ml_application_instance_compartment(self, ml_application_instance_id, "mlApplicationInstanceId": ml_application_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1641,7 +1641,7 @@ def change_ml_application_instance_compartment(self, ml_application_instance_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1735,7 +1735,7 @@ def change_ml_application_instance_view_compartment(self, ml_application_instanc "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ml_application_instance_view_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1744,9 +1744,9 @@ def change_ml_application_instance_view_compartment(self, ml_application_instanc "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1757,7 +1757,7 @@ def change_ml_application_instance_view_compartment(self, ml_application_instanc "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1853,7 +1853,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1862,9 +1862,9 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1875,7 +1875,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1969,7 +1969,7 @@ def change_model_deployment_compartment(self, model_deployment_id, change_model_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_deployment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1978,9 +1978,9 @@ def change_model_deployment_compartment(self, model_deployment_id, change_model_ "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1991,7 +1991,7 @@ def change_model_deployment_compartment(self, model_deployment_id, change_model_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2085,7 +2085,7 @@ def change_model_group_compartment(self, model_group_id, change_model_group_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2094,9 +2094,9 @@ def change_model_group_compartment(self, model_group_id, change_model_group_comp "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2107,7 +2107,7 @@ def change_model_group_compartment(self, model_group_id, change_model_group_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2203,7 +2203,7 @@ def change_model_group_version_history_compartment(self, model_group_version_his "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_group_version_history_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2212,9 +2212,9 @@ def change_model_group_version_history_compartment(self, model_group_version_his "modelGroupVersionHistoryId": model_group_version_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2225,7 +2225,7 @@ def change_model_group_version_history_compartment(self, model_group_version_his "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2321,7 +2321,7 @@ def change_model_version_set_compartment(self, model_version_set_id, change_mode "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_version_set_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2330,9 +2330,9 @@ def change_model_version_set_compartment(self, model_version_set_id, change_mode "modelVersionSetId": model_version_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2343,7 +2343,7 @@ def change_model_version_set_compartment(self, model_version_set_id, change_mode "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2437,7 +2437,7 @@ def change_notebook_session_compartment(self, notebook_session_id, change_notebo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_notebook_session_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2446,9 +2446,9 @@ def change_notebook_session_compartment(self, notebook_session_id, change_notebo "notebookSessionId": notebook_session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2459,7 +2459,7 @@ def change_notebook_session_compartment(self, notebook_session_id, change_notebo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2549,7 +2549,7 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_pipeline_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2558,9 +2558,9 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2570,7 +2570,7 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2659,7 +2659,7 @@ def change_pipeline_run_compartment(self, pipeline_run_id, change_pipeline_run_c "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_pipeline_run_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2668,9 +2668,9 @@ def change_pipeline_run_compartment(self, pipeline_run_id, change_pipeline_run_c "pipelineRunId": pipeline_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2680,7 +2680,7 @@ def change_pipeline_run_compartment(self, pipeline_run_id, change_pipeline_run_c "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2773,7 +2773,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_project_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2782,9 +2782,9 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2795,7 +2795,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2887,7 +2887,7 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_schedule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2896,9 +2896,9 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2909,7 +2909,7 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2992,7 +2992,7 @@ def create_data_science_private_endpoint(self, create_data_science_private_endpo "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_science_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3003,7 +3003,7 @@ def create_data_science_private_endpoint(self, create_data_science_private_endpo "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3086,7 +3086,7 @@ def create_job(self, create_job_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job got unknown kwargs: {extra_kwargs!r}") @@ -3097,7 +3097,7 @@ def create_job(self, create_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3202,7 +3202,7 @@ def create_job_artifact(self, job_id, job_artifact, **kwargs): "opc_retry_token", "content_disposition" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job_artifact got unknown kwargs: {extra_kwargs!r}") @@ -3211,9 +3211,9 @@ def create_job_artifact(self, job_id, job_artifact, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3224,7 +3224,7 @@ def create_job_artifact(self, job_id, job_artifact, **kwargs): "content-length": kwargs.get("content_length", missing), "content-disposition": kwargs.get("content_disposition", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -3332,7 +3332,7 @@ def create_job_run(self, create_job_run_details, **kwargs): "opc_retry_token", "opc_parent_rpt_url" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job_run got unknown kwargs: {extra_kwargs!r}") @@ -3344,7 +3344,7 @@ def create_job_run(self, create_job_run_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-parent-rpt-url": kwargs.get("opc_parent_rpt_url", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3427,7 +3427,7 @@ def create_ml_application(self, create_ml_application_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ml_application got unknown kwargs: {extra_kwargs!r}") @@ -3438,7 +3438,7 @@ def create_ml_application(self, create_ml_application_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3521,7 +3521,7 @@ def create_ml_application_implementation(self, create_ml_application_implementat "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ml_application_implementation got unknown kwargs: {extra_kwargs!r}") @@ -3532,7 +3532,7 @@ def create_ml_application_implementation(self, create_ml_application_implementat "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3615,7 +3615,7 @@ def create_ml_application_instance(self, create_ml_application_instance_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ml_application_instance got unknown kwargs: {extra_kwargs!r}") @@ -3626,7 +3626,7 @@ def create_ml_application_instance(self, create_ml_application_instance_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3709,7 +3709,7 @@ def create_model(self, create_model_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model got unknown kwargs: {extra_kwargs!r}") @@ -3720,7 +3720,7 @@ def create_model(self, create_model_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3838,7 +3838,7 @@ def create_model_artifact(self, model_id, model_artifact, **kwargs): "content_disposition", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_artifact got unknown kwargs: {extra_kwargs!r}") @@ -3847,9 +3847,9 @@ def create_model_artifact(self, model_id, model_artifact, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3861,7 +3861,7 @@ def create_model_artifact(self, model_id, model_artifact, **kwargs): "content-disposition": kwargs.get("content_disposition", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -4001,7 +4001,7 @@ def create_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m "content_disposition", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -4011,9 +4011,9 @@ def create_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4024,7 +4024,7 @@ def create_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m "content-disposition": kwargs.get("content_disposition", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -4161,7 +4161,7 @@ def create_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "content_disposition", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -4171,9 +4171,9 @@ def create_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4184,7 +4184,7 @@ def create_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "content-disposition": kwargs.get("content_disposition", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -4291,7 +4291,7 @@ def create_model_deployment(self, create_model_deployment_details, **kwargs): "opc_retry_token", "opc_parent_rpt_url" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_deployment got unknown kwargs: {extra_kwargs!r}") @@ -4303,7 +4303,7 @@ def create_model_deployment(self, create_model_deployment_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-parent-rpt-url": kwargs.get("opc_parent_rpt_url", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4386,7 +4386,7 @@ def create_model_group(self, create_base_model_group_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_group got unknown kwargs: {extra_kwargs!r}") @@ -4397,7 +4397,7 @@ def create_model_group(self, create_base_model_group_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4515,7 +4515,7 @@ def create_model_group_artifact(self, model_group_id, model_group_artifact, **kw "content_disposition", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_group_artifact got unknown kwargs: {extra_kwargs!r}") @@ -4524,9 +4524,9 @@ def create_model_group_artifact(self, model_group_id, model_group_artifact, **kw "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4538,7 +4538,7 @@ def create_model_group_artifact(self, model_group_id, model_group_artifact, **kw "content-disposition": kwargs.get("content_disposition", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -4644,7 +4644,7 @@ def create_model_group_version_history(self, create_model_group_version_history_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_group_version_history got unknown kwargs: {extra_kwargs!r}") @@ -4655,7 +4655,7 @@ def create_model_group_version_history(self, create_model_group_version_history_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4743,7 +4743,7 @@ def create_model_provenance(self, model_id, create_model_provenance_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_provenance got unknown kwargs: {extra_kwargs!r}") @@ -4752,9 +4752,9 @@ def create_model_provenance(self, model_id, create_model_provenance_details, **k "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4764,7 +4764,7 @@ def create_model_provenance(self, model_id, create_model_provenance_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4849,7 +4849,7 @@ def create_model_version_set(self, create_model_version_set_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model_version_set got unknown kwargs: {extra_kwargs!r}") @@ -4860,7 +4860,7 @@ def create_model_version_set(self, create_model_version_set_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4943,7 +4943,7 @@ def create_notebook_session(self, create_notebook_session_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_notebook_session got unknown kwargs: {extra_kwargs!r}") @@ -4954,7 +4954,7 @@ def create_notebook_session(self, create_notebook_session_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5037,7 +5037,7 @@ def create_pipeline(self, create_pipeline_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -5048,7 +5048,7 @@ def create_pipeline(self, create_pipeline_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5135,7 +5135,7 @@ def create_pipeline_run(self, create_pipeline_run_details, **kwargs): "opc_request_id", "opc_parent_rpt_url" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pipeline_run got unknown kwargs: {extra_kwargs!r}") @@ -5147,7 +5147,7 @@ def create_pipeline_run(self, create_pipeline_run_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-parent-rpt-url": kwargs.get("opc_parent_rpt_url", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5230,7 +5230,7 @@ def create_project(self, create_project_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_project got unknown kwargs: {extra_kwargs!r}") @@ -5241,7 +5241,7 @@ def create_project(self, create_project_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5324,7 +5324,7 @@ def create_schedule(self, create_schedule_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_schedule got unknown kwargs: {extra_kwargs!r}") @@ -5335,7 +5335,7 @@ def create_schedule(self, create_schedule_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5448,7 +5448,7 @@ def create_step_artifact(self, pipeline_id, step_name, step_artifact, **kwargs): "opc_retry_token", "content_disposition" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_step_artifact got unknown kwargs: {extra_kwargs!r}") @@ -5458,9 +5458,9 @@ def create_step_artifact(self, pipeline_id, step_name, step_artifact, **kwargs): "stepName": step_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5471,7 +5471,7 @@ def create_step_artifact(self, pipeline_id, step_name, step_artifact, **kwargs): "content-length": kwargs.get("content_length", missing), "content-disposition": kwargs.get("content_disposition", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -5581,7 +5581,7 @@ def deactivate_model(self, model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_model got unknown kwargs: {extra_kwargs!r}") @@ -5590,9 +5590,9 @@ def deactivate_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5602,7 +5602,7 @@ def deactivate_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5690,7 +5690,7 @@ def deactivate_model_deployment(self, model_deployment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_model_deployment got unknown kwargs: {extra_kwargs!r}") @@ -5699,9 +5699,9 @@ def deactivate_model_deployment(self, model_deployment_id, **kwargs): "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5711,7 +5711,7 @@ def deactivate_model_deployment(self, model_deployment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5795,7 +5795,7 @@ def deactivate_model_group(self, model_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_model_group got unknown kwargs: {extra_kwargs!r}") @@ -5804,9 +5804,9 @@ def deactivate_model_group(self, model_group_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5816,7 +5816,7 @@ def deactivate_model_group(self, model_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5904,7 +5904,7 @@ def deactivate_notebook_session(self, notebook_session_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_notebook_session got unknown kwargs: {extra_kwargs!r}") @@ -5913,9 +5913,9 @@ def deactivate_notebook_session(self, notebook_session_id, **kwargs): "notebookSessionId": notebook_session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5925,7 +5925,7 @@ def deactivate_notebook_session(self, notebook_session_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6011,7 +6011,7 @@ def deactivate_schedule(self, schedule_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_schedule got unknown kwargs: {extra_kwargs!r}") @@ -6020,9 +6020,9 @@ def deactivate_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6033,7 +6033,7 @@ def deactivate_schedule(self, schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6118,7 +6118,7 @@ def delete_data_science_private_endpoint(self, data_science_private_endpoint_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_science_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6127,9 +6127,9 @@ def delete_data_science_private_endpoint(self, data_science_private_endpoint_id, "dataSciencePrivateEndpointId": data_science_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6139,7 +6139,7 @@ def delete_data_science_private_endpoint(self, data_science_private_endpoint_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6227,7 +6227,7 @@ def delete_job(self, job_id, **kwargs): "opc_request_id", "delete_related_job_runs" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job got unknown kwargs: {extra_kwargs!r}") @@ -6236,16 +6236,16 @@ def delete_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "deleteRelatedJobRuns": kwargs.get("delete_related_job_runs", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6253,7 +6253,7 @@ def delete_job(self, job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6341,7 +6341,7 @@ def delete_job_run(self, job_run_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job_run got unknown kwargs: {extra_kwargs!r}") @@ -6350,9 +6350,9 @@ def delete_job_run(self, job_run_id, **kwargs): "jobRunId": job_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6362,7 +6362,7 @@ def delete_job_run(self, job_run_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6446,7 +6446,7 @@ def delete_ml_application(self, ml_application_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ml_application got unknown kwargs: {extra_kwargs!r}") @@ -6455,9 +6455,9 @@ def delete_ml_application(self, ml_application_id, **kwargs): "mlApplicationId": ml_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6467,7 +6467,7 @@ def delete_ml_application(self, ml_application_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6551,7 +6551,7 @@ def delete_ml_application_implementation(self, ml_application_implementation_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ml_application_implementation got unknown kwargs: {extra_kwargs!r}") @@ -6560,9 +6560,9 @@ def delete_ml_application_implementation(self, ml_application_implementation_id, "mlApplicationImplementationId": ml_application_implementation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6572,7 +6572,7 @@ def delete_ml_application_implementation(self, ml_application_implementation_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6656,7 +6656,7 @@ def delete_ml_application_instance(self, ml_application_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ml_application_instance got unknown kwargs: {extra_kwargs!r}") @@ -6665,9 +6665,9 @@ def delete_ml_application_instance(self, ml_application_instance_id, **kwargs): "mlApplicationInstanceId": ml_application_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6677,7 +6677,7 @@ def delete_ml_application_instance(self, ml_application_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6763,7 +6763,7 @@ def delete_model(self, model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model got unknown kwargs: {extra_kwargs!r}") @@ -6772,9 +6772,9 @@ def delete_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6784,7 +6784,7 @@ def delete_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6873,7 +6873,7 @@ def delete_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -6883,9 +6883,9 @@ def delete_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, * "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6895,7 +6895,7 @@ def delete_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6984,7 +6984,7 @@ def delete_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -6994,9 +6994,9 @@ def delete_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7006,7 +7006,7 @@ def delete_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7092,7 +7092,7 @@ def delete_model_deployment(self, model_deployment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model_deployment got unknown kwargs: {extra_kwargs!r}") @@ -7101,9 +7101,9 @@ def delete_model_deployment(self, model_deployment_id, **kwargs): "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7113,7 +7113,7 @@ def delete_model_deployment(self, model_deployment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7199,7 +7199,7 @@ def delete_model_group(self, model_group_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model_group got unknown kwargs: {extra_kwargs!r}") @@ -7208,9 +7208,9 @@ def delete_model_group(self, model_group_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7220,7 +7220,7 @@ def delete_model_group(self, model_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7304,7 +7304,7 @@ def delete_model_group_version_history(self, model_group_version_history_id, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model_group_version_history got unknown kwargs: {extra_kwargs!r}") @@ -7313,9 +7313,9 @@ def delete_model_group_version_history(self, model_group_version_history_id, **k "modelGroupVersionHistoryId": model_group_version_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7325,7 +7325,7 @@ def delete_model_group_version_history(self, model_group_version_history_id, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7414,7 +7414,7 @@ def delete_model_version_set(self, model_version_set_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model_version_set got unknown kwargs: {extra_kwargs!r}") @@ -7423,16 +7423,16 @@ def delete_model_version_set(self, model_version_set_id, **kwargs): "modelVersionSetId": model_version_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isDeleteRelatedModels": kwargs.get("is_delete_related_models", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7440,7 +7440,7 @@ def delete_model_version_set(self, model_version_set_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7528,7 +7528,7 @@ def delete_notebook_session(self, notebook_session_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_notebook_session got unknown kwargs: {extra_kwargs!r}") @@ -7537,9 +7537,9 @@ def delete_notebook_session(self, notebook_session_id, **kwargs): "notebookSessionId": notebook_session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7549,7 +7549,7 @@ def delete_notebook_session(self, notebook_session_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7643,7 +7643,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -7652,9 +7652,9 @@ def delete_pipeline(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7662,7 +7662,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): "deleteRelatedPipelineRuns": kwargs.get("delete_related_pipeline_runs", missing), "deleteRelatedJobRuns": kwargs.get("delete_related_job_runs", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7670,7 +7670,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7760,7 +7760,7 @@ def delete_pipeline_run(self, pipeline_run_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pipeline_run got unknown kwargs: {extra_kwargs!r}") @@ -7769,16 +7769,16 @@ def delete_pipeline_run(self, pipeline_run_id, **kwargs): "pipelineRunId": pipeline_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "deleteRelatedJobRuns": kwargs.get("delete_related_job_runs", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7786,7 +7786,7 @@ def delete_pipeline_run(self, pipeline_run_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7872,7 +7872,7 @@ def delete_project(self, project_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project got unknown kwargs: {extra_kwargs!r}") @@ -7881,9 +7881,9 @@ def delete_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7893,7 +7893,7 @@ def delete_project(self, project_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7977,7 +7977,7 @@ def delete_schedule(self, schedule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_schedule got unknown kwargs: {extra_kwargs!r}") @@ -7986,9 +7986,9 @@ def delete_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7998,7 +7998,7 @@ def delete_schedule(self, schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8087,7 +8087,7 @@ def disable_ml_application_instance_view_trigger(self, disable_ml_application_in "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_ml_application_instance_view_trigger got unknown kwargs: {extra_kwargs!r}") @@ -8096,9 +8096,9 @@ def disable_ml_application_instance_view_trigger(self, disable_ml_application_in "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8109,7 +8109,7 @@ def disable_ml_application_instance_view_trigger(self, disable_ml_application_in "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8205,7 +8205,7 @@ def enable_ml_application_instance_view_trigger(self, enable_ml_application_inst "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_ml_application_instance_view_trigger got unknown kwargs: {extra_kwargs!r}") @@ -8214,9 +8214,9 @@ def enable_ml_application_instance_view_trigger(self, enable_ml_application_inst "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8227,7 +8227,7 @@ def enable_ml_application_instance_view_trigger(self, enable_ml_application_inst "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8325,7 +8325,7 @@ def export_model_artifact(self, model_id, export_model_artifact_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_model_artifact got unknown kwargs: {extra_kwargs!r}") @@ -8334,9 +8334,9 @@ def export_model_artifact(self, model_id, export_model_artifact_details, **kwarg "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8347,7 +8347,7 @@ def export_model_artifact(self, model_id, export_model_artifact_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8426,7 +8426,7 @@ def get_data_science_private_endpoint(self, data_science_private_endpoint_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_science_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -8435,9 +8435,9 @@ def get_data_science_private_endpoint(self, data_science_private_endpoint_id, ** "dataSciencePrivateEndpointId": data_science_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8446,7 +8446,7 @@ def get_data_science_private_endpoint(self, data_science_private_endpoint_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8526,7 +8526,7 @@ def get_job(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job got unknown kwargs: {extra_kwargs!r}") @@ -8535,9 +8535,9 @@ def get_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8546,7 +8546,7 @@ def get_job(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8633,7 +8633,7 @@ def get_job_artifact_content(self, job_id, **kwargs): "opc_request_id", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -8642,9 +8642,9 @@ def get_job_artifact_content(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8654,7 +8654,7 @@ def get_job_artifact_content(self, job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8734,7 +8734,7 @@ def get_job_run(self, job_run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_run got unknown kwargs: {extra_kwargs!r}") @@ -8743,9 +8743,9 @@ def get_job_run(self, job_run_id, **kwargs): "jobRunId": job_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8754,7 +8754,7 @@ def get_job_run(self, job_run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8832,7 +8832,7 @@ def get_ml_application(self, ml_application_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application got unknown kwargs: {extra_kwargs!r}") @@ -8841,9 +8841,9 @@ def get_ml_application(self, ml_application_id, **kwargs): "mlApplicationId": ml_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8852,7 +8852,7 @@ def get_ml_application(self, ml_application_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8930,7 +8930,7 @@ def get_ml_application_historical_package_content(self, ml_application_implement "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application_historical_package_content got unknown kwargs: {extra_kwargs!r}") @@ -8939,9 +8939,9 @@ def get_ml_application_historical_package_content(self, ml_application_implement "mlApplicationImplementationVersionId": ml_application_implementation_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8950,7 +8950,7 @@ def get_ml_application_historical_package_content(self, ml_application_implement "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9028,7 +9028,7 @@ def get_ml_application_implementation(self, ml_application_implementation_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application_implementation got unknown kwargs: {extra_kwargs!r}") @@ -9037,9 +9037,9 @@ def get_ml_application_implementation(self, ml_application_implementation_id, ** "mlApplicationImplementationId": ml_application_implementation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9048,7 +9048,7 @@ def get_ml_application_implementation(self, ml_application_implementation_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9126,7 +9126,7 @@ def get_ml_application_implementation_version(self, ml_application_implementatio "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application_implementation_version got unknown kwargs: {extra_kwargs!r}") @@ -9135,9 +9135,9 @@ def get_ml_application_implementation_version(self, ml_application_implementatio "mlApplicationImplementationVersionId": ml_application_implementation_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9146,7 +9146,7 @@ def get_ml_application_implementation_version(self, ml_application_implementatio "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9224,7 +9224,7 @@ def get_ml_application_instance(self, ml_application_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application_instance got unknown kwargs: {extra_kwargs!r}") @@ -9233,9 +9233,9 @@ def get_ml_application_instance(self, ml_application_instance_id, **kwargs): "mlApplicationInstanceId": ml_application_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9244,7 +9244,7 @@ def get_ml_application_instance(self, ml_application_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9322,7 +9322,7 @@ def get_ml_application_instance_view(self, ml_application_instance_view_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application_instance_view got unknown kwargs: {extra_kwargs!r}") @@ -9331,9 +9331,9 @@ def get_ml_application_instance_view(self, ml_application_instance_view_id, **kw "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9342,7 +9342,7 @@ def get_ml_application_instance_view(self, ml_application_instance_view_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9420,7 +9420,7 @@ def get_ml_application_package_content(self, ml_application_implementation_id, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ml_application_package_content got unknown kwargs: {extra_kwargs!r}") @@ -9429,9 +9429,9 @@ def get_ml_application_package_content(self, ml_application_implementation_id, * "mlApplicationImplementationId": ml_application_implementation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9440,7 +9440,7 @@ def get_ml_application_package_content(self, ml_application_implementation_id, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9520,7 +9520,7 @@ def get_model(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model got unknown kwargs: {extra_kwargs!r}") @@ -9529,9 +9529,9 @@ def get_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9540,7 +9540,7 @@ def get_model(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9627,7 +9627,7 @@ def get_model_artifact_content(self, model_id, **kwargs): "opc_request_id", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -9636,9 +9636,9 @@ def get_model_artifact_content(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9648,7 +9648,7 @@ def get_model_artifact_content(self, model_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9738,7 +9738,7 @@ def get_model_custom_metadatum_artifact_content(self, model_id, metadatum_key_na "opc_request_id", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_custom_metadatum_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -9748,9 +9748,9 @@ def get_model_custom_metadatum_artifact_content(self, model_id, metadatum_key_na "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9760,7 +9760,7 @@ def get_model_custom_metadatum_artifact_content(self, model_id, metadatum_key_na "opc-request-id": kwargs.get("opc_request_id", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9850,7 +9850,7 @@ def get_model_defined_metadatum_artifact_content(self, model_id, metadatum_key_n "opc_request_id", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_defined_metadatum_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -9860,9 +9860,9 @@ def get_model_defined_metadatum_artifact_content(self, model_id, metadatum_key_n "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9872,7 +9872,7 @@ def get_model_defined_metadatum_artifact_content(self, model_id, metadatum_key_n "opc-request-id": kwargs.get("opc_request_id", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9952,7 +9952,7 @@ def get_model_deployment(self, model_deployment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_deployment got unknown kwargs: {extra_kwargs!r}") @@ -9961,9 +9961,9 @@ def get_model_deployment(self, model_deployment_id, **kwargs): "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9972,7 +9972,7 @@ def get_model_deployment(self, model_deployment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10052,7 +10052,7 @@ def get_model_group(self, model_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_group got unknown kwargs: {extra_kwargs!r}") @@ -10061,9 +10061,9 @@ def get_model_group(self, model_group_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10072,7 +10072,7 @@ def get_model_group(self, model_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10159,7 +10159,7 @@ def get_model_group_artifact_content(self, model_group_id, **kwargs): "opc_request_id", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_group_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -10168,9 +10168,9 @@ def get_model_group_artifact_content(self, model_group_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10180,7 +10180,7 @@ def get_model_group_artifact_content(self, model_group_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10260,7 +10260,7 @@ def get_model_group_version_history(self, model_group_version_history_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_group_version_history got unknown kwargs: {extra_kwargs!r}") @@ -10269,9 +10269,9 @@ def get_model_group_version_history(self, model_group_version_history_id, **kwar "modelGroupVersionHistoryId": model_group_version_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10280,7 +10280,7 @@ def get_model_group_version_history(self, model_group_version_history_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10360,7 +10360,7 @@ def get_model_provenance(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_provenance got unknown kwargs: {extra_kwargs!r}") @@ -10369,9 +10369,9 @@ def get_model_provenance(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10380,7 +10380,7 @@ def get_model_provenance(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10460,7 +10460,7 @@ def get_model_version_set(self, model_version_set_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model_version_set got unknown kwargs: {extra_kwargs!r}") @@ -10469,9 +10469,9 @@ def get_model_version_set(self, model_version_set_id, **kwargs): "modelVersionSetId": model_version_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10480,7 +10480,7 @@ def get_model_version_set(self, model_version_set_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10560,7 +10560,7 @@ def get_notebook_session(self, notebook_session_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_notebook_session got unknown kwargs: {extra_kwargs!r}") @@ -10569,9 +10569,9 @@ def get_notebook_session(self, notebook_session_id, **kwargs): "notebookSessionId": notebook_session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10580,7 +10580,7 @@ def get_notebook_session(self, notebook_session_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10660,7 +10660,7 @@ def get_pipeline(self, pipeline_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -10669,9 +10669,9 @@ def get_pipeline(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10680,7 +10680,7 @@ def get_pipeline(self, pipeline_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10760,7 +10760,7 @@ def get_pipeline_run(self, pipeline_run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pipeline_run got unknown kwargs: {extra_kwargs!r}") @@ -10769,9 +10769,9 @@ def get_pipeline_run(self, pipeline_run_id, **kwargs): "pipelineRunId": pipeline_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10780,7 +10780,7 @@ def get_pipeline_run(self, pipeline_run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10860,7 +10860,7 @@ def get_project(self, project_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project got unknown kwargs: {extra_kwargs!r}") @@ -10869,9 +10869,9 @@ def get_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10880,7 +10880,7 @@ def get_project(self, project_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10958,7 +10958,7 @@ def get_schedule(self, schedule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_schedule got unknown kwargs: {extra_kwargs!r}") @@ -10967,9 +10967,9 @@ def get_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10978,7 +10978,7 @@ def get_schedule(self, schedule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11068,7 +11068,7 @@ def get_step_artifact_content(self, pipeline_id, step_name, **kwargs): "opc_request_id", "range" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_step_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -11078,9 +11078,9 @@ def get_step_artifact_content(self, pipeline_id, step_name, **kwargs): "stepName": step_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11090,7 +11090,7 @@ def get_step_artifact_content(self, pipeline_id, step_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "range": kwargs.get("range", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11172,7 +11172,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -11181,9 +11181,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11192,7 +11192,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11272,7 +11272,7 @@ def head_job_artifact(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_job_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11281,9 +11281,9 @@ def head_job_artifact(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11292,7 +11292,7 @@ def head_job_artifact(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11370,7 +11370,7 @@ def head_model_artifact(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_model_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11379,9 +11379,9 @@ def head_model_artifact(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11390,7 +11390,7 @@ def head_model_artifact(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11471,7 +11471,7 @@ def head_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11481,9 +11481,9 @@ def head_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, **k "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11492,7 +11492,7 @@ def head_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11573,7 +11573,7 @@ def head_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11583,9 +11583,9 @@ def head_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, ** "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11594,7 +11594,7 @@ def head_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11672,7 +11672,7 @@ def head_model_group_artifact(self, model_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_model_group_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11681,9 +11681,9 @@ def head_model_group_artifact(self, model_group_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11692,7 +11692,7 @@ def head_model_group_artifact(self, model_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11773,7 +11773,7 @@ def head_step_artifact(self, pipeline_id, step_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_step_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11783,9 +11783,9 @@ def head_step_artifact(self, pipeline_id, step_name, **kwargs): "stepName": step_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11794,7 +11794,7 @@ def head_step_artifact(self, pipeline_id, step_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11883,7 +11883,7 @@ def import_model_artifact(self, model_id, import_model_artifact_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_model_artifact got unknown kwargs: {extra_kwargs!r}") @@ -11892,9 +11892,9 @@ def import_model_artifact(self, model_id, import_model_artifact_details, **kwarg "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11904,7 +11904,7 @@ def import_model_artifact(self, model_id, import_model_artifact_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12032,7 +12032,7 @@ def list_containers(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_containers got unknown kwargs: {extra_kwargs!r}") @@ -12069,14 +12069,14 @@ def list_containers(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12210,7 +12210,7 @@ def list_data_science_private_endpoints(self, compartment_id, **kwargs): "created_by", "data_science_resource_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_science_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -12254,14 +12254,14 @@ def list_data_science_private_endpoints(self, compartment_id, **kwargs): "createdBy": kwargs.get("created_by", missing), "dataScienceResourceType": kwargs.get("data_science_resource_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12361,7 +12361,7 @@ def list_fast_launch_job_configs(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fast_launch_job_configs got unknown kwargs: {extra_kwargs!r}") @@ -12371,14 +12371,14 @@ def list_fast_launch_job_configs(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12522,7 +12522,7 @@ def list_job_runs(self, compartment_id, **kwargs): "sort_by", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_runs got unknown kwargs: {extra_kwargs!r}") @@ -12560,14 +12560,14 @@ def list_job_runs(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12667,7 +12667,7 @@ def list_job_shapes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_shapes got unknown kwargs: {extra_kwargs!r}") @@ -12677,14 +12677,14 @@ def list_job_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12828,7 +12828,7 @@ def list_jobs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jobs got unknown kwargs: {extra_kwargs!r}") @@ -12866,14 +12866,14 @@ def list_jobs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12989,7 +12989,7 @@ def list_ml_application_implementation_versions(self, ml_application_implementat "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ml_application_implementation_versions got unknown kwargs: {extra_kwargs!r}") @@ -13023,14 +13023,14 @@ def list_ml_application_implementation_versions(self, ml_application_implementat "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13164,7 +13164,7 @@ def list_ml_application_implementations(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ml_application_implementations got unknown kwargs: {extra_kwargs!r}") @@ -13202,14 +13202,14 @@ def list_ml_application_implementations(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13339,7 +13339,7 @@ def list_ml_application_instance_views(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ml_application_instance_views got unknown kwargs: {extra_kwargs!r}") @@ -13376,14 +13376,14 @@ def list_ml_application_instance_views(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13509,7 +13509,7 @@ def list_ml_application_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ml_application_instances got unknown kwargs: {extra_kwargs!r}") @@ -13545,14 +13545,14 @@ def list_ml_application_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13682,7 +13682,7 @@ def list_ml_applications(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ml_applications got unknown kwargs: {extra_kwargs!r}") @@ -13719,14 +13719,14 @@ def list_ml_applications(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13868,7 +13868,7 @@ def list_model_deployment_model_states(self, model_deployment_id, compartment_id "sort_by", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_deployment_model_states got unknown kwargs: {extra_kwargs!r}") @@ -13877,9 +13877,9 @@ def list_model_deployment_model_states(self, model_deployment_id, compartment_id "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13908,7 +13908,7 @@ def list_model_deployment_model_states(self, model_deployment_id, compartment_id "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -13916,7 +13916,7 @@ def list_model_deployment_model_states(self, model_deployment_id, compartment_id "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14019,7 +14019,7 @@ def list_model_deployment_shapes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_deployment_shapes got unknown kwargs: {extra_kwargs!r}") @@ -14029,14 +14029,14 @@ def list_model_deployment_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14180,7 +14180,7 @@ def list_model_deployments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_deployments got unknown kwargs: {extra_kwargs!r}") @@ -14218,14 +14218,14 @@ def list_model_deployments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14367,7 +14367,7 @@ def list_model_group_models(self, model_group_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_group_models got unknown kwargs: {extra_kwargs!r}") @@ -14376,9 +14376,9 @@ def list_model_group_models(self, model_group_id, compartment_id, **kwargs): "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14414,14 +14414,14 @@ def list_model_group_models(self, model_group_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14565,7 +14565,7 @@ def list_model_group_version_histories(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_group_version_histories got unknown kwargs: {extra_kwargs!r}") @@ -14603,14 +14603,14 @@ def list_model_group_version_histories(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14758,7 +14758,7 @@ def list_model_groups(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_groups got unknown kwargs: {extra_kwargs!r}") @@ -14797,14 +14797,14 @@ def list_model_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14952,7 +14952,7 @@ def list_model_version_sets(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_model_version_sets got unknown kwargs: {extra_kwargs!r}") @@ -14998,14 +14998,14 @@ def list_model_version_sets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15162,7 +15162,7 @@ def list_models(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_models got unknown kwargs: {extra_kwargs!r}") @@ -15210,14 +15210,14 @@ def list_models(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15317,7 +15317,7 @@ def list_notebook_session_shapes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_notebook_session_shapes got unknown kwargs: {extra_kwargs!r}") @@ -15327,14 +15327,14 @@ def list_notebook_session_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15478,7 +15478,7 @@ def list_notebook_sessions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_notebook_sessions got unknown kwargs: {extra_kwargs!r}") @@ -15516,14 +15516,14 @@ def list_notebook_sessions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15666,7 +15666,7 @@ def list_pipeline_runs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipeline_runs got unknown kwargs: {extra_kwargs!r}") @@ -15704,14 +15704,14 @@ def list_pipeline_runs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15854,7 +15854,7 @@ def list_pipelines(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -15892,14 +15892,14 @@ def list_pipelines(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16037,7 +16037,7 @@ def list_projects(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_projects got unknown kwargs: {extra_kwargs!r}") @@ -16074,14 +16074,14 @@ def list_projects(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16213,7 +16213,7 @@ def list_schedules(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schedules got unknown kwargs: {extra_kwargs!r}") @@ -16250,14 +16250,14 @@ def list_schedules(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16357,7 +16357,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -16366,9 +16366,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16376,14 +16376,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16485,7 +16485,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -16494,9 +16494,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16504,14 +16504,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16643,7 +16643,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -16686,14 +16686,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16804,7 +16804,7 @@ def put_ml_application_package(self, ml_application_implementation_id, put_ml_ap "content_disposition", "opc_ml_app_package_args" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_ml_application_package got unknown kwargs: {extra_kwargs!r}") @@ -16813,9 +16813,9 @@ def put_ml_application_package(self, ml_application_implementation_id, put_ml_ap "mlApplicationImplementationId": ml_application_implementation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16827,7 +16827,7 @@ def put_ml_application_package(self, ml_application_implementation_id, put_ml_ap "content-disposition": kwargs.get("content_disposition", missing), "opc-ml-app-package-args": kwargs.get("opc_ml_app_package_args", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -16940,7 +16940,7 @@ def recover_ml_application_instance_view(self, ml_application_instance_view_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"recover_ml_application_instance_view got unknown kwargs: {extra_kwargs!r}") @@ -16949,9 +16949,9 @@ def recover_ml_application_instance_view(self, ml_application_instance_view_id, "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16962,7 +16962,7 @@ def recover_ml_application_instance_view(self, ml_application_instance_view_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17056,7 +17056,7 @@ def register_model_artifact_reference(self, register_model_artifact_reference_de "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"register_model_artifact_reference got unknown kwargs: {extra_kwargs!r}") @@ -17065,9 +17065,9 @@ def register_model_artifact_reference(self, register_model_artifact_reference_de "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17078,7 +17078,7 @@ def register_model_artifact_reference(self, register_model_artifact_reference_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17175,7 +17175,7 @@ def restore_archived_model_artifact(self, model_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_archived_model_artifact got unknown kwargs: {extra_kwargs!r}") @@ -17184,16 +17184,16 @@ def restore_archived_model_artifact(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "restoreModelForHoursSpecified": kwargs.get("restore_model_for_hours_specified", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17202,7 +17202,7 @@ def restore_archived_model_artifact(self, model_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17288,7 +17288,7 @@ def trigger_ml_application_instance_flow(self, trigger_ml_application_instance_f "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"trigger_ml_application_instance_flow got unknown kwargs: {extra_kwargs!r}") @@ -17297,9 +17297,9 @@ def trigger_ml_application_instance_flow(self, trigger_ml_application_instance_f "mlApplicationInstanceId": ml_application_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17309,7 +17309,7 @@ def trigger_ml_application_instance_flow(self, trigger_ml_application_instance_f "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17395,7 +17395,7 @@ def trigger_ml_application_instance_view_flow(self, trigger_ml_application_insta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"trigger_ml_application_instance_view_flow got unknown kwargs: {extra_kwargs!r}") @@ -17404,9 +17404,9 @@ def trigger_ml_application_instance_view_flow(self, trigger_ml_application_insta "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17416,7 +17416,7 @@ def trigger_ml_application_instance_view_flow(self, trigger_ml_application_insta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17508,7 +17508,7 @@ def update_data_science_private_endpoint(self, data_science_private_endpoint_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_science_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -17517,9 +17517,9 @@ def update_data_science_private_endpoint(self, data_science_private_endpoint_id, "dataSciencePrivateEndpointId": data_science_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17529,7 +17529,7 @@ def update_data_science_private_endpoint(self, data_science_private_endpoint_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17620,7 +17620,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job got unknown kwargs: {extra_kwargs!r}") @@ -17629,9 +17629,9 @@ def update_job(self, job_id, update_job_details, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17641,7 +17641,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17734,7 +17734,7 @@ def update_job_run(self, job_run_id, update_job_run_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job_run got unknown kwargs: {extra_kwargs!r}") @@ -17743,9 +17743,9 @@ def update_job_run(self, job_run_id, update_job_run_details, **kwargs): "jobRunId": job_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17755,7 +17755,7 @@ def update_job_run(self, job_run_id, update_job_run_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17846,7 +17846,7 @@ def update_ml_application(self, ml_application_id, update_ml_application_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ml_application got unknown kwargs: {extra_kwargs!r}") @@ -17855,9 +17855,9 @@ def update_ml_application(self, ml_application_id, update_ml_application_details "mlApplicationId": ml_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17867,7 +17867,7 @@ def update_ml_application(self, ml_application_id, update_ml_application_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17958,7 +17958,7 @@ def update_ml_application_implementation(self, ml_application_implementation_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ml_application_implementation got unknown kwargs: {extra_kwargs!r}") @@ -17967,9 +17967,9 @@ def update_ml_application_implementation(self, ml_application_implementation_id, "mlApplicationImplementationId": ml_application_implementation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17979,7 +17979,7 @@ def update_ml_application_implementation(self, ml_application_implementation_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18068,7 +18068,7 @@ def update_ml_application_implementation_version(self, ml_application_implementa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ml_application_implementation_version got unknown kwargs: {extra_kwargs!r}") @@ -18077,9 +18077,9 @@ def update_ml_application_implementation_version(self, ml_application_implementa "mlApplicationImplementationVersionId": ml_application_implementation_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18089,7 +18089,7 @@ def update_ml_application_implementation_version(self, ml_application_implementa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18180,7 +18180,7 @@ def update_ml_application_instance(self, ml_application_instance_id, update_ml_a "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ml_application_instance got unknown kwargs: {extra_kwargs!r}") @@ -18189,9 +18189,9 @@ def update_ml_application_instance(self, ml_application_instance_id, update_ml_a "mlApplicationInstanceId": ml_application_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18201,7 +18201,7 @@ def update_ml_application_instance(self, ml_application_instance_id, update_ml_a "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18290,7 +18290,7 @@ def update_ml_application_instance_view(self, ml_application_instance_view_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ml_application_instance_view got unknown kwargs: {extra_kwargs!r}") @@ -18299,9 +18299,9 @@ def update_ml_application_instance_view(self, ml_application_instance_view_id, u "mlApplicationInstanceViewId": ml_application_instance_view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18311,7 +18311,7 @@ def update_ml_application_instance_view(self, ml_application_instance_view_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18402,7 +18402,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model got unknown kwargs: {extra_kwargs!r}") @@ -18411,9 +18411,9 @@ def update_model(self, model_id, update_model_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18423,7 +18423,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18541,7 +18541,7 @@ def update_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m "content_disposition", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_custom_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -18551,9 +18551,9 @@ def update_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18564,7 +18564,7 @@ def update_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m "content-disposition": kwargs.get("content_disposition", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -18703,7 +18703,7 @@ def update_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "content_disposition", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_defined_metadatum_artifact got unknown kwargs: {extra_kwargs!r}") @@ -18713,9 +18713,9 @@ def update_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "metadatumKeyName": metadatum_key_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18726,7 +18726,7 @@ def update_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, "content-disposition": kwargs.get("content_disposition", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -18846,7 +18846,7 @@ def update_model_deployment(self, model_deployment_id, update_model_deployment_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_deployment got unknown kwargs: {extra_kwargs!r}") @@ -18855,9 +18855,9 @@ def update_model_deployment(self, model_deployment_id, update_model_deployment_d "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18867,7 +18867,7 @@ def update_model_deployment(self, model_deployment_id, update_model_deployment_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18958,7 +18958,7 @@ def update_model_group(self, model_group_id, update_model_group_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_group got unknown kwargs: {extra_kwargs!r}") @@ -18967,9 +18967,9 @@ def update_model_group(self, model_group_id, update_model_group_details, **kwarg "modelGroupId": model_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18979,7 +18979,7 @@ def update_model_group(self, model_group_id, update_model_group_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19070,7 +19070,7 @@ def update_model_group_version_history(self, model_group_version_history_id, upd "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_group_version_history got unknown kwargs: {extra_kwargs!r}") @@ -19079,9 +19079,9 @@ def update_model_group_version_history(self, model_group_version_history_id, upd "modelGroupVersionHistoryId": model_group_version_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19091,7 +19091,7 @@ def update_model_group_version_history(self, model_group_version_history_id, upd "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19182,7 +19182,7 @@ def update_model_provenance(self, model_id, update_model_provenance_details, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_provenance got unknown kwargs: {extra_kwargs!r}") @@ -19191,9 +19191,9 @@ def update_model_provenance(self, model_id, update_model_provenance_details, **k "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19203,7 +19203,7 @@ def update_model_provenance(self, model_id, update_model_provenance_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19296,7 +19296,7 @@ def update_model_version_set(self, model_version_set_id, update_model_version_se "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model_version_set got unknown kwargs: {extra_kwargs!r}") @@ -19305,9 +19305,9 @@ def update_model_version_set(self, model_version_set_id, update_model_version_se "modelVersionSetId": model_version_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19317,7 +19317,7 @@ def update_model_version_set(self, model_version_set_id, update_model_version_se "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19413,7 +19413,7 @@ def update_notebook_session(self, notebook_session_id, update_notebook_session_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_notebook_session got unknown kwargs: {extra_kwargs!r}") @@ -19422,9 +19422,9 @@ def update_notebook_session(self, notebook_session_id, update_notebook_session_d "notebookSessionId": notebook_session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19434,7 +19434,7 @@ def update_notebook_session(self, notebook_session_id, update_notebook_session_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19527,7 +19527,7 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -19536,9 +19536,9 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19548,7 +19548,7 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19639,7 +19639,7 @@ def update_pipeline_run(self, pipeline_run_id, update_pipeline_run_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pipeline_run got unknown kwargs: {extra_kwargs!r}") @@ -19648,9 +19648,9 @@ def update_pipeline_run(self, pipeline_run_id, update_pipeline_run_details, **kw "pipelineRunId": pipeline_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19660,7 +19660,7 @@ def update_pipeline_run(self, pipeline_run_id, update_pipeline_run_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19751,7 +19751,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project got unknown kwargs: {extra_kwargs!r}") @@ -19760,9 +19760,9 @@ def update_project(self, project_id, update_project_details, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19772,7 +19772,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19863,7 +19863,7 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_schedule got unknown kwargs: {extra_kwargs!r}") @@ -19872,9 +19872,9 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19884,7 +19884,7 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py index f4cdb1785..983456010 100644 --- a/src/oci/database/database_client.py +++ b/src/oci/database/database_client.py @@ -175,7 +175,7 @@ def activate_exadata_infrastructure(self, exadata_infrastructure_id, activate_ex "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def activate_exadata_infrastructure(self, exadata_infrastructure_id, activate_ex "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def activate_exadata_infrastructure(self, exadata_infrastructure_id, activate_ex "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def add_dbnode_snapshots_for_exadb_vm_cluster(self, add_dbnode_snapshots_for_exa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_dbnode_snapshots_for_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -303,9 +303,9 @@ def add_dbnode_snapshots_for_exadb_vm_cluster(self, add_dbnode_snapshots_for_exa "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -316,7 +316,7 @@ def add_dbnode_snapshots_for_exadb_vm_cluster(self, add_dbnode_snapshots_for_exa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -417,7 +417,7 @@ def add_standby_autonomous_container_database(self, add_standby_autonomous_conta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_standby_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -426,9 +426,9 @@ def add_standby_autonomous_container_database(self, add_standby_autonomous_conta "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -439,7 +439,7 @@ def add_standby_autonomous_container_database(self, add_standby_autonomous_conta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -534,7 +534,7 @@ def add_storage_capacity_cloud_exadata_infrastructure(self, cloud_exadata_infras "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_storage_capacity_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -543,9 +543,9 @@ def add_storage_capacity_cloud_exadata_infrastructure(self, cloud_exadata_infras "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -556,7 +556,7 @@ def add_storage_capacity_cloud_exadata_infrastructure(self, cloud_exadata_infras "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -649,7 +649,7 @@ def add_storage_capacity_exadata_infrastructure(self, exadata_infrastructure_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_storage_capacity_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -658,9 +658,9 @@ def add_storage_capacity_exadata_infrastructure(self, exadata_infrastructure_id, "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -671,7 +671,7 @@ def add_storage_capacity_exadata_infrastructure(self, exadata_infrastructure_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -767,7 +767,7 @@ def add_virtual_machine_to_cloud_vm_cluster(self, add_virtual_machine_to_cloud_v "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_virtual_machine_to_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -776,9 +776,9 @@ def add_virtual_machine_to_cloud_vm_cluster(self, add_virtual_machine_to_cloud_v "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -789,7 +789,7 @@ def add_virtual_machine_to_cloud_vm_cluster(self, add_virtual_machine_to_cloud_v "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -887,7 +887,7 @@ def add_virtual_machine_to_vm_cluster(self, add_virtual_machine_to_vm_cluster_de "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_virtual_machine_to_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -896,9 +896,9 @@ def add_virtual_machine_to_vm_cluster(self, add_virtual_machine_to_vm_cluster_de "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -909,7 +909,7 @@ def add_virtual_machine_to_vm_cluster(self, add_virtual_machine_to_vm_cluster_de "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1012,7 +1012,7 @@ def autonomous_database_manual_refresh(self, autonomous_database_id, autonomous_ "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"autonomous_database_manual_refresh got unknown kwargs: {extra_kwargs!r}") @@ -1021,9 +1021,9 @@ def autonomous_database_manual_refresh(self, autonomous_database_id, autonomous_ "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1035,7 +1035,7 @@ def autonomous_database_manual_refresh(self, autonomous_database_id, autonomous_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1130,7 +1130,7 @@ def cancel_backup(self, backup_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_backup got unknown kwargs: {extra_kwargs!r}") @@ -1139,9 +1139,9 @@ def cancel_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1152,7 +1152,7 @@ def cancel_backup(self, backup_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1246,7 +1246,7 @@ def cancel_execution_window(self, execution_window_id, cancel_execution_window_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_execution_window got unknown kwargs: {extra_kwargs!r}") @@ -1255,9 +1255,9 @@ def cancel_execution_window(self, execution_window_id, cancel_execution_window_d "executionWindowId": execution_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1268,7 +1268,7 @@ def cancel_execution_window(self, execution_window_id, cancel_execution_window_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1363,7 +1363,7 @@ def cascading_delete_scheduling_plan(self, scheduling_plan_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_scheduling_plan got unknown kwargs: {extra_kwargs!r}") @@ -1372,9 +1372,9 @@ def cascading_delete_scheduling_plan(self, scheduling_plan_id, **kwargs): "schedulingPlanId": scheduling_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1385,7 +1385,7 @@ def cascading_delete_scheduling_plan(self, scheduling_plan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1483,7 +1483,7 @@ def change_autonomous_container_database_compartment(self, change_compartment_de "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_container_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1492,9 +1492,9 @@ def change_autonomous_container_database_compartment(self, change_compartment_de "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1505,7 +1505,7 @@ def change_autonomous_container_database_compartment(self, change_compartment_de "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1610,7 +1610,7 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1619,9 +1619,9 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1633,7 +1633,7 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1729,7 +1729,7 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_database_software_image_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1738,9 +1738,9 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1751,7 +1751,7 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1852,7 +1852,7 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_database_subscription got unknown kwargs: {extra_kwargs!r}") @@ -1861,9 +1861,9 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1875,7 +1875,7 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1975,7 +1975,7 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1984,9 +1984,9 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1997,7 +1997,7 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2093,7 +2093,7 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2102,9 +2102,9 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_ "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2115,7 +2115,7 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2215,7 +2215,7 @@ def change_backup_destination_compartment(self, change_compartment_details, back "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_backup_destination_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2224,9 +2224,9 @@ def change_backup_destination_compartment(self, change_compartment_details, back "backupDestinationId": backup_destination_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2237,7 +2237,7 @@ def change_backup_destination_compartment(self, change_compartment_details, back "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2333,7 +2333,7 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_autonomous_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2342,9 +2342,9 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2355,7 +2355,7 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2451,7 +2451,7 @@ def change_cloud_autonomous_vm_cluster_subscription(self, change_cloud_autonomou "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_autonomous_vm_cluster_subscription got unknown kwargs: {extra_kwargs!r}") @@ -2460,9 +2460,9 @@ def change_cloud_autonomous_vm_cluster_subscription(self, change_cloud_autonomou "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2473,7 +2473,7 @@ def change_cloud_autonomous_vm_cluster_subscription(self, change_cloud_autonomou "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2569,7 +2569,7 @@ def change_cloud_db_system_subscription(self, change_cloud_db_system_subscriptio "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_db_system_subscription got unknown kwargs: {extra_kwargs!r}") @@ -2578,9 +2578,9 @@ def change_cloud_db_system_subscription(self, change_cloud_db_system_subscriptio "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2591,7 +2591,7 @@ def change_cloud_db_system_subscription(self, change_cloud_db_system_subscriptio "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2689,7 +2689,7 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2698,9 +2698,9 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2711,7 +2711,7 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2807,7 +2807,7 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_exadata_infrastructure_subscription got unknown kwargs: {extra_kwargs!r}") @@ -2816,9 +2816,9 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_ "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2829,7 +2829,7 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2925,7 +2925,7 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2934,9 +2934,9 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2947,7 +2947,7 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3043,7 +3043,7 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_cloud_vm_cluster_subscription got unknown kwargs: {extra_kwargs!r}") @@ -3052,9 +3052,9 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3065,7 +3065,7 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3165,7 +3165,7 @@ def change_database_software_image_compartment(self, change_compartment_details, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_software_image_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3174,9 +3174,9 @@ def change_database_software_image_compartment(self, change_compartment_details, "databaseSoftwareImageId": database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3187,7 +3187,7 @@ def change_database_software_image_compartment(self, change_compartment_details, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3288,7 +3288,7 @@ def change_dataguard_role(self, change_dataguard_role_details, autonomous_contai "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dataguard_role got unknown kwargs: {extra_kwargs!r}") @@ -3297,9 +3297,9 @@ def change_dataguard_role(self, change_dataguard_role_details, autonomous_contai "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3310,7 +3310,7 @@ def change_dataguard_role(self, change_dataguard_role_details, autonomous_contai "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3419,7 +3419,7 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_db_system_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3428,9 +3428,9 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id, "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3441,7 +3441,7 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3534,7 +3534,7 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_ "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_disaster_recovery_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3543,9 +3543,9 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_ "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3556,7 +3556,7 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3653,7 +3653,7 @@ def change_encryption_key_location(self, database_id, encryption_key_location_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_encryption_key_location got unknown kwargs: {extra_kwargs!r}") @@ -3662,9 +3662,9 @@ def change_encryption_key_location(self, database_id, encryption_key_location_de "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3675,7 +3675,7 @@ def change_encryption_key_location(self, database_id, encryption_key_location_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3772,7 +3772,7 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3781,9 +3781,9 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3794,7 +3794,7 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3890,7 +3890,7 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_exadb_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -3899,9 +3899,9 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3912,7 +3912,7 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4008,7 +4008,7 @@ def change_exadb_vm_cluster_subscription(self, change_exadb_vm_cluster_subscript "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_exadb_vm_cluster_subscription got unknown kwargs: {extra_kwargs!r}") @@ -4017,9 +4017,9 @@ def change_exadb_vm_cluster_subscription(self, change_exadb_vm_cluster_subscript "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4030,7 +4030,7 @@ def change_exadb_vm_cluster_subscription(self, change_exadb_vm_cluster_subscript "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4126,7 +4126,7 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_exascale_db_storage_vault_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4135,9 +4135,9 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag "exascaleDbStorageVaultId": exascale_db_storage_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4148,7 +4148,7 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4244,7 +4244,7 @@ def change_exascale_db_storage_vault_subscription(self, change_exascale_db_stora "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_exascale_db_storage_vault_subscription got unknown kwargs: {extra_kwargs!r}") @@ -4253,9 +4253,9 @@ def change_exascale_db_storage_vault_subscription(self, change_exascale_db_stora "exascaleDbStorageVaultId": exascale_db_storage_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4266,7 +4266,7 @@ def change_exascale_db_storage_vault_subscription(self, change_exascale_db_stora "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4367,7 +4367,7 @@ def change_external_container_database_compartment(self, change_compartment_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_external_container_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4376,9 +4376,9 @@ def change_external_container_database_compartment(self, change_compartment_deta "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4389,7 +4389,7 @@ def change_external_container_database_compartment(self, change_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4489,7 +4489,7 @@ def change_external_non_container_database_compartment(self, change_compartment_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_external_non_container_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4498,9 +4498,9 @@ def change_external_non_container_database_compartment(self, change_compartment_ "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4511,7 +4511,7 @@ def change_external_non_container_database_compartment(self, change_compartment_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4614,7 +4614,7 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_external_pluggable_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4623,9 +4623,9 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4636,7 +4636,7 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4736,7 +4736,7 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_key_store_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4745,9 +4745,9 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key "keyStoreId": key_store_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4758,7 +4758,7 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4854,7 +4854,7 @@ def change_key_store_type(self, database_id, change_key_store_type_details, **kw "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_key_store_type got unknown kwargs: {extra_kwargs!r}") @@ -4863,9 +4863,9 @@ def change_key_store_type(self, database_id, change_key_store_type_details, **kw "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4876,7 +4876,7 @@ def change_key_store_type(self, database_id, change_key_store_type_details, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4972,7 +4972,7 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oneoff_patch_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4981,9 +4981,9 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat "oneoffPatchId": oneoff_patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4994,7 +4994,7 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5090,7 +5090,7 @@ def change_scheduling_plan_compartment(self, change_scheduling_plan_compartment_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_scheduling_plan_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5099,9 +5099,9 @@ def change_scheduling_plan_compartment(self, change_scheduling_plan_compartment_ "schedulingPlanId": scheduling_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5112,7 +5112,7 @@ def change_scheduling_plan_compartment(self, change_scheduling_plan_compartment_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5208,7 +5208,7 @@ def change_scheduling_policy_compartment(self, change_scheduling_policy_compartm "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_scheduling_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5217,9 +5217,9 @@ def change_scheduling_policy_compartment(self, change_scheduling_policy_compartm "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5230,7 +5230,7 @@ def change_scheduling_policy_compartment(self, change_scheduling_policy_compartm "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5327,7 +5327,7 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -5336,9 +5336,9 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5349,7 +5349,7 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5444,7 +5444,7 @@ def check_external_database_connector_connection_status(self, external_database_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"check_external_database_connector_connection_status got unknown kwargs: {extra_kwargs!r}") @@ -5453,9 +5453,9 @@ def check_external_database_connector_connection_status(self, external_database_ "externalDatabaseConnectorId": external_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5466,7 +5466,7 @@ def check_external_database_connector_connection_status(self, external_database_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5560,7 +5560,7 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"complete_external_backup_job got unknown kwargs: {extra_kwargs!r}") @@ -5569,9 +5569,9 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5581,7 +5581,7 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5688,7 +5688,7 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config "opc_retry_token", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_autonomous_database_vault_key got unknown kwargs: {extra_kwargs!r}") @@ -5697,9 +5697,9 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5711,7 +5711,7 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5807,7 +5807,7 @@ def configure_exascale_cloud_exadata_infrastructure(self, cloud_exadata_infrastr "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_exascale_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -5816,9 +5816,9 @@ def configure_exascale_cloud_exadata_infrastructure(self, cloud_exadata_infrastr "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5829,7 +5829,7 @@ def configure_exascale_cloud_exadata_infrastructure(self, cloud_exadata_infrastr "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5927,7 +5927,7 @@ def configure_exascale_exadata_infrastructure(self, exadata_infrastructure_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_exascale_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -5936,9 +5936,9 @@ def configure_exascale_exadata_infrastructure(self, exadata_infrastructure_id, c "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5949,7 +5949,7 @@ def configure_exascale_exadata_infrastructure(self, exadata_infrastructure_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6044,7 +6044,7 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_saas_admin_user got unknown kwargs: {extra_kwargs!r}") @@ -6053,9 +6053,9 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6066,7 +6066,7 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6161,7 +6161,7 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"confirm_key_store_details_are_correct got unknown kwargs: {extra_kwargs!r}") @@ -6170,9 +6170,9 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs): "keyStoreId": key_store_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6183,7 +6183,7 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6281,7 +6281,7 @@ def convert_standby_autonomous_container_database(self, convert_standby_autonomo "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"convert_standby_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -6290,9 +6290,9 @@ def convert_standby_autonomous_container_database(self, convert_standby_autonomo "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6303,7 +6303,7 @@ def convert_standby_autonomous_container_database(self, convert_standby_autonomo "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6404,7 +6404,7 @@ def convert_standby_database_type(self, database_id, convert_standby_database_ty "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"convert_standby_database_type got unknown kwargs: {extra_kwargs!r}") @@ -6413,9 +6413,9 @@ def convert_standby_database_type(self, database_id, convert_standby_database_ty "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6426,7 +6426,7 @@ def convert_standby_database_type(self, database_id, convert_standby_database_ty "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6516,7 +6516,7 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"convert_to_pdb got unknown kwargs: {extra_kwargs!r}") @@ -6525,9 +6525,9 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6537,7 +6537,7 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6635,7 +6635,7 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"convert_to_regular_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -6644,9 +6644,9 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6657,7 +6657,7 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6759,7 +6759,7 @@ def convert_to_standalone(self, database_id, convert_to_standalone_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"convert_to_standalone got unknown kwargs: {extra_kwargs!r}") @@ -6768,9 +6768,9 @@ def convert_to_standalone(self, database_id, convert_to_standalone_details, **kw "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6781,7 +6781,7 @@ def convert_to_standalone(self, database_id, convert_to_standalone_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6868,7 +6868,7 @@ def create_application_vip(self, create_application_vip_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application_vip got unknown kwargs: {extra_kwargs!r}") @@ -6879,7 +6879,7 @@ def create_application_vip(self, create_application_vip_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6960,7 +6960,7 @@ def create_autonomous_container_database(self, create_autonomous_container_datab "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -6970,7 +6970,7 @@ def create_autonomous_container_database(self, create_autonomous_container_datab "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7059,7 +7059,7 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_ "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -7068,9 +7068,9 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_ "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7079,7 +7079,7 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_ "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7171,7 +7171,7 @@ def create_autonomous_database(self, create_autonomous_database_details, **kwarg "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -7183,7 +7183,7 @@ def create_autonomous_database(self, create_autonomous_database_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7273,7 +7273,7 @@ def create_autonomous_database_backup(self, create_autonomous_database_backup_de "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}") @@ -7285,7 +7285,7 @@ def create_autonomous_database_backup(self, create_autonomous_database_backup_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7370,7 +7370,7 @@ def create_autonomous_database_software_image(self, create_autonomous_database_s "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -7381,7 +7381,7 @@ def create_autonomous_database_software_image(self, create_autonomous_database_s "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7466,7 +7466,7 @@ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -7477,7 +7477,7 @@ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7558,7 +7558,7 @@ def create_backup(self, create_backup_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backup got unknown kwargs: {extra_kwargs!r}") @@ -7568,7 +7568,7 @@ def create_backup(self, create_backup_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7653,7 +7653,7 @@ def create_backup_destination(self, create_backup_destination_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backup_destination got unknown kwargs: {extra_kwargs!r}") @@ -7664,7 +7664,7 @@ def create_backup_destination(self, create_backup_destination_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7754,7 +7754,7 @@ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_ "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -7766,7 +7766,7 @@ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7860,7 +7860,7 @@ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructur "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -7872,7 +7872,7 @@ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructur "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7964,7 +7964,7 @@ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -7976,7 +7976,7 @@ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8064,7 +8064,7 @@ def create_console_connection(self, create_console_connection_details, db_node_i "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -8073,9 +8073,9 @@ def create_console_connection(self, create_console_connection_details, db_node_i "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8084,7 +8084,7 @@ def create_console_connection(self, create_console_connection_details, db_node_i "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8176,7 +8176,7 @@ def create_console_history(self, create_console_history_details, db_node_id, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_console_history got unknown kwargs: {extra_kwargs!r}") @@ -8185,9 +8185,9 @@ def create_console_history(self, create_console_history_details, db_node_id, **k "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8197,7 +8197,7 @@ def create_console_history(self, create_console_history_details, db_node_id, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8295,7 +8295,7 @@ def create_data_guard_association(self, database_id, create_data_guard_associati "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_guard_association got unknown kwargs: {extra_kwargs!r}") @@ -8304,9 +8304,9 @@ def create_data_guard_association(self, database_id, create_data_guard_associati "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8315,7 +8315,7 @@ def create_data_guard_association(self, database_id, create_data_guard_associati "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8407,7 +8407,7 @@ def create_database(self, create_new_database_details, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database got unknown kwargs: {extra_kwargs!r}") @@ -8419,7 +8419,7 @@ def create_database(self, create_new_database_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8500,7 +8500,7 @@ def create_database_software_image(self, create_database_software_image_details, "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -8510,7 +8510,7 @@ def create_database_software_image(self, create_database_software_image_details, "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8591,7 +8591,7 @@ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_db_home got unknown kwargs: {extra_kwargs!r}") @@ -8601,7 +8601,7 @@ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8687,7 +8687,7 @@ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -8698,7 +8698,7 @@ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8785,7 +8785,7 @@ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -8796,7 +8796,7 @@ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8881,7 +8881,7 @@ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}") @@ -8892,7 +8892,7 @@ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8977,7 +8977,7 @@ def create_execution_action(self, create_execution_action_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_execution_action got unknown kwargs: {extra_kwargs!r}") @@ -8988,7 +8988,7 @@ def create_execution_action(self, create_execution_action_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9073,7 +9073,7 @@ def create_execution_window(self, create_execution_window_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_execution_window got unknown kwargs: {extra_kwargs!r}") @@ -9084,7 +9084,7 @@ def create_execution_window(self, create_execution_window_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9169,7 +9169,7 @@ def create_external_backup_job(self, create_external_backup_job_details, **kwarg "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_backup_job got unknown kwargs: {extra_kwargs!r}") @@ -9179,7 +9179,7 @@ def create_external_backup_job(self, create_external_backup_job_details, **kwarg "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9264,7 +9264,7 @@ def create_external_container_database(self, create_external_container_database_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_container_database got unknown kwargs: {extra_kwargs!r}") @@ -9275,7 +9275,7 @@ def create_external_container_database(self, create_external_container_database_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9360,7 +9360,7 @@ def create_external_database_connector(self, create_external_database_connector_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -9371,7 +9371,7 @@ def create_external_database_connector(self, create_external_database_connector_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9456,7 +9456,7 @@ def create_external_non_container_database(self, create_external_non_container_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_non_container_database got unknown kwargs: {extra_kwargs!r}") @@ -9467,7 +9467,7 @@ def create_external_non_container_database(self, create_external_non_container_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9553,7 +9553,7 @@ def create_external_pluggable_database(self, create_external_pluggable_database_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -9564,7 +9564,7 @@ def create_external_pluggable_database(self, create_external_pluggable_database_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9649,7 +9649,7 @@ def create_key_store(self, create_key_store_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_key_store got unknown kwargs: {extra_kwargs!r}") @@ -9660,7 +9660,7 @@ def create_key_store(self, create_key_store_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9748,7 +9748,7 @@ def create_maintenance_run(self, create_maintenance_run_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_maintenance_run got unknown kwargs: {extra_kwargs!r}") @@ -9759,7 +9759,7 @@ def create_maintenance_run(self, create_maintenance_run_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9844,7 +9844,7 @@ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oneoff_patch got unknown kwargs: {extra_kwargs!r}") @@ -9855,7 +9855,7 @@ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9942,7 +9942,7 @@ def create_pluggable_database(self, create_pluggable_database_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -9953,7 +9953,7 @@ def create_pluggable_database(self, create_pluggable_database_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10038,7 +10038,7 @@ def create_pluggable_database_snapshot(self, create_pluggable_database_snapshot_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pluggable_database_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -10049,7 +10049,7 @@ def create_pluggable_database_snapshot(self, create_pluggable_database_snapshot_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10134,7 +10134,7 @@ def create_scheduled_action(self, create_scheduled_action_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduled_action got unknown kwargs: {extra_kwargs!r}") @@ -10145,7 +10145,7 @@ def create_scheduled_action(self, create_scheduled_action_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10230,7 +10230,7 @@ def create_scheduling_plan(self, create_scheduling_plan_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduling_plan got unknown kwargs: {extra_kwargs!r}") @@ -10241,7 +10241,7 @@ def create_scheduling_plan(self, create_scheduling_plan_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10326,7 +10326,7 @@ def create_scheduling_policy(self, create_scheduling_policy_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduling_policy got unknown kwargs: {extra_kwargs!r}") @@ -10337,7 +10337,7 @@ def create_scheduling_policy(self, create_scheduling_policy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10427,7 +10427,7 @@ def create_scheduling_window(self, scheduling_policy_id, create_scheduling_windo "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduling_window got unknown kwargs: {extra_kwargs!r}") @@ -10436,9 +10436,9 @@ def create_scheduling_window(self, scheduling_policy_id, create_scheduling_windo "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10448,7 +10448,7 @@ def create_scheduling_window(self, scheduling_policy_id, create_scheduling_windo "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10536,7 +10536,7 @@ def create_vm_cluster(self, create_vm_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -10547,7 +10547,7 @@ def create_vm_cluster(self, create_vm_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10638,7 +10638,7 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -10647,9 +10647,9 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10659,7 +10659,7 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10767,7 +10767,7 @@ def db_node_action(self, db_node_id, action, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"db_node_action got unknown kwargs: {extra_kwargs!r}") @@ -10776,16 +10776,16 @@ def db_node_action(self, db_node_id, action, **kwargs): "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "action": action } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10793,7 +10793,7 @@ def db_node_action(self, db_node_id, action, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10880,7 +10880,7 @@ def delete_application_vip(self, application_vip_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application_vip got unknown kwargs: {extra_kwargs!r}") @@ -10889,9 +10889,9 @@ def delete_application_vip(self, application_vip_id, **kwargs): "applicationVipId": application_vip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10901,7 +10901,7 @@ def delete_application_vip(self, application_vip_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10992,7 +10992,7 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs): "must_delete_associated_long_term_backups", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -11001,16 +11001,16 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "mustDeleteAssociatedLongTermBackups": kwargs.get("must_delete_associated_long_term_backups", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11019,7 +11019,7 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11108,7 +11108,7 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}") @@ -11117,9 +11117,9 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa "autonomousDatabaseBackupId": autonomous_database_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11130,7 +11130,7 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11212,7 +11212,7 @@ def delete_autonomous_database_software_image(self, autonomous_database_software "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -11221,9 +11221,9 @@ def delete_autonomous_database_software_image(self, autonomous_database_software "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11233,7 +11233,7 @@ def delete_autonomous_database_software_image(self, autonomous_database_software "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11315,7 +11315,7 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -11324,9 +11324,9 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11336,7 +11336,7 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11414,7 +11414,7 @@ def delete_backup(self, backup_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backup got unknown kwargs: {extra_kwargs!r}") @@ -11423,9 +11423,9 @@ def delete_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11434,7 +11434,7 @@ def delete_backup(self, backup_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11516,7 +11516,7 @@ def delete_backup_destination(self, backup_destination_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backup_destination got unknown kwargs: {extra_kwargs!r}") @@ -11525,9 +11525,9 @@ def delete_backup_destination(self, backup_destination_id, **kwargs): "backupDestinationId": backup_destination_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11537,7 +11537,7 @@ def delete_backup_destination(self, backup_destination_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11619,7 +11619,7 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -11628,9 +11628,9 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11640,7 +11640,7 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11726,7 +11726,7 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, * "is_delete_vm_clusters", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -11735,16 +11735,16 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, * "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isDeleteVmClusters": kwargs.get("is_delete_vm_clusters", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11752,7 +11752,7 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11836,7 +11836,7 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -11845,9 +11845,9 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11857,7 +11857,7 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11938,7 +11938,7 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs) "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -11948,9 +11948,9 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs) "consoleConnectionId": console_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11959,7 +11959,7 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs) "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12044,7 +12044,7 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_console_history got unknown kwargs: {extra_kwargs!r}") @@ -12054,9 +12054,9 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs): "consoleHistoryId": console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12066,7 +12066,7 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12158,7 +12158,7 @@ def delete_database(self, database_id, **kwargs): "perform_final_backup", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database got unknown kwargs: {extra_kwargs!r}") @@ -12167,16 +12167,16 @@ def delete_database(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "performFinalBackup": kwargs.get("perform_final_backup", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12184,7 +12184,7 @@ def delete_database(self, database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12264,7 +12264,7 @@ def delete_database_software_image(self, database_software_image_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -12273,9 +12273,9 @@ def delete_database_software_image(self, database_software_image_id, **kwargs): "databaseSoftwareImageId": database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12284,7 +12284,7 @@ def delete_database_software_image(self, database_software_image_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12372,7 +12372,7 @@ def delete_db_home(self, db_home_id, **kwargs): "if_match", "perform_final_backup" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_db_home got unknown kwargs: {extra_kwargs!r}") @@ -12381,23 +12381,23 @@ def delete_db_home(self, db_home_id, **kwargs): "dbHomeId": db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "performFinalBackup": kwargs.get("perform_final_backup", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12481,7 +12481,7 @@ def delete_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dbnode_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -12490,9 +12490,9 @@ def delete_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): "dbnodeSnapshotId": dbnode_snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12502,7 +12502,7 @@ def delete_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12584,7 +12584,7 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -12593,9 +12593,9 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12605,7 +12605,7 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12687,7 +12687,7 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -12696,9 +12696,9 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12708,7 +12708,7 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12790,7 +12790,7 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}") @@ -12799,9 +12799,9 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg "exascaleDbStorageVaultId": exascale_db_storage_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12811,7 +12811,7 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12893,7 +12893,7 @@ def delete_execution_action(self, execution_action_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_execution_action got unknown kwargs: {extra_kwargs!r}") @@ -12902,9 +12902,9 @@ def delete_execution_action(self, execution_action_id, **kwargs): "executionActionId": execution_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12914,7 +12914,7 @@ def delete_execution_action(self, execution_action_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12996,7 +12996,7 @@ def delete_execution_window(self, execution_window_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_execution_window got unknown kwargs: {extra_kwargs!r}") @@ -13005,9 +13005,9 @@ def delete_execution_window(self, execution_window_id, **kwargs): "executionWindowId": execution_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13017,7 +13017,7 @@ def delete_execution_window(self, execution_window_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13101,7 +13101,7 @@ def delete_external_container_database(self, external_container_database_id, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_container_database got unknown kwargs: {extra_kwargs!r}") @@ -13110,9 +13110,9 @@ def delete_external_container_database(self, external_container_database_id, **k "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13122,7 +13122,7 @@ def delete_external_container_database(self, external_container_database_id, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13207,7 +13207,7 @@ def delete_external_database_connector(self, external_database_connector_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -13216,9 +13216,9 @@ def delete_external_database_connector(self, external_database_connector_id, **k "externalDatabaseConnectorId": external_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13228,7 +13228,7 @@ def delete_external_database_connector(self, external_database_connector_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13310,7 +13310,7 @@ def delete_external_non_container_database(self, external_non_container_database "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_non_container_database got unknown kwargs: {extra_kwargs!r}") @@ -13319,9 +13319,9 @@ def delete_external_non_container_database(self, external_non_container_database "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13331,7 +13331,7 @@ def delete_external_non_container_database(self, external_non_container_database "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13414,7 +13414,7 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -13423,9 +13423,9 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13435,7 +13435,7 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13517,7 +13517,7 @@ def delete_key_store(self, key_store_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_key_store got unknown kwargs: {extra_kwargs!r}") @@ -13526,9 +13526,9 @@ def delete_key_store(self, key_store_id, **kwargs): "keyStoreId": key_store_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13538,7 +13538,7 @@ def delete_key_store(self, key_store_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13620,7 +13620,7 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oneoff_patch got unknown kwargs: {extra_kwargs!r}") @@ -13629,9 +13629,9 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs): "oneoffPatchId": oneoff_patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13641,7 +13641,7 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13723,7 +13723,7 @@ def delete_pluggable_database(self, pluggable_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -13732,9 +13732,9 @@ def delete_pluggable_database(self, pluggable_database_id, **kwargs): "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13744,7 +13744,7 @@ def delete_pluggable_database(self, pluggable_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13826,7 +13826,7 @@ def delete_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pluggable_database_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -13835,9 +13835,9 @@ def delete_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **k "pluggableDatabaseSnapshotId": pluggable_database_snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13847,7 +13847,7 @@ def delete_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13929,7 +13929,7 @@ def delete_scheduled_action(self, scheduled_action_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduled_action got unknown kwargs: {extra_kwargs!r}") @@ -13938,9 +13938,9 @@ def delete_scheduled_action(self, scheduled_action_id, **kwargs): "scheduledActionId": scheduled_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13950,7 +13950,7 @@ def delete_scheduled_action(self, scheduled_action_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14032,7 +14032,7 @@ def delete_scheduling_plan(self, scheduling_plan_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduling_plan got unknown kwargs: {extra_kwargs!r}") @@ -14041,9 +14041,9 @@ def delete_scheduling_plan(self, scheduling_plan_id, **kwargs): "schedulingPlanId": scheduling_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14053,7 +14053,7 @@ def delete_scheduling_plan(self, scheduling_plan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14135,7 +14135,7 @@ def delete_scheduling_policy(self, scheduling_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduling_policy got unknown kwargs: {extra_kwargs!r}") @@ -14144,9 +14144,9 @@ def delete_scheduling_policy(self, scheduling_policy_id, **kwargs): "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14156,7 +14156,7 @@ def delete_scheduling_policy(self, scheduling_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14243,7 +14243,7 @@ def delete_scheduling_window(self, scheduling_policy_id, scheduling_window_id, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduling_window got unknown kwargs: {extra_kwargs!r}") @@ -14253,9 +14253,9 @@ def delete_scheduling_window(self, scheduling_policy_id, scheduling_window_id, * "schedulingWindowId": scheduling_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14265,7 +14265,7 @@ def delete_scheduling_window(self, scheduling_policy_id, scheduling_window_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14347,7 +14347,7 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -14356,9 +14356,9 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14368,7 +14368,7 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14456,7 +14456,7 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -14466,9 +14466,9 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14478,7 +14478,7 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14563,7 +14563,7 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa "opc_dry_run", "deregister_autonomous_database_data_safe_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deregister_autonomous_database_data_safe got unknown kwargs: {extra_kwargs!r}") @@ -14572,9 +14572,9 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14584,7 +14584,7 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14667,7 +14667,7 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_autonomous_database_management got unknown kwargs: {extra_kwargs!r}") @@ -14676,9 +14676,9 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14688,7 +14688,7 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14769,7 +14769,7 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_autonomous_database_operations_insights got unknown kwargs: {extra_kwargs!r}") @@ -14778,9 +14778,9 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14790,7 +14790,7 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14880,7 +14880,7 @@ def disable_database_management(self, database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_database_management got unknown kwargs: {extra_kwargs!r}") @@ -14889,9 +14889,9 @@ def disable_database_management(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14902,7 +14902,7 @@ def disable_database_management(self, database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14995,7 +14995,7 @@ def disable_external_container_database_database_management(self, external_conta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_container_database_database_management got unknown kwargs: {extra_kwargs!r}") @@ -15004,9 +15004,9 @@ def disable_external_container_database_database_management(self, external_conta "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15017,7 +15017,7 @@ def disable_external_container_database_database_management(self, external_conta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15108,7 +15108,7 @@ def disable_external_container_database_stack_monitoring(self, external_containe "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_container_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -15117,9 +15117,9 @@ def disable_external_container_database_stack_monitoring(self, external_containe "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15130,7 +15130,7 @@ def disable_external_container_database_stack_monitoring(self, external_containe "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15225,7 +15225,7 @@ def disable_external_non_container_database_database_management(self, external_n "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_non_container_database_database_management got unknown kwargs: {extra_kwargs!r}") @@ -15234,9 +15234,9 @@ def disable_external_non_container_database_database_management(self, external_n "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15247,7 +15247,7 @@ def disable_external_non_container_database_database_management(self, external_n "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15338,7 +15338,7 @@ def disable_external_non_container_database_operations_insights(self, external_n "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_non_container_database_operations_insights got unknown kwargs: {extra_kwargs!r}") @@ -15347,9 +15347,9 @@ def disable_external_non_container_database_operations_insights(self, external_n "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15360,7 +15360,7 @@ def disable_external_non_container_database_operations_insights(self, external_n "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15451,7 +15451,7 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_non_container_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -15460,9 +15460,9 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_ "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15473,7 +15473,7 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15568,7 +15568,7 @@ def disable_external_pluggable_database_database_management(self, external_plugg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_pluggable_database_database_management got unknown kwargs: {extra_kwargs!r}") @@ -15577,9 +15577,9 @@ def disable_external_pluggable_database_database_management(self, external_plugg "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15590,7 +15590,7 @@ def disable_external_pluggable_database_database_management(self, external_plugg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15681,7 +15681,7 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_pluggable_database_operations_insights got unknown kwargs: {extra_kwargs!r}") @@ -15690,9 +15690,9 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15703,7 +15703,7 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15794,7 +15794,7 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_pluggable_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -15803,9 +15803,9 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15816,7 +15816,7 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15907,7 +15907,7 @@ def disable_pluggable_database_management(self, pluggable_database_id, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_pluggable_database_management got unknown kwargs: {extra_kwargs!r}") @@ -15916,9 +15916,9 @@ def disable_pluggable_database_management(self, pluggable_database_id, **kwargs) "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15929,7 +15929,7 @@ def disable_pluggable_database_management(self, pluggable_database_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16016,7 +16016,7 @@ def download_exadata_infrastructure_config_file(self, exadata_infrastructure_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_exadata_infrastructure_config_file got unknown kwargs: {extra_kwargs!r}") @@ -16025,9 +16025,9 @@ def download_exadata_infrastructure_config_file(self, exadata_infrastructure_id, "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16037,7 +16037,7 @@ def download_exadata_infrastructure_config_file(self, exadata_infrastructure_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16130,7 +16130,7 @@ def download_oneoff_patch(self, oneoff_patch_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_oneoff_patch got unknown kwargs: {extra_kwargs!r}") @@ -16139,9 +16139,9 @@ def download_oneoff_patch(self, oneoff_patch_id, **kwargs): "oneoffPatchId": oneoff_patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16152,7 +16152,7 @@ def download_oneoff_patch(self, oneoff_patch_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16244,7 +16244,7 @@ def download_validation_report(self, exadata_infrastructure_id, vm_cluster_netwo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_validation_report got unknown kwargs: {extra_kwargs!r}") @@ -16254,9 +16254,9 @@ def download_validation_report(self, exadata_infrastructure_id, vm_cluster_netwo "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16266,7 +16266,7 @@ def download_validation_report(self, exadata_infrastructure_id, vm_cluster_netwo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16358,7 +16358,7 @@ def download_vm_cluster_network_config_file(self, exadata_infrastructure_id, vm_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_vm_cluster_network_config_file got unknown kwargs: {extra_kwargs!r}") @@ -16368,9 +16368,9 @@ def download_vm_cluster_network_config_file(self, exadata_infrastructure_id, vm_ "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16380,7 +16380,7 @@ def download_vm_cluster_network_config_file(self, exadata_infrastructure_id, vm_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16479,7 +16479,7 @@ def edit_autonomous_container_database_dataguard(self, edit_autonomous_container "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"edit_autonomous_container_database_dataguard got unknown kwargs: {extra_kwargs!r}") @@ -16488,9 +16488,9 @@ def edit_autonomous_container_database_dataguard(self, edit_autonomous_container "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16501,7 +16501,7 @@ def edit_autonomous_container_database_dataguard(self, edit_autonomous_container "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16587,7 +16587,7 @@ def enable_autonomous_database_management(self, autonomous_database_id, **kwargs "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_autonomous_database_management got unknown kwargs: {extra_kwargs!r}") @@ -16596,9 +16596,9 @@ def enable_autonomous_database_management(self, autonomous_database_id, **kwargs "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16608,7 +16608,7 @@ def enable_autonomous_database_management(self, autonomous_database_id, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16689,7 +16689,7 @@ def enable_autonomous_database_operations_insights(self, autonomous_database_id, "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_autonomous_database_operations_insights got unknown kwargs: {extra_kwargs!r}") @@ -16698,9 +16698,9 @@ def enable_autonomous_database_operations_insights(self, autonomous_database_id, "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16710,7 +16710,7 @@ def enable_autonomous_database_operations_insights(self, autonomous_database_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16803,7 +16803,7 @@ def enable_database_management(self, database_id, enable_database_management_det "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_database_management got unknown kwargs: {extra_kwargs!r}") @@ -16812,9 +16812,9 @@ def enable_database_management(self, database_id, enable_database_management_det "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16825,7 +16825,7 @@ def enable_database_management(self, database_id, enable_database_management_det "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16927,7 +16927,7 @@ def enable_external_container_database_database_management(self, external_contai "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_container_database_database_management got unknown kwargs: {extra_kwargs!r}") @@ -16936,9 +16936,9 @@ def enable_external_container_database_database_management(self, external_contai "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16949,7 +16949,7 @@ def enable_external_container_database_database_management(self, external_contai "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17045,7 +17045,7 @@ def enable_external_container_database_stack_monitoring(self, external_container "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_container_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -17054,9 +17054,9 @@ def enable_external_container_database_stack_monitoring(self, external_container "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17067,7 +17067,7 @@ def enable_external_container_database_stack_monitoring(self, external_container "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17167,7 +17167,7 @@ def enable_external_non_container_database_database_management(self, external_no "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_non_container_database_database_management got unknown kwargs: {extra_kwargs!r}") @@ -17176,9 +17176,9 @@ def enable_external_non_container_database_database_management(self, external_no "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17189,7 +17189,7 @@ def enable_external_non_container_database_database_management(self, external_no "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17285,7 +17285,7 @@ def enable_external_non_container_database_operations_insights(self, external_no "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_non_container_database_operations_insights got unknown kwargs: {extra_kwargs!r}") @@ -17294,9 +17294,9 @@ def enable_external_non_container_database_operations_insights(self, external_no "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17307,7 +17307,7 @@ def enable_external_non_container_database_operations_insights(self, external_no "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17403,7 +17403,7 @@ def enable_external_non_container_database_stack_monitoring(self, external_non_c "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_non_container_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -17412,9 +17412,9 @@ def enable_external_non_container_database_stack_monitoring(self, external_non_c "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17425,7 +17425,7 @@ def enable_external_non_container_database_stack_monitoring(self, external_non_c "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17525,7 +17525,7 @@ def enable_external_pluggable_database_database_management(self, external_plugga "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_pluggable_database_database_management got unknown kwargs: {extra_kwargs!r}") @@ -17534,9 +17534,9 @@ def enable_external_pluggable_database_database_management(self, external_plugga "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17547,7 +17547,7 @@ def enable_external_pluggable_database_database_management(self, external_plugga "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17643,7 +17643,7 @@ def enable_external_pluggable_database_operations_insights(self, external_plugga "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_pluggable_database_operations_insights got unknown kwargs: {extra_kwargs!r}") @@ -17652,9 +17652,9 @@ def enable_external_pluggable_database_operations_insights(self, external_plugga "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17665,7 +17665,7 @@ def enable_external_pluggable_database_operations_insights(self, external_plugga "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17761,7 +17761,7 @@ def enable_external_pluggable_database_stack_monitoring(self, external_pluggable "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_pluggable_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -17770,9 +17770,9 @@ def enable_external_pluggable_database_stack_monitoring(self, external_pluggable "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17783,7 +17783,7 @@ def enable_external_pluggable_database_stack_monitoring(self, external_pluggable "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17879,7 +17879,7 @@ def enable_pluggable_database_management(self, pluggable_database_id, enable_plu "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_pluggable_database_management got unknown kwargs: {extra_kwargs!r}") @@ -17888,9 +17888,9 @@ def enable_pluggable_database_management(self, pluggable_database_id, enable_plu "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17901,7 +17901,7 @@ def enable_pluggable_database_management(self, pluggable_database_id, enable_plu "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18010,7 +18010,7 @@ def fail_over_autonomous_database(self, autonomous_database_id, **kwargs): "peer_db_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"fail_over_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -18019,16 +18019,16 @@ def fail_over_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "peerDbId": kwargs.get("peer_db_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18038,7 +18038,7 @@ def fail_over_autonomous_database(self, autonomous_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18128,7 +18128,7 @@ def failover_autonomous_container_database_dataguard(self, autonomous_container_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"failover_autonomous_container_database_dataguard got unknown kwargs: {extra_kwargs!r}") @@ -18137,9 +18137,9 @@ def failover_autonomous_container_database_dataguard(self, autonomous_container_ "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18149,7 +18149,7 @@ def failover_autonomous_container_database_dataguard(self, autonomous_container_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18236,7 +18236,7 @@ def failover_autonomous_container_database_dataguard_association(self, autonomou "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"failover_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -18246,9 +18246,9 @@ def failover_autonomous_container_database_dataguard_association(self, autonomou "autonomousContainerDatabaseDataguardAssociationId": autonomous_container_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18257,7 +18257,7 @@ def failover_autonomous_container_database_dataguard_association(self, autonomou "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18358,7 +18358,7 @@ def failover_data_guard(self, database_id, failover_data_guard_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"failover_data_guard got unknown kwargs: {extra_kwargs!r}") @@ -18367,9 +18367,9 @@ def failover_data_guard(self, database_id, failover_data_guard_details, **kwargs "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18380,7 +18380,7 @@ def failover_data_guard(self, database_id, failover_data_guard_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18475,7 +18475,7 @@ def failover_data_guard_association(self, database_id, data_guard_association_id "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"failover_data_guard_association got unknown kwargs: {extra_kwargs!r}") @@ -18485,9 +18485,9 @@ def failover_data_guard_association(self, database_id, data_guard_association_id "dataGuardAssociationId": data_guard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18496,7 +18496,7 @@ def failover_data_guard_association(self, database_id, data_guard_association_id "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18592,7 +18592,7 @@ def generate_autonomous_database_wallet(self, autonomous_database_id, generate_a "opc_retry_token", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_autonomous_database_wallet got unknown kwargs: {extra_kwargs!r}") @@ -18601,9 +18601,9 @@ def generate_autonomous_database_wallet(self, autonomous_database_id, generate_a "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18614,7 +18614,7 @@ def generate_autonomous_database_wallet(self, autonomous_database_id, generate_a "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18706,7 +18706,7 @@ def generate_recommended_vm_cluster_network(self, exadata_infrastructure_id, gen "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_recommended_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -18715,9 +18715,9 @@ def generate_recommended_vm_cluster_network(self, exadata_infrastructure_id, gen "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18727,7 +18727,7 @@ def generate_recommended_vm_cluster_network(self, exadata_infrastructure_id, gen "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18808,7 +18808,7 @@ def get_application_vip(self, application_vip_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application_vip got unknown kwargs: {extra_kwargs!r}") @@ -18817,9 +18817,9 @@ def get_application_vip(self, application_vip_id, **kwargs): "applicationVipId": application_vip_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18828,7 +18828,7 @@ def get_application_vip(self, application_vip_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18898,7 +18898,7 @@ def get_autonomous_container_database(self, autonomous_container_database_id, ** api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/GetAutonomousContainerDatabase" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -18907,9 +18907,9 @@ def get_autonomous_container_database(self, autonomous_container_database_id, ** "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18991,7 +18991,7 @@ def get_autonomous_container_database_dataguard_association(self, autonomous_con api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabaseDataguardAssociation/GetAutonomousContainerDatabaseDataguardAssociation" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -19001,9 +19001,9 @@ def get_autonomous_container_database_dataguard_association(self, autonomous_con "autonomousContainerDatabaseDataguardAssociationId": autonomous_container_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19088,7 +19088,7 @@ def get_autonomous_container_database_resource_usage(self, autonomous_container_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_container_database_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -19097,9 +19097,9 @@ def get_autonomous_container_database_resource_usage(self, autonomous_container_ "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19108,7 +19108,7 @@ def get_autonomous_container_database_resource_usage(self, autonomous_container_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19186,7 +19186,7 @@ def get_autonomous_database(self, autonomous_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -19195,9 +19195,9 @@ def get_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19206,7 +19206,7 @@ def get_autonomous_database(self, autonomous_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19284,7 +19284,7 @@ def get_autonomous_database_backup(self, autonomous_database_backup_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}") @@ -19293,9 +19293,9 @@ def get_autonomous_database_backup(self, autonomous_database_backup_id, **kwargs "autonomousDatabaseBackupId": autonomous_database_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19304,7 +19304,7 @@ def get_autonomous_database_backup(self, autonomous_database_backup_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19387,7 +19387,7 @@ def get_autonomous_database_dataguard_association(self, autonomous_database_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -19397,9 +19397,9 @@ def get_autonomous_database_dataguard_association(self, autonomous_database_id, "autonomousDatabaseDataguardAssociationId": autonomous_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19408,7 +19408,7 @@ def get_autonomous_database_dataguard_association(self, autonomous_database_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19481,7 +19481,7 @@ def get_autonomous_database_regional_wallet(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_database_regional_wallet got unknown kwargs: {extra_kwargs!r}") @@ -19491,7 +19491,7 @@ def get_autonomous_database_regional_wallet(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19567,7 +19567,7 @@ def get_autonomous_database_software_image(self, autonomous_database_software_im "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -19576,9 +19576,9 @@ def get_autonomous_database_software_image(self, autonomous_database_software_im "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19587,7 +19587,7 @@ def get_autonomous_database_software_image(self, autonomous_database_software_im "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19665,7 +19665,7 @@ def get_autonomous_database_wallet(self, autonomous_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_database_wallet got unknown kwargs: {extra_kwargs!r}") @@ -19674,9 +19674,9 @@ def get_autonomous_database_wallet(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19685,7 +19685,7 @@ def get_autonomous_database_wallet(self, autonomous_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19755,7 +19755,7 @@ def get_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastructur api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousExadataInfrastructure/GetAutonomousExadataInfrastructure" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -19764,9 +19764,9 @@ def get_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastructur "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19843,7 +19843,7 @@ def get_autonomous_patch(self, autonomous_patch_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousPatch/GetAutonomousPatch" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_patch got unknown kwargs: {extra_kwargs!r}") @@ -19852,9 +19852,9 @@ def get_autonomous_patch(self, autonomous_patch_id, **kwargs): "autonomousPatchId": autonomous_patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19939,7 +19939,7 @@ def get_autonomous_virtual_machine(self, autonomous_virtual_machine_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_virtual_machine got unknown kwargs: {extra_kwargs!r}") @@ -19948,9 +19948,9 @@ def get_autonomous_virtual_machine(self, autonomous_virtual_machine_id, **kwargs "autonomousVirtualMachineId": autonomous_virtual_machine_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19959,7 +19959,7 @@ def get_autonomous_virtual_machine(self, autonomous_virtual_machine_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20037,7 +20037,7 @@ def get_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -20046,9 +20046,9 @@ def get_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20057,7 +20057,7 @@ def get_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20135,7 +20135,7 @@ def get_autonomous_vm_cluster_resource_usage(self, autonomous_vm_cluster_id, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_autonomous_vm_cluster_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -20144,9 +20144,9 @@ def get_autonomous_vm_cluster_resource_usage(self, autonomous_vm_cluster_id, **k "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20155,7 +20155,7 @@ def get_autonomous_vm_cluster_resource_usage(self, autonomous_vm_cluster_id, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20225,7 +20225,7 @@ def get_backup(self, backup_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Backup/GetBackup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backup got unknown kwargs: {extra_kwargs!r}") @@ -20234,9 +20234,9 @@ def get_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20321,7 +20321,7 @@ def get_backup_destination(self, backup_destination_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backup_destination got unknown kwargs: {extra_kwargs!r}") @@ -20330,9 +20330,9 @@ def get_backup_destination(self, backup_destination_id, **kwargs): "backupDestinationId": backup_destination_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20341,7 +20341,7 @@ def get_backup_destination(self, backup_destination_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20419,7 +20419,7 @@ def get_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -20428,9 +20428,9 @@ def get_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **kwar "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20439,7 +20439,7 @@ def get_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20517,7 +20517,7 @@ def get_cloud_autonomous_vm_cluster_resource_usage(self, cloud_autonomous_vm_clu "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_autonomous_vm_cluster_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -20526,9 +20526,9 @@ def get_cloud_autonomous_vm_cluster_resource_usage(self, cloud_autonomous_vm_clu "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20537,7 +20537,7 @@ def get_cloud_autonomous_vm_cluster_resource_usage(self, cloud_autonomous_vm_clu "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20615,7 +20615,7 @@ def get_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -20624,9 +20624,9 @@ def get_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, **kw "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20635,7 +20635,7 @@ def get_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20719,7 +20719,7 @@ def get_cloud_exadata_infrastructure_unallocated_resources(self, cloud_exadata_i "opc_request_id", "db_servers" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_exadata_infrastructure_unallocated_resources got unknown kwargs: {extra_kwargs!r}") @@ -20728,23 +20728,23 @@ def get_cloud_exadata_infrastructure_unallocated_resources(self, cloud_exadata_i "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "dbServers": self.base_client.generate_collection_format_param(kwargs.get("db_servers", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20824,7 +20824,7 @@ def get_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -20833,9 +20833,9 @@ def get_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20844,7 +20844,7 @@ def get_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20923,7 +20923,7 @@ def get_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_vm_cluster_iorm_config got unknown kwargs: {extra_kwargs!r}") @@ -20932,9 +20932,9 @@ def get_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, **kwargs): "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20943,7 +20943,7 @@ def get_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21026,7 +21026,7 @@ def get_cloud_vm_cluster_update(self, cloud_vm_cluster_id, update_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_vm_cluster_update got unknown kwargs: {extra_kwargs!r}") @@ -21036,9 +21036,9 @@ def get_cloud_vm_cluster_update(self, cloud_vm_cluster_id, update_id, **kwargs): "updateId": update_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21047,7 +21047,7 @@ def get_cloud_vm_cluster_update(self, cloud_vm_cluster_id, update_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21130,7 +21130,7 @@ def get_cloud_vm_cluster_update_history_entry(self, cloud_vm_cluster_id, update_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_vm_cluster_update_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -21140,9 +21140,9 @@ def get_cloud_vm_cluster_update_history_entry(self, cloud_vm_cluster_id, update_ "updateHistoryEntryId": update_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21151,7 +21151,7 @@ def get_cloud_vm_cluster_update_history_entry(self, cloud_vm_cluster_id, update_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21224,7 +21224,7 @@ def get_console_connection(self, db_node_id, console_connection_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleConnection/GetConsoleConnection" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -21234,9 +21234,9 @@ def get_console_connection(self, db_node_id, console_connection_id, **kwargs): "consoleConnectionId": console_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21324,7 +21324,7 @@ def get_console_history(self, db_node_id, console_history_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_console_history got unknown kwargs: {extra_kwargs!r}") @@ -21334,9 +21334,9 @@ def get_console_history(self, db_node_id, console_history_id, **kwargs): "consoleHistoryId": console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21345,7 +21345,7 @@ def get_console_history(self, db_node_id, console_history_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21426,7 +21426,7 @@ def get_console_history_content(self, db_node_id, console_history_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_console_history_content got unknown kwargs: {extra_kwargs!r}") @@ -21436,9 +21436,9 @@ def get_console_history_content(self, db_node_id, console_history_id, **kwargs): "consoleHistoryId": console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21447,7 +21447,7 @@ def get_console_history_content(self, db_node_id, console_history_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21522,7 +21522,7 @@ def get_data_guard_association(self, database_id, data_guard_association_id, **k api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DataGuardAssociation/GetDataGuardAssociation" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_guard_association got unknown kwargs: {extra_kwargs!r}") @@ -21532,9 +21532,9 @@ def get_data_guard_association(self, database_id, data_guard_association_id, **k "dataGuardAssociationId": data_guard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21611,7 +21611,7 @@ def get_database(self, database_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/GetDatabase" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database got unknown kwargs: {extra_kwargs!r}") @@ -21620,9 +21620,9 @@ def get_database(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21699,7 +21699,7 @@ def get_database_software_image(self, database_software_image_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/GetDatabaseSoftwareImage" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -21708,9 +21708,9 @@ def get_database_software_image(self, database_software_image_id, **kwargs): "databaseSoftwareImageId": database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21800,7 +21800,7 @@ def get_database_upgrade_history_entry(self, database_id, upgrade_history_entry_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_upgrade_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -21810,9 +21810,9 @@ def get_database_upgrade_history_entry(self, database_id, upgrade_history_entry_ "upgradeHistoryEntryId": upgrade_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21821,7 +21821,7 @@ def get_database_upgrade_history_entry(self, database_id, upgrade_history_entry_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21891,7 +21891,7 @@ def get_db_home(self, db_home_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbHome/GetDbHome" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_home got unknown kwargs: {extra_kwargs!r}") @@ -21900,9 +21900,9 @@ def get_db_home(self, db_home_id, **kwargs): "dbHomeId": db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21984,7 +21984,7 @@ def get_db_home_patch(self, db_home_id, patch_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Patch/GetDbHomePatch" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_home_patch got unknown kwargs: {extra_kwargs!r}") @@ -21994,9 +21994,9 @@ def get_db_home_patch(self, db_home_id, patch_id, **kwargs): "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22078,7 +22078,7 @@ def get_db_home_patch_history_entry(self, db_home_id, patch_history_entry_id, ** api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PatchHistoryEntry/GetDbHomePatchHistoryEntry" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_home_patch_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -22088,9 +22088,9 @@ def get_db_home_patch_history_entry(self, db_home_id, patch_history_entry_id, ** "patchHistoryEntryId": patch_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22167,7 +22167,7 @@ def get_db_node(self, db_node_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbNode/GetDbNode" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_node got unknown kwargs: {extra_kwargs!r}") @@ -22176,9 +22176,9 @@ def get_db_node(self, db_node_id, **kwargs): "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22268,7 +22268,7 @@ def get_db_server(self, exadata_infrastructure_id, db_server_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_server got unknown kwargs: {extra_kwargs!r}") @@ -22277,23 +22277,23 @@ def get_db_server(self, exadata_infrastructure_id, db_server_id, **kwargs): "dbServerId": db_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "exadataInfrastructureId": exadata_infrastructure_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22372,7 +22372,7 @@ def get_db_system(self, db_system_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/GetDbSystem" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_system got unknown kwargs: {extra_kwargs!r}") @@ -22381,9 +22381,9 @@ def get_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22465,7 +22465,7 @@ def get_db_system_patch(self, db_system_id, patch_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Patch/GetDbSystemPatch" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_system_patch got unknown kwargs: {extra_kwargs!r}") @@ -22475,9 +22475,9 @@ def get_db_system_patch(self, db_system_id, patch_id, **kwargs): "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22559,7 +22559,7 @@ def get_db_system_patch_history_entry(self, db_system_id, patch_history_entry_id api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PatchHistoryEntry/GetDbSystemPatchHistoryEntry" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_system_patch_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -22569,9 +22569,9 @@ def get_db_system_patch_history_entry(self, db_system_id, patch_history_entry_id "patchHistoryEntryId": patch_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22661,7 +22661,7 @@ def get_db_system_upgrade_history_entry(self, db_system_id, upgrade_history_entr "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_system_upgrade_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -22671,9 +22671,9 @@ def get_db_system_upgrade_history_entry(self, db_system_id, upgrade_history_entr "upgradeHistoryEntryId": upgrade_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22682,7 +22682,7 @@ def get_db_system_upgrade_history_entry(self, db_system_id, upgrade_history_entr "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22760,7 +22760,7 @@ def get_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dbnode_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -22769,9 +22769,9 @@ def get_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): "dbnodeSnapshotId": dbnode_snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22780,7 +22780,7 @@ def get_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22865,7 +22865,7 @@ def get_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): "opc_request_id", "excluded_fields" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -22874,9 +22874,9 @@ def get_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22891,14 +22891,14 @@ def get_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): query_params = { "excludedFields": self.base_client.generate_collection_format_param(kwargs.get("excluded_fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22978,7 +22978,7 @@ def get_exadata_infrastructure_ocpus(self, autonomous_exadata_infrastructure_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadata_infrastructure_ocpus got unknown kwargs: {extra_kwargs!r}") @@ -22987,9 +22987,9 @@ def get_exadata_infrastructure_ocpus(self, autonomous_exadata_infrastructure_id, "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22998,7 +22998,7 @@ def get_exadata_infrastructure_ocpus(self, autonomous_exadata_infrastructure_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23082,7 +23082,7 @@ def get_exadata_infrastructure_un_allocated_resources(self, exadata_infrastructu "opc_request_id", "db_servers" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadata_infrastructure_un_allocated_resources got unknown kwargs: {extra_kwargs!r}") @@ -23091,23 +23091,23 @@ def get_exadata_infrastructure_un_allocated_resources(self, exadata_infrastructu "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "dbServers": self.base_client.generate_collection_format_param(kwargs.get("db_servers", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23198,7 +23198,7 @@ def get_exadata_iorm_config(self, db_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadata_iorm_config got unknown kwargs: {extra_kwargs!r}") @@ -23207,9 +23207,9 @@ def get_exadata_iorm_config(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23218,7 +23218,7 @@ def get_exadata_iorm_config(self, db_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23296,7 +23296,7 @@ def get_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -23305,9 +23305,9 @@ def get_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23316,7 +23316,7 @@ def get_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23399,7 +23399,7 @@ def get_exadb_vm_cluster_update(self, exadb_vm_cluster_id, update_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadb_vm_cluster_update got unknown kwargs: {extra_kwargs!r}") @@ -23409,9 +23409,9 @@ def get_exadb_vm_cluster_update(self, exadb_vm_cluster_id, update_id, **kwargs): "updateId": update_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23420,7 +23420,7 @@ def get_exadb_vm_cluster_update(self, exadb_vm_cluster_id, update_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23503,7 +23503,7 @@ def get_exadb_vm_cluster_update_history_entry(self, exadb_vm_cluster_id, update_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadb_vm_cluster_update_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -23513,9 +23513,9 @@ def get_exadb_vm_cluster_update_history_entry(self, exadb_vm_cluster_id, update_ "updateHistoryEntryId": update_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23524,7 +23524,7 @@ def get_exadb_vm_cluster_update_history_entry(self, exadb_vm_cluster_id, update_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23602,7 +23602,7 @@ def get_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}") @@ -23611,9 +23611,9 @@ def get_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwargs): "exascaleDbStorageVaultId": exascale_db_storage_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23622,7 +23622,7 @@ def get_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23700,7 +23700,7 @@ def get_execution_action(self, execution_action_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_execution_action got unknown kwargs: {extra_kwargs!r}") @@ -23709,9 +23709,9 @@ def get_execution_action(self, execution_action_id, **kwargs): "executionActionId": execution_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23720,7 +23720,7 @@ def get_execution_action(self, execution_action_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23798,7 +23798,7 @@ def get_execution_window(self, execution_window_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_execution_window got unknown kwargs: {extra_kwargs!r}") @@ -23807,9 +23807,9 @@ def get_execution_window(self, execution_window_id, **kwargs): "executionWindowId": execution_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23818,7 +23818,7 @@ def get_execution_window(self, execution_window_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23892,7 +23892,7 @@ def get_external_backup_job(self, backup_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/GetExternalBackupJob" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_backup_job got unknown kwargs: {extra_kwargs!r}") @@ -23901,9 +23901,9 @@ def get_external_backup_job(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23988,7 +23988,7 @@ def get_external_container_database(self, external_container_database_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_container_database got unknown kwargs: {extra_kwargs!r}") @@ -23997,9 +23997,9 @@ def get_external_container_database(self, external_container_database_id, **kwar "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24008,7 +24008,7 @@ def get_external_container_database(self, external_container_database_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24087,7 +24087,7 @@ def get_external_database_connector(self, external_database_connector_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -24096,9 +24096,9 @@ def get_external_database_connector(self, external_database_connector_id, **kwar "externalDatabaseConnectorId": external_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24107,7 +24107,7 @@ def get_external_database_connector(self, external_database_connector_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24185,7 +24185,7 @@ def get_external_non_container_database(self, external_non_container_database_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_non_container_database got unknown kwargs: {extra_kwargs!r}") @@ -24194,9 +24194,9 @@ def get_external_non_container_database(self, external_non_container_database_id "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24205,7 +24205,7 @@ def get_external_non_container_database(self, external_non_container_database_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24284,7 +24284,7 @@ def get_external_pluggable_database(self, external_pluggable_database_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -24293,9 +24293,9 @@ def get_external_pluggable_database(self, external_pluggable_database_id, **kwar "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24304,7 +24304,7 @@ def get_external_pluggable_database(self, external_pluggable_database_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24393,7 +24393,7 @@ def get_infrastructure_target_versions(self, compartment_id, **kwargs): "target_resource_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_infrastructure_target_versions got unknown kwargs: {extra_kwargs!r}") @@ -24410,14 +24410,14 @@ def get_infrastructure_target_versions(self, compartment_id, **kwargs): "targetResourceId": kwargs.get("target_resource_id", missing), "targetResourceType": kwargs.get("target_resource_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24495,7 +24495,7 @@ def get_key_store(self, key_store_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_key_store got unknown kwargs: {extra_kwargs!r}") @@ -24504,9 +24504,9 @@ def get_key_store(self, key_store_id, **kwargs): "keyStoreId": key_store_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24515,7 +24515,7 @@ def get_key_store(self, key_store_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24583,7 +24583,7 @@ def get_maintenance_run(self, maintenance_run_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/MaintenanceRun/GetMaintenanceRun" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_maintenance_run got unknown kwargs: {extra_kwargs!r}") @@ -24592,9 +24592,9 @@ def get_maintenance_run(self, maintenance_run_id, **kwargs): "maintenanceRunId": maintenance_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24669,7 +24669,7 @@ def get_maintenance_run_history(self, maintenance_run_history_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/MaintenanceRunHistory/GetMaintenanceRunHistory" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_maintenance_run_history got unknown kwargs: {extra_kwargs!r}") @@ -24678,9 +24678,9 @@ def get_maintenance_run_history(self, maintenance_run_history_id, **kwargs): "maintenanceRunHistoryId": maintenance_run_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24765,7 +24765,7 @@ def get_oneoff_patch(self, oneoff_patch_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oneoff_patch got unknown kwargs: {extra_kwargs!r}") @@ -24774,9 +24774,9 @@ def get_oneoff_patch(self, oneoff_patch_id, **kwargs): "oneoffPatchId": oneoff_patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24785,7 +24785,7 @@ def get_oneoff_patch(self, oneoff_patch_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24868,7 +24868,7 @@ def get_pdb_conversion_history_entry(self, database_id, pdb_conversion_history_e "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pdb_conversion_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -24878,9 +24878,9 @@ def get_pdb_conversion_history_entry(self, database_id, pdb_conversion_history_e "pdbConversionHistoryEntryId": pdb_conversion_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24889,7 +24889,7 @@ def get_pdb_conversion_history_entry(self, database_id, pdb_conversion_history_e "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24959,7 +24959,7 @@ def get_pluggable_database(self, pluggable_database_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/GetPluggableDatabase" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -24968,9 +24968,9 @@ def get_pluggable_database(self, pluggable_database_id, **kwargs): "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25055,7 +25055,7 @@ def get_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pluggable_database_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -25064,9 +25064,9 @@ def get_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **kwar "pluggableDatabaseSnapshotId": pluggable_database_snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25075,7 +25075,7 @@ def get_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25153,7 +25153,7 @@ def get_scheduled_action(self, scheduled_action_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduled_action got unknown kwargs: {extra_kwargs!r}") @@ -25162,9 +25162,9 @@ def get_scheduled_action(self, scheduled_action_id, **kwargs): "scheduledActionId": scheduled_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25173,7 +25173,7 @@ def get_scheduled_action(self, scheduled_action_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25251,7 +25251,7 @@ def get_scheduling_plan(self, scheduling_plan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduling_plan got unknown kwargs: {extra_kwargs!r}") @@ -25260,9 +25260,9 @@ def get_scheduling_plan(self, scheduling_plan_id, **kwargs): "schedulingPlanId": scheduling_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25271,7 +25271,7 @@ def get_scheduling_plan(self, scheduling_plan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25349,7 +25349,7 @@ def get_scheduling_policy(self, scheduling_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduling_policy got unknown kwargs: {extra_kwargs!r}") @@ -25358,9 +25358,9 @@ def get_scheduling_policy(self, scheduling_policy_id, **kwargs): "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25369,7 +25369,7 @@ def get_scheduling_policy(self, scheduling_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25452,7 +25452,7 @@ def get_scheduling_window(self, scheduling_policy_id, scheduling_window_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduling_window got unknown kwargs: {extra_kwargs!r}") @@ -25462,9 +25462,9 @@ def get_scheduling_window(self, scheduling_policy_id, scheduling_window_id, **kw "schedulingWindowId": scheduling_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25473,7 +25473,7 @@ def get_scheduling_window(self, scheduling_policy_id, scheduling_window_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25551,7 +25551,7 @@ def get_vm_cluster(self, vm_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -25560,9 +25560,9 @@ def get_vm_cluster(self, vm_cluster_id, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25571,7 +25571,7 @@ def get_vm_cluster(self, vm_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25655,7 +25655,7 @@ def get_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_i "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -25665,9 +25665,9 @@ def get_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_i "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25676,7 +25676,7 @@ def get_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_i "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25751,7 +25751,7 @@ def get_vm_cluster_patch(self, vm_cluster_id, patch_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Patch/GetVmClusterPatch" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vm_cluster_patch got unknown kwargs: {extra_kwargs!r}") @@ -25761,9 +25761,9 @@ def get_vm_cluster_patch(self, vm_cluster_id, patch_id, **kwargs): "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25845,7 +25845,7 @@ def get_vm_cluster_patch_history_entry(self, vm_cluster_id, patch_history_entry_ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PatchHistoryEntry/GetVmClusterPatchHistoryEntry" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vm_cluster_patch_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -25855,9 +25855,9 @@ def get_vm_cluster_patch_history_entry(self, vm_cluster_id, patch_history_entry_ "patchHistoryEntryId": patch_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25947,7 +25947,7 @@ def get_vm_cluster_update(self, vm_cluster_id, update_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vm_cluster_update got unknown kwargs: {extra_kwargs!r}") @@ -25957,9 +25957,9 @@ def get_vm_cluster_update(self, vm_cluster_id, update_id, **kwargs): "updateId": update_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25968,7 +25968,7 @@ def get_vm_cluster_update(self, vm_cluster_id, update_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26051,7 +26051,7 @@ def get_vm_cluster_update_history_entry(self, vm_cluster_id, update_history_entr "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vm_cluster_update_history_entry got unknown kwargs: {extra_kwargs!r}") @@ -26061,9 +26061,9 @@ def get_vm_cluster_update_history_entry(self, vm_cluster_id, update_history_entr "updateHistoryEntryId": update_history_entry_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26072,7 +26072,7 @@ def get_vm_cluster_update_history_entry(self, vm_cluster_id, update_history_entr "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26152,7 +26152,7 @@ def launch_autonomous_exadata_infrastructure(self, launch_autonomous_exadata_inf "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"launch_autonomous_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -26162,7 +26162,7 @@ def launch_autonomous_exadata_infrastructure(self, launch_autonomous_exadata_inf "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26269,7 +26269,7 @@ def launch_db_system(self, launch_db_system_details, **kwargs): "opc_retry_token", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"launch_db_system got unknown kwargs: {extra_kwargs!r}") @@ -26280,7 +26280,7 @@ def launch_db_system(self, launch_db_system_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26393,7 +26393,7 @@ def list_application_vips(self, compartment_id, cloud_vm_cluster_id, **kwargs): "sort_by", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_application_vips got unknown kwargs: {extra_kwargs!r}") @@ -26428,14 +26428,14 @@ def list_application_vips(self, compartment_id, cloud_vm_cluster_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26562,7 +26562,7 @@ def list_autonomous_container_database_backups(self, **kwargs): "sort_order", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_container_database_backups got unknown kwargs: {extra_kwargs!r}") @@ -26607,14 +26607,14 @@ def list_autonomous_container_database_backups(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26696,7 +26696,7 @@ def list_autonomous_container_database_dataguard_associations(self, autonomous_c "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_container_database_dataguard_associations got unknown kwargs: {extra_kwargs!r}") @@ -26705,9 +26705,9 @@ def list_autonomous_container_database_dataguard_associations(self, autonomous_c "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26715,7 +26715,7 @@ def list_autonomous_container_database_dataguard_associations(self, autonomous_c "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -26819,7 +26819,7 @@ def list_autonomous_container_database_versions(self, compartment_id, service_co "opc_request_id", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_container_database_versions got unknown kwargs: {extra_kwargs!r}") @@ -26844,14 +26844,14 @@ def list_autonomous_container_database_versions(self, compartment_id, service_co "sortOrder": kwargs.get("sort_order", missing), "serviceComponent": service_component } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26989,7 +26989,7 @@ def list_autonomous_container_databases(self, compartment_id, **kwargs): "service_level_agreement_type", "cloud_autonomous_vm_cluster_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_container_databases got unknown kwargs: {extra_kwargs!r}") @@ -27037,7 +27037,7 @@ def list_autonomous_container_databases(self, compartment_id, **kwargs): "serviceLevelAgreementType": kwargs.get("service_level_agreement_type", missing), "cloudAutonomousVmClusterId": kwargs.get("cloud_autonomous_vm_cluster_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -27177,7 +27177,7 @@ def list_autonomous_database_backups(self, **kwargs): "infrastructure_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_backups got unknown kwargs: {extra_kwargs!r}") @@ -27224,14 +27224,14 @@ def list_autonomous_database_backups(self, **kwargs): "keyStoreId": kwargs.get("key_store_id", missing), "infrastructureType": kwargs.get("infrastructure_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27318,7 +27318,7 @@ def list_autonomous_database_character_sets(self, **kwargs): "is_dedicated", "character_set_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_character_sets got unknown kwargs: {extra_kwargs!r}") @@ -27335,14 +27335,14 @@ def list_autonomous_database_character_sets(self, **kwargs): "isDedicated": kwargs.get("is_dedicated", missing), "characterSetType": kwargs.get("character_set_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27463,7 +27463,7 @@ def list_autonomous_database_clones(self, compartment_id, autonomous_database_id "sort_by", "clone_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_clones got unknown kwargs: {extra_kwargs!r}") @@ -27472,9 +27472,9 @@ def list_autonomous_database_clones(self, compartment_id, autonomous_database_id "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27516,14 +27516,14 @@ def list_autonomous_database_clones(self, compartment_id, autonomous_database_id "sortBy": kwargs.get("sort_by", missing), "cloneType": kwargs.get("clone_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27607,7 +27607,7 @@ def list_autonomous_database_dataguard_associations(self, autonomous_database_id "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_dataguard_associations got unknown kwargs: {extra_kwargs!r}") @@ -27616,9 +27616,9 @@ def list_autonomous_database_dataguard_associations(self, autonomous_database_id "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27626,7 +27626,7 @@ def list_autonomous_database_dataguard_associations(self, autonomous_database_id "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -27719,7 +27719,7 @@ def list_autonomous_database_peers(self, autonomous_database_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_peers got unknown kwargs: {extra_kwargs!r}") @@ -27728,9 +27728,9 @@ def list_autonomous_database_peers(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27738,14 +27738,14 @@ def list_autonomous_database_peers(self, autonomous_database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27833,7 +27833,7 @@ def list_autonomous_database_refreshable_clones(self, autonomous_database_id, ** "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_refreshable_clones got unknown kwargs: {extra_kwargs!r}") @@ -27842,9 +27842,9 @@ def list_autonomous_database_refreshable_clones(self, autonomous_database_id, ** "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27852,14 +27852,14 @@ def list_autonomous_database_refreshable_clones(self, autonomous_database_id, ** "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27974,7 +27974,7 @@ def list_autonomous_database_software_images(self, compartment_id, image_shape_f "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_database_software_images got unknown kwargs: {extra_kwargs!r}") @@ -28016,14 +28016,14 @@ def list_autonomous_database_software_images(self, compartment_id, image_shape_f "displayName": kwargs.get("display_name", missing), "imageShapeFamily": image_shape_family } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28185,7 +28185,7 @@ def list_autonomous_databases(self, compartment_id, **kwargs): "is_resource_pool_leader", "resource_pool_leader_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_databases got unknown kwargs: {extra_kwargs!r}") @@ -28251,14 +28251,14 @@ def list_autonomous_databases(self, compartment_id, **kwargs): "isResourcePoolLeader": kwargs.get("is_resource_pool_leader", missing), "resourcePoolLeaderId": kwargs.get("resource_pool_leader_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28359,7 +28359,7 @@ def list_autonomous_db_preview_versions(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_db_preview_versions got unknown kwargs: {extra_kwargs!r}") @@ -28385,14 +28385,14 @@ def list_autonomous_db_preview_versions(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28490,7 +28490,7 @@ def list_autonomous_db_versions(self, compartment_id, **kwargs): "db_workload", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_db_versions got unknown kwargs: {extra_kwargs!r}") @@ -28516,14 +28516,14 @@ def list_autonomous_db_versions(self, compartment_id, **kwargs): "dbWorkload": kwargs.get("db_workload", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28612,7 +28612,7 @@ def list_autonomous_exadata_infrastructure_shapes(self, availability_domain, com "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_exadata_infrastructure_shapes got unknown kwargs: {extra_kwargs!r}") @@ -28623,14 +28623,14 @@ def list_autonomous_exadata_infrastructure_shapes(self, availability_domain, com "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28740,7 +28740,7 @@ def list_autonomous_exadata_infrastructures(self, compartment_id, **kwargs): "availability_domain", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_exadata_infrastructures got unknown kwargs: {extra_kwargs!r}") @@ -28776,7 +28776,7 @@ def list_autonomous_exadata_infrastructures(self, compartment_id, **kwargs): "availabilityDomain": kwargs.get("availability_domain", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28878,7 +28878,7 @@ def list_autonomous_virtual_machines(self, compartment_id, autonomous_vm_cluster "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_virtual_machines got unknown kwargs: {extra_kwargs!r}") @@ -28897,14 +28897,14 @@ def list_autonomous_virtual_machines(self, compartment_id, autonomous_vm_cluster "page": kwargs.get("page", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28996,7 +28996,7 @@ def list_autonomous_vm_cluster_acd_resource_usage(self, autonomous_vm_cluster_id "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_vm_cluster_acd_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -29005,9 +29005,9 @@ def list_autonomous_vm_cluster_acd_resource_usage(self, autonomous_vm_cluster_id "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29016,14 +29016,14 @@ def list_autonomous_vm_cluster_acd_resource_usage(self, autonomous_vm_cluster_id "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29137,7 +29137,7 @@ def list_autonomous_vm_clusters(self, compartment_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_autonomous_vm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -29173,14 +29173,14 @@ def list_autonomous_vm_clusters(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29270,7 +29270,7 @@ def list_backup_destination(self, compartment_id, **kwargs): "opc_request_id", "type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backup_destination got unknown kwargs: {extra_kwargs!r}") @@ -29281,14 +29281,14 @@ def list_backup_destination(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "type": kwargs.get("type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29409,7 +29409,7 @@ def list_backups(self, **kwargs): "time_expiry_scheduled_less_than", "backup_destination_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backups got unknown kwargs: {extra_kwargs!r}") @@ -29441,7 +29441,7 @@ def list_backups(self, **kwargs): "timeExpiryScheduledLessThan": kwargs.get("time_expiry_scheduled_less_than", missing), "backupDestinationType": kwargs.get("backup_destination_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -29539,7 +29539,7 @@ def list_cloud_autonomous_vm_cluster_acd_resource_usage(self, cloud_autonomous_v "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_autonomous_vm_cluster_acd_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -29548,9 +29548,9 @@ def list_cloud_autonomous_vm_cluster_acd_resource_usage(self, cloud_autonomous_v "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29559,14 +29559,14 @@ def list_cloud_autonomous_vm_cluster_acd_resource_usage(self, cloud_autonomous_v "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29684,7 +29684,7 @@ def list_cloud_autonomous_vm_clusters(self, compartment_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_autonomous_vm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -29721,14 +29721,14 @@ def list_cloud_autonomous_vm_clusters(self, compartment_id, **kwargs): "availabilityDomain": kwargs.get("availability_domain", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29840,7 +29840,7 @@ def list_cloud_exadata_infrastructures(self, compartment_id, **kwargs): "display_name", "cluster_placement_group_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_exadata_infrastructures got unknown kwargs: {extra_kwargs!r}") @@ -29876,14 +29876,14 @@ def list_cloud_exadata_infrastructures(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "clusterPlacementGroupId": kwargs.get("cluster_placement_group_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29975,7 +29975,7 @@ def list_cloud_vm_cluster_update_history_entries(self, cloud_vm_cluster_id, **kw "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_vm_cluster_update_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -29984,9 +29984,9 @@ def list_cloud_vm_cluster_update_history_entries(self, cloud_vm_cluster_id, **kw "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30002,14 +30002,14 @@ def list_cloud_vm_cluster_update_history_entries(self, cloud_vm_cluster_id, **kw "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30103,7 +30103,7 @@ def list_cloud_vm_cluster_updates(self, cloud_vm_cluster_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_vm_cluster_updates got unknown kwargs: {extra_kwargs!r}") @@ -30112,9 +30112,9 @@ def list_cloud_vm_cluster_updates(self, cloud_vm_cluster_id, **kwargs): "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30130,14 +30130,14 @@ def list_cloud_vm_cluster_updates(self, cloud_vm_cluster_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30257,7 +30257,7 @@ def list_cloud_vm_clusters(self, compartment_id, **kwargs): "opc_request_id", "vm_cluster_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_vm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -30301,14 +30301,14 @@ def list_cloud_vm_clusters(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "vmClusterType": kwargs.get("vm_cluster_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30378,7 +30378,7 @@ def list_console_connections(self, db_node_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleConnection/ListConsoleConnections" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_console_connections got unknown kwargs: {extra_kwargs!r}") @@ -30387,9 +30387,9 @@ def list_console_connections(self, db_node_id, **kwargs): "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30504,7 +30504,7 @@ def list_console_histories(self, db_node_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_console_histories got unknown kwargs: {extra_kwargs!r}") @@ -30513,9 +30513,9 @@ def list_console_histories(self, db_node_id, **kwargs): "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30548,14 +30548,14 @@ def list_console_histories(self, db_node_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30650,7 +30650,7 @@ def list_container_database_patches(self, autonomous_container_database_id, comp "page", "autonomous_patch_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_database_patches got unknown kwargs: {extra_kwargs!r}") @@ -30659,9 +30659,9 @@ def list_container_database_patches(self, autonomous_container_database_id, comp "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30678,7 +30678,7 @@ def list_container_database_patches(self, autonomous_container_database_id, comp "compartmentId": compartment_id, "autonomousPatchType": kwargs.get("autonomous_patch_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -30767,7 +30767,7 @@ def list_data_guard_associations(self, database_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_guard_associations got unknown kwargs: {extra_kwargs!r}") @@ -30776,9 +30776,9 @@ def list_data_guard_associations(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30786,7 +30786,7 @@ def list_data_guard_associations(self, database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -30924,7 +30924,7 @@ def list_database_software_images(self, compartment_id, **kwargs): "db_system_id", "is_upgrade_supported" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_software_images got unknown kwargs: {extra_kwargs!r}") @@ -30978,7 +30978,7 @@ def list_database_software_images(self, compartment_id, **kwargs): "dbSystemId": kwargs.get("db_system_id", missing), "isUpgradeSupported": kwargs.get("is_upgrade_supported", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31093,7 +31093,7 @@ def list_database_upgrade_history_entries(self, database_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_upgrade_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -31102,9 +31102,9 @@ def list_database_upgrade_history_entries(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31144,14 +31144,14 @@ def list_database_upgrade_history_entries(self, database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31269,7 +31269,7 @@ def list_databases(self, compartment_id, **kwargs): "lifecycle_state", "db_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_databases got unknown kwargs: {extra_kwargs!r}") @@ -31306,7 +31306,7 @@ def list_databases(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "dbName": kwargs.get("db_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31393,7 +31393,7 @@ def list_db_home_patch_history_entries(self, db_home_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_home_patch_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -31402,9 +31402,9 @@ def list_db_home_patch_history_entries(self, db_home_id, **kwargs): "dbHomeId": db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31412,7 +31412,7 @@ def list_db_home_patch_history_entries(self, db_home_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31501,7 +31501,7 @@ def list_db_home_patches(self, db_home_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_home_patches got unknown kwargs: {extra_kwargs!r}") @@ -31510,9 +31510,9 @@ def list_db_home_patches(self, db_home_id, **kwargs): "dbHomeId": db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31520,7 +31520,7 @@ def list_db_home_patches(self, db_home_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31653,7 +31653,7 @@ def list_db_homes(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_homes got unknown kwargs: {extra_kwargs!r}") @@ -31692,7 +31692,7 @@ def list_db_homes(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31815,7 +31815,7 @@ def list_db_nodes(self, compartment_id, **kwargs): "lifecycle_state", "db_server_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_nodes got unknown kwargs: {extra_kwargs!r}") @@ -31852,7 +31852,7 @@ def list_db_nodes(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "dbServerId": kwargs.get("db_server_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31970,7 +31970,7 @@ def list_db_servers(self, compartment_id, exadata_infrastructure_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_servers got unknown kwargs: {extra_kwargs!r}") @@ -32006,14 +32006,14 @@ def list_db_servers(self, compartment_id, exadata_infrastructure_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32090,7 +32090,7 @@ def list_db_system_compute_performances(self, **kwargs): "db_system_shape", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_compute_performances got unknown kwargs: {extra_kwargs!r}") @@ -32098,14 +32098,14 @@ def list_db_system_compute_performances(self, **kwargs): query_params = { "dbSystemShape": kwargs.get("db_system_shape", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32187,7 +32187,7 @@ def list_db_system_patch_history_entries(self, db_system_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_patch_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -32196,9 +32196,9 @@ def list_db_system_patch_history_entries(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32206,7 +32206,7 @@ def list_db_system_patch_history_entries(self, db_system_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -32295,7 +32295,7 @@ def list_db_system_patches(self, db_system_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_patches got unknown kwargs: {extra_kwargs!r}") @@ -32304,9 +32304,9 @@ def list_db_system_patches(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32314,7 +32314,7 @@ def list_db_system_patches(self, db_system_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -32411,7 +32411,7 @@ def list_db_system_shapes(self, compartment_id, **kwargs): "page", "shape_attribute" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_shapes got unknown kwargs: {extra_kwargs!r}") @@ -32423,7 +32423,7 @@ def list_db_system_shapes(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "shapeAttribute": kwargs.get("shape_attribute", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -32524,7 +32524,7 @@ def list_db_system_storage_performances(self, storage_management, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_storage_performances got unknown kwargs: {extra_kwargs!r}") @@ -32548,14 +32548,14 @@ def list_db_system_storage_performances(self, storage_management, **kwargs): "databaseEdition": kwargs.get("database_edition", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32665,7 +32665,7 @@ def list_db_system_upgrade_history_entries(self, db_system_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_upgrade_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -32674,9 +32674,9 @@ def list_db_system_upgrade_history_entries(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32716,14 +32716,14 @@ def list_db_system_upgrade_history_entries(self, db_system_id, **kwargs): "upgradeAction": kwargs.get("upgrade_action", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32807,7 +32807,7 @@ def list_db_system_upgrades(self, db_system_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_system_upgrades got unknown kwargs: {extra_kwargs!r}") @@ -32816,9 +32816,9 @@ def list_db_system_upgrades(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32826,7 +32826,7 @@ def list_db_system_upgrades(self, db_system_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -32956,7 +32956,7 @@ def list_db_systems(self, compartment_id, **kwargs): "availability_domain", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_systems got unknown kwargs: {extra_kwargs!r}") @@ -32993,7 +32993,7 @@ def list_db_systems(self, compartment_id, **kwargs): "availabilityDomain": kwargs.get("availability_domain", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -33110,7 +33110,7 @@ def list_db_versions(self, compartment_id, **kwargs): "is_upgrade_supported", "is_database_software_image_supported" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_versions got unknown kwargs: {extra_kwargs!r}") @@ -33133,7 +33133,7 @@ def list_db_versions(self, compartment_id, **kwargs): "isUpgradeSupported": kwargs.get("is_upgrade_supported", missing), "isDatabaseSoftwareImageSupported": kwargs.get("is_database_software_image_supported", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -33254,7 +33254,7 @@ def list_dbnode_snapshots(self, compartment_id, **kwargs): "source_dbnode_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dbnode_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -33291,14 +33291,14 @@ def list_dbnode_snapshots(self, compartment_id, **kwargs): "clusterId": kwargs.get("cluster_id", missing), "sourceDbnodeId": kwargs.get("source_dbnode_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33413,7 +33413,7 @@ def list_exadata_infrastructures(self, compartment_id, **kwargs): "display_name", "excluded_fields" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exadata_infrastructures got unknown kwargs: {extra_kwargs!r}") @@ -33457,14 +33457,14 @@ def list_exadata_infrastructures(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "excludedFields": self.base_client.generate_collection_format_param(kwargs.get("excluded_fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33556,7 +33556,7 @@ def list_exadb_vm_cluster_update_history_entries(self, exadb_vm_cluster_id, **kw "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exadb_vm_cluster_update_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -33565,9 +33565,9 @@ def list_exadb_vm_cluster_update_history_entries(self, exadb_vm_cluster_id, **kw "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33583,14 +33583,14 @@ def list_exadb_vm_cluster_update_history_entries(self, exadb_vm_cluster_id, **kw "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33688,7 +33688,7 @@ def list_exadb_vm_cluster_updates(self, exadb_vm_cluster_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exadb_vm_cluster_updates got unknown kwargs: {extra_kwargs!r}") @@ -33697,9 +33697,9 @@ def list_exadb_vm_cluster_updates(self, exadb_vm_cluster_id, **kwargs): "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33716,14 +33716,14 @@ def list_exadb_vm_cluster_updates(self, exadb_vm_cluster_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33841,7 +33841,7 @@ def list_exadb_vm_clusters(self, compartment_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exadb_vm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -33878,14 +33878,14 @@ def list_exadb_vm_clusters(self, compartment_id, **kwargs): "clusterPlacementGroupId": kwargs.get("cluster_placement_group_id", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34017,7 +34017,7 @@ def list_exascale_db_storage_vaults(self, compartment_id, **kwargs): "opc_request_id", "exadata_infrastructure_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exascale_db_storage_vaults got unknown kwargs: {extra_kwargs!r}") @@ -34058,14 +34058,14 @@ def list_exascale_db_storage_vaults(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "exadataInfrastructureId": kwargs.get("exadata_infrastructure_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34177,7 +34177,7 @@ def list_execution_actions(self, compartment_id, **kwargs): "execution_window_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_execution_actions got unknown kwargs: {extra_kwargs!r}") @@ -34213,14 +34213,14 @@ def list_execution_actions(self, compartment_id, **kwargs): "executionWindowId": kwargs.get("execution_window_id", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34332,7 +34332,7 @@ def list_execution_windows(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_execution_windows got unknown kwargs: {extra_kwargs!r}") @@ -34368,14 +34368,14 @@ def list_execution_windows(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34486,7 +34486,7 @@ def list_external_container_databases(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_container_databases got unknown kwargs: {extra_kwargs!r}") @@ -34521,14 +34521,14 @@ def list_external_container_databases(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34644,7 +34644,7 @@ def list_external_database_connectors(self, compartment_id, external_database_id "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_database_connectors got unknown kwargs: {extra_kwargs!r}") @@ -34680,14 +34680,14 @@ def list_external_database_connectors(self, compartment_id, external_database_id "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34798,7 +34798,7 @@ def list_external_non_container_databases(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_non_container_databases got unknown kwargs: {extra_kwargs!r}") @@ -34833,14 +34833,14 @@ def list_external_non_container_databases(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34958,7 +34958,7 @@ def list_external_pluggable_databases(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_pluggable_databases got unknown kwargs: {extra_kwargs!r}") @@ -34994,14 +34994,14 @@ def list_external_pluggable_databases(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35103,7 +35103,7 @@ def list_flex_components(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_flex_components got unknown kwargs: {extra_kwargs!r}") @@ -35131,7 +35131,7 @@ def list_flex_components(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -35256,7 +35256,7 @@ def list_gi_version_minor_versions(self, version, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_gi_version_minor_versions got unknown kwargs: {extra_kwargs!r}") @@ -35265,9 +35265,9 @@ def list_gi_version_minor_versions(self, version, **kwargs): "version": version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35303,14 +35303,14 @@ def list_gi_version_minor_versions(self, version, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35416,7 +35416,7 @@ def list_gi_versions(self, compartment_id, **kwargs): "resource_id", "shape_attribute" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_gi_versions got unknown kwargs: {extra_kwargs!r}") @@ -35438,7 +35438,7 @@ def list_gi_versions(self, compartment_id, **kwargs): "resourceId": kwargs.get("resource_id", missing), "shapeAttribute": kwargs.get("shape_attribute", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -35529,7 +35529,7 @@ def list_key_stores(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_key_stores got unknown kwargs: {extra_kwargs!r}") @@ -35539,14 +35539,14 @@ def list_key_stores(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35674,7 +35674,7 @@ def list_maintenance_run_history(self, compartment_id, **kwargs): "availability_domain", "maintenance_subtype" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_maintenance_run_history got unknown kwargs: {extra_kwargs!r}") @@ -35734,7 +35734,7 @@ def list_maintenance_run_history(self, compartment_id, **kwargs): "availabilityDomain": kwargs.get("availability_domain", missing), "maintenanceSubtype": kwargs.get("maintenance_subtype", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -35871,7 +35871,7 @@ def list_maintenance_runs(self, compartment_id, **kwargs): "availability_domain", "maintenance_subtype" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_maintenance_runs got unknown kwargs: {extra_kwargs!r}") @@ -35932,7 +35932,7 @@ def list_maintenance_runs(self, compartment_id, **kwargs): "availabilityDomain": kwargs.get("availability_domain", missing), "maintenanceSubtype": kwargs.get("maintenance_subtype", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -36045,7 +36045,7 @@ def list_oneoff_patches(self, compartment_id, **kwargs): "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oneoff_patches got unknown kwargs: {extra_kwargs!r}") @@ -36080,14 +36080,14 @@ def list_oneoff_patches(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36173,7 +36173,7 @@ def list_params_for_action_type(self, type, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_params_for_action_type got unknown kwargs: {extra_kwargs!r}") @@ -36189,14 +36189,14 @@ def list_params_for_action_type(self, type, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36306,7 +36306,7 @@ def list_pdb_conversion_history_entries(self, database_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pdb_conversion_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -36315,9 +36315,9 @@ def list_pdb_conversion_history_entries(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36357,14 +36357,14 @@ def list_pdb_conversion_history_entries(self, database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36485,7 +36485,7 @@ def list_pluggable_database_snapshots(self, **kwargs): "pluggable_database_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pluggable_database_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -36522,14 +36522,14 @@ def list_pluggable_database_snapshots(self, **kwargs): "clusterId": kwargs.get("cluster_id", missing), "pluggableDatabaseId": kwargs.get("pluggable_database_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36640,7 +36640,7 @@ def list_pluggable_databases(self, **kwargs): "lifecycle_state", "pdb_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pluggable_databases got unknown kwargs: {extra_kwargs!r}") @@ -36676,7 +36676,7 @@ def list_pluggable_databases(self, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "pdbName": kwargs.get("pdb_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -36777,7 +36777,7 @@ def list_recommended_scheduled_actions(self, scheduling_policy_id, scheduling_po "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recommended_scheduled_actions got unknown kwargs: {extra_kwargs!r}") @@ -36786,9 +36786,9 @@ def list_recommended_scheduled_actions(self, scheduling_policy_id, scheduling_po "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36804,14 +36804,14 @@ def list_recommended_scheduled_actions(self, scheduling_policy_id, scheduling_po "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36899,7 +36899,7 @@ def list_resource_pool_members(self, autonomous_database_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_pool_members got unknown kwargs: {extra_kwargs!r}") @@ -36908,9 +36908,9 @@ def list_resource_pool_members(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36918,14 +36918,14 @@ def list_resource_pool_members(self, autonomous_database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37047,7 +37047,7 @@ def list_scheduled_actions(self, compartment_id, **kwargs): "id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_actions got unknown kwargs: {extra_kwargs!r}") @@ -37085,14 +37085,14 @@ def list_scheduled_actions(self, compartment_id, **kwargs): "id": kwargs.get("id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37212,7 +37212,7 @@ def list_scheduling_plans(self, compartment_id, **kwargs): "resource_id", "id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduling_plans got unknown kwargs: {extra_kwargs!r}") @@ -37250,14 +37250,14 @@ def list_scheduling_plans(self, compartment_id, **kwargs): "resourceId": kwargs.get("resource_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37365,7 +37365,7 @@ def list_scheduling_policies(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduling_policies got unknown kwargs: {extra_kwargs!r}") @@ -37400,14 +37400,14 @@ def list_scheduling_policies(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37521,7 +37521,7 @@ def list_scheduling_windows(self, scheduling_policy_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduling_windows got unknown kwargs: {extra_kwargs!r}") @@ -37530,9 +37530,9 @@ def list_scheduling_windows(self, scheduling_policy_id, **kwargs): "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -37566,14 +37566,14 @@ def list_scheduling_windows(self, scheduling_policy_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37685,7 +37685,7 @@ def list_system_version_minor_versions(self, major_version, compartment_id, gi_v "resource_id", "is_latest" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_system_version_minor_versions got unknown kwargs: {extra_kwargs!r}") @@ -37694,9 +37694,9 @@ def list_system_version_minor_versions(self, major_version, compartment_id, gi_v "majorVersion": major_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -37717,14 +37717,14 @@ def list_system_version_minor_versions(self, major_version, compartment_id, gi_v "resourceId": kwargs.get("resource_id", missing), "isLatest": kwargs.get("is_latest", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37833,7 +37833,7 @@ def list_system_versions(self, compartment_id, gi_version, **kwargs): "is_latest", "resource_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_system_versions got unknown kwargs: {extra_kwargs!r}") @@ -37855,14 +37855,14 @@ def list_system_versions(self, compartment_id, gi_version, **kwargs): "resourceId": kwargs.get("resource_id", missing), "giVersion": gi_version } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37975,7 +37975,7 @@ def list_vm_cluster_networks(self, exadata_infrastructure_id, compartment_id, ** "display_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vm_cluster_networks got unknown kwargs: {extra_kwargs!r}") @@ -37984,9 +37984,9 @@ def list_vm_cluster_networks(self, exadata_infrastructure_id, compartment_id, ** "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38020,14 +38020,14 @@ def list_vm_cluster_networks(self, exadata_infrastructure_id, compartment_id, ** "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38111,7 +38111,7 @@ def list_vm_cluster_patch_history_entries(self, vm_cluster_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vm_cluster_patch_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -38120,9 +38120,9 @@ def list_vm_cluster_patch_history_entries(self, vm_cluster_id, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38130,7 +38130,7 @@ def list_vm_cluster_patch_history_entries(self, vm_cluster_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -38219,7 +38219,7 @@ def list_vm_cluster_patches(self, vm_cluster_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vm_cluster_patches got unknown kwargs: {extra_kwargs!r}") @@ -38228,9 +38228,9 @@ def list_vm_cluster_patches(self, vm_cluster_id, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38238,7 +38238,7 @@ def list_vm_cluster_patches(self, vm_cluster_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -38343,7 +38343,7 @@ def list_vm_cluster_update_history_entries(self, vm_cluster_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vm_cluster_update_history_entries got unknown kwargs: {extra_kwargs!r}") @@ -38352,9 +38352,9 @@ def list_vm_cluster_update_history_entries(self, vm_cluster_id, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38378,14 +38378,14 @@ def list_vm_cluster_update_history_entries(self, vm_cluster_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38485,7 +38485,7 @@ def list_vm_cluster_updates(self, vm_cluster_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vm_cluster_updates got unknown kwargs: {extra_kwargs!r}") @@ -38494,9 +38494,9 @@ def list_vm_cluster_updates(self, vm_cluster_id, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38520,14 +38520,14 @@ def list_vm_cluster_updates(self, vm_cluster_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38648,7 +38648,7 @@ def list_vm_clusters(self, compartment_id, **kwargs): "opc_request_id", "vm_cluster_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -38692,14 +38692,14 @@ def list_vm_clusters(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "vmClusterType": kwargs.get("vm_cluster_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38795,7 +38795,7 @@ def local_clone_pluggable_database(self, local_clone_pluggable_database_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"local_clone_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -38804,9 +38804,9 @@ def local_clone_pluggable_database(self, local_clone_pluggable_database_details, "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38817,7 +38817,7 @@ def local_clone_pluggable_database(self, local_clone_pluggable_database_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38909,7 +38909,7 @@ def migrate_autonomous_container_database_dataguard_association(self, autonomous "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"migrate_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -38919,9 +38919,9 @@ def migrate_autonomous_container_database_dataguard_association(self, autonomous "autonomousContainerDatabaseDataguardAssociationId": autonomous_container_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -38931,7 +38931,7 @@ def migrate_autonomous_container_database_dataguard_association(self, autonomous "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39030,7 +39030,7 @@ def migrate_data_guard_association_to_multi_data_guards(self, database_id, data_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"migrate_data_guard_association_to_multi_data_guards got unknown kwargs: {extra_kwargs!r}") @@ -39040,9 +39040,9 @@ def migrate_data_guard_association_to_multi_data_guards(self, database_id, data_ "dataGuardAssociationId": data_guard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39053,7 +39053,7 @@ def migrate_data_guard_association_to_multi_data_guards(self, database_id, data_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39149,7 +39149,7 @@ def migrate_exadata_db_system_resource_model(self, db_system_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"migrate_exadata_db_system_resource_model got unknown kwargs: {extra_kwargs!r}") @@ -39158,9 +39158,9 @@ def migrate_exadata_db_system_resource_model(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39171,7 +39171,7 @@ def migrate_exadata_db_system_resource_model(self, db_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39269,7 +39269,7 @@ def migrate_vault_key(self, database_id, migrate_vault_key_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"migrate_vault_key got unknown kwargs: {extra_kwargs!r}") @@ -39278,9 +39278,9 @@ def migrate_vault_key(self, database_id, migrate_vault_key_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39291,7 +39291,7 @@ def migrate_vault_key(self, database_id, migrate_vault_key_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39389,7 +39389,7 @@ def modify_database_management(self, database_id, modify_database_management_det "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_database_management got unknown kwargs: {extra_kwargs!r}") @@ -39398,9 +39398,9 @@ def modify_database_management(self, database_id, modify_database_management_det "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39411,7 +39411,7 @@ def modify_database_management(self, database_id, modify_database_management_det "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39509,7 +39509,7 @@ def modify_pluggable_database_management(self, pluggable_database_id, modify_plu "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_pluggable_database_management got unknown kwargs: {extra_kwargs!r}") @@ -39518,9 +39518,9 @@ def modify_pluggable_database_management(self, pluggable_database_id, modify_plu "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39531,7 +39531,7 @@ def modify_pluggable_database_management(self, pluggable_database_id, modify_plu "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39629,7 +39629,7 @@ def mount_dbnode_snapshot(self, mount_dbnode_snapshot_details, dbnode_snapshot_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"mount_dbnode_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -39638,9 +39638,9 @@ def mount_dbnode_snapshot(self, mount_dbnode_snapshot_details, dbnode_snapshot_i "dbnodeSnapshotId": dbnode_snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39651,7 +39651,7 @@ def mount_dbnode_snapshot(self, mount_dbnode_snapshot_details, dbnode_snapshot_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39749,7 +39749,7 @@ def move_execution_action_member(self, execution_action_id, move_execution_actio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"move_execution_action_member got unknown kwargs: {extra_kwargs!r}") @@ -39758,9 +39758,9 @@ def move_execution_action_member(self, execution_action_id, move_execution_actio "executionActionId": execution_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39771,7 +39771,7 @@ def move_execution_action_member(self, execution_action_id, move_execution_actio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39866,7 +39866,7 @@ def refresh_data_guard_health_status(self, database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_data_guard_health_status got unknown kwargs: {extra_kwargs!r}") @@ -39875,9 +39875,9 @@ def refresh_data_guard_health_status(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -39888,7 +39888,7 @@ def refresh_data_guard_health_status(self, database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39981,7 +39981,7 @@ def refresh_pluggable_database(self, pluggable_database_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -39990,9 +39990,9 @@ def refresh_pluggable_database(self, pluggable_database_id, **kwargs): "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40003,7 +40003,7 @@ def refresh_pluggable_database(self, pluggable_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40091,7 +40091,7 @@ def register_autonomous_database_data_safe(self, autonomous_database_id, **kwarg "opc_dry_run", "register_autonomous_database_data_safe_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"register_autonomous_database_data_safe got unknown kwargs: {extra_kwargs!r}") @@ -40100,9 +40100,9 @@ def register_autonomous_database_data_safe(self, autonomous_database_id, **kwarg "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40112,7 +40112,7 @@ def register_autonomous_database_data_safe(self, autonomous_database_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40207,7 +40207,7 @@ def register_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, register_cloud_vm_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"register_cloud_vm_cluster_pkcs got unknown kwargs: {extra_kwargs!r}") @@ -40216,9 +40216,9 @@ def register_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, register_cloud_vm_ "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40229,7 +40229,7 @@ def register_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, register_cloud_vm_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40317,7 +40317,7 @@ def reinstate_autonomous_container_database_dataguard(self, autonomous_container "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reinstate_autonomous_container_database_dataguard got unknown kwargs: {extra_kwargs!r}") @@ -40326,9 +40326,9 @@ def reinstate_autonomous_container_database_dataguard(self, autonomous_container "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40338,7 +40338,7 @@ def reinstate_autonomous_container_database_dataguard(self, autonomous_container "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40423,7 +40423,7 @@ def reinstate_autonomous_container_database_dataguard_association(self, autonomo "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reinstate_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -40433,9 +40433,9 @@ def reinstate_autonomous_container_database_dataguard_association(self, autonomo "autonomousContainerDatabaseDataguardAssociationId": autonomous_container_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40444,7 +40444,7 @@ def reinstate_autonomous_container_database_dataguard_association(self, autonomo "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40541,7 +40541,7 @@ def reinstate_data_guard(self, database_id, reinstate_data_guard_details, **kwar "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reinstate_data_guard got unknown kwargs: {extra_kwargs!r}") @@ -40550,9 +40550,9 @@ def reinstate_data_guard(self, database_id, reinstate_data_guard_details, **kwar "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40563,7 +40563,7 @@ def reinstate_data_guard(self, database_id, reinstate_data_guard_details, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40654,7 +40654,7 @@ def reinstate_data_guard_association(self, database_id, data_guard_association_i "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reinstate_data_guard_association got unknown kwargs: {extra_kwargs!r}") @@ -40664,9 +40664,9 @@ def reinstate_data_guard_association(self, database_id, data_guard_association_i "dataGuardAssociationId": data_guard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40675,7 +40675,7 @@ def reinstate_data_guard_association(self, database_id, data_guard_association_i "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40774,7 +40774,7 @@ def remote_clone_pluggable_database(self, remote_clone_pluggable_database_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remote_clone_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -40783,9 +40783,9 @@ def remote_clone_pluggable_database(self, remote_clone_pluggable_database_detail "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40796,7 +40796,7 @@ def remote_clone_pluggable_database(self, remote_clone_pluggable_database_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40894,7 +40894,7 @@ def remove_virtual_machine_from_cloud_vm_cluster(self, remove_virtual_machine_fr "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_virtual_machine_from_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -40903,9 +40903,9 @@ def remove_virtual_machine_from_cloud_vm_cluster(self, remove_virtual_machine_fr "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -40916,7 +40916,7 @@ def remove_virtual_machine_from_cloud_vm_cluster(self, remove_virtual_machine_fr "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41014,7 +41014,7 @@ def remove_virtual_machine_from_exadb_vm_cluster(self, remove_virtual_machine_fr "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_virtual_machine_from_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -41023,9 +41023,9 @@ def remove_virtual_machine_from_exadb_vm_cluster(self, remove_virtual_machine_fr "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41036,7 +41036,7 @@ def remove_virtual_machine_from_exadb_vm_cluster(self, remove_virtual_machine_fr "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41134,7 +41134,7 @@ def remove_virtual_machine_from_vm_cluster(self, remove_virtual_machine_from_vm_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_virtual_machine_from_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -41143,9 +41143,9 @@ def remove_virtual_machine_from_vm_cluster(self, remove_virtual_machine_from_vm_ "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41156,7 +41156,7 @@ def remove_virtual_machine_from_vm_cluster(self, remove_virtual_machine_from_vm_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41254,7 +41254,7 @@ def reorder_execution_actions(self, execution_window_id, reorder_execution_actio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reorder_execution_actions got unknown kwargs: {extra_kwargs!r}") @@ -41263,9 +41263,9 @@ def reorder_execution_actions(self, execution_window_id, reorder_execution_actio "executionWindowId": execution_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41276,7 +41276,7 @@ def reorder_execution_actions(self, execution_window_id, reorder_execution_actio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41374,7 +41374,7 @@ def reorder_scheduled_actions(self, reorder_scheduled_actions_details, schedulin "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reorder_scheduled_actions got unknown kwargs: {extra_kwargs!r}") @@ -41383,9 +41383,9 @@ def reorder_scheduled_actions(self, reorder_scheduled_actions_details, schedulin "schedulingPlanId": scheduling_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41396,7 +41396,7 @@ def reorder_scheduled_actions(self, reorder_scheduled_actions_details, schedulin "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41500,7 +41500,7 @@ def resize_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resize_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -41510,9 +41510,9 @@ def resize_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41523,7 +41523,7 @@ def resize_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41621,7 +41621,7 @@ def resource_pool_shapes(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resource_pool_shapes got unknown kwargs: {extra_kwargs!r}") @@ -41630,7 +41630,7 @@ def resource_pool_shapes(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -41639,7 +41639,7 @@ def resource_pool_shapes(self, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41724,7 +41724,7 @@ def restart_autonomous_container_database(self, autonomous_container_database_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -41733,9 +41733,9 @@ def restart_autonomous_container_database(self, autonomous_container_database_id "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41745,7 +41745,7 @@ def restart_autonomous_container_database(self, autonomous_container_database_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41830,7 +41830,7 @@ def restart_autonomous_database(self, autonomous_database_id, **kwargs): "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -41839,9 +41839,9 @@ def restart_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41851,7 +41851,7 @@ def restart_autonomous_database(self, autonomous_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41939,7 +41939,7 @@ def restore_autonomous_database(self, autonomous_database_id, restore_autonomous "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -41948,9 +41948,9 @@ def restore_autonomous_database(self, autonomous_database_id, restore_autonomous "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -41960,7 +41960,7 @@ def restore_autonomous_database(self, autonomous_database_id, restore_autonomous "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42045,7 +42045,7 @@ def restore_database(self, database_id, restore_database_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_database got unknown kwargs: {extra_kwargs!r}") @@ -42054,9 +42054,9 @@ def restore_database(self, database_id, restore_database_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42065,7 +42065,7 @@ def restore_database(self, database_id, restore_database_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42165,7 +42165,7 @@ def rotate_autonomous_container_database_encryption_key(self, autonomous_contain "opc_request_id", "rotate_autonomous_container_database_encryption_key_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_autonomous_container_database_encryption_key got unknown kwargs: {extra_kwargs!r}") @@ -42174,9 +42174,9 @@ def rotate_autonomous_container_database_encryption_key(self, autonomous_contain "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42187,7 +42187,7 @@ def rotate_autonomous_container_database_encryption_key(self, autonomous_contain "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42288,7 +42288,7 @@ def rotate_autonomous_database_encryption_key(self, autonomous_database_id, **kw "opc_request_id", "rotate_autonomous_database_encryption_key_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_autonomous_database_encryption_key got unknown kwargs: {extra_kwargs!r}") @@ -42297,9 +42297,9 @@ def rotate_autonomous_database_encryption_key(self, autonomous_database_id, **kw "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42310,7 +42310,7 @@ def rotate_autonomous_database_encryption_key(self, autonomous_database_id, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42408,7 +42408,7 @@ def rotate_autonomous_vm_cluster_ords_certs(self, rotate_autonomous_vm_cluster_o "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_autonomous_vm_cluster_ords_certs got unknown kwargs: {extra_kwargs!r}") @@ -42417,9 +42417,9 @@ def rotate_autonomous_vm_cluster_ords_certs(self, rotate_autonomous_vm_cluster_o "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42430,7 +42430,7 @@ def rotate_autonomous_vm_cluster_ords_certs(self, rotate_autonomous_vm_cluster_o "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42526,7 +42526,7 @@ def rotate_autonomous_vm_cluster_ssl_certs(self, rotate_autonomous_vm_cluster_ss "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_autonomous_vm_cluster_ssl_certs got unknown kwargs: {extra_kwargs!r}") @@ -42535,9 +42535,9 @@ def rotate_autonomous_vm_cluster_ssl_certs(self, rotate_autonomous_vm_cluster_ss "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42548,7 +42548,7 @@ def rotate_autonomous_vm_cluster_ssl_certs(self, rotate_autonomous_vm_cluster_ss "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42645,7 +42645,7 @@ def rotate_cloud_autonomous_vm_cluster_ords_certs(self, cloud_autonomous_vm_clus "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_cloud_autonomous_vm_cluster_ords_certs got unknown kwargs: {extra_kwargs!r}") @@ -42654,9 +42654,9 @@ def rotate_cloud_autonomous_vm_cluster_ords_certs(self, cloud_autonomous_vm_clus "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42667,7 +42667,7 @@ def rotate_cloud_autonomous_vm_cluster_ords_certs(self, cloud_autonomous_vm_clus "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42764,7 +42764,7 @@ def rotate_cloud_autonomous_vm_cluster_ssl_certs(self, cloud_autonomous_vm_clust "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_cloud_autonomous_vm_cluster_ssl_certs got unknown kwargs: {extra_kwargs!r}") @@ -42773,9 +42773,9 @@ def rotate_cloud_autonomous_vm_cluster_ssl_certs(self, cloud_autonomous_vm_clust "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42786,7 +42786,7 @@ def rotate_cloud_autonomous_vm_cluster_ssl_certs(self, cloud_autonomous_vm_clust "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42879,7 +42879,7 @@ def rotate_ords_certs(self, autonomous_exadata_infrastructure_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_ords_certs got unknown kwargs: {extra_kwargs!r}") @@ -42888,9 +42888,9 @@ def rotate_ords_certs(self, autonomous_exadata_infrastructure_id, **kwargs): "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -42901,7 +42901,7 @@ def rotate_ords_certs(self, autonomous_exadata_infrastructure_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42992,7 +42992,7 @@ def rotate_pluggable_database_encryption_key(self, pluggable_database_id, **kwar "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_pluggable_database_encryption_key got unknown kwargs: {extra_kwargs!r}") @@ -43001,9 +43001,9 @@ def rotate_pluggable_database_encryption_key(self, pluggable_database_id, **kwar "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43014,7 +43014,7 @@ def rotate_pluggable_database_encryption_key(self, pluggable_database_id, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43105,7 +43105,7 @@ def rotate_ssl_certs(self, autonomous_exadata_infrastructure_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_ssl_certs got unknown kwargs: {extra_kwargs!r}") @@ -43114,9 +43114,9 @@ def rotate_ssl_certs(self, autonomous_exadata_infrastructure_id, **kwargs): "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43127,7 +43127,7 @@ def rotate_ssl_certs(self, autonomous_exadata_infrastructure_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43220,7 +43220,7 @@ def rotate_vault_key(self, database_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_vault_key got unknown kwargs: {extra_kwargs!r}") @@ -43229,9 +43229,9 @@ def rotate_vault_key(self, database_id, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43242,7 +43242,7 @@ def rotate_vault_key(self, database_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43321,7 +43321,7 @@ def saas_admin_user_status(self, autonomous_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"saas_admin_user_status got unknown kwargs: {extra_kwargs!r}") @@ -43330,9 +43330,9 @@ def saas_admin_user_status(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43341,7 +43341,7 @@ def saas_admin_user_status(self, autonomous_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43434,7 +43434,7 @@ def scan_external_container_database_pluggable_databases(self, external_containe "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scan_external_container_database_pluggable_databases got unknown kwargs: {extra_kwargs!r}") @@ -43443,16 +43443,16 @@ def scan_external_container_database_pluggable_databases(self, external_containe "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "externalDatabaseConnectorId": external_database_connector_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -43460,7 +43460,7 @@ def scan_external_container_database_pluggable_databases(self, external_containe "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43558,7 +43558,7 @@ def set_db_key_version(self, database_id, set_key_version_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_db_key_version got unknown kwargs: {extra_kwargs!r}") @@ -43567,9 +43567,9 @@ def set_db_key_version(self, database_id, set_key_version_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43580,7 +43580,7 @@ def set_db_key_version(self, database_id, set_key_version_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43680,7 +43680,7 @@ def set_pdb_key_version(self, pluggable_database_id, set_key_version_details, ** "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_pdb_key_version got unknown kwargs: {extra_kwargs!r}") @@ -43689,9 +43689,9 @@ def set_pdb_key_version(self, pluggable_database_id, set_key_version_details, ** "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43702,7 +43702,7 @@ def set_pdb_key_version(self, pluggable_database_id, set_key_version_details, ** "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43790,7 +43790,7 @@ def shrink_autonomous_database(self, autonomous_database_id, **kwargs): "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"shrink_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -43799,9 +43799,9 @@ def shrink_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43811,7 +43811,7 @@ def shrink_autonomous_database(self, autonomous_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -43896,7 +43896,7 @@ def start_autonomous_database(self, autonomous_database_id, **kwargs): "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -43905,9 +43905,9 @@ def start_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -43917,7 +43917,7 @@ def start_autonomous_database(self, autonomous_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44009,7 +44009,7 @@ def start_pluggable_database(self, pluggable_database_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -44018,9 +44018,9 @@ def start_pluggable_database(self, pluggable_database_id, **kwargs): "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44031,7 +44031,7 @@ def start_pluggable_database(self, pluggable_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44121,7 +44121,7 @@ def stop_autonomous_database(self, autonomous_database_id, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -44130,9 +44130,9 @@ def stop_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44143,7 +44143,7 @@ def stop_autonomous_database(self, autonomous_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44235,7 +44235,7 @@ def stop_pluggable_database(self, pluggable_database_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -44244,9 +44244,9 @@ def stop_pluggable_database(self, pluggable_database_id, **kwargs): "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44257,7 +44257,7 @@ def stop_pluggable_database(self, pluggable_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44358,7 +44358,7 @@ def switch_over_data_guard(self, database_id, switch_over_data_guard_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switch_over_data_guard got unknown kwargs: {extra_kwargs!r}") @@ -44367,9 +44367,9 @@ def switch_over_data_guard(self, database_id, switch_over_data_guard_details, ** "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44380,7 +44380,7 @@ def switch_over_data_guard(self, database_id, switch_over_data_guard_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44470,7 +44470,7 @@ def switchover_autonomous_container_database_dataguard(self, autonomous_containe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switchover_autonomous_container_database_dataguard got unknown kwargs: {extra_kwargs!r}") @@ -44479,9 +44479,9 @@ def switchover_autonomous_container_database_dataguard(self, autonomous_containe "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44491,7 +44491,7 @@ def switchover_autonomous_container_database_dataguard(self, autonomous_containe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44578,7 +44578,7 @@ def switchover_autonomous_container_database_dataguard_association(self, autonom "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switchover_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -44588,9 +44588,9 @@ def switchover_autonomous_container_database_dataguard_association(self, autonom "autonomousContainerDatabaseDataguardAssociationId": autonomous_container_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44599,7 +44599,7 @@ def switchover_autonomous_container_database_dataguard_association(self, autonom "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44705,7 +44705,7 @@ def switchover_autonomous_database(self, autonomous_database_id, **kwargs): "peer_db_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switchover_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -44714,16 +44714,16 @@ def switchover_autonomous_database(self, autonomous_database_id, **kwargs): "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "peerDbId": kwargs.get("peer_db_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -44733,7 +44733,7 @@ def switchover_autonomous_database(self, autonomous_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44827,7 +44827,7 @@ def switchover_data_guard_association(self, database_id, data_guard_association_ "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switchover_data_guard_association got unknown kwargs: {extra_kwargs!r}") @@ -44837,9 +44837,9 @@ def switchover_data_guard_association(self, database_id, data_guard_association_ "dataGuardAssociationId": data_guard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44848,7 +44848,7 @@ def switchover_data_guard_association(self, database_id, data_guard_association_ "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -44930,7 +44930,7 @@ def terminate_autonomous_container_database(self, autonomous_container_database_ "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -44939,9 +44939,9 @@ def terminate_autonomous_container_database(self, autonomous_container_database_ "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -44950,7 +44950,7 @@ def terminate_autonomous_container_database(self, autonomous_container_database_ "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45028,7 +45028,7 @@ def terminate_autonomous_exadata_infrastructure(self, autonomous_exadata_infrast "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_autonomous_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -45037,9 +45037,9 @@ def terminate_autonomous_exadata_infrastructure(self, autonomous_exadata_infrast "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45048,7 +45048,7 @@ def terminate_autonomous_exadata_infrastructure(self, autonomous_exadata_infrast "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45133,7 +45133,7 @@ def terminate_db_system(self, db_system_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_db_system got unknown kwargs: {extra_kwargs!r}") @@ -45142,9 +45142,9 @@ def terminate_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45153,7 +45153,7 @@ def terminate_db_system(self, db_system_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45246,7 +45246,7 @@ def unmount_dbnode_snapshot(self, unmount_dbnode_snapshot_details, dbnode_snapsh "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unmount_dbnode_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -45255,9 +45255,9 @@ def unmount_dbnode_snapshot(self, unmount_dbnode_snapshot_details, dbnode_snapsh "dbnodeSnapshotId": dbnode_snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45268,7 +45268,7 @@ def unmount_dbnode_snapshot(self, unmount_dbnode_snapshot_details, dbnode_snapsh "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45366,7 +45366,7 @@ def unregister_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, unregister_cloud "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unregister_cloud_vm_cluster_pkcs got unknown kwargs: {extra_kwargs!r}") @@ -45375,9 +45375,9 @@ def unregister_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, unregister_cloud "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45388,7 +45388,7 @@ def unregister_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, unregister_cloud "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45472,7 +45472,7 @@ def update_autonomous_container_database(self, autonomous_container_database_id, "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_container_database got unknown kwargs: {extra_kwargs!r}") @@ -45481,9 +45481,9 @@ def update_autonomous_container_database(self, autonomous_container_database_id, "autonomousContainerDatabaseId": autonomous_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45492,7 +45492,7 @@ def update_autonomous_container_database(self, autonomous_container_database_id, "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45586,7 +45586,7 @@ def update_autonomous_container_database_dataguard_association(self, autonomous_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}") @@ -45596,9 +45596,9 @@ def update_autonomous_container_database_dataguard_association(self, autonomous_ "autonomousContainerDatabaseDataguardAssociationId": autonomous_container_database_dataguard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45608,7 +45608,7 @@ def update_autonomous_container_database_dataguard_association(self, autonomous_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45702,7 +45702,7 @@ def update_autonomous_database(self, autonomous_database_id, update_autonomous_d "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -45711,9 +45711,9 @@ def update_autonomous_database(self, autonomous_database_id, update_autonomous_d "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45724,7 +45724,7 @@ def update_autonomous_database(self, autonomous_database_id, update_autonomous_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45818,7 +45818,7 @@ def update_autonomous_database_backup(self, autonomous_database_backup_id, updat "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}") @@ -45827,9 +45827,9 @@ def update_autonomous_database_backup(self, autonomous_database_backup_id, updat "autonomousDatabaseBackupId": autonomous_database_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -45840,7 +45840,7 @@ def update_autonomous_database_backup(self, autonomous_database_backup_id, updat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -45923,7 +45923,7 @@ def update_autonomous_database_regional_wallet(self, update_autonomous_database_ "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_database_regional_wallet got unknown kwargs: {extra_kwargs!r}") @@ -45934,7 +45934,7 @@ def update_autonomous_database_regional_wallet(self, update_autonomous_database_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46019,7 +46019,7 @@ def update_autonomous_database_software_image(self, autonomous_database_software "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -46028,9 +46028,9 @@ def update_autonomous_database_software_image(self, autonomous_database_software "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46040,7 +46040,7 @@ def update_autonomous_database_software_image(self, autonomous_database_software "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46128,7 +46128,7 @@ def update_autonomous_database_wallet(self, autonomous_database_id, update_auton "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_database_wallet got unknown kwargs: {extra_kwargs!r}") @@ -46137,9 +46137,9 @@ def update_autonomous_database_wallet(self, autonomous_database_id, update_auton "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46149,7 +46149,7 @@ def update_autonomous_database_wallet(self, autonomous_database_id, update_auton "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46232,7 +46232,7 @@ def update_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastruc "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -46241,9 +46241,9 @@ def update_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastruc "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46252,7 +46252,7 @@ def update_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastruc "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46341,7 +46341,7 @@ def update_autonomous_vm_cluster(self, autonomous_vm_cluster_id, update_autonomo "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -46350,9 +46350,9 @@ def update_autonomous_vm_cluster(self, autonomous_vm_cluster_id, update_autonomo "autonomousVmClusterId": autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46362,7 +46362,7 @@ def update_autonomous_vm_cluster(self, autonomous_vm_cluster_id, update_autonomo "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46451,7 +46451,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backup got unknown kwargs: {extra_kwargs!r}") @@ -46460,9 +46460,9 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46472,7 +46472,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46564,7 +46564,7 @@ def update_backup_destination(self, backup_destination_id, update_backup_destina "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backup_destination got unknown kwargs: {extra_kwargs!r}") @@ -46573,9 +46573,9 @@ def update_backup_destination(self, backup_destination_id, update_backup_destina "backupDestinationId": backup_destination_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46585,7 +46585,7 @@ def update_backup_destination(self, backup_destination_id, update_backup_destina "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46679,7 +46679,7 @@ def update_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, upd "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -46688,9 +46688,9 @@ def update_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, upd "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46701,7 +46701,7 @@ def update_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, upd "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46790,7 +46790,7 @@ def update_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -46799,9 +46799,9 @@ def update_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, u "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46811,7 +46811,7 @@ def update_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -46900,7 +46900,7 @@ def update_cloud_vm_cluster(self, cloud_vm_cluster_id, update_cloud_vm_cluster_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -46909,9 +46909,9 @@ def update_cloud_vm_cluster(self, cloud_vm_cluster_id, update_cloud_vm_cluster_d "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -46921,7 +46921,7 @@ def update_cloud_vm_cluster(self, cloud_vm_cluster_id, update_cloud_vm_cluster_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47010,7 +47010,7 @@ def update_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, cloud_vm_clus "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_vm_cluster_iorm_config got unknown kwargs: {extra_kwargs!r}") @@ -47019,9 +47019,9 @@ def update_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, cloud_vm_clus "cloudVmClusterId": cloud_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47031,7 +47031,7 @@ def update_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, cloud_vm_clus "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47123,7 +47123,7 @@ def update_console_connection(self, db_node_id, console_connection_id, update_co "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_console_connection got unknown kwargs: {extra_kwargs!r}") @@ -47133,9 +47133,9 @@ def update_console_connection(self, db_node_id, console_connection_id, update_co "consoleConnectionId": console_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47145,7 +47145,7 @@ def update_console_connection(self, db_node_id, console_connection_id, update_co "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47237,7 +47237,7 @@ def update_console_history(self, db_node_id, console_history_id, update_console_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_console_history got unknown kwargs: {extra_kwargs!r}") @@ -47247,9 +47247,9 @@ def update_console_history(self, db_node_id, console_history_id, update_console_ "consoleHistoryId": console_history_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47259,7 +47259,7 @@ def update_console_history(self, db_node_id, console_history_id, update_console_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47359,7 +47359,7 @@ def update_data_guard(self, database_id, update_data_guard_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_guard got unknown kwargs: {extra_kwargs!r}") @@ -47368,9 +47368,9 @@ def update_data_guard(self, database_id, update_data_guard_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47381,7 +47381,7 @@ def update_data_guard(self, database_id, update_data_guard_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47476,7 +47476,7 @@ def update_data_guard_association(self, database_id, data_guard_association_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_guard_association got unknown kwargs: {extra_kwargs!r}") @@ -47486,9 +47486,9 @@ def update_data_guard_association(self, database_id, data_guard_association_id, "dataGuardAssociationId": data_guard_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47498,7 +47498,7 @@ def update_data_guard_association(self, database_id, data_guard_association_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47583,7 +47583,7 @@ def update_database(self, database_id, update_database_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database got unknown kwargs: {extra_kwargs!r}") @@ -47592,9 +47592,9 @@ def update_database(self, database_id, update_database_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47603,7 +47603,7 @@ def update_database(self, database_id, update_database_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47688,7 +47688,7 @@ def update_database_software_image(self, database_software_image_id, update_data "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_software_image got unknown kwargs: {extra_kwargs!r}") @@ -47697,9 +47697,9 @@ def update_database_software_image(self, database_software_image_id, update_data "databaseSoftwareImageId": database_software_image_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47708,7 +47708,7 @@ def update_database_software_image(self, database_software_image_id, update_data "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47793,7 +47793,7 @@ def update_db_home(self, db_home_id, update_db_home_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_home got unknown kwargs: {extra_kwargs!r}") @@ -47802,9 +47802,9 @@ def update_db_home(self, db_home_id, update_db_home_details, **kwargs): "dbHomeId": db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47813,7 +47813,7 @@ def update_db_home(self, db_home_id, update_db_home_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -47902,7 +47902,7 @@ def update_db_node(self, db_node_id, update_db_node_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_node got unknown kwargs: {extra_kwargs!r}") @@ -47911,9 +47911,9 @@ def update_db_node(self, db_node_id, update_db_node_details, **kwargs): "dbNodeId": db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -47923,7 +47923,7 @@ def update_db_node(self, db_node_id, update_db_node_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48020,7 +48020,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "if_match", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_system got unknown kwargs: {extra_kwargs!r}") @@ -48029,9 +48029,9 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48041,7 +48041,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48131,7 +48131,7 @@ def update_exadata_infrastructure(self, exadata_infrastructure_id, update_exadat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -48140,9 +48140,9 @@ def update_exadata_infrastructure(self, exadata_infrastructure_id, update_exadat "exadataInfrastructureId": exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48152,7 +48152,7 @@ def update_exadata_infrastructure(self, exadata_infrastructure_id, update_exadat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48251,7 +48251,7 @@ def update_exadata_iorm_config(self, db_system_id, exadata_iorm_config_update_de "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_exadata_iorm_config got unknown kwargs: {extra_kwargs!r}") @@ -48260,9 +48260,9 @@ def update_exadata_iorm_config(self, db_system_id, exadata_iorm_config_update_de "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48272,7 +48272,7 @@ def update_exadata_iorm_config(self, db_system_id, exadata_iorm_config_update_de "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48361,7 +48361,7 @@ def update_exadb_vm_cluster(self, exadb_vm_cluster_id, update_exadb_vm_cluster_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -48370,9 +48370,9 @@ def update_exadb_vm_cluster(self, exadb_vm_cluster_id, update_exadb_vm_cluster_d "exadbVmClusterId": exadb_vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48382,7 +48382,7 @@ def update_exadb_vm_cluster(self, exadb_vm_cluster_id, update_exadb_vm_cluster_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48471,7 +48471,7 @@ def update_exascale_db_storage_vault(self, exascale_db_storage_vault_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}") @@ -48480,9 +48480,9 @@ def update_exascale_db_storage_vault(self, exascale_db_storage_vault_id, update_ "exascaleDbStorageVaultId": exascale_db_storage_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48492,7 +48492,7 @@ def update_exascale_db_storage_vault(self, exascale_db_storage_vault_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48581,7 +48581,7 @@ def update_execution_action(self, execution_action_id, update_execution_action_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_execution_action got unknown kwargs: {extra_kwargs!r}") @@ -48590,9 +48590,9 @@ def update_execution_action(self, execution_action_id, update_execution_action_d "executionActionId": execution_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48602,7 +48602,7 @@ def update_execution_action(self, execution_action_id, update_execution_action_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48691,7 +48691,7 @@ def update_execution_window(self, execution_window_id, update_execution_window_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_execution_window got unknown kwargs: {extra_kwargs!r}") @@ -48700,9 +48700,9 @@ def update_execution_window(self, execution_window_id, update_execution_window_d "executionWindowId": execution_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48712,7 +48712,7 @@ def update_execution_window(self, execution_window_id, update_execution_window_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48804,7 +48804,7 @@ def update_external_container_database(self, external_container_database_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_container_database got unknown kwargs: {extra_kwargs!r}") @@ -48813,9 +48813,9 @@ def update_external_container_database(self, external_container_database_id, upd "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48825,7 +48825,7 @@ def update_external_container_database(self, external_container_database_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -48915,7 +48915,7 @@ def update_external_database_connector(self, external_database_connector_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -48924,9 +48924,9 @@ def update_external_database_connector(self, external_database_connector_id, upd "externalDatabaseConnectorId": external_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -48936,7 +48936,7 @@ def update_external_database_connector(self, external_database_connector_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49025,7 +49025,7 @@ def update_external_non_container_database(self, external_non_container_database "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_non_container_database got unknown kwargs: {extra_kwargs!r}") @@ -49034,9 +49034,9 @@ def update_external_non_container_database(self, external_non_container_database "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49046,7 +49046,7 @@ def update_external_non_container_database(self, external_non_container_database "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49137,7 +49137,7 @@ def update_external_pluggable_database(self, external_pluggable_database_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -49146,9 +49146,9 @@ def update_external_pluggable_database(self, external_pluggable_database_id, upd "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49158,7 +49158,7 @@ def update_external_pluggable_database(self, external_pluggable_database_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49247,7 +49247,7 @@ def update_key_store(self, key_store_id, update_key_store_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_key_store got unknown kwargs: {extra_kwargs!r}") @@ -49256,9 +49256,9 @@ def update_key_store(self, key_store_id, update_key_store_details, **kwargs): "keyStoreId": key_store_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49268,7 +49268,7 @@ def update_key_store(self, key_store_id, update_key_store_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49351,7 +49351,7 @@ def update_maintenance_run(self, maintenance_run_id, update_maintenance_run_deta "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_maintenance_run got unknown kwargs: {extra_kwargs!r}") @@ -49360,9 +49360,9 @@ def update_maintenance_run(self, maintenance_run_id, update_maintenance_run_deta "maintenanceRunId": maintenance_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49371,7 +49371,7 @@ def update_maintenance_run(self, maintenance_run_id, update_maintenance_run_deta "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49460,7 +49460,7 @@ def update_oneoff_patch(self, oneoff_patch_id, update_oneoff_patch_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oneoff_patch got unknown kwargs: {extra_kwargs!r}") @@ -49469,9 +49469,9 @@ def update_oneoff_patch(self, oneoff_patch_id, update_oneoff_patch_details, **kw "oneoffPatchId": oneoff_patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49481,7 +49481,7 @@ def update_oneoff_patch(self, oneoff_patch_id, update_oneoff_patch_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49566,7 +49566,7 @@ def update_pluggable_database(self, pluggable_database_id, update_pluggable_data "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pluggable_database got unknown kwargs: {extra_kwargs!r}") @@ -49575,9 +49575,9 @@ def update_pluggable_database(self, pluggable_database_id, update_pluggable_data "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49586,7 +49586,7 @@ def update_pluggable_database(self, pluggable_database_id, update_pluggable_data "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49675,7 +49675,7 @@ def update_scheduled_action(self, scheduled_action_id, update_scheduled_action_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduled_action got unknown kwargs: {extra_kwargs!r}") @@ -49684,9 +49684,9 @@ def update_scheduled_action(self, scheduled_action_id, update_scheduled_action_d "scheduledActionId": scheduled_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49696,7 +49696,7 @@ def update_scheduled_action(self, scheduled_action_id, update_scheduled_action_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49785,7 +49785,7 @@ def update_scheduling_policy(self, scheduling_policy_id, update_scheduling_polic "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduling_policy got unknown kwargs: {extra_kwargs!r}") @@ -49794,9 +49794,9 @@ def update_scheduling_policy(self, scheduling_policy_id, update_scheduling_polic "schedulingPolicyId": scheduling_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49806,7 +49806,7 @@ def update_scheduling_policy(self, scheduling_policy_id, update_scheduling_polic "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -49900,7 +49900,7 @@ def update_scheduling_window(self, scheduling_policy_id, scheduling_window_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduling_window got unknown kwargs: {extra_kwargs!r}") @@ -49910,9 +49910,9 @@ def update_scheduling_window(self, scheduling_policy_id, scheduling_window_id, u "schedulingWindowId": scheduling_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -49922,7 +49922,7 @@ def update_scheduling_window(self, scheduling_policy_id, scheduling_window_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -50011,7 +50011,7 @@ def update_vm_cluster(self, vm_cluster_id, update_vm_cluster_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -50020,9 +50020,9 @@ def update_vm_cluster(self, vm_cluster_id, update_vm_cluster_details, **kwargs): "vmClusterId": vm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -50032,7 +50032,7 @@ def update_vm_cluster(self, vm_cluster_id, update_vm_cluster_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -50127,7 +50127,7 @@ def update_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -50137,9 +50137,9 @@ def update_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -50149,7 +50149,7 @@ def update_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -50238,7 +50238,7 @@ def upgrade_database(self, database_id, upgrade_database_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_database got unknown kwargs: {extra_kwargs!r}") @@ -50247,9 +50247,9 @@ def upgrade_database(self, database_id, upgrade_database_details, **kwargs): "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -50259,7 +50259,7 @@ def upgrade_database(self, database_id, upgrade_database_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -50356,7 +50356,7 @@ def upgrade_db_system(self, db_system_id, upgrade_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_db_system got unknown kwargs: {extra_kwargs!r}") @@ -50365,9 +50365,9 @@ def upgrade_db_system(self, db_system_id, upgrade_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -50378,7 +50378,7 @@ def upgrade_db_system(self, db_system_id, upgrade_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -50472,7 +50472,7 @@ def validate_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_netw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_vm_cluster_network got unknown kwargs: {extra_kwargs!r}") @@ -50482,9 +50482,9 @@ def validate_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_netw "vmClusterNetworkId": vm_cluster_network_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -50494,7 +50494,7 @@ def validate_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_netw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_management/db_management_client.py b/src/oci/database_management/db_management_client.py index dace06744..16d5d5636 100644 --- a/src/oci/database_management/db_management_client.py +++ b/src/oci/database_management/db_management_client.py @@ -178,7 +178,7 @@ def add_data_files(self, managed_database_id, tablespace_name, add_data_files_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_data_files got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def add_data_files(self, managed_database_id, tablespace_name, add_data_files_de "tablespaceName": tablespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -200,7 +200,7 @@ def add_data_files(self, managed_database_id, tablespace_name, add_data_files_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def add_managed_database_to_managed_database_group(self, managed_database_group_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_managed_database_to_managed_database_group got unknown kwargs: {extra_kwargs!r}") @@ -303,9 +303,9 @@ def add_managed_database_to_managed_database_group(self, managed_database_group_ "managedDatabaseGroupId": managed_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -315,7 +315,7 @@ def add_managed_database_to_managed_database_group(self, managed_database_group_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -426,7 +426,7 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): "sort_order", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"addm_tasks got unknown kwargs: {extra_kwargs!r}") @@ -435,9 +435,9 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -463,7 +463,7 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -471,7 +471,7 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -574,7 +574,7 @@ def change_database_parameters(self, managed_database_id, change_database_parame "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_parameters got unknown kwargs: {extra_kwargs!r}") @@ -583,9 +583,9 @@ def change_database_parameters(self, managed_database_id, change_database_parame "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -595,7 +595,7 @@ def change_database_parameters(self, managed_database_id, change_database_parame "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -695,7 +695,7 @@ def change_db_management_private_endpoint_compartment(self, db_management_privat "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_db_management_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -704,9 +704,9 @@ def change_db_management_private_endpoint_compartment(self, db_management_privat "dbManagementPrivateEndpointId": db_management_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -717,7 +717,7 @@ def change_db_management_private_endpoint_compartment(self, db_management_privat "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -817,7 +817,7 @@ def change_external_db_system_compartment(self, external_db_system_id, change_ex "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_external_db_system_compartment got unknown kwargs: {extra_kwargs!r}") @@ -826,9 +826,9 @@ def change_external_db_system_compartment(self, external_db_system_id, change_ex "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -839,7 +839,7 @@ def change_external_db_system_compartment(self, external_db_system_id, change_ex "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -939,7 +939,7 @@ def change_external_exadata_infrastructure_compartment(self, external_exadata_in "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_external_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}") @@ -948,9 +948,9 @@ def change_external_exadata_infrastructure_compartment(self, external_exadata_in "externalExadataInfrastructureId": external_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -961,7 +961,7 @@ def change_external_exadata_infrastructure_compartment(self, external_exadata_in "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1061,7 +1061,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1070,9 +1070,9 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1083,7 +1083,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1185,7 +1185,7 @@ def change_managed_database_group_compartment(self, managed_database_group_id, c "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_managed_database_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1194,9 +1194,9 @@ def change_managed_database_group_compartment(self, managed_database_group_id, c "managedDatabaseGroupId": managed_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1207,7 +1207,7 @@ def change_managed_database_group_compartment(self, managed_database_group_id, c "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1309,7 +1309,7 @@ def change_named_credential_compartment(self, named_credential_id, change_named_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_named_credential_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1318,9 +1318,9 @@ def change_named_credential_compartment(self, named_credential_id, change_named_ "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1331,7 +1331,7 @@ def change_named_credential_compartment(self, named_credential_id, change_named_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1417,7 +1417,7 @@ def change_plan_retention(self, managed_database_id, change_plan_retention_detai "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_plan_retention got unknown kwargs: {extra_kwargs!r}") @@ -1426,9 +1426,9 @@ def change_plan_retention(self, managed_database_id, change_plan_retention_detai "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1437,7 +1437,7 @@ def change_plan_retention(self, managed_database_id, change_plan_retention_detai "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1519,7 +1519,7 @@ def change_space_budget(self, managed_database_id, change_space_budget_details, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_space_budget got unknown kwargs: {extra_kwargs!r}") @@ -1528,9 +1528,9 @@ def change_space_budget(self, managed_database_id, change_space_budget_details, "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1539,7 +1539,7 @@ def change_space_budget(self, managed_database_id, change_space_budget_details, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1620,7 +1620,7 @@ def change_sql_plan_baselines_attributes(self, managed_database_id, change_sql_p "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sql_plan_baselines_attributes got unknown kwargs: {extra_kwargs!r}") @@ -1629,9 +1629,9 @@ def change_sql_plan_baselines_attributes(self, managed_database_id, change_sql_p "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1640,7 +1640,7 @@ def change_sql_plan_baselines_attributes(self, managed_database_id, change_sql_p "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1735,7 +1735,7 @@ def check_cloud_db_system_connector_connection_status(self, cloud_db_system_conn "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"check_cloud_db_system_connector_connection_status got unknown kwargs: {extra_kwargs!r}") @@ -1744,9 +1744,9 @@ def check_cloud_db_system_connector_connection_status(self, cloud_db_system_conn "cloudDbSystemConnectorId": cloud_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1757,7 +1757,7 @@ def check_cloud_db_system_connector_connection_status(self, cloud_db_system_conn "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1855,7 +1855,7 @@ def check_external_db_system_connector_connection_status(self, external_db_syste "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"check_external_db_system_connector_connection_status got unknown kwargs: {extra_kwargs!r}") @@ -1864,9 +1864,9 @@ def check_external_db_system_connector_connection_status(self, external_db_syste "externalDbSystemConnectorId": external_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1877,7 +1877,7 @@ def check_external_db_system_connector_connection_status(self, external_db_syste "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1974,7 +1974,7 @@ def check_external_exadata_storage_connector(self, external_exadata_storage_conn "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"check_external_exadata_storage_connector got unknown kwargs: {extra_kwargs!r}") @@ -1983,9 +1983,9 @@ def check_external_exadata_storage_connector(self, external_exadata_storage_conn "externalExadataStorageConnectorId": external_exadata_storage_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1996,7 +1996,7 @@ def check_external_exadata_storage_connector(self, external_exadata_storage_conn "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2092,7 +2092,7 @@ def check_external_my_sql_database_connector_connection_status(self, external_my "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"check_external_my_sql_database_connector_connection_status got unknown kwargs: {extra_kwargs!r}") @@ -2101,9 +2101,9 @@ def check_external_my_sql_database_connector_connection_status(self, external_my "externalMySqlDatabaseConnectorId": external_my_sql_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2114,7 +2114,7 @@ def check_external_my_sql_database_connector_connection_status(self, external_my "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2197,7 +2197,7 @@ def configure_automatic_capture_filters(self, managed_database_id, configure_aut "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_automatic_capture_filters got unknown kwargs: {extra_kwargs!r}") @@ -2206,9 +2206,9 @@ def configure_automatic_capture_filters(self, managed_database_id, configure_aut "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2217,7 +2217,7 @@ def configure_automatic_capture_filters(self, managed_database_id, configure_aut "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2300,7 +2300,7 @@ def configure_automatic_spm_evolve_advisor_task(self, managed_database_id, confi "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") @@ -2309,9 +2309,9 @@ def configure_automatic_spm_evolve_advisor_task(self, managed_database_id, confi "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2320,7 +2320,7 @@ def configure_automatic_spm_evolve_advisor_task(self, managed_database_id, confi "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2404,7 +2404,7 @@ def create_cloud_db_system(self, create_cloud_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_db_system got unknown kwargs: {extra_kwargs!r}") @@ -2415,7 +2415,7 @@ def create_cloud_db_system(self, create_cloud_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2502,7 +2502,7 @@ def create_cloud_db_system_connector(self, create_cloud_db_system_connector_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -2513,7 +2513,7 @@ def create_cloud_db_system_connector(self, create_cloud_db_system_connector_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2600,7 +2600,7 @@ def create_cloud_db_system_discovery(self, create_cloud_db_system_discovery_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -2611,7 +2611,7 @@ def create_cloud_db_system_discovery(self, create_cloud_db_system_discovery_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2698,7 +2698,7 @@ def create_db_management_private_endpoint(self, create_db_management_private_end "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_db_management_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2709,7 +2709,7 @@ def create_db_management_private_endpoint(self, create_db_management_private_end "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2794,7 +2794,7 @@ def create_external_db_system(self, create_external_db_system_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_db_system got unknown kwargs: {extra_kwargs!r}") @@ -2805,7 +2805,7 @@ def create_external_db_system(self, create_external_db_system_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2892,7 +2892,7 @@ def create_external_db_system_connector(self, create_external_db_system_connecto "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -2903,7 +2903,7 @@ def create_external_db_system_connector(self, create_external_db_system_connecto "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2990,7 +2990,7 @@ def create_external_db_system_discovery(self, create_external_db_system_discover "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -3001,7 +3001,7 @@ def create_external_db_system_discovery(self, create_external_db_system_discover "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3093,7 +3093,7 @@ def create_external_exadata_infrastructure(self, create_external_exadata_infrast "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -3104,7 +3104,7 @@ def create_external_exadata_infrastructure(self, create_external_exadata_infrast "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3191,7 +3191,7 @@ def create_external_exadata_storage_connector(self, create_external_exadata_stor "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_exadata_storage_connector got unknown kwargs: {extra_kwargs!r}") @@ -3202,7 +3202,7 @@ def create_external_exadata_storage_connector(self, create_external_exadata_stor "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3289,7 +3289,7 @@ def create_external_my_sql_database(self, create_external_my_sql_database_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_my_sql_database got unknown kwargs: {extra_kwargs!r}") @@ -3300,7 +3300,7 @@ def create_external_my_sql_database(self, create_external_my_sql_database_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3390,7 +3390,7 @@ def create_external_my_sql_database_connector(self, create_external_my_sql_datab "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_external_my_sql_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -3398,7 +3398,7 @@ def create_external_my_sql_database_connector(self, create_external_my_sql_datab query_params = { "isTestConnectionParam": is_test_connection_param } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3406,7 +3406,7 @@ def create_external_my_sql_database_connector(self, create_external_my_sql_datab "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3497,7 +3497,7 @@ def create_job(self, create_job_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job got unknown kwargs: {extra_kwargs!r}") @@ -3508,7 +3508,7 @@ def create_job(self, create_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3594,7 +3594,7 @@ def create_managed_database_group(self, create_managed_database_group_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_managed_database_group got unknown kwargs: {extra_kwargs!r}") @@ -3605,7 +3605,7 @@ def create_managed_database_group(self, create_managed_database_group_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3690,7 +3690,7 @@ def create_named_credential(self, create_named_credential_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -3701,7 +3701,7 @@ def create_named_credential(self, create_named_credential_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3791,7 +3791,7 @@ def create_tablespace(self, managed_database_id, create_tablespace_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tablespace got unknown kwargs: {extra_kwargs!r}") @@ -3800,9 +3800,9 @@ def create_tablespace(self, managed_database_id, create_tablespace_details, **kw "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3812,7 +3812,7 @@ def create_tablespace(self, managed_database_id, create_tablespace_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3901,7 +3901,7 @@ def delete_cloud_db_system(self, cloud_db_system_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_db_system got unknown kwargs: {extra_kwargs!r}") @@ -3910,9 +3910,9 @@ def delete_cloud_db_system(self, cloud_db_system_id, **kwargs): "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3922,7 +3922,7 @@ def delete_cloud_db_system(self, cloud_db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4006,7 +4006,7 @@ def delete_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -4015,9 +4015,9 @@ def delete_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwarg "cloudDbSystemConnectorId": cloud_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4027,7 +4027,7 @@ def delete_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4111,7 +4111,7 @@ def delete_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -4120,9 +4120,9 @@ def delete_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwarg "cloudDbSystemDiscoveryId": cloud_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4132,7 +4132,7 @@ def delete_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4216,7 +4216,7 @@ def delete_db_management_private_endpoint(self, db_management_private_endpoint_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_db_management_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4225,9 +4225,9 @@ def delete_db_management_private_endpoint(self, db_management_private_endpoint_i "dbManagementPrivateEndpointId": db_management_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4237,7 +4237,7 @@ def delete_db_management_private_endpoint(self, db_management_private_endpoint_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4321,7 +4321,7 @@ def delete_external_db_system(self, external_db_system_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_db_system got unknown kwargs: {extra_kwargs!r}") @@ -4330,9 +4330,9 @@ def delete_external_db_system(self, external_db_system_id, **kwargs): "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4342,7 +4342,7 @@ def delete_external_db_system(self, external_db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4426,7 +4426,7 @@ def delete_external_db_system_connector(self, external_db_system_connector_id, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -4435,9 +4435,9 @@ def delete_external_db_system_connector(self, external_db_system_connector_id, * "externalDbSystemConnectorId": external_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4447,7 +4447,7 @@ def delete_external_db_system_connector(self, external_db_system_connector_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4531,7 +4531,7 @@ def delete_external_db_system_discovery(self, external_db_system_discovery_id, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -4540,9 +4540,9 @@ def delete_external_db_system_discovery(self, external_db_system_discovery_id, * "externalDbSystemDiscoveryId": external_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4552,7 +4552,7 @@ def delete_external_db_system_discovery(self, external_db_system_discovery_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4636,7 +4636,7 @@ def delete_external_exadata_infrastructure(self, external_exadata_infrastructure "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -4645,9 +4645,9 @@ def delete_external_exadata_infrastructure(self, external_exadata_infrastructure "externalExadataInfrastructureId": external_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4657,7 +4657,7 @@ def delete_external_exadata_infrastructure(self, external_exadata_infrastructure "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4741,7 +4741,7 @@ def delete_external_exadata_storage_connector(self, external_exadata_storage_con "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_exadata_storage_connector got unknown kwargs: {extra_kwargs!r}") @@ -4750,9 +4750,9 @@ def delete_external_exadata_storage_connector(self, external_exadata_storage_con "externalExadataStorageConnectorId": external_exadata_storage_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4762,7 +4762,7 @@ def delete_external_exadata_storage_connector(self, external_exadata_storage_con "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4844,7 +4844,7 @@ def delete_external_my_sql_database(self, external_my_sql_database_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_my_sql_database got unknown kwargs: {extra_kwargs!r}") @@ -4853,9 +4853,9 @@ def delete_external_my_sql_database(self, external_my_sql_database_id, **kwargs) "externalMySqlDatabaseId": external_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4865,7 +4865,7 @@ def delete_external_my_sql_database(self, external_my_sql_database_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4947,7 +4947,7 @@ def delete_external_my_sql_database_connector(self, external_my_sql_database_con "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_external_my_sql_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -4956,9 +4956,9 @@ def delete_external_my_sql_database_connector(self, external_my_sql_database_con "externalMySqlDatabaseConnectorId": external_my_sql_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4968,7 +4968,7 @@ def delete_external_my_sql_database_connector(self, external_my_sql_database_con "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5050,7 +5050,7 @@ def delete_job(self, job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job got unknown kwargs: {extra_kwargs!r}") @@ -5059,9 +5059,9 @@ def delete_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5071,7 +5071,7 @@ def delete_job(self, job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5156,7 +5156,7 @@ def delete_managed_database_group(self, managed_database_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_managed_database_group got unknown kwargs: {extra_kwargs!r}") @@ -5165,9 +5165,9 @@ def delete_managed_database_group(self, managed_database_group_id, **kwargs): "managedDatabaseGroupId": managed_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5177,7 +5177,7 @@ def delete_managed_database_group(self, managed_database_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5261,7 +5261,7 @@ def delete_named_credential(self, named_credential_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -5270,9 +5270,9 @@ def delete_named_credential(self, named_credential_id, **kwargs): "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5282,7 +5282,7 @@ def delete_named_credential(self, named_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5361,7 +5361,7 @@ def delete_preferred_credential(self, managed_database_id, credential_name, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_preferred_credential got unknown kwargs: {extra_kwargs!r}") @@ -5371,9 +5371,9 @@ def delete_preferred_credential(self, managed_database_id, credential_name, **kw "credentialName": credential_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5382,7 +5382,7 @@ def delete_preferred_credential(self, managed_database_id, credential_name, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5461,7 +5461,7 @@ def disable_automatic_initial_plan_capture(self, managed_database_id, disable_au "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_automatic_initial_plan_capture got unknown kwargs: {extra_kwargs!r}") @@ -5470,9 +5470,9 @@ def disable_automatic_initial_plan_capture(self, managed_database_id, disable_au "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5481,7 +5481,7 @@ def disable_automatic_initial_plan_capture(self, managed_database_id, disable_au "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5565,7 +5565,7 @@ def disable_automatic_spm_evolve_advisor_task(self, managed_database_id, disable "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") @@ -5574,9 +5574,9 @@ def disable_automatic_spm_evolve_advisor_task(self, managed_database_id, disable "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5585,7 +5585,7 @@ def disable_automatic_spm_evolve_advisor_task(self, managed_database_id, disable "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5682,7 +5682,7 @@ def disable_autonomous_database_management_feature(self, autonomous_database_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_autonomous_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -5691,9 +5691,9 @@ def disable_autonomous_database_management_feature(self, autonomous_database_id, "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5704,7 +5704,7 @@ def disable_autonomous_database_management_feature(self, autonomous_database_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5802,7 +5802,7 @@ def disable_cloud_db_system_database_management(self, cloud_db_system_id, **kwar "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_cloud_db_system_database_management got unknown kwargs: {extra_kwargs!r}") @@ -5811,9 +5811,9 @@ def disable_cloud_db_system_database_management(self, cloud_db_system_id, **kwar "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5824,7 +5824,7 @@ def disable_cloud_db_system_database_management(self, cloud_db_system_id, **kwar "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5920,7 +5920,7 @@ def disable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, **kwargs) "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_cloud_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -5929,9 +5929,9 @@ def disable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, **kwargs) "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5942,7 +5942,7 @@ def disable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6040,7 +6040,7 @@ def disable_database_management_feature(self, database_id, disable_database_mana "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -6049,9 +6049,9 @@ def disable_database_management_feature(self, database_id, disable_database_mana "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6062,7 +6062,7 @@ def disable_database_management_feature(self, database_id, disable_database_mana "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6162,7 +6162,7 @@ def disable_external_container_database_management_feature(self, external_contai "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -6171,9 +6171,9 @@ def disable_external_container_database_management_feature(self, external_contai "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6184,7 +6184,7 @@ def disable_external_container_database_management_feature(self, external_contai "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6282,7 +6282,7 @@ def disable_external_db_system_database_management(self, external_db_system_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_db_system_database_management got unknown kwargs: {extra_kwargs!r}") @@ -6291,9 +6291,9 @@ def disable_external_db_system_database_management(self, external_db_system_id, "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6304,7 +6304,7 @@ def disable_external_db_system_database_management(self, external_db_system_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6400,7 +6400,7 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -6409,9 +6409,9 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6422,7 +6422,7 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6524,7 +6524,7 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_exadata_infrastructure_management got unknown kwargs: {extra_kwargs!r}") @@ -6533,9 +6533,9 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in "externalExadataInfrastructureId": external_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6546,7 +6546,7 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6639,7 +6639,7 @@ def disable_external_my_sql_database_management(self, external_my_sql_database_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_my_sql_database_management got unknown kwargs: {extra_kwargs!r}") @@ -6648,9 +6648,9 @@ def disable_external_my_sql_database_management(self, external_my_sql_database_i "externalMySqlDatabaseId": external_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6661,7 +6661,7 @@ def disable_external_my_sql_database_management(self, external_my_sql_database_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6759,7 +6759,7 @@ def disable_external_non_container_database_management_feature(self, external_no "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_non_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -6768,9 +6768,9 @@ def disable_external_non_container_database_management_feature(self, external_no "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6781,7 +6781,7 @@ def disable_external_non_container_database_management_feature(self, external_no "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6881,7 +6881,7 @@ def disable_external_pluggable_database_management_feature(self, external_plugga "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -6890,9 +6890,9 @@ def disable_external_pluggable_database_management_feature(self, external_plugga "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6903,7 +6903,7 @@ def disable_external_pluggable_database_management_feature(self, external_plugga "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6990,7 +6990,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_high_frequency_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") @@ -6999,9 +6999,9 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7010,7 +7010,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7107,7 +7107,7 @@ def disable_pluggable_database_management_feature(self, pluggable_database_id, d "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -7116,9 +7116,9 @@ def disable_pluggable_database_management_feature(self, pluggable_database_id, d "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7129,7 +7129,7 @@ def disable_pluggable_database_management_feature(self, pluggable_database_id, d "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7215,7 +7215,7 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_sql_plan_baselines_usage got unknown kwargs: {extra_kwargs!r}") @@ -7224,9 +7224,9 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7235,7 +7235,7 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7345,7 +7345,7 @@ def discover_external_exadata_infrastructure(self, discover_external_exadata_inf "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"discover_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -7357,7 +7357,7 @@ def discover_external_exadata_infrastructure(self, discover_external_exadata_inf "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7441,7 +7441,7 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"drop_sql_plan_baselines got unknown kwargs: {extra_kwargs!r}") @@ -7450,9 +7450,9 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7461,7 +7461,7 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7553,7 +7553,7 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"drop_tablespace got unknown kwargs: {extra_kwargs!r}") @@ -7563,9 +7563,9 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ "tablespaceName": tablespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7575,7 +7575,7 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7666,7 +7666,7 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_automatic_initial_plan_capture got unknown kwargs: {extra_kwargs!r}") @@ -7675,9 +7675,9 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7686,7 +7686,7 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7779,7 +7779,7 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") @@ -7788,9 +7788,9 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7799,7 +7799,7 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7896,7 +7896,7 @@ def enable_autonomous_database_management_feature(self, autonomous_database_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_autonomous_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -7905,9 +7905,9 @@ def enable_autonomous_database_management_feature(self, autonomous_database_id, "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7918,7 +7918,7 @@ def enable_autonomous_database_management_feature(self, autonomous_database_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8019,7 +8019,7 @@ def enable_cloud_db_system_database_management(self, cloud_db_system_id, enable_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_cloud_db_system_database_management got unknown kwargs: {extra_kwargs!r}") @@ -8028,9 +8028,9 @@ def enable_cloud_db_system_database_management(self, cloud_db_system_id, enable_ "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8041,7 +8041,7 @@ def enable_cloud_db_system_database_management(self, cloud_db_system_id, enable_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8142,7 +8142,7 @@ def enable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, enable_clo "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_cloud_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -8151,9 +8151,9 @@ def enable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, enable_clo "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8164,7 +8164,7 @@ def enable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, enable_clo "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8264,7 +8264,7 @@ def enable_database_management_feature(self, database_id, enable_database_manage "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -8273,9 +8273,9 @@ def enable_database_management_feature(self, database_id, enable_database_manage "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8286,7 +8286,7 @@ def enable_database_management_feature(self, database_id, enable_database_manage "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8386,7 +8386,7 @@ def enable_external_container_database_management_feature(self, external_contain "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -8395,9 +8395,9 @@ def enable_external_container_database_management_feature(self, external_contain "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8408,7 +8408,7 @@ def enable_external_container_database_management_feature(self, external_contain "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8509,7 +8509,7 @@ def enable_external_db_system_database_management(self, external_db_system_id, e "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_db_system_database_management got unknown kwargs: {extra_kwargs!r}") @@ -8518,9 +8518,9 @@ def enable_external_db_system_database_management(self, external_db_system_id, e "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8531,7 +8531,7 @@ def enable_external_db_system_database_management(self, external_db_system_id, e "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8632,7 +8632,7 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") @@ -8641,9 +8641,9 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8654,7 +8654,7 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8759,7 +8759,7 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_exadata_infrastructure_management got unknown kwargs: {extra_kwargs!r}") @@ -8768,9 +8768,9 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf "externalExadataInfrastructureId": external_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8781,7 +8781,7 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8879,7 +8879,7 @@ def enable_external_my_sql_database_management(self, external_my_sql_database_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_my_sql_database_management got unknown kwargs: {extra_kwargs!r}") @@ -8888,9 +8888,9 @@ def enable_external_my_sql_database_management(self, external_my_sql_database_id "externalMySqlDatabaseId": external_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8901,7 +8901,7 @@ def enable_external_my_sql_database_management(self, external_my_sql_database_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9001,7 +9001,7 @@ def enable_external_non_container_database_management_feature(self, external_non "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_non_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -9010,9 +9010,9 @@ def enable_external_non_container_database_management_feature(self, external_non "externalNonContainerDatabaseId": external_non_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9023,7 +9023,7 @@ def enable_external_non_container_database_management_feature(self, external_non "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9123,7 +9123,7 @@ def enable_external_pluggable_database_management_feature(self, external_pluggab "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_external_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -9132,9 +9132,9 @@ def enable_external_pluggable_database_management_feature(self, external_pluggab "externalPluggableDatabaseId": external_pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9145,7 +9145,7 @@ def enable_external_pluggable_database_management_feature(self, external_pluggab "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9237,7 +9237,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_high_frequency_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") @@ -9246,9 +9246,9 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9257,7 +9257,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9354,7 +9354,7 @@ def enable_pluggable_database_management_feature(self, pluggable_database_id, en "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -9363,9 +9363,9 @@ def enable_pluggable_database_management_feature(self, pluggable_database_id, en "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9376,7 +9376,7 @@ def enable_pluggable_database_management_feature(self, pluggable_database_id, en "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9463,7 +9463,7 @@ def enable_sql_plan_baselines_usage(self, managed_database_id, enable_sql_plan_b "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_sql_plan_baselines_usage got unknown kwargs: {extra_kwargs!r}") @@ -9472,9 +9472,9 @@ def enable_sql_plan_baselines_usage(self, managed_database_id, enable_sql_plan_b "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9483,7 +9483,7 @@ def enable_sql_plan_baselines_usage(self, managed_database_id, enable_sql_plan_b "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9573,7 +9573,7 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_awr_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -9582,9 +9582,9 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9595,7 +9595,7 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9729,7 +9729,7 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_db_report got unknown kwargs: {extra_kwargs!r}") @@ -9739,9 +9739,9 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9769,7 +9769,7 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): "containerId": kwargs.get("container_id", missing), "reportFormat": kwargs.get("report_format", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9778,7 +9778,7 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9911,7 +9911,7 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_db_sql_report got unknown kwargs: {extra_kwargs!r}") @@ -9921,9 +9921,9 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9944,7 +9944,7 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs "reportFormat": kwargs.get("report_format", missing), "containerId": kwargs.get("container_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9953,7 +9953,7 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10034,7 +10034,7 @@ def get_cloud_asm(self, cloud_asm_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_asm got unknown kwargs: {extra_kwargs!r}") @@ -10043,9 +10043,9 @@ def get_cloud_asm(self, cloud_asm_id, **kwargs): "cloudAsmId": cloud_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10054,7 +10054,7 @@ def get_cloud_asm(self, cloud_asm_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10138,7 +10138,7 @@ def get_cloud_asm_configuration(self, cloud_asm_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_asm_configuration got unknown kwargs: {extra_kwargs!r}") @@ -10147,9 +10147,9 @@ def get_cloud_asm_configuration(self, cloud_asm_id, **kwargs): "cloudAsmId": cloud_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10159,7 +10159,7 @@ def get_cloud_asm_configuration(self, cloud_asm_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10239,7 +10239,7 @@ def get_cloud_asm_instance(self, cloud_asm_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_asm_instance got unknown kwargs: {extra_kwargs!r}") @@ -10248,9 +10248,9 @@ def get_cloud_asm_instance(self, cloud_asm_instance_id, **kwargs): "cloudAsmInstanceId": cloud_asm_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10259,7 +10259,7 @@ def get_cloud_asm_instance(self, cloud_asm_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10339,7 +10339,7 @@ def get_cloud_cluster(self, cloud_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_cluster got unknown kwargs: {extra_kwargs!r}") @@ -10348,9 +10348,9 @@ def get_cloud_cluster(self, cloud_cluster_id, **kwargs): "cloudClusterId": cloud_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10359,7 +10359,7 @@ def get_cloud_cluster(self, cloud_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10439,7 +10439,7 @@ def get_cloud_cluster_instance(self, cloud_cluster_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_cluster_instance got unknown kwargs: {extra_kwargs!r}") @@ -10448,9 +10448,9 @@ def get_cloud_cluster_instance(self, cloud_cluster_instance_id, **kwargs): "cloudClusterInstanceId": cloud_cluster_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10459,7 +10459,7 @@ def get_cloud_cluster_instance(self, cloud_cluster_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10539,7 +10539,7 @@ def get_cloud_db_home(self, cloud_db_home_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_db_home got unknown kwargs: {extra_kwargs!r}") @@ -10548,9 +10548,9 @@ def get_cloud_db_home(self, cloud_db_home_id, **kwargs): "cloudDbHomeId": cloud_db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10559,7 +10559,7 @@ def get_cloud_db_home(self, cloud_db_home_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10639,7 +10639,7 @@ def get_cloud_db_node(self, cloud_db_node_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_db_node got unknown kwargs: {extra_kwargs!r}") @@ -10648,9 +10648,9 @@ def get_cloud_db_node(self, cloud_db_node_id, **kwargs): "cloudDbNodeId": cloud_db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10659,7 +10659,7 @@ def get_cloud_db_node(self, cloud_db_node_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10739,7 +10739,7 @@ def get_cloud_db_system(self, cloud_db_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_db_system got unknown kwargs: {extra_kwargs!r}") @@ -10748,9 +10748,9 @@ def get_cloud_db_system(self, cloud_db_system_id, **kwargs): "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10759,7 +10759,7 @@ def get_cloud_db_system(self, cloud_db_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10839,7 +10839,7 @@ def get_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -10848,9 +10848,9 @@ def get_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwargs): "cloudDbSystemConnectorId": cloud_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10859,7 +10859,7 @@ def get_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10939,7 +10939,7 @@ def get_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -10948,9 +10948,9 @@ def get_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwargs): "cloudDbSystemDiscoveryId": cloud_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10959,7 +10959,7 @@ def get_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11039,7 +11039,7 @@ def get_cloud_listener(self, cloud_listener_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_listener got unknown kwargs: {extra_kwargs!r}") @@ -11048,9 +11048,9 @@ def get_cloud_listener(self, cloud_listener_id, **kwargs): "cloudListenerId": cloud_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11059,7 +11059,7 @@ def get_cloud_listener(self, cloud_listener_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11149,7 +11149,7 @@ def get_cluster_cache_metric(self, managed_database_id, start_time, end_time, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster_cache_metric got unknown kwargs: {extra_kwargs!r}") @@ -11158,9 +11158,9 @@ def get_cluster_cache_metric(self, managed_database_id, start_time, end_time, ** "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11168,14 +11168,14 @@ def get_cluster_cache_metric(self, managed_database_id, start_time, end_time, ** "startTime": start_time, "endTime": end_time } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11332,7 +11332,7 @@ def get_database_fleet_backup_metrics(self, database_hosted_in, start_time, end_ "defined_tag_exists", "freeform_tag_exists" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_fleet_backup_metrics got unknown kwargs: {extra_kwargs!r}") @@ -11373,14 +11373,14 @@ def get_database_fleet_backup_metrics(self, database_hosted_in, start_time, end_ "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11523,7 +11523,7 @@ def get_database_fleet_dataguard_metrics(self, **kwargs): "defined_tag_exists", "freeform_tag_exists" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_fleet_dataguard_metrics got unknown kwargs: {extra_kwargs!r}") @@ -11555,14 +11555,14 @@ def get_database_fleet_dataguard_metrics(self, **kwargs): "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11705,7 +11705,7 @@ def get_database_fleet_ha_overview_metrics(self, **kwargs): "defined_tag_exists", "freeform_tag_exists" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_fleet_ha_overview_metrics got unknown kwargs: {extra_kwargs!r}") @@ -11737,14 +11737,14 @@ def get_database_fleet_ha_overview_metrics(self, **kwargs): "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11916,7 +11916,7 @@ def get_database_fleet_health_metrics(self, compare_baseline_time, compare_targe "defined_tag_exists", "freeform_tag_exists" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_fleet_health_metrics got unknown kwargs: {extra_kwargs!r}") @@ -11962,14 +11962,14 @@ def get_database_fleet_health_metrics(self, compare_baseline_time, compare_targe "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12051,7 +12051,7 @@ def get_database_ha_backup_details(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_ha_backup_details got unknown kwargs: {extra_kwargs!r}") @@ -12060,9 +12060,9 @@ def get_database_ha_backup_details(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12072,7 +12072,7 @@ def get_database_ha_backup_details(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12160,7 +12160,7 @@ def get_database_home_metrics(self, managed_database_id, start_time, end_time, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_home_metrics got unknown kwargs: {extra_kwargs!r}") @@ -12170,14 +12170,14 @@ def get_database_home_metrics(self, managed_database_id, start_time, end_time, * "startTime": start_time, "endTime": end_time } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12276,7 +12276,7 @@ def get_dataguard_performance_metrics(self, managed_database_id, start_time, end "peer_database_compartment_id", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dataguard_performance_metrics got unknown kwargs: {extra_kwargs!r}") @@ -12285,9 +12285,9 @@ def get_dataguard_performance_metrics(self, managed_database_id, start_time, end "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12297,14 +12297,14 @@ def get_dataguard_performance_metrics(self, managed_database_id, start_time, end "peerDatabaseCompartmentId": kwargs.get("peer_database_compartment_id", missing), "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12384,7 +12384,7 @@ def get_db_management_private_endpoint(self, db_management_private_endpoint_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_management_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -12393,9 +12393,9 @@ def get_db_management_private_endpoint(self, db_management_private_endpoint_id, "dbManagementPrivateEndpointId": db_management_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12404,7 +12404,7 @@ def get_db_management_private_endpoint(self, db_management_private_endpoint_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12482,7 +12482,7 @@ def get_external_asm(self, external_asm_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_asm got unknown kwargs: {extra_kwargs!r}") @@ -12491,9 +12491,9 @@ def get_external_asm(self, external_asm_id, **kwargs): "externalAsmId": external_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12502,7 +12502,7 @@ def get_external_asm(self, external_asm_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12586,7 +12586,7 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_asm_configuration got unknown kwargs: {extra_kwargs!r}") @@ -12595,9 +12595,9 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): "externalAsmId": external_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12607,7 +12607,7 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12687,7 +12687,7 @@ def get_external_asm_instance(self, external_asm_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_asm_instance got unknown kwargs: {extra_kwargs!r}") @@ -12696,9 +12696,9 @@ def get_external_asm_instance(self, external_asm_instance_id, **kwargs): "externalAsmInstanceId": external_asm_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12707,7 +12707,7 @@ def get_external_asm_instance(self, external_asm_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12787,7 +12787,7 @@ def get_external_cluster(self, external_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_cluster got unknown kwargs: {extra_kwargs!r}") @@ -12796,9 +12796,9 @@ def get_external_cluster(self, external_cluster_id, **kwargs): "externalClusterId": external_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12807,7 +12807,7 @@ def get_external_cluster(self, external_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12887,7 +12887,7 @@ def get_external_cluster_instance(self, external_cluster_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_cluster_instance got unknown kwargs: {extra_kwargs!r}") @@ -12896,9 +12896,9 @@ def get_external_cluster_instance(self, external_cluster_instance_id, **kwargs): "externalClusterInstanceId": external_cluster_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12907,7 +12907,7 @@ def get_external_cluster_instance(self, external_cluster_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12987,7 +12987,7 @@ def get_external_db_home(self, external_db_home_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_db_home got unknown kwargs: {extra_kwargs!r}") @@ -12996,9 +12996,9 @@ def get_external_db_home(self, external_db_home_id, **kwargs): "externalDbHomeId": external_db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13007,7 +13007,7 @@ def get_external_db_home(self, external_db_home_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13087,7 +13087,7 @@ def get_external_db_node(self, external_db_node_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_db_node got unknown kwargs: {extra_kwargs!r}") @@ -13096,9 +13096,9 @@ def get_external_db_node(self, external_db_node_id, **kwargs): "externalDbNodeId": external_db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13107,7 +13107,7 @@ def get_external_db_node(self, external_db_node_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13187,7 +13187,7 @@ def get_external_db_system(self, external_db_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_db_system got unknown kwargs: {extra_kwargs!r}") @@ -13196,9 +13196,9 @@ def get_external_db_system(self, external_db_system_id, **kwargs): "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13207,7 +13207,7 @@ def get_external_db_system(self, external_db_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13287,7 +13287,7 @@ def get_external_db_system_connector(self, external_db_system_connector_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -13296,9 +13296,9 @@ def get_external_db_system_connector(self, external_db_system_connector_id, **kw "externalDbSystemConnectorId": external_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13307,7 +13307,7 @@ def get_external_db_system_connector(self, external_db_system_connector_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13387,7 +13387,7 @@ def get_external_db_system_discovery(self, external_db_system_discovery_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -13396,9 +13396,9 @@ def get_external_db_system_discovery(self, external_db_system_discovery_id, **kw "externalDbSystemDiscoveryId": external_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13407,7 +13407,7 @@ def get_external_db_system_discovery(self, external_db_system_discovery_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13488,7 +13488,7 @@ def get_external_exadata_infrastructure(self, external_exadata_infrastructure_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -13497,9 +13497,9 @@ def get_external_exadata_infrastructure(self, external_exadata_infrastructure_id "externalExadataInfrastructureId": external_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13508,7 +13508,7 @@ def get_external_exadata_infrastructure(self, external_exadata_infrastructure_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13588,7 +13588,7 @@ def get_external_exadata_storage_connector(self, external_exadata_storage_connec "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_exadata_storage_connector got unknown kwargs: {extra_kwargs!r}") @@ -13597,9 +13597,9 @@ def get_external_exadata_storage_connector(self, external_exadata_storage_connec "externalExadataStorageConnectorId": external_exadata_storage_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13608,7 +13608,7 @@ def get_external_exadata_storage_connector(self, external_exadata_storage_connec "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13688,7 +13688,7 @@ def get_external_exadata_storage_grid(self, external_exadata_storage_grid_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_exadata_storage_grid got unknown kwargs: {extra_kwargs!r}") @@ -13697,9 +13697,9 @@ def get_external_exadata_storage_grid(self, external_exadata_storage_grid_id, ** "externalExadataStorageGridId": external_exadata_storage_grid_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13708,7 +13708,7 @@ def get_external_exadata_storage_grid(self, external_exadata_storage_grid_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13788,7 +13788,7 @@ def get_external_exadata_storage_server(self, external_exadata_storage_server_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_exadata_storage_server got unknown kwargs: {extra_kwargs!r}") @@ -13797,9 +13797,9 @@ def get_external_exadata_storage_server(self, external_exadata_storage_server_id "externalExadataStorageServerId": external_exadata_storage_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13808,7 +13808,7 @@ def get_external_exadata_storage_server(self, external_exadata_storage_server_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13888,7 +13888,7 @@ def get_external_listener(self, external_listener_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_listener got unknown kwargs: {extra_kwargs!r}") @@ -13897,9 +13897,9 @@ def get_external_listener(self, external_listener_id, **kwargs): "externalListenerId": external_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13908,7 +13908,7 @@ def get_external_listener(self, external_listener_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13986,7 +13986,7 @@ def get_external_my_sql_database(self, external_my_sql_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_my_sql_database got unknown kwargs: {extra_kwargs!r}") @@ -13995,9 +13995,9 @@ def get_external_my_sql_database(self, external_my_sql_database_id, **kwargs): "externalMySqlDatabaseId": external_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14006,7 +14006,7 @@ def get_external_my_sql_database(self, external_my_sql_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14084,7 +14084,7 @@ def get_external_my_sql_database_connector(self, external_my_sql_database_connec "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_external_my_sql_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -14093,9 +14093,9 @@ def get_external_my_sql_database_connector(self, external_my_sql_database_connec "externalMySqlDatabaseConnectorId": external_my_sql_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14104,7 +14104,7 @@ def get_external_my_sql_database_connector(self, external_my_sql_database_connec "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14184,7 +14184,7 @@ def get_iorm_plan(self, external_exadata_storage_server_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_iorm_plan got unknown kwargs: {extra_kwargs!r}") @@ -14193,9 +14193,9 @@ def get_iorm_plan(self, external_exadata_storage_server_id, **kwargs): "externalExadataStorageServerId": external_exadata_storage_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14204,7 +14204,7 @@ def get_iorm_plan(self, external_exadata_storage_server_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14282,7 +14282,7 @@ def get_job(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job got unknown kwargs: {extra_kwargs!r}") @@ -14291,9 +14291,9 @@ def get_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14302,7 +14302,7 @@ def get_job(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14378,7 +14378,7 @@ def get_job_execution(self, job_execution_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_execution got unknown kwargs: {extra_kwargs!r}") @@ -14387,9 +14387,9 @@ def get_job_execution(self, job_execution_id, **kwargs): "jobExecutionId": job_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14398,7 +14398,7 @@ def get_job_execution(self, job_execution_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14474,7 +14474,7 @@ def get_job_run(self, job_run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_run got unknown kwargs: {extra_kwargs!r}") @@ -14483,9 +14483,9 @@ def get_job_run(self, job_run_id, **kwargs): "jobRunId": job_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14494,7 +14494,7 @@ def get_job_run(self, job_run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14572,7 +14572,7 @@ def get_managed_database(self, managed_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_database got unknown kwargs: {extra_kwargs!r}") @@ -14581,9 +14581,9 @@ def get_managed_database(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14592,7 +14592,7 @@ def get_managed_database(self, managed_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14670,7 +14670,7 @@ def get_managed_database_group(self, managed_database_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_database_group got unknown kwargs: {extra_kwargs!r}") @@ -14679,9 +14679,9 @@ def get_managed_database_group(self, managed_database_group_id, **kwargs): "managedDatabaseGroupId": managed_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14690,7 +14690,7 @@ def get_managed_database_group(self, managed_database_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14768,7 +14768,7 @@ def get_named_credential(self, named_credential_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -14777,9 +14777,9 @@ def get_named_credential(self, named_credential_id, **kwargs): "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14788,7 +14788,7 @@ def get_named_credential(self, named_credential_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14868,7 +14868,7 @@ def get_open_alert_history(self, external_exadata_storage_server_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_open_alert_history got unknown kwargs: {extra_kwargs!r}") @@ -14877,9 +14877,9 @@ def get_open_alert_history(self, external_exadata_storage_server_id, **kwargs): "externalExadataStorageServerId": external_exadata_storage_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14888,7 +14888,7 @@ def get_open_alert_history(self, external_exadata_storage_server_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14979,7 +14979,7 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_optimizer_statistics_advisor_execution got unknown kwargs: {extra_kwargs!r}") @@ -14989,16 +14989,16 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut "executionName": execution_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "taskName": task_name } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -15006,7 +15006,7 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15096,7 +15096,7 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_optimizer_statistics_advisor_execution_script got unknown kwargs: {extra_kwargs!r}") @@ -15106,16 +15106,16 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, "executionName": execution_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "taskName": task_name } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -15123,7 +15123,7 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15210,7 +15210,7 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_optimizer_statistics_collection_operation got unknown kwargs: {extra_kwargs!r}") @@ -15220,9 +15220,9 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt "optimizerStatisticsCollectionOperationId": optimizer_statistics_collection_operation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15232,7 +15232,7 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15337,7 +15337,7 @@ def get_pdb_metrics(self, managed_database_id, start_time, end_time, **kwargs): "compare_type", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pdb_metrics got unknown kwargs: {extra_kwargs!r}") @@ -15346,9 +15346,9 @@ def get_pdb_metrics(self, managed_database_id, start_time, end_time, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15366,14 +15366,14 @@ def get_pdb_metrics(self, managed_database_id, start_time, end_time, **kwargs): "compareType": kwargs.get("compare_type", missing), "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15480,7 +15480,7 @@ def get_peer_database_metrics(self, managed_database_id, start_time, end_time, * "compare_type", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_peer_database_metrics got unknown kwargs: {extra_kwargs!r}") @@ -15489,9 +15489,9 @@ def get_peer_database_metrics(self, managed_database_id, start_time, end_time, * "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15509,14 +15509,14 @@ def get_peer_database_metrics(self, managed_database_id, start_time, end_time, * "compareType": kwargs.get("compare_type", missing), "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15599,7 +15599,7 @@ def get_preferred_credential(self, managed_database_id, credential_name, **kwarg "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_preferred_credential got unknown kwargs: {extra_kwargs!r}") @@ -15609,9 +15609,9 @@ def get_preferred_credential(self, managed_database_id, credential_name, **kwarg "credentialName": credential_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15620,7 +15620,7 @@ def get_preferred_credential(self, managed_database_id, credential_name, **kwarg "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15705,7 +15705,7 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_plan_baseline got unknown kwargs: {extra_kwargs!r}") @@ -15715,9 +15715,9 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): "planName": plan_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15727,7 +15727,7 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15813,7 +15813,7 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_plan_baseline_configuration got unknown kwargs: {extra_kwargs!r}") @@ -15822,9 +15822,9 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15834,7 +15834,7 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15921,7 +15921,7 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tablespace got unknown kwargs: {extra_kwargs!r}") @@ -15931,9 +15931,9 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): "tablespaceName": tablespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15943,7 +15943,7 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16021,7 +16021,7 @@ def get_top_sql_cpu_activity(self, external_exadata_storage_server_id, **kwargs) "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_top_sql_cpu_activity got unknown kwargs: {extra_kwargs!r}") @@ -16030,9 +16030,9 @@ def get_top_sql_cpu_activity(self, external_exadata_storage_server_id, **kwargs) "externalExadataStorageServerId": external_exadata_storage_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16041,7 +16041,7 @@ def get_top_sql_cpu_activity(self, external_exadata_storage_server_id, **kwargs) "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16128,7 +16128,7 @@ def get_user(self, managed_database_id, user_name, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user got unknown kwargs: {extra_kwargs!r}") @@ -16138,9 +16138,9 @@ def get_user(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16150,7 +16150,7 @@ def get_user(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16228,7 +16228,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -16237,9 +16237,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16248,7 +16248,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16332,7 +16332,7 @@ def implement_optimizer_statistics_advisor_recommendations(self, managed_databas "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"implement_optimizer_statistics_advisor_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -16342,9 +16342,9 @@ def implement_optimizer_statistics_advisor_recommendations(self, managed_databas "executionName": execution_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16353,7 +16353,7 @@ def implement_optimizer_statistics_advisor_recommendations(self, managed_databas "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16460,7 +16460,7 @@ def list_asm_properties(self, managed_database_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_asm_properties got unknown kwargs: {extra_kwargs!r}") @@ -16469,9 +16469,9 @@ def list_asm_properties(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16496,14 +16496,14 @@ def list_asm_properties(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16609,7 +16609,7 @@ def list_associated_databases(self, db_management_private_endpoint_id, compartme "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_associated_databases got unknown kwargs: {extra_kwargs!r}") @@ -16618,9 +16618,9 @@ def list_associated_databases(self, db_management_private_endpoint_id, compartme "dbManagementPrivateEndpointId": db_management_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16645,14 +16645,14 @@ def list_associated_databases(self, db_management_private_endpoint_id, compartme "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16796,7 +16796,7 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_db_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -16806,9 +16806,9 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16838,7 +16838,7 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -16847,7 +16847,7 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16973,7 +16973,7 @@ def list_awr_dbs(self, managed_database_id, **kwargs): "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_dbs got unknown kwargs: {extra_kwargs!r}") @@ -16982,9 +16982,9 @@ def list_awr_dbs(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17011,7 +17011,7 @@ def list_awr_dbs(self, managed_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17020,7 +17020,7 @@ def list_awr_dbs(self, managed_database_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17127,7 +17127,7 @@ def list_cloud_asm_disk_groups(self, cloud_asm_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_asm_disk_groups got unknown kwargs: {extra_kwargs!r}") @@ -17136,9 +17136,9 @@ def list_cloud_asm_disk_groups(self, cloud_asm_id, **kwargs): "cloudAsmId": cloud_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17162,7 +17162,7 @@ def list_cloud_asm_disk_groups(self, cloud_asm_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17170,7 +17170,7 @@ def list_cloud_asm_disk_groups(self, cloud_asm_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17286,7 +17286,7 @@ def list_cloud_asm_instances(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_asm_instances got unknown kwargs: {extra_kwargs!r}") @@ -17314,14 +17314,14 @@ def list_cloud_asm_instances(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17427,7 +17427,7 @@ def list_cloud_asm_users(self, cloud_asm_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_asm_users got unknown kwargs: {extra_kwargs!r}") @@ -17436,9 +17436,9 @@ def list_cloud_asm_users(self, cloud_asm_id, **kwargs): "cloudAsmId": cloud_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17462,7 +17462,7 @@ def list_cloud_asm_users(self, cloud_asm_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -17470,7 +17470,7 @@ def list_cloud_asm_users(self, cloud_asm_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17586,7 +17586,7 @@ def list_cloud_asms(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_asms got unknown kwargs: {extra_kwargs!r}") @@ -17614,14 +17614,14 @@ def list_cloud_asms(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17735,7 +17735,7 @@ def list_cloud_cluster_instances(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_cluster_instances got unknown kwargs: {extra_kwargs!r}") @@ -17763,14 +17763,14 @@ def list_cloud_cluster_instances(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17884,7 +17884,7 @@ def list_cloud_clusters(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_clusters got unknown kwargs: {extra_kwargs!r}") @@ -17912,14 +17912,14 @@ def list_cloud_clusters(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18032,7 +18032,7 @@ def list_cloud_databases(self, cloud_db_system_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_databases got unknown kwargs: {extra_kwargs!r}") @@ -18060,14 +18060,14 @@ def list_cloud_databases(self, cloud_db_system_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18181,7 +18181,7 @@ def list_cloud_db_homes(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_db_homes got unknown kwargs: {extra_kwargs!r}") @@ -18209,14 +18209,14 @@ def list_cloud_db_homes(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18330,7 +18330,7 @@ def list_cloud_db_nodes(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_db_nodes got unknown kwargs: {extra_kwargs!r}") @@ -18358,14 +18358,14 @@ def list_cloud_db_nodes(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18479,7 +18479,7 @@ def list_cloud_db_system_connectors(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_db_system_connectors got unknown kwargs: {extra_kwargs!r}") @@ -18507,14 +18507,14 @@ def list_cloud_db_system_connectors(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18621,7 +18621,7 @@ def list_cloud_db_system_discoveries(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_db_system_discoveries got unknown kwargs: {extra_kwargs!r}") @@ -18648,14 +18648,14 @@ def list_cloud_db_system_discoveries(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18780,7 +18780,7 @@ def list_cloud_db_systems(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_db_systems got unknown kwargs: {extra_kwargs!r}") @@ -18824,14 +18824,14 @@ def list_cloud_db_systems(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18943,7 +18943,7 @@ def list_cloud_listener_services(self, cloud_listener_id, managed_database_id, * "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_listener_services got unknown kwargs: {extra_kwargs!r}") @@ -18952,9 +18952,9 @@ def list_cloud_listener_services(self, cloud_listener_id, managed_database_id, * "cloudListenerId": cloud_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18979,7 +18979,7 @@ def list_cloud_listener_services(self, cloud_listener_id, managed_database_id, * "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -18987,7 +18987,7 @@ def list_cloud_listener_services(self, cloud_listener_id, managed_database_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19103,7 +19103,7 @@ def list_cloud_listeners(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_listeners got unknown kwargs: {extra_kwargs!r}") @@ -19131,14 +19131,14 @@ def list_cloud_listeners(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19251,7 +19251,7 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_consumer_group_privileges got unknown kwargs: {extra_kwargs!r}") @@ -19261,9 +19261,9 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19288,7 +19288,7 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19296,7 +19296,7 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19407,7 +19407,7 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cursor_cache_statements got unknown kwargs: {extra_kwargs!r}") @@ -19416,9 +19416,9 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19443,7 +19443,7 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19451,7 +19451,7 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19566,7 +19566,7 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_access_containers got unknown kwargs: {extra_kwargs!r}") @@ -19576,9 +19576,9 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19603,7 +19603,7 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19611,7 +19611,7 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19725,7 +19725,7 @@ def list_database_parameters(self, managed_database_id, **kwargs): "sort_order", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_parameters got unknown kwargs: {extra_kwargs!r}") @@ -19734,9 +19734,9 @@ def list_database_parameters(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19768,7 +19768,7 @@ def list_database_parameters(self, managed_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -19776,7 +19776,7 @@ def list_database_parameters(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19904,7 +19904,7 @@ def list_db_management_private_endpoints(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_management_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -19942,14 +19942,14 @@ def list_db_management_private_endpoints(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20053,7 +20053,7 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_asm_disk_groups got unknown kwargs: {extra_kwargs!r}") @@ -20062,9 +20062,9 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): "externalAsmId": external_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20088,7 +20088,7 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20096,7 +20096,7 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20212,7 +20212,7 @@ def list_external_asm_instances(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_asm_instances got unknown kwargs: {extra_kwargs!r}") @@ -20240,14 +20240,14 @@ def list_external_asm_instances(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20353,7 +20353,7 @@ def list_external_asm_users(self, external_asm_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_asm_users got unknown kwargs: {extra_kwargs!r}") @@ -20362,9 +20362,9 @@ def list_external_asm_users(self, external_asm_id, **kwargs): "externalAsmId": external_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20388,7 +20388,7 @@ def list_external_asm_users(self, external_asm_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -20396,7 +20396,7 @@ def list_external_asm_users(self, external_asm_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20512,7 +20512,7 @@ def list_external_asms(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_asms got unknown kwargs: {extra_kwargs!r}") @@ -20540,14 +20540,14 @@ def list_external_asms(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20661,7 +20661,7 @@ def list_external_cluster_instances(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_cluster_instances got unknown kwargs: {extra_kwargs!r}") @@ -20689,14 +20689,14 @@ def list_external_cluster_instances(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20810,7 +20810,7 @@ def list_external_clusters(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_clusters got unknown kwargs: {extra_kwargs!r}") @@ -20838,14 +20838,14 @@ def list_external_clusters(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20965,7 +20965,7 @@ def list_external_databases(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_databases got unknown kwargs: {extra_kwargs!r}") @@ -20994,14 +20994,14 @@ def list_external_databases(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21115,7 +21115,7 @@ def list_external_db_homes(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_db_homes got unknown kwargs: {extra_kwargs!r}") @@ -21143,14 +21143,14 @@ def list_external_db_homes(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21264,7 +21264,7 @@ def list_external_db_nodes(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_db_nodes got unknown kwargs: {extra_kwargs!r}") @@ -21292,14 +21292,14 @@ def list_external_db_nodes(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21413,7 +21413,7 @@ def list_external_db_system_connectors(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_db_system_connectors got unknown kwargs: {extra_kwargs!r}") @@ -21441,14 +21441,14 @@ def list_external_db_system_connectors(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21555,7 +21555,7 @@ def list_external_db_system_discoveries(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_db_system_discoveries got unknown kwargs: {extra_kwargs!r}") @@ -21582,14 +21582,14 @@ def list_external_db_system_discoveries(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21696,7 +21696,7 @@ def list_external_db_systems(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_db_systems got unknown kwargs: {extra_kwargs!r}") @@ -21723,14 +21723,14 @@ def list_external_db_systems(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21837,7 +21837,7 @@ def list_external_exadata_infrastructures(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_exadata_infrastructures got unknown kwargs: {extra_kwargs!r}") @@ -21864,14 +21864,14 @@ def list_external_exadata_infrastructures(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21983,7 +21983,7 @@ def list_external_exadata_storage_connectors(self, compartment_id, external_exad "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_exadata_storage_connectors got unknown kwargs: {extra_kwargs!r}") @@ -22011,14 +22011,14 @@ def list_external_exadata_storage_connectors(self, compartment_id, external_exad "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22130,7 +22130,7 @@ def list_external_exadata_storage_servers(self, compartment_id, external_exadata "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_exadata_storage_servers got unknown kwargs: {extra_kwargs!r}") @@ -22158,14 +22158,14 @@ def list_external_exadata_storage_servers(self, compartment_id, external_exadata "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22277,7 +22277,7 @@ def list_external_listener_services(self, external_listener_id, managed_database "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_listener_services got unknown kwargs: {extra_kwargs!r}") @@ -22286,9 +22286,9 @@ def list_external_listener_services(self, external_listener_id, managed_database "externalListenerId": external_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22313,7 +22313,7 @@ def list_external_listener_services(self, external_listener_id, managed_database "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22321,7 +22321,7 @@ def list_external_listener_services(self, external_listener_id, managed_database "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22437,7 +22437,7 @@ def list_external_listeners(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_listeners got unknown kwargs: {extra_kwargs!r}") @@ -22465,14 +22465,14 @@ def list_external_listeners(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22579,7 +22579,7 @@ def list_external_my_sql_databases(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_my_sql_databases got unknown kwargs: {extra_kwargs!r}") @@ -22606,14 +22606,14 @@ def list_external_my_sql_databases(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22749,7 +22749,7 @@ def list_job_executions(self, compartment_id, **kwargs): "sort_order", "job_run_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_executions got unknown kwargs: {extra_kwargs!r}") @@ -22782,14 +22782,14 @@ def list_job_executions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "jobRunId": kwargs.get("job_run_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22921,7 +22921,7 @@ def list_job_runs(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_runs got unknown kwargs: {extra_kwargs!r}") @@ -22953,14 +22953,14 @@ def list_job_runs(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23090,7 +23090,7 @@ def list_jobs(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jobs got unknown kwargs: {extra_kwargs!r}") @@ -23128,14 +23128,14 @@ def list_jobs(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23253,7 +23253,7 @@ def list_managed_database_groups(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_database_groups got unknown kwargs: {extra_kwargs!r}") @@ -23289,14 +23289,14 @@ def list_managed_database_groups(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23428,7 +23428,7 @@ def list_managed_databases(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_databases got unknown kwargs: {extra_kwargs!r}") @@ -23473,14 +23473,14 @@ def list_managed_databases(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23591,7 +23591,7 @@ def list_my_sql_database_connectors(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_sql_database_connectors got unknown kwargs: {extra_kwargs!r}") @@ -23619,14 +23619,14 @@ def list_my_sql_database_connectors(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23747,7 +23747,7 @@ def list_named_credentials(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_named_credentials got unknown kwargs: {extra_kwargs!r}") @@ -23791,14 +23791,14 @@ def list_named_credentials(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23911,7 +23911,7 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_object_privileges got unknown kwargs: {extra_kwargs!r}") @@ -23921,9 +23921,9 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23948,7 +23948,7 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -23956,7 +23956,7 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24052,7 +24052,7 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_optimizer_statistics_advisor_executions got unknown kwargs: {extra_kwargs!r}") @@ -24061,9 +24061,9 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24071,7 +24071,7 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw "startTimeGreaterThanOrEqualTo": kwargs.get("start_time_greater_than_or_equal_to", missing), "endTimeLessThanOrEqualTo": kwargs.get("end_time_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24079,7 +24079,7 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24198,7 +24198,7 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_optimizer_statistics_collection_aggregations got unknown kwargs: {extra_kwargs!r}") @@ -24207,9 +24207,9 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24234,7 +24234,7 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24242,7 +24242,7 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24376,7 +24376,7 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_optimizer_statistics_collection_operations got unknown kwargs: {extra_kwargs!r}") @@ -24385,9 +24385,9 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24422,7 +24422,7 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24430,7 +24430,7 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24510,7 +24510,7 @@ def list_preferred_credentials(self, managed_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_preferred_credentials got unknown kwargs: {extra_kwargs!r}") @@ -24519,9 +24519,9 @@ def list_preferred_credentials(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24530,7 +24530,7 @@ def list_preferred_credentials(self, managed_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24641,7 +24641,7 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_proxied_for_users got unknown kwargs: {extra_kwargs!r}") @@ -24651,9 +24651,9 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24678,7 +24678,7 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24686,7 +24686,7 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24799,7 +24799,7 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_proxy_users got unknown kwargs: {extra_kwargs!r}") @@ -24809,9 +24809,9 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24836,7 +24836,7 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24844,7 +24844,7 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24957,7 +24957,7 @@ def list_roles(self, managed_database_id, user_name, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_roles got unknown kwargs: {extra_kwargs!r}") @@ -24967,9 +24967,9 @@ def list_roles(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24994,7 +24994,7 @@ def list_roles(self, managed_database_id, user_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25002,7 +25002,7 @@ def list_roles(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25113,7 +25113,7 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_plan_baseline_jobs got unknown kwargs: {extra_kwargs!r}") @@ -25122,9 +25122,9 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25149,7 +25149,7 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25157,7 +25157,7 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25329,7 +25329,7 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_plan_baselines got unknown kwargs: {extra_kwargs!r}") @@ -25338,9 +25338,9 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25384,7 +25384,7 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): "timeLastExecutedLessThan": kwargs.get("time_last_executed_less_than", missing), "isNeverExecuted": kwargs.get("is_never_executed", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25392,7 +25392,7 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25507,7 +25507,7 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_system_privileges got unknown kwargs: {extra_kwargs!r}") @@ -25517,9 +25517,9 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): "userName": user_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25544,7 +25544,7 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25552,7 +25552,7 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25637,7 +25637,7 @@ def list_table_statistics(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_table_statistics got unknown kwargs: {extra_kwargs!r}") @@ -25646,9 +25646,9 @@ def list_table_statistics(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25658,7 +25658,7 @@ def list_table_statistics(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25767,7 +25767,7 @@ def list_tablespaces(self, managed_database_id, **kwargs): "limit", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tablespaces got unknown kwargs: {extra_kwargs!r}") @@ -25776,9 +25776,9 @@ def list_tablespaces(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25803,7 +25803,7 @@ def list_tablespaces(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25811,7 +25811,7 @@ def list_tablespaces(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25922,7 +25922,7 @@ def list_users(self, managed_database_id, **kwargs): "page", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_users got unknown kwargs: {extra_kwargs!r}") @@ -25931,9 +25931,9 @@ def list_users(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25958,7 +25958,7 @@ def list_users(self, managed_database_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25966,7 +25966,7 @@ def list_users(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26067,7 +26067,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -26076,9 +26076,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26102,14 +26102,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26210,7 +26210,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -26219,9 +26219,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26245,14 +26245,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26371,7 +26371,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -26407,14 +26407,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26499,7 +26499,7 @@ def load_sql_plan_baselines_from_awr(self, managed_database_id, load_sql_plan_ba "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"load_sql_plan_baselines_from_awr got unknown kwargs: {extra_kwargs!r}") @@ -26508,9 +26508,9 @@ def load_sql_plan_baselines_from_awr(self, managed_database_id, load_sql_plan_ba "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26519,7 +26519,7 @@ def load_sql_plan_baselines_from_awr(self, managed_database_id, load_sql_plan_ba "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26604,7 +26604,7 @@ def load_sql_plan_baselines_from_cursor_cache(self, managed_database_id, load_sq "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"load_sql_plan_baselines_from_cursor_cache got unknown kwargs: {extra_kwargs!r}") @@ -26613,9 +26613,9 @@ def load_sql_plan_baselines_from_cursor_cache(self, managed_database_id, load_sq "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26624,7 +26624,7 @@ def load_sql_plan_baselines_from_cursor_cache(self, managed_database_id, load_sq "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26723,7 +26723,7 @@ def modify_autonomous_database_management_feature(self, autonomous_database_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_autonomous_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -26732,9 +26732,9 @@ def modify_autonomous_database_management_feature(self, autonomous_database_id, "autonomousDatabaseId": autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26745,7 +26745,7 @@ def modify_autonomous_database_management_feature(self, autonomous_database_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26845,7 +26845,7 @@ def modify_database_management_feature(self, database_id, modify_database_manage "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -26854,9 +26854,9 @@ def modify_database_management_feature(self, database_id, modify_database_manage "databaseId": database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26867,7 +26867,7 @@ def modify_database_management_feature(self, database_id, modify_database_manage "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26967,7 +26967,7 @@ def modify_external_container_database_management_feature(self, external_contain "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_external_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -26976,9 +26976,9 @@ def modify_external_container_database_management_feature(self, external_contain "externalContainerDatabaseId": external_container_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26989,7 +26989,7 @@ def modify_external_container_database_management_feature(self, external_contain "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27089,7 +27089,7 @@ def modify_pluggable_database_management_feature(self, pluggable_database_id, mo "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") @@ -27098,9 +27098,9 @@ def modify_pluggable_database_management_feature(self, pluggable_database_id, mo "pluggableDatabaseId": pluggable_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27111,7 +27111,7 @@ def modify_pluggable_database_management_feature(self, pluggable_database_id, mo "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27203,7 +27203,7 @@ def patch_cloud_db_system_discovery(self, cloud_db_system_discovery_id, patch_cl "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_cloud_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -27212,9 +27212,9 @@ def patch_cloud_db_system_discovery(self, cloud_db_system_discovery_id, patch_cl "cloudDbSystemDiscoveryId": cloud_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27224,7 +27224,7 @@ def patch_cloud_db_system_discovery(self, cloud_db_system_discovery_id, patch_cl "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27315,7 +27315,7 @@ def patch_external_db_system_discovery(self, external_db_system_discovery_id, pa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_external_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -27324,9 +27324,9 @@ def patch_external_db_system_discovery(self, external_db_system_discovery_id, pa "externalDbSystemDiscoveryId": external_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27336,7 +27336,7 @@ def patch_external_db_system_discovery(self, external_db_system_discovery_id, pa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27430,7 +27430,7 @@ def remove_data_file(self, managed_database_id, tablespace_name, remove_data_fil "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_data_file got unknown kwargs: {extra_kwargs!r}") @@ -27440,9 +27440,9 @@ def remove_data_file(self, managed_database_id, tablespace_name, remove_data_fil "tablespaceName": tablespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27452,7 +27452,7 @@ def remove_data_file(self, managed_database_id, tablespace_name, remove_data_fil "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27547,7 +27547,7 @@ def remove_managed_database_from_managed_database_group(self, managed_database_g "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_managed_database_from_managed_database_group got unknown kwargs: {extra_kwargs!r}") @@ -27556,9 +27556,9 @@ def remove_managed_database_from_managed_database_group(self, managed_database_g "managedDatabaseGroupId": managed_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27568,7 +27568,7 @@ def remove_managed_database_from_managed_database_group(self, managed_database_g "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27658,7 +27658,7 @@ def reset_database_parameters(self, managed_database_id, reset_database_paramete "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reset_database_parameters got unknown kwargs: {extra_kwargs!r}") @@ -27667,9 +27667,9 @@ def reset_database_parameters(self, managed_database_id, reset_database_paramete "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27679,7 +27679,7 @@ def reset_database_parameters(self, managed_database_id, reset_database_paramete "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27774,7 +27774,7 @@ def resize_data_file(self, managed_database_id, tablespace_name, resize_data_fil "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resize_data_file got unknown kwargs: {extra_kwargs!r}") @@ -27784,9 +27784,9 @@ def resize_data_file(self, managed_database_id, tablespace_name, resize_data_fil "tablespaceName": tablespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27796,7 +27796,7 @@ def resize_data_file(self, managed_database_id, tablespace_name, resize_data_fil "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27893,7 +27893,7 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"run_historic_addm got unknown kwargs: {extra_kwargs!r}") @@ -27902,9 +27902,9 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27915,7 +27915,7 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28066,7 +28066,7 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_cpu_usages got unknown kwargs: {extra_kwargs!r}") @@ -28076,9 +28076,9 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28116,7 +28116,7 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28125,7 +28125,7 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28273,7 +28273,7 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_metrics got unknown kwargs: {extra_kwargs!r}") @@ -28283,9 +28283,9 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28316,7 +28316,7 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28325,7 +28325,7 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28477,7 +28477,7 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_parameter_changes got unknown kwargs: {extra_kwargs!r}") @@ -28487,9 +28487,9 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28520,7 +28520,7 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28529,7 +28529,7 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28710,7 +28710,7 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_parameters got unknown kwargs: {extra_kwargs!r}") @@ -28720,9 +28720,9 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28778,7 +28778,7 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28787,7 +28787,7 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28913,7 +28913,7 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_snapshot_ranges got unknown kwargs: {extra_kwargs!r}") @@ -28922,9 +28922,9 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28951,7 +28951,7 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28960,7 +28960,7 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29108,7 +29108,7 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_sysstats got unknown kwargs: {extra_kwargs!r}") @@ -29118,9 +29118,9 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29151,7 +29151,7 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -29160,7 +29160,7 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29306,7 +29306,7 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_top_wait_events got unknown kwargs: {extra_kwargs!r}") @@ -29316,9 +29316,9 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29355,7 +29355,7 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -29364,7 +29364,7 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29524,7 +29524,7 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_wait_event_buckets got unknown kwargs: {extra_kwargs!r}") @@ -29534,9 +29534,9 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29570,7 +29570,7 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -29579,7 +29579,7 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29734,7 +29734,7 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) "opc_retry_token", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_db_wait_events got unknown kwargs: {extra_kwargs!r}") @@ -29744,9 +29744,9 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) "awrDbId": awr_db_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29785,7 +29785,7 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -29794,7 +29794,7 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29896,7 +29896,7 @@ def summarize_cloud_asm_metrics(self, cloud_asm_id, start_time, end_time, **kwar "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_cloud_asm_metrics got unknown kwargs: {extra_kwargs!r}") @@ -29905,9 +29905,9 @@ def summarize_cloud_asm_metrics(self, cloud_asm_id, start_time, end_time, **kwar "cloudAsmId": cloud_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29918,14 +29918,14 @@ def summarize_cloud_asm_metrics(self, cloud_asm_id, start_time, end_time, **kwar "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30028,7 +30028,7 @@ def summarize_cloud_cluster_metrics(self, cloud_cluster_id, start_time, end_time "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_cloud_cluster_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30037,9 +30037,9 @@ def summarize_cloud_cluster_metrics(self, cloud_cluster_id, start_time, end_time "cloudClusterId": cloud_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30050,14 +30050,14 @@ def summarize_cloud_cluster_metrics(self, cloud_cluster_id, start_time, end_time "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30160,7 +30160,7 @@ def summarize_cloud_db_node_metrics(self, cloud_db_node_id, start_time, end_time "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_cloud_db_node_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30169,9 +30169,9 @@ def summarize_cloud_db_node_metrics(self, cloud_db_node_id, start_time, end_time "cloudDbNodeId": cloud_db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30182,14 +30182,14 @@ def summarize_cloud_db_node_metrics(self, cloud_db_node_id, start_time, end_time "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30292,7 +30292,7 @@ def summarize_cloud_db_system_availability_metrics(self, cloud_db_system_id, sta "limit", "filter_by_component_types" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_cloud_db_system_availability_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30301,9 +30301,9 @@ def summarize_cloud_db_system_availability_metrics(self, cloud_db_system_id, sta "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30314,14 +30314,14 @@ def summarize_cloud_db_system_availability_metrics(self, cloud_db_system_id, sta "startTime": start_time, "endTime": end_time } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30424,7 +30424,7 @@ def summarize_cloud_listener_metrics(self, cloud_listener_id, start_time, end_ti "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_cloud_listener_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30433,9 +30433,9 @@ def summarize_cloud_listener_metrics(self, cloud_listener_id, start_time, end_ti "cloudListenerId": cloud_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30446,14 +30446,14 @@ def summarize_cloud_listener_metrics(self, cloud_listener_id, start_time, end_ti "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30556,7 +30556,7 @@ def summarize_external_asm_metrics(self, external_asm_id, start_time, end_time, "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_external_asm_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30565,9 +30565,9 @@ def summarize_external_asm_metrics(self, external_asm_id, start_time, end_time, "externalAsmId": external_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30578,14 +30578,14 @@ def summarize_external_asm_metrics(self, external_asm_id, start_time, end_time, "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30688,7 +30688,7 @@ def summarize_external_cluster_metrics(self, external_cluster_id, start_time, en "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_external_cluster_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30697,9 +30697,9 @@ def summarize_external_cluster_metrics(self, external_cluster_id, start_time, en "externalClusterId": external_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30710,14 +30710,14 @@ def summarize_external_cluster_metrics(self, external_cluster_id, start_time, en "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30820,7 +30820,7 @@ def summarize_external_db_node_metrics(self, external_db_node_id, start_time, en "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_external_db_node_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30829,9 +30829,9 @@ def summarize_external_db_node_metrics(self, external_db_node_id, start_time, en "externalDbNodeId": external_db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30842,14 +30842,14 @@ def summarize_external_db_node_metrics(self, external_db_node_id, start_time, en "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30952,7 +30952,7 @@ def summarize_external_db_system_availability_metrics(self, external_db_system_i "limit", "filter_by_component_types" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_external_db_system_availability_metrics got unknown kwargs: {extra_kwargs!r}") @@ -30961,9 +30961,9 @@ def summarize_external_db_system_availability_metrics(self, external_db_system_i "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30974,14 +30974,14 @@ def summarize_external_db_system_availability_metrics(self, external_db_system_i "startTime": start_time, "endTime": end_time } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31084,7 +31084,7 @@ def summarize_external_listener_metrics(self, external_listener_id, start_time, "limit", "filter_by_metric_names" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_external_listener_metrics got unknown kwargs: {extra_kwargs!r}") @@ -31093,9 +31093,9 @@ def summarize_external_listener_metrics(self, external_listener_id, start_time, "externalListenerId": external_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31106,14 +31106,14 @@ def summarize_external_listener_metrics(self, external_listener_id, start_time, "endTime": end_time, "filterByMetricNames": kwargs.get("filter_by_metric_names", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31237,7 +31237,7 @@ def summarize_job_executions_statuses(self, compartment_id, start_time, end_time "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_job_executions_statuses got unknown kwargs: {extra_kwargs!r}") @@ -31267,14 +31267,14 @@ def summarize_job_executions_statuses(self, compartment_id, start_time, end_time "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31370,7 +31370,7 @@ def summarize_managed_database_availability_metrics(self, managed_database_id, s "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_managed_database_availability_metrics got unknown kwargs: {extra_kwargs!r}") @@ -31379,9 +31379,9 @@ def summarize_managed_database_availability_metrics(self, managed_database_id, s "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31391,14 +31391,14 @@ def summarize_managed_database_availability_metrics(self, managed_database_id, s "startTime": start_time, "endTime": end_time } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31489,7 +31489,7 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_plan_baselines got unknown kwargs: {extra_kwargs!r}") @@ -31498,16 +31498,16 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31515,7 +31515,7 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31606,7 +31606,7 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_plan_baselines_by_last_execution got unknown kwargs: {extra_kwargs!r}") @@ -31615,16 +31615,16 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -31632,7 +31632,7 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31719,7 +31719,7 @@ def test_named_credential(self, named_credential_id, test_named_credential_detai "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -31728,9 +31728,9 @@ def test_named_credential(self, named_credential_id, test_named_credential_detai "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31739,7 +31739,7 @@ def test_named_credential(self, named_credential_id, test_named_credential_detai "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31826,7 +31826,7 @@ def test_preferred_credential(self, managed_database_id, credential_name, **kwar "opc_request_id", "test_preferred_credential_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_preferred_credential got unknown kwargs: {extra_kwargs!r}") @@ -31836,9 +31836,9 @@ def test_preferred_credential(self, managed_database_id, credential_name, **kwar "credentialName": credential_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31847,7 +31847,7 @@ def test_preferred_credential(self, managed_database_id, credential_name, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31938,7 +31938,7 @@ def update_cloud_asm(self, cloud_asm_id, update_cloud_asm_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_asm got unknown kwargs: {extra_kwargs!r}") @@ -31947,9 +31947,9 @@ def update_cloud_asm(self, cloud_asm_id, update_cloud_asm_details, **kwargs): "cloudAsmId": cloud_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31959,7 +31959,7 @@ def update_cloud_asm(self, cloud_asm_id, update_cloud_asm_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32048,7 +32048,7 @@ def update_cloud_asm_instance(self, cloud_asm_instance_id, update_cloud_asm_inst "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_asm_instance got unknown kwargs: {extra_kwargs!r}") @@ -32057,9 +32057,9 @@ def update_cloud_asm_instance(self, cloud_asm_instance_id, update_cloud_asm_inst "cloudAsmInstanceId": cloud_asm_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32069,7 +32069,7 @@ def update_cloud_asm_instance(self, cloud_asm_instance_id, update_cloud_asm_inst "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32160,7 +32160,7 @@ def update_cloud_cluster(self, cloud_cluster_id, update_cloud_cluster_details, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_cluster got unknown kwargs: {extra_kwargs!r}") @@ -32169,9 +32169,9 @@ def update_cloud_cluster(self, cloud_cluster_id, update_cloud_cluster_details, * "cloudClusterId": cloud_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32181,7 +32181,7 @@ def update_cloud_cluster(self, cloud_cluster_id, update_cloud_cluster_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32270,7 +32270,7 @@ def update_cloud_cluster_instance(self, cloud_cluster_instance_id, update_cloud_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_cluster_instance got unknown kwargs: {extra_kwargs!r}") @@ -32279,9 +32279,9 @@ def update_cloud_cluster_instance(self, cloud_cluster_instance_id, update_cloud_ "cloudClusterInstanceId": cloud_cluster_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32291,7 +32291,7 @@ def update_cloud_cluster_instance(self, cloud_cluster_instance_id, update_cloud_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32380,7 +32380,7 @@ def update_cloud_db_home(self, cloud_db_home_id, update_cloud_db_home_details, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_db_home got unknown kwargs: {extra_kwargs!r}") @@ -32389,9 +32389,9 @@ def update_cloud_db_home(self, cloud_db_home_id, update_cloud_db_home_details, * "cloudDbHomeId": cloud_db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32401,7 +32401,7 @@ def update_cloud_db_home(self, cloud_db_home_id, update_cloud_db_home_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32492,7 +32492,7 @@ def update_cloud_db_node(self, cloud_db_node_id, update_cloud_db_node_details, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_db_node got unknown kwargs: {extra_kwargs!r}") @@ -32501,9 +32501,9 @@ def update_cloud_db_node(self, cloud_db_node_id, update_cloud_db_node_details, * "cloudDbNodeId": cloud_db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32513,7 +32513,7 @@ def update_cloud_db_node(self, cloud_db_node_id, update_cloud_db_node_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32602,7 +32602,7 @@ def update_cloud_db_system(self, cloud_db_system_id, update_cloud_db_system_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_db_system got unknown kwargs: {extra_kwargs!r}") @@ -32611,9 +32611,9 @@ def update_cloud_db_system(self, cloud_db_system_id, update_cloud_db_system_deta "cloudDbSystemId": cloud_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32623,7 +32623,7 @@ def update_cloud_db_system(self, cloud_db_system_id, update_cloud_db_system_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32714,7 +32714,7 @@ def update_cloud_db_system_connector(self, cloud_db_system_connector_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -32723,9 +32723,9 @@ def update_cloud_db_system_connector(self, cloud_db_system_connector_id, update_ "cloudDbSystemConnectorId": cloud_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32735,7 +32735,7 @@ def update_cloud_db_system_connector(self, cloud_db_system_connector_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32824,7 +32824,7 @@ def update_cloud_db_system_discovery(self, cloud_db_system_discovery_id, update_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -32833,9 +32833,9 @@ def update_cloud_db_system_discovery(self, cloud_db_system_discovery_id, update_ "cloudDbSystemDiscoveryId": cloud_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32845,7 +32845,7 @@ def update_cloud_db_system_discovery(self, cloud_db_system_discovery_id, update_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32936,7 +32936,7 @@ def update_cloud_listener(self, cloud_listener_id, update_cloud_listener_details "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cloud_listener got unknown kwargs: {extra_kwargs!r}") @@ -32945,9 +32945,9 @@ def update_cloud_listener(self, cloud_listener_id, update_cloud_listener_details "cloudListenerId": cloud_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32957,7 +32957,7 @@ def update_cloud_listener(self, cloud_listener_id, update_cloud_listener_details "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33046,7 +33046,7 @@ def update_db_management_private_endpoint(self, db_management_private_endpoint_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_management_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -33055,9 +33055,9 @@ def update_db_management_private_endpoint(self, db_management_private_endpoint_i "dbManagementPrivateEndpointId": db_management_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33067,7 +33067,7 @@ def update_db_management_private_endpoint(self, db_management_private_endpoint_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33158,7 +33158,7 @@ def update_external_asm(self, external_asm_id, update_external_asm_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_asm got unknown kwargs: {extra_kwargs!r}") @@ -33167,9 +33167,9 @@ def update_external_asm(self, external_asm_id, update_external_asm_details, **kw "externalAsmId": external_asm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33179,7 +33179,7 @@ def update_external_asm(self, external_asm_id, update_external_asm_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33268,7 +33268,7 @@ def update_external_asm_instance(self, external_asm_instance_id, update_external "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_asm_instance got unknown kwargs: {extra_kwargs!r}") @@ -33277,9 +33277,9 @@ def update_external_asm_instance(self, external_asm_instance_id, update_external "externalAsmInstanceId": external_asm_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33289,7 +33289,7 @@ def update_external_asm_instance(self, external_asm_instance_id, update_external "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33380,7 +33380,7 @@ def update_external_cluster(self, external_cluster_id, update_external_cluster_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_cluster got unknown kwargs: {extra_kwargs!r}") @@ -33389,9 +33389,9 @@ def update_external_cluster(self, external_cluster_id, update_external_cluster_d "externalClusterId": external_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33401,7 +33401,7 @@ def update_external_cluster(self, external_cluster_id, update_external_cluster_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33490,7 +33490,7 @@ def update_external_cluster_instance(self, external_cluster_instance_id, update_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_cluster_instance got unknown kwargs: {extra_kwargs!r}") @@ -33499,9 +33499,9 @@ def update_external_cluster_instance(self, external_cluster_instance_id, update_ "externalClusterInstanceId": external_cluster_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33511,7 +33511,7 @@ def update_external_cluster_instance(self, external_cluster_instance_id, update_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33600,7 +33600,7 @@ def update_external_db_home(self, external_db_home_id, update_external_db_home_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_db_home got unknown kwargs: {extra_kwargs!r}") @@ -33609,9 +33609,9 @@ def update_external_db_home(self, external_db_home_id, update_external_db_home_d "externalDbHomeId": external_db_home_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33621,7 +33621,7 @@ def update_external_db_home(self, external_db_home_id, update_external_db_home_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33712,7 +33712,7 @@ def update_external_db_node(self, external_db_node_id, update_external_db_node_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_db_node got unknown kwargs: {extra_kwargs!r}") @@ -33721,9 +33721,9 @@ def update_external_db_node(self, external_db_node_id, update_external_db_node_d "externalDbNodeId": external_db_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33733,7 +33733,7 @@ def update_external_db_node(self, external_db_node_id, update_external_db_node_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33822,7 +33822,7 @@ def update_external_db_system(self, external_db_system_id, update_external_db_sy "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_db_system got unknown kwargs: {extra_kwargs!r}") @@ -33831,9 +33831,9 @@ def update_external_db_system(self, external_db_system_id, update_external_db_sy "externalDbSystemId": external_db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33843,7 +33843,7 @@ def update_external_db_system(self, external_db_system_id, update_external_db_sy "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33934,7 +33934,7 @@ def update_external_db_system_connector(self, external_db_system_connector_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_db_system_connector got unknown kwargs: {extra_kwargs!r}") @@ -33943,9 +33943,9 @@ def update_external_db_system_connector(self, external_db_system_connector_id, u "externalDbSystemConnectorId": external_db_system_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33955,7 +33955,7 @@ def update_external_db_system_connector(self, external_db_system_connector_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34044,7 +34044,7 @@ def update_external_db_system_discovery(self, external_db_system_discovery_id, u "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_db_system_discovery got unknown kwargs: {extra_kwargs!r}") @@ -34053,9 +34053,9 @@ def update_external_db_system_discovery(self, external_db_system_discovery_id, u "externalDbSystemDiscoveryId": external_db_system_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34065,7 +34065,7 @@ def update_external_db_system_discovery(self, external_db_system_discovery_id, u "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34164,7 +34164,7 @@ def update_external_exadata_infrastructure(self, external_exadata_infrastructure "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") @@ -34173,9 +34173,9 @@ def update_external_exadata_infrastructure(self, external_exadata_infrastructure "externalExadataInfrastructureId": external_exadata_infrastructure_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34186,7 +34186,7 @@ def update_external_exadata_infrastructure(self, external_exadata_infrastructure "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34280,7 +34280,7 @@ def update_external_exadata_storage_connector(self, external_exadata_storage_con "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_exadata_storage_connector got unknown kwargs: {extra_kwargs!r}") @@ -34289,9 +34289,9 @@ def update_external_exadata_storage_connector(self, external_exadata_storage_con "externalExadataStorageConnectorId": external_exadata_storage_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34301,7 +34301,7 @@ def update_external_exadata_storage_connector(self, external_exadata_storage_con "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34392,7 +34392,7 @@ def update_external_exadata_storage_grid(self, external_exadata_storage_grid_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_exadata_storage_grid got unknown kwargs: {extra_kwargs!r}") @@ -34401,9 +34401,9 @@ def update_external_exadata_storage_grid(self, external_exadata_storage_grid_id, "externalExadataStorageGridId": external_exadata_storage_grid_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34413,7 +34413,7 @@ def update_external_exadata_storage_grid(self, external_exadata_storage_grid_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34504,7 +34504,7 @@ def update_external_exadata_storage_server(self, external_exadata_storage_server "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_exadata_storage_server got unknown kwargs: {extra_kwargs!r}") @@ -34513,9 +34513,9 @@ def update_external_exadata_storage_server(self, external_exadata_storage_server "externalExadataStorageServerId": external_exadata_storage_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34525,7 +34525,7 @@ def update_external_exadata_storage_server(self, external_exadata_storage_server "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34616,7 +34616,7 @@ def update_external_listener(self, external_listener_id, update_external_listene "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_listener got unknown kwargs: {extra_kwargs!r}") @@ -34625,9 +34625,9 @@ def update_external_listener(self, external_listener_id, update_external_listene "externalListenerId": external_listener_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34637,7 +34637,7 @@ def update_external_listener(self, external_listener_id, update_external_listene "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34724,7 +34724,7 @@ def update_external_mysql_database(self, external_my_sql_database_id, update_ext "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_mysql_database got unknown kwargs: {extra_kwargs!r}") @@ -34733,9 +34733,9 @@ def update_external_mysql_database(self, external_my_sql_database_id, update_ext "externalMySqlDatabaseId": external_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34745,7 +34745,7 @@ def update_external_mysql_database(self, external_my_sql_database_id, update_ext "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34834,7 +34834,7 @@ def update_external_mysql_database_connector(self, external_my_sql_database_conn "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_external_mysql_database_connector got unknown kwargs: {extra_kwargs!r}") @@ -34843,9 +34843,9 @@ def update_external_mysql_database_connector(self, external_my_sql_database_conn "externalMySqlDatabaseConnectorId": external_my_sql_database_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34855,7 +34855,7 @@ def update_external_mysql_database_connector(self, external_my_sql_database_conn "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34944,7 +34944,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job got unknown kwargs: {extra_kwargs!r}") @@ -34953,9 +34953,9 @@ def update_job(self, job_id, update_job_details, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34965,7 +34965,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35056,7 +35056,7 @@ def update_managed_database(self, managed_database_id, update_managed_database_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_managed_database got unknown kwargs: {extra_kwargs!r}") @@ -35065,9 +35065,9 @@ def update_managed_database(self, managed_database_id, update_managed_database_d "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35077,7 +35077,7 @@ def update_managed_database(self, managed_database_id, update_managed_database_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35168,7 +35168,7 @@ def update_managed_database_group(self, managed_database_group_id, update_manage "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_managed_database_group got unknown kwargs: {extra_kwargs!r}") @@ -35177,9 +35177,9 @@ def update_managed_database_group(self, managed_database_group_id, update_manage "managedDatabaseGroupId": managed_database_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35189,7 +35189,7 @@ def update_managed_database_group(self, managed_database_group_id, update_manage "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35280,7 +35280,7 @@ def update_named_credential(self, named_credential_id, update_named_credential_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -35289,9 +35289,9 @@ def update_named_credential(self, named_credential_id, update_named_credential_d "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35301,7 +35301,7 @@ def update_named_credential(self, named_credential_id, update_named_credential_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35395,7 +35395,7 @@ def update_preferred_credential(self, managed_database_id, credential_name, upda "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_preferred_credential got unknown kwargs: {extra_kwargs!r}") @@ -35405,9 +35405,9 @@ def update_preferred_credential(self, managed_database_id, credential_name, upda "credentialName": credential_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35417,7 +35417,7 @@ def update_preferred_credential(self, managed_database_id, credential_name, upda "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35503,7 +35503,7 @@ def update_tablespace(self, managed_database_id, tablespace_name, update_tablesp "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tablespace got unknown kwargs: {extra_kwargs!r}") @@ -35513,9 +35513,9 @@ def update_tablespace(self, managed_database_id, tablespace_name, update_tablesp "tablespaceName": tablespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35524,7 +35524,7 @@ def update_tablespace(self, managed_database_id, tablespace_name, update_tablesp "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_management/diagnosability_client.py b/src/oci/database_management/diagnosability_client.py index 2570b137b..2dad6b5d7 100644 --- a/src/oci/database_management/diagnosability_client.py +++ b/src/oci/database_management/diagnosability_client.py @@ -217,7 +217,7 @@ def list_alert_logs(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alert_logs got unknown kwargs: {extra_kwargs!r}") @@ -226,9 +226,9 @@ def list_alert_logs(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -272,7 +272,7 @@ def list_alert_logs(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -280,7 +280,7 @@ def list_alert_logs(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -413,7 +413,7 @@ def list_attention_logs(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attention_logs got unknown kwargs: {extra_kwargs!r}") @@ -422,9 +422,9 @@ def list_attention_logs(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -468,7 +468,7 @@ def list_attention_logs(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -476,7 +476,7 @@ def list_attention_logs(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -603,7 +603,7 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_alert_log_counts got unknown kwargs: {extra_kwargs!r}") @@ -612,9 +612,9 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -650,7 +650,7 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -658,7 +658,7 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -785,7 +785,7 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_attention_log_counts got unknown kwargs: {extra_kwargs!r}") @@ -794,9 +794,9 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -832,7 +832,7 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -840,7 +840,7 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_management/managed_my_sql_databases_client.py b/src/oci/database_management/managed_my_sql_databases_client.py index 5902221eb..0dbd18045 100644 --- a/src/oci/database_management/managed_my_sql_databases_client.py +++ b/src/oci/database_management/managed_my_sql_databases_client.py @@ -182,7 +182,7 @@ def change_mysql_database_management_type(self, managed_my_sql_database_id, chan "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_mysql_database_management_type got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_mysql_database_management_type(self, managed_my_sql_database_id, chan "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_mysql_database_management_type(self, managed_my_sql_database_id, chan "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def get_binary_log_information(self, managed_my_sql_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_binary_log_information got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def get_binary_log_information(self, managed_my_sql_database_id, **kwargs): "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -303,7 +303,7 @@ def get_binary_log_information(self, managed_my_sql_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -381,7 +381,7 @@ def get_general_replication_information(self, managed_my_sql_database_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_general_replication_information got unknown kwargs: {extra_kwargs!r}") @@ -390,9 +390,9 @@ def get_general_replication_information(self, managed_my_sql_database_id, **kwar "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -401,7 +401,7 @@ def get_general_replication_information(self, managed_my_sql_database_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -507,7 +507,7 @@ def get_heat_wave_fleet_metric(self, compartment_id, start_time, end_time, **kwa "filter_by_heat_wave_shape", "is_heat_wave_lakehouse_enabled" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_heat_wave_fleet_metric got unknown kwargs: {extra_kwargs!r}") @@ -528,14 +528,14 @@ def get_heat_wave_fleet_metric(self, compartment_id, start_time, end_time, **kwa "filterByHeatWaveShape": kwargs.get("filter_by_heat_wave_shape", missing), "isHeatWaveLakehouseEnabled": kwargs.get("is_heat_wave_lakehouse_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -611,7 +611,7 @@ def get_managed_my_sql_database(self, managed_my_sql_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_my_sql_database got unknown kwargs: {extra_kwargs!r}") @@ -620,9 +620,9 @@ def get_managed_my_sql_database(self, managed_my_sql_database_id, **kwargs): "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -631,7 +631,7 @@ def get_managed_my_sql_database(self, managed_my_sql_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -753,7 +753,7 @@ def get_my_sql_fleet_metric(self, compartment_id, start_time, end_time, **kwargs "filter_by_my_sql_database_version", "is_heat_wave_enabled" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_sql_fleet_metric got unknown kwargs: {extra_kwargs!r}") @@ -798,14 +798,14 @@ def get_my_sql_fleet_metric(self, compartment_id, start_time, end_time, **kwargs "filterByMySqlDatabaseVersion": kwargs.get("filter_by_my_sql_database_version", missing), "isHeatWaveEnabled": kwargs.get("is_heat_wave_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -884,7 +884,7 @@ def get_my_sql_query_details(self, managed_my_sql_database_id, digest, **kwargs) "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_sql_query_details got unknown kwargs: {extra_kwargs!r}") @@ -893,23 +893,23 @@ def get_my_sql_query_details(self, managed_my_sql_database_id, digest, **kwargs) "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "digest": digest } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1013,7 +1013,7 @@ def list_high_availability_members(self, managed_my_sql_database_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_high_availability_members got unknown kwargs: {extra_kwargs!r}") @@ -1022,9 +1022,9 @@ def list_high_availability_members(self, managed_my_sql_database_id, **kwargs): "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1048,14 +1048,14 @@ def list_high_availability_members(self, managed_my_sql_database_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1159,7 +1159,7 @@ def list_inbound_replications(self, managed_my_sql_database_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_inbound_replications got unknown kwargs: {extra_kwargs!r}") @@ -1168,9 +1168,9 @@ def list_inbound_replications(self, managed_my_sql_database_id, **kwargs): "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1194,14 +1194,14 @@ def list_inbound_replications(self, managed_my_sql_database_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1304,7 +1304,7 @@ def list_managed_my_sql_database_configuration_data(self, managed_my_sql_databas "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_my_sql_database_configuration_data got unknown kwargs: {extra_kwargs!r}") @@ -1313,9 +1313,9 @@ def list_managed_my_sql_database_configuration_data(self, managed_my_sql_databas "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1339,14 +1339,14 @@ def list_managed_my_sql_database_configuration_data(self, managed_my_sql_databas "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1475,7 +1475,7 @@ def list_managed_my_sql_database_sql_data(self, managed_my_sql_database_id, star "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_my_sql_database_sql_data got unknown kwargs: {extra_kwargs!r}") @@ -1484,9 +1484,9 @@ def list_managed_my_sql_database_sql_data(self, managed_my_sql_database_id, star "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1513,14 +1513,14 @@ def list_managed_my_sql_database_sql_data(self, managed_my_sql_database_id, star "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1631,7 +1631,7 @@ def list_managed_my_sql_databases(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_my_sql_databases got unknown kwargs: {extra_kwargs!r}") @@ -1665,14 +1665,14 @@ def list_managed_my_sql_databases(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1774,7 +1774,7 @@ def list_my_sql_digest_errors(self, managed_my_sql_database_id, digest, **kwargs "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_sql_digest_errors got unknown kwargs: {extra_kwargs!r}") @@ -1783,9 +1783,9 @@ def list_my_sql_digest_errors(self, managed_my_sql_database_id, digest, **kwargs "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1810,14 +1810,14 @@ def list_my_sql_digest_errors(self, managed_my_sql_database_id, digest, **kwargs "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1921,7 +1921,7 @@ def list_outbound_replications(self, managed_my_sql_database_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_outbound_replications got unknown kwargs: {extra_kwargs!r}") @@ -1930,9 +1930,9 @@ def list_outbound_replications(self, managed_my_sql_database_id, **kwargs): "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1956,14 +1956,14 @@ def list_outbound_replications(self, managed_my_sql_database_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2060,7 +2060,7 @@ def summarize_managed_my_sql_database_availability_metrics(self, managed_my_sql_ "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_managed_my_sql_database_availability_metrics got unknown kwargs: {extra_kwargs!r}") @@ -2069,9 +2069,9 @@ def summarize_managed_my_sql_database_availability_metrics(self, managed_my_sql_ "managedMySqlDatabaseId": managed_my_sql_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2081,14 +2081,14 @@ def summarize_managed_my_sql_database_availability_metrics(self, managed_my_sql_ "startTime": start_time, "endTime": end_time } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_management/perfhub_client.py b/src/oci/database_management/perfhub_client.py index f45688ea7..6b758cb32 100644 --- a/src/oci/database_management/perfhub_client.py +++ b/src/oci/database_management/perfhub_client.py @@ -171,7 +171,7 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"modify_snapshot_settings got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_management/sql_tuning_client.py b/src/oci/database_management/sql_tuning_client.py index 3011a523c..f382ae643 100644 --- a/src/oci/database_management/sql_tuning_client.py +++ b/src/oci/database_management/sql_tuning_client.py @@ -175,7 +175,7 @@ def clone_sql_tuning_task(self, managed_database_id, clone_sql_tuning_task_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clone_sql_tuning_task got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def clone_sql_tuning_task(self, managed_database_id, clone_sql_tuning_task_detai "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def clone_sql_tuning_task(self, managed_database_id, clone_sql_tuning_task_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_sql_tuning_set(self, managed_database_id, create_sql_tuning_set_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sql_tuning_set got unknown kwargs: {extra_kwargs!r}") @@ -297,9 +297,9 @@ def create_sql_tuning_set(self, managed_database_id, create_sql_tuning_set_detai "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -309,7 +309,7 @@ def create_sql_tuning_set(self, managed_database_id, create_sql_tuning_set_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -406,7 +406,7 @@ def drop_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, drop_sql_t "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"drop_sql_tuning_set got unknown kwargs: {extra_kwargs!r}") @@ -416,9 +416,9 @@ def drop_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, drop_sql_t "sqlTuningSetId": sql_tuning_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -428,7 +428,7 @@ def drop_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, drop_sql_t "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -522,7 +522,7 @@ def drop_sql_tuning_task(self, managed_database_id, drop_sql_tuning_task_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"drop_sql_tuning_task got unknown kwargs: {extra_kwargs!r}") @@ -531,9 +531,9 @@ def drop_sql_tuning_task(self, managed_database_id, drop_sql_tuning_task_details "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -543,7 +543,7 @@ def drop_sql_tuning_task(self, managed_database_id, drop_sql_tuning_task_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -637,7 +637,7 @@ def drop_sqls_in_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, dr "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"drop_sqls_in_sql_tuning_set got unknown kwargs: {extra_kwargs!r}") @@ -647,9 +647,9 @@ def drop_sqls_in_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, dr "sqlTuningSetId": sql_tuning_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -659,7 +659,7 @@ def drop_sqls_in_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, dr "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -756,7 +756,7 @@ def fetch_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, fetch_sql "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"fetch_sql_tuning_set got unknown kwargs: {extra_kwargs!r}") @@ -766,9 +766,9 @@ def fetch_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, fetch_sql "sqlTuningSetId": sql_tuning_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -778,7 +778,7 @@ def fetch_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, fetch_sql "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -882,7 +882,7 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_execution_plan_stats_comparision got unknown kwargs: {extra_kwargs!r}") @@ -892,9 +892,9 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a "sqlTuningAdvisorTaskId": sql_tuning_advisor_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -902,7 +902,7 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a "sqlObjectId": sql_object_id, "executionId": execution_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -910,7 +910,7 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1009,7 +1009,7 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_execution_plan got unknown kwargs: {extra_kwargs!r}") @@ -1019,9 +1019,9 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id "sqlTuningAdvisorTaskId": sql_tuning_advisor_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1035,7 +1035,7 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id "sqlObjectId": sql_object_id, "attribute": attribute } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1043,7 +1043,7 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1154,7 +1154,7 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sql_tuning_advisor_task_summary_report got unknown kwargs: {extra_kwargs!r}") @@ -1164,9 +1164,9 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu "sqlTuningAdvisorTaskId": sql_tuning_advisor_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1184,7 +1184,7 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu "beginExecIdGreaterThanOrEqualTo": kwargs.get("begin_exec_id_greater_than_or_equal_to", missing), "endExecIdLessThanOrEqualTo": kwargs.get("end_exec_id_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1192,7 +1192,7 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1331,7 +1331,7 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_tuning_advisor_task_findings got unknown kwargs: {extra_kwargs!r}") @@ -1341,9 +1341,9 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ "sqlTuningAdvisorTaskId": sql_tuning_advisor_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1387,7 +1387,7 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1395,7 +1395,7 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1516,7 +1516,7 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_tuning_advisor_task_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -1526,9 +1526,9 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ "sqlTuningAdvisorTaskId": sql_tuning_advisor_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1554,7 +1554,7 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1562,7 +1562,7 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1685,7 +1685,7 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_tuning_advisor_tasks got unknown kwargs: {extra_kwargs!r}") @@ -1694,9 +1694,9 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1731,7 +1731,7 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1739,7 +1739,7 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1852,7 +1852,7 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): "opc_request_id", "opc_named_credential_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_tuning_sets got unknown kwargs: {extra_kwargs!r}") @@ -1861,9 +1861,9 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1889,7 +1889,7 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1897,7 +1897,7 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1991,7 +1991,7 @@ def load_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, load_sql_t "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"load_sql_tuning_set got unknown kwargs: {extra_kwargs!r}") @@ -2001,9 +2001,9 @@ def load_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, load_sql_t "sqlTuningSetId": sql_tuning_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2013,7 +2013,7 @@ def load_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, load_sql_t "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2110,7 +2110,7 @@ def save_sql_tuning_set_as(self, managed_database_id, sql_tuning_set_id, save_sq "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"save_sql_tuning_set_as got unknown kwargs: {extra_kwargs!r}") @@ -2120,9 +2120,9 @@ def save_sql_tuning_set_as(self, managed_database_id, sql_tuning_set_id, save_sq "sqlTuningSetId": sql_tuning_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2132,7 +2132,7 @@ def save_sql_tuning_set_as(self, managed_database_id, sql_tuning_set_id, save_sq "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2226,7 +2226,7 @@ def start_sql_tuning_task(self, managed_database_id, start_sql_tuning_task_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_sql_tuning_task got unknown kwargs: {extra_kwargs!r}") @@ -2235,9 +2235,9 @@ def start_sql_tuning_task(self, managed_database_id, start_sql_tuning_task_detai "managedDatabaseId": managed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2247,7 +2247,7 @@ def start_sql_tuning_task(self, managed_database_id, start_sql_tuning_task_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2342,7 +2342,7 @@ def validate_basic_filter(self, managed_database_id, sql_tuning_set_id, validate "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_basic_filter got unknown kwargs: {extra_kwargs!r}") @@ -2352,9 +2352,9 @@ def validate_basic_filter(self, managed_database_id, sql_tuning_set_id, validate "sqlTuningSetId": sql_tuning_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2364,7 +2364,7 @@ def validate_basic_filter(self, managed_database_id, sql_tuning_set_id, validate "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_migration/database_migration_client.py b/src/oci/database_migration/database_migration_client.py index 02b7f9a61..d11d7181c 100644 --- a/src/oci/database_migration/database_migration_client.py +++ b/src/oci/database_migration/database_migration_client.py @@ -177,7 +177,7 @@ def abort_job(self, job_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"abort_job got unknown kwargs: {extra_kwargs!r}") @@ -186,9 +186,9 @@ def abort_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -199,7 +199,7 @@ def abort_job(self, job_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -290,7 +290,7 @@ def add_migration_objects(self, migration_id, add_migration_objects_details, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_migration_objects got unknown kwargs: {extra_kwargs!r}") @@ -299,9 +299,9 @@ def add_migration_objects(self, migration_id, add_migration_objects_details, **k "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -311,7 +311,7 @@ def add_migration_objects(self, migration_id, add_migration_objects_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def change_connection_compartment(self, connection_id, change_connection_compart "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_connection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -418,9 +418,9 @@ def change_connection_compartment(self, connection_id, change_connection_compart "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -431,7 +431,7 @@ def change_connection_compartment(self, connection_id, change_connection_compart "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -530,7 +530,7 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_migration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -539,9 +539,9 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -552,7 +552,7 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -651,7 +651,7 @@ def clone_migration(self, migration_id, clone_migration_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clone_migration got unknown kwargs: {extra_kwargs!r}") @@ -660,9 +660,9 @@ def clone_migration(self, migration_id, clone_migration_details, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -673,7 +673,7 @@ def clone_migration(self, migration_id, clone_migration_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -766,7 +766,7 @@ def collect_traces(self, job_id, collect_traces_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"collect_traces got unknown kwargs: {extra_kwargs!r}") @@ -775,9 +775,9 @@ def collect_traces(self, job_id, collect_traces_details, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -787,7 +787,7 @@ def collect_traces(self, job_id, collect_traces_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -884,7 +884,7 @@ def connection_diagnostics(self, connection_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"connection_diagnostics got unknown kwargs: {extra_kwargs!r}") @@ -893,9 +893,9 @@ def connection_diagnostics(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -906,7 +906,7 @@ def connection_diagnostics(self, connection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -995,7 +995,7 @@ def create_connection(self, create_connection_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection got unknown kwargs: {extra_kwargs!r}") @@ -1006,7 +1006,7 @@ def create_connection(self, create_connection_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1096,7 +1096,7 @@ def create_migration(self, create_migration_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_migration got unknown kwargs: {extra_kwargs!r}") @@ -1107,7 +1107,7 @@ def create_migration(self, create_migration_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1206,7 +1206,7 @@ def create_parameter_file_version(self, job_id, create_parameter_file_version_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_parameter_file_version got unknown kwargs: {extra_kwargs!r}") @@ -1215,9 +1215,9 @@ def create_parameter_file_version(self, job_id, create_parameter_file_version_de "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1228,7 +1228,7 @@ def create_parameter_file_version(self, job_id, create_parameter_file_version_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1316,7 +1316,7 @@ def delete_connection(self, connection_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection got unknown kwargs: {extra_kwargs!r}") @@ -1325,9 +1325,9 @@ def delete_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1337,7 +1337,7 @@ def delete_connection(self, connection_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1422,7 +1422,7 @@ def delete_job(self, job_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_job got unknown kwargs: {extra_kwargs!r}") @@ -1431,9 +1431,9 @@ def delete_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1443,7 +1443,7 @@ def delete_job(self, job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1528,7 +1528,7 @@ def delete_migration(self, migration_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_migration got unknown kwargs: {extra_kwargs!r}") @@ -1537,9 +1537,9 @@ def delete_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1549,7 +1549,7 @@ def delete_migration(self, migration_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1637,7 +1637,7 @@ def delete_parameter_file_version(self, job_id, parameter_file_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_parameter_file_version got unknown kwargs: {extra_kwargs!r}") @@ -1647,9 +1647,9 @@ def delete_parameter_file_version(self, job_id, parameter_file_name, **kwargs): "parameterFileName": parameter_file_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1659,7 +1659,7 @@ def delete_parameter_file_version(self, job_id, parameter_file_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1752,7 +1752,7 @@ def evaluate_migration(self, migration_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"evaluate_migration got unknown kwargs: {extra_kwargs!r}") @@ -1761,9 +1761,9 @@ def evaluate_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1774,7 +1774,7 @@ def evaluate_migration(self, migration_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1854,7 +1854,7 @@ def get_advisor_report(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_advisor_report got unknown kwargs: {extra_kwargs!r}") @@ -1863,9 +1863,9 @@ def get_advisor_report(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1874,7 +1874,7 @@ def get_advisor_report(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1953,7 +1953,7 @@ def get_connection(self, connection_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection got unknown kwargs: {extra_kwargs!r}") @@ -1962,9 +1962,9 @@ def get_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1973,7 +1973,7 @@ def get_connection(self, connection_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2052,7 +2052,7 @@ def get_job(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job got unknown kwargs: {extra_kwargs!r}") @@ -2061,9 +2061,9 @@ def get_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2072,7 +2072,7 @@ def get_job(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2151,7 +2151,7 @@ def get_job_output_content(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_output_content got unknown kwargs: {extra_kwargs!r}") @@ -2160,9 +2160,9 @@ def get_job_output_content(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2171,7 +2171,7 @@ def get_job_output_content(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2258,7 +2258,7 @@ def get_migration(self, migration_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_migration got unknown kwargs: {extra_kwargs!r}") @@ -2267,9 +2267,9 @@ def get_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2279,7 +2279,7 @@ def get_migration(self, migration_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2362,7 +2362,7 @@ def get_parameter_file_version(self, parameter_file_name, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_parameter_file_version got unknown kwargs: {extra_kwargs!r}") @@ -2372,9 +2372,9 @@ def get_parameter_file_version(self, parameter_file_name, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2383,7 +2383,7 @@ def get_parameter_file_version(self, parameter_file_name, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2462,7 +2462,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2471,9 +2471,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2482,7 +2482,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2608,7 +2608,7 @@ def list_connections(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connections got unknown kwargs: {extra_kwargs!r}") @@ -2662,14 +2662,14 @@ def list_connections(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2800,7 +2800,7 @@ def list_excluded_objects(self, job_id, **kwargs): "reason_category", "source_rule" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_excluded_objects got unknown kwargs: {extra_kwargs!r}") @@ -2809,9 +2809,9 @@ def list_excluded_objects(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2849,14 +2849,14 @@ def list_excluded_objects(self, job_id, **kwargs): "reasonCategory": kwargs.get("reason_category", missing), "sourceRule": kwargs.get("source_rule", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2945,7 +2945,7 @@ def list_job_outputs(self, job_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_outputs got unknown kwargs: {extra_kwargs!r}") @@ -2954,9 +2954,9 @@ def list_job_outputs(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2964,14 +2964,14 @@ def list_job_outputs(self, job_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3084,7 +3084,7 @@ def list_jobs(self, migration_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jobs got unknown kwargs: {extra_kwargs!r}") @@ -3119,14 +3119,14 @@ def list_jobs(self, migration_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3228,7 +3228,7 @@ def list_migration_object_types(self, connection_type, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migration_object_types got unknown kwargs: {extra_kwargs!r}") @@ -3260,14 +3260,14 @@ def list_migration_object_types(self, connection_type, **kwargs): "page": kwargs.get("page", missing), "connectionType": connection_type } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3362,7 +3362,7 @@ def list_migration_objects(self, migration_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migration_objects got unknown kwargs: {extra_kwargs!r}") @@ -3371,9 +3371,9 @@ def list_migration_objects(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3381,7 +3381,7 @@ def list_migration_objects(self, migration_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3389,7 +3389,7 @@ def list_migration_objects(self, migration_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3500,7 +3500,7 @@ def list_migration_parameters(self, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migration_parameters got unknown kwargs: {extra_kwargs!r}") @@ -3541,14 +3541,14 @@ def list_migration_parameters(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3664,7 +3664,7 @@ def list_migrations(self, compartment_id, **kwargs): "lifecycle_state", "lifecycle_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_migrations got unknown kwargs: {extra_kwargs!r}") @@ -3707,14 +3707,14 @@ def list_migrations(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "lifecycleDetails": kwargs.get("lifecycle_details", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3820,7 +3820,7 @@ def list_parameter_file_versions(self, job_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_parameter_file_versions got unknown kwargs: {extra_kwargs!r}") @@ -3829,9 +3829,9 @@ def list_parameter_file_versions(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3856,14 +3856,14 @@ def list_parameter_file_versions(self, job_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3964,7 +3964,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3973,9 +3973,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3999,14 +3999,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4107,7 +4107,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4116,9 +4116,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4142,14 +4142,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4262,7 +4262,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4297,14 +4297,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4402,7 +4402,7 @@ def make_current_parameter_file_version(self, job_id, parameter_file_name, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"make_current_parameter_file_version got unknown kwargs: {extra_kwargs!r}") @@ -4412,9 +4412,9 @@ def make_current_parameter_file_version(self, job_id, parameter_file_name, **kwa "parameterFileName": parameter_file_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4425,7 +4425,7 @@ def make_current_parameter_file_version(self, job_id, parameter_file_name, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4516,7 +4516,7 @@ def remove_migration_objects(self, migration_id, remove_migration_objects_detail "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_migration_objects got unknown kwargs: {extra_kwargs!r}") @@ -4525,9 +4525,9 @@ def remove_migration_objects(self, migration_id, remove_migration_objects_detail "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4537,7 +4537,7 @@ def remove_migration_objects(self, migration_id, remove_migration_objects_detail "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4636,7 +4636,7 @@ def resume_job(self, job_id, **kwargs): "opc_request_id", "resume_job_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_job got unknown kwargs: {extra_kwargs!r}") @@ -4645,9 +4645,9 @@ def resume_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4658,7 +4658,7 @@ def resume_job(self, job_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4740,7 +4740,7 @@ def retrieve_supported_phases(self, migration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_supported_phases got unknown kwargs: {extra_kwargs!r}") @@ -4749,9 +4749,9 @@ def retrieve_supported_phases(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4760,7 +4760,7 @@ def retrieve_supported_phases(self, migration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4859,7 +4859,7 @@ def start_migration(self, migration_id, **kwargs): "opc_request_id", "start_migration_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_migration got unknown kwargs: {extra_kwargs!r}") @@ -4868,9 +4868,9 @@ def start_migration(self, migration_id, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4881,7 +4881,7 @@ def start_migration(self, migration_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4979,7 +4979,7 @@ def suspend_job(self, job_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"suspend_job got unknown kwargs: {extra_kwargs!r}") @@ -4988,9 +4988,9 @@ def suspend_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5001,7 +5001,7 @@ def suspend_job(self, job_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5092,7 +5092,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_connection got unknown kwargs: {extra_kwargs!r}") @@ -5101,9 +5101,9 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5113,7 +5113,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5203,7 +5203,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job got unknown kwargs: {extra_kwargs!r}") @@ -5212,9 +5212,9 @@ def update_job(self, job_id, update_job_details, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5224,7 +5224,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5316,7 +5316,7 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_migration got unknown kwargs: {extra_kwargs!r}") @@ -5325,9 +5325,9 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): "migrationId": migration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5337,7 +5337,7 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/database_tools/database_tools_client.py b/src/oci/database_tools/database_tools_client.py index e8e9d4ffb..67978fb92 100644 --- a/src/oci/database_tools/database_tools_client.py +++ b/src/oci/database_tools/database_tools_client.py @@ -172,7 +172,7 @@ def add_database_tools_connection_lock(self, database_tools_connection_id, add_r "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_database_tools_connection_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_database_tools_connection_lock(self, database_tools_connection_id, add_r "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_database_tools_connection_lock(self, database_tools_connection_id, add_r "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def add_database_tools_identity_lock(self, database_tools_identity_id, add_resou "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_database_tools_identity_lock got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def add_database_tools_identity_lock(self, database_tools_identity_id, add_resou "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -304,7 +304,7 @@ def add_database_tools_identity_lock(self, database_tools_identity_id, add_resou "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def add_database_tools_private_endpoint_lock(self, database_tools_private_endpoi "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_database_tools_private_endpoint_lock got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def add_database_tools_private_endpoint_lock(self, database_tools_private_endpoi "databaseToolsPrivateEndpointId": database_tools_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -415,7 +415,7 @@ def add_database_tools_private_endpoint_lock(self, database_tools_private_endpoi "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -514,7 +514,7 @@ def change_database_tools_connection_compartment(self, database_tools_connection "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_tools_connection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -523,16 +523,16 @@ def change_database_tools_connection_compartment(self, database_tools_connection "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -540,7 +540,7 @@ def change_database_tools_connection_compartment(self, database_tools_connection "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -639,7 +639,7 @@ def change_database_tools_identity_compartment(self, database_tools_identity_id, "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_tools_identity_compartment got unknown kwargs: {extra_kwargs!r}") @@ -648,16 +648,16 @@ def change_database_tools_identity_compartment(self, database_tools_identity_id, "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -665,7 +665,7 @@ def change_database_tools_identity_compartment(self, database_tools_identity_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def change_database_tools_private_endpoint_compartment(self, database_tools_priv "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_tools_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -773,16 +773,16 @@ def change_database_tools_private_endpoint_compartment(self, database_tools_priv "databaseToolsPrivateEndpointId": database_tools_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -790,7 +790,7 @@ def change_database_tools_private_endpoint_compartment(self, database_tools_priv "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -878,7 +878,7 @@ def create_database_tools_connection(self, create_database_tools_connection_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database_tools_connection got unknown kwargs: {extra_kwargs!r}") @@ -889,7 +889,7 @@ def create_database_tools_connection(self, create_database_tools_connection_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -978,7 +978,7 @@ def create_database_tools_identity(self, create_database_tools_identity_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database_tools_identity got unknown kwargs: {extra_kwargs!r}") @@ -989,7 +989,7 @@ def create_database_tools_identity(self, create_database_tools_identity_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1078,7 +1078,7 @@ def create_database_tools_private_endpoint(self, create_database_tools_private_e "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database_tools_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1089,7 +1089,7 @@ def create_database_tools_private_endpoint(self, create_database_tools_private_e "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1182,7 +1182,7 @@ def delete_database_tools_connection(self, database_tools_connection_id, **kwarg "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database_tools_connection got unknown kwargs: {extra_kwargs!r}") @@ -1191,16 +1191,16 @@ def delete_database_tools_connection(self, database_tools_connection_id, **kwarg "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1208,7 +1208,7 @@ def delete_database_tools_connection(self, database_tools_connection_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1298,7 +1298,7 @@ def delete_database_tools_identity(self, database_tools_identity_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database_tools_identity got unknown kwargs: {extra_kwargs!r}") @@ -1307,16 +1307,16 @@ def delete_database_tools_identity(self, database_tools_identity_id, **kwargs): "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1324,7 +1324,7 @@ def delete_database_tools_identity(self, database_tools_identity_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1414,7 +1414,7 @@ def delete_database_tools_private_endpoint(self, database_tools_private_endpoint "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database_tools_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1423,16 +1423,16 @@ def delete_database_tools_private_endpoint(self, database_tools_private_endpoint "databaseToolsPrivateEndpointId": database_tools_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1440,7 +1440,7 @@ def delete_database_tools_private_endpoint(self, database_tools_private_endpoint "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1518,7 +1518,7 @@ def get_database_tools_connection(self, database_tools_connection_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_tools_connection got unknown kwargs: {extra_kwargs!r}") @@ -1527,9 +1527,9 @@ def get_database_tools_connection(self, database_tools_connection_id, **kwargs): "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1538,7 +1538,7 @@ def get_database_tools_connection(self, database_tools_connection_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1618,7 +1618,7 @@ def get_database_tools_endpoint_service(self, database_tools_endpoint_service_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_tools_endpoint_service got unknown kwargs: {extra_kwargs!r}") @@ -1627,9 +1627,9 @@ def get_database_tools_endpoint_service(self, database_tools_endpoint_service_id "databaseToolsEndpointServiceId": database_tools_endpoint_service_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1638,7 +1638,7 @@ def get_database_tools_endpoint_service(self, database_tools_endpoint_service_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1718,7 +1718,7 @@ def get_database_tools_identity(self, database_tools_identity_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_tools_identity got unknown kwargs: {extra_kwargs!r}") @@ -1727,9 +1727,9 @@ def get_database_tools_identity(self, database_tools_identity_id, **kwargs): "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1738,7 +1738,7 @@ def get_database_tools_identity(self, database_tools_identity_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1818,7 +1818,7 @@ def get_database_tools_private_endpoint(self, database_tools_private_endpoint_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_tools_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1827,9 +1827,9 @@ def get_database_tools_private_endpoint(self, database_tools_private_endpoint_id "databaseToolsPrivateEndpointId": database_tools_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1838,7 +1838,7 @@ def get_database_tools_private_endpoint(self, database_tools_private_endpoint_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1918,7 +1918,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1927,9 +1927,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1938,7 +1938,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2072,7 +2072,7 @@ def list_database_tools_connections(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_tools_connections got unknown kwargs: {extra_kwargs!r}") @@ -2135,14 +2135,14 @@ def list_database_tools_connections(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2256,7 +2256,7 @@ def list_database_tools_endpoint_services(self, compartment_id, **kwargs): "display_name", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_tools_endpoint_services got unknown kwargs: {extra_kwargs!r}") @@ -2292,14 +2292,14 @@ def list_database_tools_endpoint_services(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2419,7 +2419,7 @@ def list_database_tools_identities(self, compartment_id, **kwargs): "opc_request_id", "type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_tools_identities got unknown kwargs: {extra_kwargs!r}") @@ -2464,14 +2464,14 @@ def list_database_tools_identities(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "type": self.base_client.generate_collection_format_param(kwargs.get("type", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2589,7 +2589,7 @@ def list_database_tools_private_endpoints(self, compartment_id, **kwargs): "lifecycle_state", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_tools_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -2626,14 +2626,14 @@ def list_database_tools_private_endpoints(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2733,7 +2733,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2742,9 +2742,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2768,14 +2768,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2877,7 +2877,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2886,9 +2886,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2912,14 +2912,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3027,7 +3027,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3054,14 +3054,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3152,7 +3152,7 @@ def refresh_database_tools_identity_credential(self, database_tools_identity_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_database_tools_identity_credential got unknown kwargs: {extra_kwargs!r}") @@ -3161,9 +3161,9 @@ def refresh_database_tools_identity_credential(self, database_tools_identity_id, "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3173,7 +3173,7 @@ def refresh_database_tools_identity_credential(self, database_tools_identity_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3261,7 +3261,7 @@ def remove_database_tools_connection_lock(self, database_tools_connection_id, re "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_database_tools_connection_lock got unknown kwargs: {extra_kwargs!r}") @@ -3270,9 +3270,9 @@ def remove_database_tools_connection_lock(self, database_tools_connection_id, re "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3282,7 +3282,7 @@ def remove_database_tools_connection_lock(self, database_tools_connection_id, re "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3372,7 +3372,7 @@ def remove_database_tools_identity_lock(self, database_tools_identity_id, remove "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_database_tools_identity_lock got unknown kwargs: {extra_kwargs!r}") @@ -3381,9 +3381,9 @@ def remove_database_tools_identity_lock(self, database_tools_identity_id, remove "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3393,7 +3393,7 @@ def remove_database_tools_identity_lock(self, database_tools_identity_id, remove "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3483,7 +3483,7 @@ def remove_database_tools_private_endpoint_lock(self, database_tools_private_end "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_database_tools_private_endpoint_lock got unknown kwargs: {extra_kwargs!r}") @@ -3492,9 +3492,9 @@ def remove_database_tools_private_endpoint_lock(self, database_tools_private_end "databaseToolsPrivateEndpointId": database_tools_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3504,7 +3504,7 @@ def remove_database_tools_private_endpoint_lock(self, database_tools_private_end "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3599,7 +3599,7 @@ def update_database_tools_connection(self, database_tools_connection_id, update_ "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_tools_connection got unknown kwargs: {extra_kwargs!r}") @@ -3608,16 +3608,16 @@ def update_database_tools_connection(self, database_tools_connection_id, update_ "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3625,7 +3625,7 @@ def update_database_tools_connection(self, database_tools_connection_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3720,7 +3720,7 @@ def update_database_tools_identity(self, database_tools_identity_id, update_data "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_tools_identity got unknown kwargs: {extra_kwargs!r}") @@ -3729,16 +3729,16 @@ def update_database_tools_identity(self, database_tools_identity_id, update_data "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3746,7 +3746,7 @@ def update_database_tools_identity(self, database_tools_identity_id, update_data "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3841,7 +3841,7 @@ def update_database_tools_private_endpoint(self, database_tools_private_endpoint "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_tools_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3850,16 +3850,16 @@ def update_database_tools_private_endpoint(self, database_tools_private_endpoint "databaseToolsPrivateEndpointId": database_tools_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3867,7 +3867,7 @@ def update_database_tools_private_endpoint(self, database_tools_private_endpoint "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3958,7 +3958,7 @@ def validate_database_tools_connection(self, database_tools_connection_id, valid "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_database_tools_connection got unknown kwargs: {extra_kwargs!r}") @@ -3967,9 +3967,9 @@ def validate_database_tools_connection(self, database_tools_connection_id, valid "databaseToolsConnectionId": database_tools_connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3979,7 +3979,7 @@ def validate_database_tools_connection(self, database_tools_connection_id, valid "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4071,7 +4071,7 @@ def validate_database_tools_identity_credential(self, database_tools_identity_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_database_tools_identity_credential got unknown kwargs: {extra_kwargs!r}") @@ -4080,9 +4080,9 @@ def validate_database_tools_identity_credential(self, database_tools_identity_id "databaseToolsIdentityId": database_tools_identity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4092,7 +4092,7 @@ def validate_database_tools_identity_credential(self, database_tools_identity_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dblm/db_life_cycle_management_client.py b/src/oci/dblm/db_life_cycle_management_client.py index 5baf24121..ea71e5f16 100644 --- a/src/oci/dblm/db_life_cycle_management_client.py +++ b/src/oci/dblm/db_life_cycle_management_client.py @@ -168,7 +168,7 @@ def create_vulnerability_scan(self, create_vulnerability_scan_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vulnerability_scan got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_vulnerability_scan(self, create_vulnerability_scan_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -276,7 +276,7 @@ def get_patch_management(self, compartment_id, **kwargs): "time_started_greater_than_or_equal_to", "time_started_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_patch_management got unknown kwargs: {extra_kwargs!r}") @@ -295,14 +295,14 @@ def get_patch_management(self, compartment_id, **kwargs): "timeStartedGreaterThanOrEqualTo": kwargs.get("time_started_greater_than_or_equal_to", missing), "timeStartedLessThan": kwargs.get("time_started_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -390,7 +390,7 @@ def get_vulnerability(self, compartment_id, **kwargs): "database_release", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vulnerability got unknown kwargs: {extra_kwargs!r}") @@ -407,14 +407,14 @@ def get_vulnerability(self, compartment_id, **kwargs): "databaseRelease": kwargs.get("database_release", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -494,7 +494,7 @@ def get_vulnerability_scan(self, vulnerability_scan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vulnerability_scan got unknown kwargs: {extra_kwargs!r}") @@ -503,9 +503,9 @@ def get_vulnerability_scan(self, vulnerability_scan_id, **kwargs): "vulnerabilityScanId": vulnerability_scan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -514,7 +514,7 @@ def get_vulnerability_scan(self, vulnerability_scan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -592,7 +592,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -601,9 +601,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -612,7 +612,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -717,7 +717,7 @@ def list_aggregated_vulnerability_data(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_aggregated_vulnerability_data got unknown kwargs: {extra_kwargs!r}") @@ -738,14 +738,14 @@ def list_aggregated_vulnerability_data(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -886,7 +886,7 @@ def list_databases(self, **kwargs): "image_compliance", "severity_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_databases got unknown kwargs: {extra_kwargs!r}") @@ -949,14 +949,14 @@ def list_databases(self, **kwargs): "imageCompliance": kwargs.get("image_compliance", missing), "severityType": self.base_client.generate_collection_format_param(kwargs.get("severity_type", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1038,7 +1038,7 @@ def list_notifications(self, compartment_id, **kwargs): "opc_request_id", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_notifications got unknown kwargs: {extra_kwargs!r}") @@ -1047,14 +1047,14 @@ def list_notifications(self, compartment_id, **kwargs): "compartmentId": compartment_id, "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1190,7 +1190,7 @@ def list_vulnerabilities(self, **kwargs): "severity_type", "search_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerabilities got unknown kwargs: {extra_kwargs!r}") @@ -1237,7 +1237,7 @@ def list_vulnerabilities(self, **kwargs): "severityType": self.base_client.generate_collection_format_param(kwargs.get("severity_type", missing), 'multi'), "searchBy": kwargs.get("search_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1245,7 +1245,7 @@ def list_vulnerabilities(self, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1376,7 +1376,7 @@ def list_vulnerability_resources(self, compartment_id, **kwargs): "patch_recommendation", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerability_resources got unknown kwargs: {extra_kwargs!r}") @@ -1431,14 +1431,14 @@ def list_vulnerability_resources(self, compartment_id, **kwargs): "severityType": self.base_client.generate_collection_format_param(kwargs.get("severity_type", missing), 'multi'), "patchRecommendation": self.base_client.generate_collection_format_param(kwargs.get("patch_recommendation", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1566,7 +1566,7 @@ def list_vulnerability_scans(self, **kwargs): "vulnerability_scan_status", "vulnerability_scan_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerability_scans got unknown kwargs: {extra_kwargs!r}") @@ -1613,14 +1613,14 @@ def list_vulnerability_scans(self, **kwargs): "vulnerabilityScanStatus": self.base_client.generate_collection_format_param(kwargs.get("vulnerability_scan_status", missing), 'multi'), "vulnerabilityScanType": kwargs.get("vulnerability_scan_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1718,7 +1718,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1727,9 +1727,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1753,14 +1753,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1860,7 +1860,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1869,9 +1869,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1895,14 +1895,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2017,7 +2017,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2053,14 +2053,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py b/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py index fb088caba..35ec337d3 100644 --- a/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py +++ b/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py @@ -215,7 +215,7 @@ def change_oracle_db_aws_identity_connector_compartment(self, oracle_db_aws_iden "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_aws_identity_connector_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_oracle_db_aws_identity_connector_compartment(self, oracle_db_aws_iden "oracleDbAwsIdentityConnectorId": oracle_db_aws_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_oracle_db_aws_identity_connector_compartment(self, oracle_db_aws_iden "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -337,7 +337,7 @@ def change_oracle_db_aws_key_compartment(self, oracle_db_aws_key_id, change_orac "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_aws_key_compartment got unknown kwargs: {extra_kwargs!r}") @@ -346,9 +346,9 @@ def change_oracle_db_aws_key_compartment(self, oracle_db_aws_key_id, change_orac "oracleDbAwsKeyId": oracle_db_aws_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -359,7 +359,7 @@ def change_oracle_db_aws_key_compartment(self, oracle_db_aws_key_id, change_orac "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -446,7 +446,7 @@ def create_oracle_db_aws_identity_connector(self, create_oracle_db_aws_identity_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_aws_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -457,7 +457,7 @@ def create_oracle_db_aws_identity_connector(self, create_oracle_db_aws_identity_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -552,7 +552,7 @@ def create_oracle_db_aws_key(self, create_oracle_db_aws_key_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_aws_key got unknown kwargs: {extra_kwargs!r}") @@ -564,7 +564,7 @@ def create_oracle_db_aws_key(self, create_oracle_db_aws_key_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -653,7 +653,7 @@ def delete_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_aws_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -662,9 +662,9 @@ def delete_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect "oracleDbAwsIdentityConnectorId": oracle_db_aws_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -674,7 +674,7 @@ def delete_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -760,7 +760,7 @@ def delete_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_aws_key got unknown kwargs: {extra_kwargs!r}") @@ -769,9 +769,9 @@ def delete_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): "oracleDbAwsKeyId": oracle_db_aws_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -781,7 +781,7 @@ def delete_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -861,7 +861,7 @@ def get_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connector_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_aws_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -870,9 +870,9 @@ def get_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connector_ "oracleDbAwsIdentityConnectorId": oracle_db_aws_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -881,7 +881,7 @@ def get_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connector_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -977,7 +977,7 @@ def get_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_aws_key got unknown kwargs: {extra_kwargs!r}") @@ -986,9 +986,9 @@ def get_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): "oracleDbAwsKeyId": oracle_db_aws_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1004,14 +1004,14 @@ def get_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1129,7 +1129,7 @@ def list_oracle_db_aws_identity_connectors(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_aws_identity_connectors got unknown kwargs: {extra_kwargs!r}") @@ -1165,14 +1165,14 @@ def list_oracle_db_aws_identity_connectors(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1292,7 +1292,7 @@ def list_oracle_db_aws_keys(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_aws_keys got unknown kwargs: {extra_kwargs!r}") @@ -1329,14 +1329,14 @@ def list_oracle_db_aws_keys(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1432,7 +1432,7 @@ def refresh_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connec "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_oracle_db_aws_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -1441,9 +1441,9 @@ def refresh_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connec "oracleDbAwsIdentityConnectorId": oracle_db_aws_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1454,7 +1454,7 @@ def refresh_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connec "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1552,7 +1552,7 @@ def refresh_oracle_db_aws_key(self, oracle_db_aws_key_id, refresh_oracle_db_aws_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_oracle_db_aws_key got unknown kwargs: {extra_kwargs!r}") @@ -1561,9 +1561,9 @@ def refresh_oracle_db_aws_key(self, oracle_db_aws_key_id, refresh_oracle_db_aws_ "oracleDbAwsKeyId": oracle_db_aws_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1574,7 +1574,7 @@ def refresh_oracle_db_aws_key(self, oracle_db_aws_key_id, refresh_oracle_db_aws_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1668,7 +1668,7 @@ def update_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_aws_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -1677,9 +1677,9 @@ def update_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect "oracleDbAwsIdentityConnectorId": oracle_db_aws_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1689,7 +1689,7 @@ def update_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1782,7 +1782,7 @@ def update_oracle_db_aws_key(self, oracle_db_aws_key_id, update_oracle_db_aws_ke "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_aws_key got unknown kwargs: {extra_kwargs!r}") @@ -1791,9 +1791,9 @@ def update_oracle_db_aws_key(self, oracle_db_aws_key_id, update_oracle_db_aws_ke "oracleDbAwsKeyId": oracle_db_aws_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1803,7 +1803,7 @@ def update_oracle_db_aws_key(self, oracle_db_aws_key_id, update_oracle_db_aws_ke "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py b/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py index 375a86b15..39a1dde28 100644 --- a/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py +++ b/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py @@ -215,7 +215,7 @@ def change_oracle_db_gcp_identity_connector_compartment(self, oracle_db_gcp_iden "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_gcp_identity_connector_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_oracle_db_gcp_identity_connector_compartment(self, oracle_db_gcp_iden "oracleDbGcpIdentityConnectorId": oracle_db_gcp_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_oracle_db_gcp_identity_connector_compartment(self, oracle_db_gcp_iden "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -337,7 +337,7 @@ def change_oracle_db_gcp_key_ring_compartment(self, oracle_db_gcp_key_ring_id, c "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_gcp_key_ring_compartment got unknown kwargs: {extra_kwargs!r}") @@ -346,9 +346,9 @@ def change_oracle_db_gcp_key_ring_compartment(self, oracle_db_gcp_key_ring_id, c "oracleDbGcpKeyRingId": oracle_db_gcp_key_ring_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -359,7 +359,7 @@ def change_oracle_db_gcp_key_ring_compartment(self, oracle_db_gcp_key_ring_id, c "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -446,7 +446,7 @@ def create_oracle_db_gcp_identity_connector(self, create_oracle_db_gcp_identity_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_gcp_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -457,7 +457,7 @@ def create_oracle_db_gcp_identity_connector(self, create_oracle_db_gcp_identity_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -552,7 +552,7 @@ def create_oracle_db_gcp_key_ring(self, create_oracle_db_gcp_key_ring_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_gcp_key_ring got unknown kwargs: {extra_kwargs!r}") @@ -564,7 +564,7 @@ def create_oracle_db_gcp_key_ring(self, create_oracle_db_gcp_key_ring_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -653,7 +653,7 @@ def delete_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_gcp_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -662,9 +662,9 @@ def delete_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect "oracleDbGcpIdentityConnectorId": oracle_db_gcp_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -674,7 +674,7 @@ def delete_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -760,7 +760,7 @@ def delete_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_gcp_key_ring got unknown kwargs: {extra_kwargs!r}") @@ -769,9 +769,9 @@ def delete_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): "oracleDbGcpKeyRingId": oracle_db_gcp_key_ring_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -781,7 +781,7 @@ def delete_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -861,7 +861,7 @@ def get_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connector_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_gcp_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -870,9 +870,9 @@ def get_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connector_ "oracleDbGcpIdentityConnectorId": oracle_db_gcp_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -881,7 +881,7 @@ def get_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connector_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -963,7 +963,7 @@ def get_oracle_db_gcp_key(self, oracle_db_gcp_key_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_gcp_key got unknown kwargs: {extra_kwargs!r}") @@ -972,9 +972,9 @@ def get_oracle_db_gcp_key(self, oracle_db_gcp_key_id, **kwargs): "oracleDbGcpKeyId": oracle_db_gcp_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -983,7 +983,7 @@ def get_oracle_db_gcp_key(self, oracle_db_gcp_key_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1079,7 +1079,7 @@ def get_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_gcp_key_ring got unknown kwargs: {extra_kwargs!r}") @@ -1088,9 +1088,9 @@ def get_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): "oracleDbGcpKeyRingId": oracle_db_gcp_key_ring_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1106,14 +1106,14 @@ def get_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1231,7 +1231,7 @@ def list_oracle_db_gcp_identity_connectors(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_gcp_identity_connectors got unknown kwargs: {extra_kwargs!r}") @@ -1267,14 +1267,14 @@ def list_oracle_db_gcp_identity_connectors(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1395,7 +1395,7 @@ def list_oracle_db_gcp_key_rings(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_gcp_key_rings got unknown kwargs: {extra_kwargs!r}") @@ -1432,14 +1432,14 @@ def list_oracle_db_gcp_key_rings(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1557,7 +1557,7 @@ def list_oracle_db_gcp_keys(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_gcp_keys got unknown kwargs: {extra_kwargs!r}") @@ -1594,14 +1594,14 @@ def list_oracle_db_gcp_keys(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1697,7 +1697,7 @@ def refresh_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connec "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_oracle_db_gcp_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -1706,9 +1706,9 @@ def refresh_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connec "oracleDbGcpIdentityConnectorId": oracle_db_gcp_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1719,7 +1719,7 @@ def refresh_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connec "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1817,7 +1817,7 @@ def refresh_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, refresh_orac "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_oracle_db_gcp_key_ring got unknown kwargs: {extra_kwargs!r}") @@ -1826,9 +1826,9 @@ def refresh_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, refresh_orac "oracleDbGcpKeyRingId": oracle_db_gcp_key_ring_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1839,7 +1839,7 @@ def refresh_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, refresh_orac "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1933,7 +1933,7 @@ def update_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_gcp_identity_connector got unknown kwargs: {extra_kwargs!r}") @@ -1942,9 +1942,9 @@ def update_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect "oracleDbGcpIdentityConnectorId": oracle_db_gcp_identity_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1954,7 +1954,7 @@ def update_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2047,7 +2047,7 @@ def update_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, update_oracle "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_gcp_key_ring got unknown kwargs: {extra_kwargs!r}") @@ -2056,9 +2056,9 @@ def update_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, update_oracle "oracleDbGcpKeyRingId": oracle_db_gcp_key_ring_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2068,7 +2068,7 @@ def update_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, update_oracle "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py b/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py index f3c5d0e2b..03a7add3d 100644 --- a/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py +++ b/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py @@ -215,7 +215,7 @@ def change_multi_cloud_resource_discovery_compartment(self, multi_cloud_resource "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_multi_cloud_resource_discovery_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_multi_cloud_resource_discovery_compartment(self, multi_cloud_resource "multiCloudResourceDiscoveryId": multi_cloud_resource_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_multi_cloud_resource_discovery_compartment(self, multi_cloud_resource "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -332,7 +332,7 @@ def create_multi_cloud_resource_discovery(self, create_multi_cloud_resource_disc "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_multi_cloud_resource_discovery got unknown kwargs: {extra_kwargs!r}") @@ -344,7 +344,7 @@ def create_multi_cloud_resource_discovery(self, create_multi_cloud_resource_disc "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -433,7 +433,7 @@ def delete_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_multi_cloud_resource_discovery got unknown kwargs: {extra_kwargs!r}") @@ -442,9 +442,9 @@ def delete_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i "multiCloudResourceDiscoveryId": multi_cloud_resource_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -454,7 +454,7 @@ def delete_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -548,7 +548,7 @@ def get_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_id, "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_multi_cloud_resource_discovery got unknown kwargs: {extra_kwargs!r}") @@ -557,9 +557,9 @@ def get_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_id, "multiCloudResourceDiscoveryId": multi_cloud_resource_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -575,14 +575,14 @@ def get_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_id, "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -714,7 +714,7 @@ def list_multi_cloud_resource_discoveries(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_multi_cloud_resource_discoveries got unknown kwargs: {extra_kwargs!r}") @@ -760,14 +760,14 @@ def list_multi_cloud_resource_discoveries(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -860,7 +860,7 @@ def update_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_multi_cloud_resource_discovery got unknown kwargs: {extra_kwargs!r}") @@ -869,9 +869,9 @@ def update_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i "multiCloudResourceDiscoveryId": multi_cloud_resource_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -881,7 +881,7 @@ def update_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py b/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py index 7cb226834..5d5da4b4a 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py @@ -215,7 +215,7 @@ def change_oracle_db_azure_blob_container_compartment(self, oracle_db_azure_blob "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_azure_blob_container_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_oracle_db_azure_blob_container_compartment(self, oracle_db_azure_blob "oracleDbAzureBlobContainerId": oracle_db_azure_blob_container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_oracle_db_azure_blob_container_compartment(self, oracle_db_azure_blob "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -332,7 +332,7 @@ def create_oracle_db_azure_blob_container(self, create_oracle_db_azure_blob_cont "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_azure_blob_container got unknown kwargs: {extra_kwargs!r}") @@ -344,7 +344,7 @@ def create_oracle_db_azure_blob_container(self, create_oracle_db_azure_blob_cont "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -433,7 +433,7 @@ def delete_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_azure_blob_container got unknown kwargs: {extra_kwargs!r}") @@ -442,9 +442,9 @@ def delete_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i "oracleDbAzureBlobContainerId": oracle_db_azure_blob_container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -454,7 +454,7 @@ def delete_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -548,7 +548,7 @@ def get_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_id, "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_azure_blob_container got unknown kwargs: {extra_kwargs!r}") @@ -557,9 +557,9 @@ def get_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_id, "oracleDbAzureBlobContainerId": oracle_db_azure_blob_container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -575,14 +575,14 @@ def get_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_id, "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -706,7 +706,7 @@ def list_oracle_db_azure_blob_containers(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_azure_blob_containers got unknown kwargs: {extra_kwargs!r}") @@ -744,14 +744,14 @@ def list_oracle_db_azure_blob_containers(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -844,7 +844,7 @@ def update_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_azure_blob_container got unknown kwargs: {extra_kwargs!r}") @@ -853,9 +853,9 @@ def update_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i "oracleDbAzureBlobContainerId": oracle_db_azure_blob_container_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -865,7 +865,7 @@ def update_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py b/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py index 427788fdf..0ea3ee558 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py @@ -215,7 +215,7 @@ def change_oracle_db_azure_blob_mount_compartment(self, oracle_db_azure_blob_mou "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_azure_blob_mount_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_oracle_db_azure_blob_mount_compartment(self, oracle_db_azure_blob_mou "oracleDbAzureBlobMountId": oracle_db_azure_blob_mount_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_oracle_db_azure_blob_mount_compartment(self, oracle_db_azure_blob_mou "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -332,7 +332,7 @@ def create_oracle_db_azure_blob_mount(self, create_oracle_db_azure_blob_mount_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_azure_blob_mount got unknown kwargs: {extra_kwargs!r}") @@ -344,7 +344,7 @@ def create_oracle_db_azure_blob_mount(self, create_oracle_db_azure_blob_mount_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -433,7 +433,7 @@ def delete_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_azure_blob_mount got unknown kwargs: {extra_kwargs!r}") @@ -442,9 +442,9 @@ def delete_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwa "oracleDbAzureBlobMountId": oracle_db_azure_blob_mount_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -454,7 +454,7 @@ def delete_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -548,7 +548,7 @@ def get_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwargs "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_azure_blob_mount got unknown kwargs: {extra_kwargs!r}") @@ -557,9 +557,9 @@ def get_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwargs "oracleDbAzureBlobMountId": oracle_db_azure_blob_mount_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -575,14 +575,14 @@ def get_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwargs "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -708,7 +708,7 @@ def list_oracle_db_azure_blob_mounts(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_azure_blob_mounts got unknown kwargs: {extra_kwargs!r}") @@ -746,14 +746,14 @@ def list_oracle_db_azure_blob_mounts(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -846,7 +846,7 @@ def update_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, updat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_azure_blob_mount got unknown kwargs: {extra_kwargs!r}") @@ -855,9 +855,9 @@ def update_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, updat "oracleDbAzureBlobMountId": oracle_db_azure_blob_mount_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -867,7 +867,7 @@ def update_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, updat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/oracle_db_azure_connector_client.py b/src/oci/dbmulticloud/oracle_db_azure_connector_client.py index 5bd890901..3ef170d29 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_connector_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_connector_client.py @@ -215,7 +215,7 @@ def change_oracle_db_azure_connector_compartment(self, oracle_db_azure_connector "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_azure_connector_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_oracle_db_azure_connector_compartment(self, oracle_db_azure_connector "oracleDbAzureConnectorId": oracle_db_azure_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_oracle_db_azure_connector_compartment(self, oracle_db_azure_connector "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -325,7 +325,7 @@ def create_oracle_db_azure_connector(self, create_oracle_db_azure_connector_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_azure_connector got unknown kwargs: {extra_kwargs!r}") @@ -336,7 +336,7 @@ def create_oracle_db_azure_connector(self, create_oracle_db_azure_connector_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -425,7 +425,7 @@ def delete_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_azure_connector got unknown kwargs: {extra_kwargs!r}") @@ -434,9 +434,9 @@ def delete_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwarg "oracleDbAzureConnectorId": oracle_db_azure_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -446,7 +446,7 @@ def delete_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -540,7 +540,7 @@ def get_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_azure_connector got unknown kwargs: {extra_kwargs!r}") @@ -549,9 +549,9 @@ def get_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwargs): "oracleDbAzureConnectorId": oracle_db_azure_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -567,14 +567,14 @@ def get_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -696,7 +696,7 @@ def list_oracle_db_azure_connectors(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_azure_connectors got unknown kwargs: {extra_kwargs!r}") @@ -733,14 +733,14 @@ def list_oracle_db_azure_connectors(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -831,7 +831,7 @@ def patch_oracle_db_azure_connector(self, oracle_db_azure_connector_id, patch_or "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_oracle_db_azure_connector got unknown kwargs: {extra_kwargs!r}") @@ -840,9 +840,9 @@ def patch_oracle_db_azure_connector(self, oracle_db_azure_connector_id, patch_or "oracleDbAzureConnectorId": oracle_db_azure_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -852,7 +852,7 @@ def patch_oracle_db_azure_connector(self, oracle_db_azure_connector_id, patch_or "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -948,7 +948,7 @@ def refresh_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_oracle_db_azure_connector got unknown kwargs: {extra_kwargs!r}") @@ -957,9 +957,9 @@ def refresh_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwar "oracleDbAzureConnectorId": oracle_db_azure_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -970,7 +970,7 @@ def refresh_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1062,7 +1062,7 @@ def update_oracle_db_azure_connector(self, oracle_db_azure_connector_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_azure_connector got unknown kwargs: {extra_kwargs!r}") @@ -1071,9 +1071,9 @@ def update_oracle_db_azure_connector(self, oracle_db_azure_connector_id, update_ "oracleDbAzureConnectorId": oracle_db_azure_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1083,7 +1083,7 @@ def update_oracle_db_azure_connector(self, oracle_db_azure_connector_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/oracle_db_azure_key_client.py b/src/oci/dbmulticloud/oracle_db_azure_key_client.py index 74033603c..75025d4f2 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_key_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_key_client.py @@ -212,7 +212,7 @@ def get_oracle_db_azure_key(self, oracle_db_azure_key_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_azure_key got unknown kwargs: {extra_kwargs!r}") @@ -221,9 +221,9 @@ def get_oracle_db_azure_key(self, oracle_db_azure_key_id, **kwargs): "oracleDbAzureKeyId": oracle_db_azure_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -239,14 +239,14 @@ def get_oracle_db_azure_key(self, oracle_db_azure_key_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -370,7 +370,7 @@ def list_oracle_db_azure_keys(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_azure_keys got unknown kwargs: {extra_kwargs!r}") @@ -407,14 +407,14 @@ def list_oracle_db_azure_keys(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py b/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py index 1fb3affa2..92ebbb55f 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py @@ -212,7 +212,7 @@ def cascading_delete_oracle_db_azure_vault_association(self, oracle_db_azure_vau "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_oracle_db_azure_vault_association got unknown kwargs: {extra_kwargs!r}") @@ -221,9 +221,9 @@ def cascading_delete_oracle_db_azure_vault_association(self, oracle_db_azure_vau "oracleDbAzureVaultAssociationId": oracle_db_azure_vault_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -234,7 +234,7 @@ def cascading_delete_oracle_db_azure_vault_association(self, oracle_db_azure_vau "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -332,7 +332,7 @@ def change_oracle_db_azure_vault_association_compartment(self, oracle_db_azure_v "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_azure_vault_association_compartment got unknown kwargs: {extra_kwargs!r}") @@ -341,9 +341,9 @@ def change_oracle_db_azure_vault_association_compartment(self, oracle_db_azure_v "oracleDbAzureVaultAssociationId": oracle_db_azure_vault_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -354,7 +354,7 @@ def change_oracle_db_azure_vault_association_compartment(self, oracle_db_azure_v "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -449,7 +449,7 @@ def create_oracle_db_azure_vault_association(self, create_oracle_db_azure_vault_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_azure_vault_association got unknown kwargs: {extra_kwargs!r}") @@ -461,7 +461,7 @@ def create_oracle_db_azure_vault_association(self, create_oracle_db_azure_vault_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -550,7 +550,7 @@ def delete_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_azure_vault_association got unknown kwargs: {extra_kwargs!r}") @@ -559,9 +559,9 @@ def delete_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa "oracleDbAzureVaultAssociationId": oracle_db_azure_vault_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -571,7 +571,7 @@ def delete_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -665,7 +665,7 @@ def get_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associatio "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_azure_vault_association got unknown kwargs: {extra_kwargs!r}") @@ -674,9 +674,9 @@ def get_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associatio "oracleDbAzureVaultAssociationId": oracle_db_azure_vault_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -692,14 +692,14 @@ def get_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associatio "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -825,7 +825,7 @@ def list_oracle_db_azure_vault_associations(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_azure_vault_associations got unknown kwargs: {extra_kwargs!r}") @@ -863,14 +863,14 @@ def list_oracle_db_azure_vault_associations(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -963,7 +963,7 @@ def update_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_azure_vault_association got unknown kwargs: {extra_kwargs!r}") @@ -972,9 +972,9 @@ def update_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa "oracleDbAzureVaultAssociationId": oracle_db_azure_vault_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -984,7 +984,7 @@ def update_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/oracle_db_azure_vault_client.py b/src/oci/dbmulticloud/oracle_db_azure_vault_client.py index 945f6554d..3564f23a2 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_vault_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_vault_client.py @@ -215,7 +215,7 @@ def change_oracle_db_azure_vault_compartment(self, oracle_db_azure_vault_id, cha "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oracle_db_azure_vault_compartment got unknown kwargs: {extra_kwargs!r}") @@ -224,9 +224,9 @@ def change_oracle_db_azure_vault_compartment(self, oracle_db_azure_vault_id, cha "oracleDbAzureVaultId": oracle_db_azure_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -237,7 +237,7 @@ def change_oracle_db_azure_vault_compartment(self, oracle_db_azure_vault_id, cha "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -332,7 +332,7 @@ def create_oracle_db_azure_vault(self, create_oracle_db_azure_vault_details, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}") @@ -344,7 +344,7 @@ def create_oracle_db_azure_vault(self, create_oracle_db_azure_vault_details, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -433,7 +433,7 @@ def delete_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}") @@ -442,9 +442,9 @@ def delete_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "oracleDbAzureVaultId": oracle_db_azure_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -454,7 +454,7 @@ def delete_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -548,7 +548,7 @@ def get_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}") @@ -557,9 +557,9 @@ def get_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "oracleDbAzureVaultId": oracle_db_azure_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -575,14 +575,14 @@ def get_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -708,7 +708,7 @@ def list_oracle_db_azure_vaults(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oracle_db_azure_vaults got unknown kwargs: {extra_kwargs!r}") @@ -746,14 +746,14 @@ def list_oracle_db_azure_vaults(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -853,7 +853,7 @@ def refresh_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}") @@ -862,9 +862,9 @@ def refresh_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "oracleDbAzureVaultId": oracle_db_azure_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -875,7 +875,7 @@ def refresh_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -969,7 +969,7 @@ def update_oracle_db_azure_vault(self, oracle_db_azure_vault_id, update_oracle_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}") @@ -978,9 +978,9 @@ def update_oracle_db_azure_vault(self, oracle_db_azure_vault_id, update_oracle_d "oracleDbAzureVaultId": oracle_db_azure_vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -990,7 +990,7 @@ def update_oracle_db_azure_vault(self, oracle_db_azure_vault_id, update_oracle_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dbmulticloud/work_request_client.py b/src/oci/dbmulticloud/work_request_client.py index 0ab9895ca..ff669cbba 100644 --- a/src/oci/dbmulticloud/work_request_client.py +++ b/src/oci/dbmulticloud/work_request_client.py @@ -202,7 +202,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -211,9 +211,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -223,7 +223,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -299,7 +299,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -308,9 +308,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -319,7 +319,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -417,7 +417,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -426,9 +426,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -452,14 +452,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -559,7 +559,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -568,9 +568,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -594,14 +594,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -717,7 +717,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -753,14 +753,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/decorators.py b/src/oci/decorators.py index b5d3574cc..b0b4c6642 100644 --- a/src/oci/decorators.py +++ b/src/oci/decorators.py @@ -22,7 +22,7 @@ def init(self, **kwargs): setattr(self, attr_name, value) if kwargs: - raise TypeError('Unrecognized keyword arguments: {}'.format(', '.join(six.iterkeys(kwargs)))) + raise TypeError('Unrecognized keyword arguments: {}'.format(', '.join(kwargs.keys()))) return init diff --git a/src/oci/delegate_access_control/delegate_access_control_client.py b/src/oci/delegate_access_control/delegate_access_control_client.py index 21979bff2..1f41abc04 100644 --- a/src/oci/delegate_access_control/delegate_access_control_client.py +++ b/src/oci/delegate_access_control/delegate_access_control_client.py @@ -183,7 +183,7 @@ def approve_delegated_resource_access_request(self, delegated_resource_access_re "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"approve_delegated_resource_access_request got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def approve_delegated_resource_access_request(self, delegated_resource_access_re "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def approve_delegated_resource_access_request(self, delegated_resource_access_re "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def change_delegation_control_compartment(self, delegation_control_id, change_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_delegation_control_compartment got unknown kwargs: {extra_kwargs!r}") @@ -312,9 +312,9 @@ def change_delegation_control_compartment(self, delegation_control_id, change_de "delegationControlId": delegation_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def change_delegation_control_compartment(self, delegation_control_id, change_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -423,7 +423,7 @@ def change_delegation_subscription_compartment(self, delegation_subscription_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_delegation_subscription_compartment got unknown kwargs: {extra_kwargs!r}") @@ -432,9 +432,9 @@ def change_delegation_subscription_compartment(self, delegation_subscription_id, "delegationSubscriptionId": delegation_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -445,7 +445,7 @@ def change_delegation_subscription_compartment(self, delegation_subscription_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -532,7 +532,7 @@ def create_delegation_control(self, create_delegation_control_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_delegation_control got unknown kwargs: {extra_kwargs!r}") @@ -543,7 +543,7 @@ def create_delegation_control(self, create_delegation_control_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -630,7 +630,7 @@ def create_delegation_subscription(self, create_delegation_subscription_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_delegation_subscription got unknown kwargs: {extra_kwargs!r}") @@ -641,7 +641,7 @@ def create_delegation_subscription(self, create_delegation_subscription_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -736,7 +736,7 @@ def delete_delegation_control(self, delegation_control_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_delegation_control got unknown kwargs: {extra_kwargs!r}") @@ -745,16 +745,16 @@ def delete_delegation_control(self, delegation_control_id, **kwargs): "delegationControlId": delegation_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "description": kwargs.get("description", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -762,7 +762,7 @@ def delete_delegation_control(self, delegation_control_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -848,7 +848,7 @@ def delete_delegation_subscription(self, delegation_subscription_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_delegation_subscription got unknown kwargs: {extra_kwargs!r}") @@ -857,9 +857,9 @@ def delete_delegation_subscription(self, delegation_subscription_id, **kwargs): "delegationSubscriptionId": delegation_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -869,7 +869,7 @@ def delete_delegation_subscription(self, delegation_subscription_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -945,7 +945,7 @@ def get_delegated_resource_access_request(self, delegated_resource_access_reques "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_delegated_resource_access_request got unknown kwargs: {extra_kwargs!r}") @@ -954,9 +954,9 @@ def get_delegated_resource_access_request(self, delegated_resource_access_reques "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -965,7 +965,7 @@ def get_delegated_resource_access_request(self, delegated_resource_access_reques "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1047,7 +1047,7 @@ def get_delegated_resource_access_request_audit_log_report(self, delegated_resou "is_process_tree_enabled", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_delegated_resource_access_request_audit_log_report got unknown kwargs: {extra_kwargs!r}") @@ -1056,23 +1056,23 @@ def get_delegated_resource_access_request_audit_log_report(self, delegated_resou "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isProcessTreeEnabled": kwargs.get("is_process_tree_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1152,7 +1152,7 @@ def get_delegation_control(self, delegation_control_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_delegation_control got unknown kwargs: {extra_kwargs!r}") @@ -1161,9 +1161,9 @@ def get_delegation_control(self, delegation_control_id, **kwargs): "delegationControlId": delegation_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1172,7 +1172,7 @@ def get_delegation_control(self, delegation_control_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1250,7 +1250,7 @@ def get_delegation_subscription(self, delegation_subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_delegation_subscription got unknown kwargs: {extra_kwargs!r}") @@ -1259,9 +1259,9 @@ def get_delegation_subscription(self, delegation_subscription_id, **kwargs): "delegationSubscriptionId": delegation_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1270,7 +1270,7 @@ def get_delegation_subscription(self, delegation_subscription_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1348,7 +1348,7 @@ def get_service_provider(self, service_provider_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_provider got unknown kwargs: {extra_kwargs!r}") @@ -1357,9 +1357,9 @@ def get_service_provider(self, service_provider_id, **kwargs): "serviceProviderId": service_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1368,7 +1368,7 @@ def get_service_provider(self, service_provider_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1446,7 +1446,7 @@ def get_service_provider_action(self, service_provider_action_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_provider_action got unknown kwargs: {extra_kwargs!r}") @@ -1455,9 +1455,9 @@ def get_service_provider_action(self, service_provider_action_id, **kwargs): "serviceProviderActionId": service_provider_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1466,7 +1466,7 @@ def get_service_provider_action(self, service_provider_action_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1564,7 +1564,7 @@ def list_delegated_resource_access_request_histories(self, delegated_resource_ac "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_delegated_resource_access_request_histories got unknown kwargs: {extra_kwargs!r}") @@ -1573,9 +1573,9 @@ def list_delegated_resource_access_request_histories(self, delegated_resource_ac "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1599,14 +1599,14 @@ def list_delegated_resource_access_request_histories(self, delegated_resource_ac "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1740,7 +1740,7 @@ def list_delegated_resource_access_requests(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_delegated_resource_access_requests got unknown kwargs: {extra_kwargs!r}") @@ -1786,14 +1786,14 @@ def list_delegated_resource_access_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1879,7 +1879,7 @@ def list_delegation_control_resources(self, delegation_control_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_delegation_control_resources got unknown kwargs: {extra_kwargs!r}") @@ -1888,9 +1888,9 @@ def list_delegation_control_resources(self, delegation_control_id, **kwargs): "delegationControlId": delegation_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1898,14 +1898,14 @@ def list_delegation_control_resources(self, delegation_control_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2027,7 +2027,7 @@ def list_delegation_controls(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_delegation_controls got unknown kwargs: {extra_kwargs!r}") @@ -2071,14 +2071,14 @@ def list_delegation_controls(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2188,7 +2188,7 @@ def list_delegation_subscriptions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_delegation_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -2223,14 +2223,14 @@ def list_delegation_subscriptions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2352,7 +2352,7 @@ def list_service_provider_actions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_provider_actions got unknown kwargs: {extra_kwargs!r}") @@ -2404,14 +2404,14 @@ def list_service_provider_actions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2497,7 +2497,7 @@ def list_service_provider_interactions(self, delegated_resource_access_request_i "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_provider_interactions got unknown kwargs: {extra_kwargs!r}") @@ -2506,9 +2506,9 @@ def list_service_provider_interactions(self, delegated_resource_access_request_i "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2516,14 +2516,14 @@ def list_service_provider_interactions(self, delegated_resource_access_request_i "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2647,7 +2647,7 @@ def list_service_providers(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_providers got unknown kwargs: {extra_kwargs!r}") @@ -2698,14 +2698,14 @@ def list_service_providers(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2802,7 +2802,7 @@ def reject_delegated_resource_access_request(self, delegated_resource_access_req "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reject_delegated_resource_access_request got unknown kwargs: {extra_kwargs!r}") @@ -2811,9 +2811,9 @@ def reject_delegated_resource_access_request(self, delegated_resource_access_req "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2824,7 +2824,7 @@ def reject_delegated_resource_access_request(self, delegated_resource_access_req "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2922,7 +2922,7 @@ def revoke_delegated_resource_access_request(self, delegated_resource_access_req "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"revoke_delegated_resource_access_request got unknown kwargs: {extra_kwargs!r}") @@ -2931,9 +2931,9 @@ def revoke_delegated_resource_access_request(self, delegated_resource_access_req "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2944,7 +2944,7 @@ def revoke_delegated_resource_access_request(self, delegated_resource_access_req "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3042,7 +3042,7 @@ def service_provider_interaction_request(self, delegated_resource_access_request "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"service_provider_interaction_request got unknown kwargs: {extra_kwargs!r}") @@ -3051,9 +3051,9 @@ def service_provider_interaction_request(self, delegated_resource_access_request "delegatedResourceAccessRequestId": delegated_resource_access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3064,7 +3064,7 @@ def service_provider_interaction_request(self, delegated_resource_access_request "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3154,7 +3154,7 @@ def update_delegation_control(self, delegation_control_id, update_delegation_con "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_delegation_control got unknown kwargs: {extra_kwargs!r}") @@ -3163,9 +3163,9 @@ def update_delegation_control(self, delegation_control_id, update_delegation_con "delegationControlId": delegation_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3175,7 +3175,7 @@ def update_delegation_control(self, delegation_control_id, update_delegation_con "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3266,7 +3266,7 @@ def update_delegation_subscription(self, delegation_subscription_id, update_dele "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_delegation_subscription got unknown kwargs: {extra_kwargs!r}") @@ -3275,9 +3275,9 @@ def update_delegation_subscription(self, delegation_subscription_id, update_dele "delegationSubscriptionId": delegation_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3287,7 +3287,7 @@ def update_delegation_subscription(self, delegation_subscription_id, update_dele "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/delegate_access_control/work_request_client.py b/src/oci/delegate_access_control/work_request_client.py index 003a12b7c..9a72aeca3 100644 --- a/src/oci/delegate_access_control/work_request_client.py +++ b/src/oci/delegate_access_control/work_request_client.py @@ -164,7 +164,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -173,9 +173,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -184,7 +184,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -282,7 +282,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -291,9 +291,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -317,14 +317,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -424,7 +424,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -433,9 +433,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -459,14 +459,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -582,7 +582,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -618,14 +618,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/demand_signal/occ_demand_signal_client.py b/src/oci/demand_signal/occ_demand_signal_client.py index 3db144cad..d684e8498 100644 --- a/src/oci/demand_signal/occ_demand_signal_client.py +++ b/src/oci/demand_signal/occ_demand_signal_client.py @@ -179,7 +179,7 @@ def change_occ_demand_signal_compartment(self, occ_demand_signal_id, change_occ_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_occ_demand_signal_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_occ_demand_signal_compartment(self, occ_demand_signal_id, change_occ_ "occDemandSignalId": occ_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -200,7 +200,7 @@ def change_occ_demand_signal_compartment(self, occ_demand_signal_id, change_occ_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -289,7 +289,7 @@ def create_occ_demand_signal(self, create_occ_demand_signal_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_occ_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -300,7 +300,7 @@ def create_occ_demand_signal(self, create_occ_demand_signal_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -391,7 +391,7 @@ def delete_occ_demand_signal(self, occ_demand_signal_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_occ_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -400,9 +400,9 @@ def delete_occ_demand_signal(self, occ_demand_signal_id, **kwargs): "occDemandSignalId": occ_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -412,7 +412,7 @@ def delete_occ_demand_signal(self, occ_demand_signal_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -493,7 +493,7 @@ def get_occ_demand_signal(self, occ_demand_signal_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_occ_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -502,9 +502,9 @@ def get_occ_demand_signal(self, occ_demand_signal_id, **kwargs): "occDemandSignalId": occ_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -513,7 +513,7 @@ def get_occ_demand_signal(self, occ_demand_signal_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -643,7 +643,7 @@ def list_occ_demand_signals(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_occ_demand_signals got unknown kwargs: {extra_kwargs!r}") @@ -679,14 +679,14 @@ def list_occ_demand_signals(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -779,7 +779,7 @@ def patch_occ_demand_signal(self, occ_demand_signal_id, patch_occ_demand_signal_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_occ_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -788,9 +788,9 @@ def patch_occ_demand_signal(self, occ_demand_signal_id, patch_occ_demand_signal_ "occDemandSignalId": occ_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -800,7 +800,7 @@ def patch_occ_demand_signal(self, occ_demand_signal_id, patch_occ_demand_signal_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -895,7 +895,7 @@ def update_occ_demand_signal(self, occ_demand_signal_id, update_occ_demand_signa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_occ_demand_signal got unknown kwargs: {extra_kwargs!r}") @@ -904,9 +904,9 @@ def update_occ_demand_signal(self, occ_demand_signal_id, update_occ_demand_signa "occDemandSignalId": occ_demand_signal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -916,7 +916,7 @@ def update_occ_demand_signal(self, occ_demand_signal_id, update_occ_demand_signa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/desktops/desktop_service_client.py b/src/oci/desktops/desktop_service_client.py index 62d98f25a..c46f74166 100644 --- a/src/oci/desktops/desktop_service_client.py +++ b/src/oci/desktops/desktop_service_client.py @@ -164,7 +164,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -173,9 +173,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -185,7 +185,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -272,7 +272,7 @@ def change_desktop_pool_compartment(self, desktop_pool_id, change_desktop_pool_c "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_desktop_pool_compartment got unknown kwargs: {extra_kwargs!r}") @@ -281,9 +281,9 @@ def change_desktop_pool_compartment(self, desktop_pool_id, change_desktop_pool_c "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def change_desktop_pool_compartment(self, desktop_pool_id, change_desktop_pool_c "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -377,7 +377,7 @@ def create_desktop_pool(self, create_desktop_pool_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_desktop_pool got unknown kwargs: {extra_kwargs!r}") @@ -388,7 +388,7 @@ def create_desktop_pool(self, create_desktop_pool_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -471,7 +471,7 @@ def delete_desktop(self, desktop_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_desktop got unknown kwargs: {extra_kwargs!r}") @@ -480,9 +480,9 @@ def delete_desktop(self, desktop_id, **kwargs): "desktopId": desktop_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -492,7 +492,7 @@ def delete_desktop(self, desktop_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -576,7 +576,7 @@ def delete_desktop_pool(self, desktop_pool_id, **kwargs): "if_match", "are_volumes_preserved" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_desktop_pool got unknown kwargs: {extra_kwargs!r}") @@ -585,16 +585,16 @@ def delete_desktop_pool(self, desktop_pool_id, **kwargs): "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "areVolumesPreserved": kwargs.get("are_volumes_preserved", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -602,7 +602,7 @@ def delete_desktop_pool(self, desktop_pool_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -680,7 +680,7 @@ def get_desktop(self, desktop_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_desktop got unknown kwargs: {extra_kwargs!r}") @@ -689,9 +689,9 @@ def get_desktop(self, desktop_id, **kwargs): "desktopId": desktop_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -700,7 +700,7 @@ def get_desktop(self, desktop_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -778,7 +778,7 @@ def get_desktop_pool(self, desktop_pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_desktop_pool got unknown kwargs: {extra_kwargs!r}") @@ -787,9 +787,9 @@ def get_desktop_pool(self, desktop_pool_id, **kwargs): "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -798,7 +798,7 @@ def get_desktop_pool(self, desktop_pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -876,7 +876,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -885,9 +885,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -896,7 +896,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1013,7 +1013,7 @@ def list_desktop_pool_desktops(self, compartment_id, desktop_pool_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_desktop_pool_desktops got unknown kwargs: {extra_kwargs!r}") @@ -1022,9 +1022,9 @@ def list_desktop_pool_desktops(self, compartment_id, desktop_pool_id, **kwargs): "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1053,14 +1053,14 @@ def list_desktop_pool_desktops(self, compartment_id, desktop_pool_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1179,7 +1179,7 @@ def list_desktop_pool_volumes(self, desktop_pool_id, compartment_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_desktop_pool_volumes got unknown kwargs: {extra_kwargs!r}") @@ -1188,9 +1188,9 @@ def list_desktop_pool_volumes(self, desktop_pool_id, compartment_id, **kwargs): "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1219,14 +1219,14 @@ def list_desktop_pool_volumes(self, desktop_pool_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1342,7 +1342,7 @@ def list_desktop_pools(self, compartment_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_desktop_pools got unknown kwargs: {extra_kwargs!r}") @@ -1372,14 +1372,14 @@ def list_desktop_pools(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1497,7 +1497,7 @@ def list_desktops(self, compartment_id, **kwargs): "page", "desktop_pool_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_desktops got unknown kwargs: {extra_kwargs!r}") @@ -1528,14 +1528,14 @@ def list_desktops(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "desktopPoolId": kwargs.get("desktop_pool_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1633,7 +1633,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1642,9 +1642,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1668,14 +1668,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1775,7 +1775,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1784,9 +1784,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1810,14 +1810,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1931,7 +1931,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1967,14 +1967,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2060,7 +2060,7 @@ def start_desktop(self, desktop_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_desktop got unknown kwargs: {extra_kwargs!r}") @@ -2069,9 +2069,9 @@ def start_desktop(self, desktop_id, **kwargs): "desktopId": desktop_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2082,7 +2082,7 @@ def start_desktop(self, desktop_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2167,7 +2167,7 @@ def start_desktop_pool(self, desktop_pool_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_desktop_pool got unknown kwargs: {extra_kwargs!r}") @@ -2176,9 +2176,9 @@ def start_desktop_pool(self, desktop_pool_id, **kwargs): "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2189,7 +2189,7 @@ def start_desktop_pool(self, desktop_pool_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2278,7 +2278,7 @@ def stop_desktop(self, desktop_id, **kwargs): "opc_retry_token", "is_soft_stop" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_desktop got unknown kwargs: {extra_kwargs!r}") @@ -2287,16 +2287,16 @@ def stop_desktop(self, desktop_id, **kwargs): "desktopId": desktop_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isSoftStop": kwargs.get("is_soft_stop", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2305,7 +2305,7 @@ def stop_desktop(self, desktop_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2392,7 +2392,7 @@ def stop_desktop_pool(self, desktop_pool_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_desktop_pool got unknown kwargs: {extra_kwargs!r}") @@ -2401,9 +2401,9 @@ def stop_desktop_pool(self, desktop_pool_id, **kwargs): "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2414,7 +2414,7 @@ def stop_desktop_pool(self, desktop_pool_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2498,7 +2498,7 @@ def update_desktop(self, desktop_id, update_desktop_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_desktop got unknown kwargs: {extra_kwargs!r}") @@ -2507,9 +2507,9 @@ def update_desktop(self, desktop_id, update_desktop_details, **kwargs): "desktopId": desktop_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2519,7 +2519,7 @@ def update_desktop(self, desktop_id, update_desktop_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2604,7 +2604,7 @@ def update_desktop_pool(self, desktop_pool_id, update_desktop_pool_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_desktop_pool got unknown kwargs: {extra_kwargs!r}") @@ -2613,9 +2613,9 @@ def update_desktop_pool(self, desktop_pool_id, update_desktop_pool_details, **kw "desktopPoolId": desktop_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2625,7 +2625,7 @@ def update_desktop_pool(self, desktop_pool_id, update_desktop_pool_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/devops/devops_client.py b/src/oci/devops/devops_client.py index 1a3be4573..534596908 100644 --- a/src/oci/devops/devops_client.py +++ b/src/oci/devops/devops_client.py @@ -172,7 +172,7 @@ def approve_deployment(self, deployment_id, approve_deployment_details, **kwargs "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"approve_deployment got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def approve_deployment(self, deployment_id, approve_deployment_details, **kwargs "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -194,7 +194,7 @@ def approve_deployment(self, deployment_id, approve_deployment_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -286,7 +286,7 @@ def cancel_build_run(self, cancel_build_run_details, build_run_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_build_run got unknown kwargs: {extra_kwargs!r}") @@ -295,9 +295,9 @@ def cancel_build_run(self, cancel_build_run_details, build_run_id, **kwargs): "buildRunId": build_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def cancel_build_run(self, cancel_build_run_details, build_run_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -400,7 +400,7 @@ def cancel_deployment(self, deployment_id, cancel_deployment_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_deployment got unknown kwargs: {extra_kwargs!r}") @@ -409,9 +409,9 @@ def cancel_deployment(self, deployment_id, cancel_deployment_details, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -422,7 +422,7 @@ def cancel_deployment(self, deployment_id, cancel_deployment_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def cancel_scheduled_cascading_project_deletion(self, project_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_scheduled_cascading_project_deletion got unknown kwargs: {extra_kwargs!r}") @@ -520,9 +520,9 @@ def cancel_scheduled_cascading_project_deletion(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -533,7 +533,7 @@ def cancel_scheduled_cascading_project_deletion(self, project_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -621,7 +621,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_project_compartment got unknown kwargs: {extra_kwargs!r}") @@ -630,9 +630,9 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -643,7 +643,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -726,7 +726,7 @@ def create_build_pipeline(self, create_build_pipeline_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_build_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -737,7 +737,7 @@ def create_build_pipeline(self, create_build_pipeline_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -820,7 +820,7 @@ def create_build_pipeline_stage(self, create_build_pipeline_stage_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_build_pipeline_stage got unknown kwargs: {extra_kwargs!r}") @@ -831,7 +831,7 @@ def create_build_pipeline_stage(self, create_build_pipeline_stage_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -918,7 +918,7 @@ def create_build_run(self, create_build_run_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_build_run got unknown kwargs: {extra_kwargs!r}") @@ -930,7 +930,7 @@ def create_build_run(self, create_build_run_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1013,7 +1013,7 @@ def create_connection(self, create_connection_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection got unknown kwargs: {extra_kwargs!r}") @@ -1024,7 +1024,7 @@ def create_connection(self, create_connection_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1107,7 +1107,7 @@ def create_deploy_artifact(self, create_deploy_artifact_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deploy_artifact got unknown kwargs: {extra_kwargs!r}") @@ -1118,7 +1118,7 @@ def create_deploy_artifact(self, create_deploy_artifact_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1201,7 +1201,7 @@ def create_deploy_environment(self, create_deploy_environment_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deploy_environment got unknown kwargs: {extra_kwargs!r}") @@ -1212,7 +1212,7 @@ def create_deploy_environment(self, create_deploy_environment_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1295,7 +1295,7 @@ def create_deploy_pipeline(self, create_deploy_pipeline_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deploy_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -1306,7 +1306,7 @@ def create_deploy_pipeline(self, create_deploy_pipeline_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1389,7 +1389,7 @@ def create_deploy_stage(self, create_deploy_stage_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deploy_stage got unknown kwargs: {extra_kwargs!r}") @@ -1400,7 +1400,7 @@ def create_deploy_stage(self, create_deploy_stage_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1483,7 +1483,7 @@ def create_deployment(self, create_deployment_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deployment got unknown kwargs: {extra_kwargs!r}") @@ -1494,7 +1494,7 @@ def create_deployment(self, create_deployment_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1584,7 +1584,7 @@ def create_or_update_git_ref(self, repository_id, create_or_update_git_ref_detai "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_or_update_git_ref got unknown kwargs: {extra_kwargs!r}") @@ -1593,9 +1593,9 @@ def create_or_update_git_ref(self, repository_id, create_or_update_git_ref_detai "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1606,7 +1606,7 @@ def create_or_update_git_ref(self, repository_id, create_or_update_git_ref_detai "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1698,7 +1698,7 @@ def create_or_update_protected_branch(self, repository_id, create_or_update_prot "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_or_update_protected_branch got unknown kwargs: {extra_kwargs!r}") @@ -1707,9 +1707,9 @@ def create_or_update_protected_branch(self, repository_id, create_or_update_prot "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1720,7 +1720,7 @@ def create_or_update_protected_branch(self, repository_id, create_or_update_prot "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1805,7 +1805,7 @@ def create_project(self, create_project_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_project got unknown kwargs: {extra_kwargs!r}") @@ -1816,7 +1816,7 @@ def create_project(self, create_project_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1899,7 +1899,7 @@ def create_pull_request(self, create_pull_request_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -1910,7 +1910,7 @@ def create_pull_request(self, create_pull_request_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2007,7 +2007,7 @@ def create_pull_request_attachment(self, pull_request_id, content_disposition, c "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pull_request_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2016,9 +2016,9 @@ def create_pull_request_attachment(self, pull_request_id, content_disposition, c "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2028,7 +2028,7 @@ def create_pull_request_attachment(self, pull_request_id, content_disposition, c "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -2137,7 +2137,7 @@ def create_pull_request_comment(self, pull_request_id, create_pull_request_comme "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -2146,9 +2146,9 @@ def create_pull_request_comment(self, pull_request_id, create_pull_request_comme "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2158,7 +2158,7 @@ def create_pull_request_comment(self, pull_request_id, create_pull_request_comme "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2243,7 +2243,7 @@ def create_repository(self, create_repository_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_repository got unknown kwargs: {extra_kwargs!r}") @@ -2254,7 +2254,7 @@ def create_repository(self, create_repository_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2337,7 +2337,7 @@ def create_trigger(self, create_trigger_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_trigger got unknown kwargs: {extra_kwargs!r}") @@ -2348,7 +2348,7 @@ def create_trigger(self, create_trigger_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2431,7 +2431,7 @@ def decline_pull_request(self, pull_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"decline_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -2440,9 +2440,9 @@ def decline_pull_request(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2452,7 +2452,7 @@ def decline_pull_request(self, pull_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2534,7 +2534,7 @@ def delete_build_pipeline(self, build_pipeline_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_build_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -2543,9 +2543,9 @@ def delete_build_pipeline(self, build_pipeline_id, **kwargs): "buildPipelineId": build_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2555,7 +2555,7 @@ def delete_build_pipeline(self, build_pipeline_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2635,7 +2635,7 @@ def delete_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_build_pipeline_stage got unknown kwargs: {extra_kwargs!r}") @@ -2644,9 +2644,9 @@ def delete_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): "buildPipelineStageId": build_pipeline_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2656,7 +2656,7 @@ def delete_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2736,7 +2736,7 @@ def delete_connection(self, connection_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection got unknown kwargs: {extra_kwargs!r}") @@ -2745,9 +2745,9 @@ def delete_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2757,7 +2757,7 @@ def delete_connection(self, connection_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2837,7 +2837,7 @@ def delete_deploy_artifact(self, deploy_artifact_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deploy_artifact got unknown kwargs: {extra_kwargs!r}") @@ -2846,9 +2846,9 @@ def delete_deploy_artifact(self, deploy_artifact_id, **kwargs): "deployArtifactId": deploy_artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2858,7 +2858,7 @@ def delete_deploy_artifact(self, deploy_artifact_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2938,7 +2938,7 @@ def delete_deploy_environment(self, deploy_environment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deploy_environment got unknown kwargs: {extra_kwargs!r}") @@ -2947,9 +2947,9 @@ def delete_deploy_environment(self, deploy_environment_id, **kwargs): "deployEnvironmentId": deploy_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2959,7 +2959,7 @@ def delete_deploy_environment(self, deploy_environment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3039,7 +3039,7 @@ def delete_deploy_pipeline(self, deploy_pipeline_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deploy_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -3048,9 +3048,9 @@ def delete_deploy_pipeline(self, deploy_pipeline_id, **kwargs): "deployPipelineId": deploy_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3060,7 +3060,7 @@ def delete_deploy_pipeline(self, deploy_pipeline_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3140,7 +3140,7 @@ def delete_deploy_stage(self, deploy_stage_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deploy_stage got unknown kwargs: {extra_kwargs!r}") @@ -3149,9 +3149,9 @@ def delete_deploy_stage(self, deploy_stage_id, **kwargs): "deployStageId": deploy_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3161,7 +3161,7 @@ def delete_deploy_stage(self, deploy_stage_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3248,7 +3248,7 @@ def delete_git_ref(self, repository_id, delete_git_ref_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_git_ref got unknown kwargs: {extra_kwargs!r}") @@ -3257,9 +3257,9 @@ def delete_git_ref(self, repository_id, delete_git_ref_details, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3270,7 +3270,7 @@ def delete_git_ref(self, repository_id, delete_git_ref_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3353,7 +3353,7 @@ def delete_project(self, project_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project got unknown kwargs: {extra_kwargs!r}") @@ -3362,9 +3362,9 @@ def delete_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3374,7 +3374,7 @@ def delete_project(self, project_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3458,7 +3458,7 @@ def delete_project_repository_settings(self, project_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_project_repository_settings got unknown kwargs: {extra_kwargs!r}") @@ -3467,9 +3467,9 @@ def delete_project_repository_settings(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3480,7 +3480,7 @@ def delete_project_repository_settings(self, project_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3568,7 +3568,7 @@ def delete_protected_branch(self, repository_id, delete_protected_branch_details "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_protected_branch got unknown kwargs: {extra_kwargs!r}") @@ -3577,9 +3577,9 @@ def delete_protected_branch(self, repository_id, delete_protected_branch_details "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3590,7 +3590,7 @@ def delete_protected_branch(self, repository_id, delete_protected_branch_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3673,7 +3673,7 @@ def delete_pull_request(self, pull_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -3682,9 +3682,9 @@ def delete_pull_request(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3694,7 +3694,7 @@ def delete_pull_request(self, pull_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3777,7 +3777,7 @@ def delete_pull_request_attachment(self, pull_request_id, attachment_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pull_request_attachment got unknown kwargs: {extra_kwargs!r}") @@ -3787,9 +3787,9 @@ def delete_pull_request_attachment(self, pull_request_id, attachment_id, **kwarg "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3799,7 +3799,7 @@ def delete_pull_request_attachment(self, pull_request_id, attachment_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3882,7 +3882,7 @@ def delete_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -3892,9 +3892,9 @@ def delete_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3904,7 +3904,7 @@ def delete_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3991,7 +3991,7 @@ def delete_ref(self, repository_id, ref_name, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ref got unknown kwargs: {extra_kwargs!r}") @@ -4001,9 +4001,9 @@ def delete_ref(self, repository_id, ref_name, **kwargs): "refName": ref_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4014,7 +4014,7 @@ def delete_ref(self, repository_id, ref_name, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4095,7 +4095,7 @@ def delete_repository(self, repository_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_repository got unknown kwargs: {extra_kwargs!r}") @@ -4104,9 +4104,9 @@ def delete_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4116,7 +4116,7 @@ def delete_repository(self, repository_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4200,7 +4200,7 @@ def delete_repository_settings(self, repository_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_repository_settings got unknown kwargs: {extra_kwargs!r}") @@ -4209,9 +4209,9 @@ def delete_repository_settings(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4222,7 +4222,7 @@ def delete_repository_settings(self, repository_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4303,7 +4303,7 @@ def delete_trigger(self, trigger_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_trigger got unknown kwargs: {extra_kwargs!r}") @@ -4312,9 +4312,9 @@ def delete_trigger(self, trigger_id, **kwargs): "triggerId": trigger_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4324,7 +4324,7 @@ def delete_trigger(self, trigger_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4400,7 +4400,7 @@ def get_build_pipeline(self, build_pipeline_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_build_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -4409,9 +4409,9 @@ def get_build_pipeline(self, build_pipeline_id, **kwargs): "buildPipelineId": build_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4420,7 +4420,7 @@ def get_build_pipeline(self, build_pipeline_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4498,7 +4498,7 @@ def get_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_build_pipeline_stage got unknown kwargs: {extra_kwargs!r}") @@ -4507,9 +4507,9 @@ def get_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): "buildPipelineStageId": build_pipeline_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4518,7 +4518,7 @@ def get_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4596,7 +4596,7 @@ def get_build_run(self, build_run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_build_run got unknown kwargs: {extra_kwargs!r}") @@ -4605,9 +4605,9 @@ def get_build_run(self, build_run_id, **kwargs): "buildRunId": build_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4616,7 +4616,7 @@ def get_build_run(self, build_run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4697,7 +4697,7 @@ def get_commit(self, repository_id, commit_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_commit got unknown kwargs: {extra_kwargs!r}") @@ -4707,9 +4707,9 @@ def get_commit(self, repository_id, commit_id, **kwargs): "commitId": commit_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4718,7 +4718,7 @@ def get_commit(self, repository_id, commit_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4811,7 +4811,7 @@ def get_commit_diff(self, repository_id, target_version, **kwargs): "is_comparison_from_merge_base", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_commit_diff got unknown kwargs: {extra_kwargs!r}") @@ -4820,9 +4820,9 @@ def get_commit_diff(self, repository_id, target_version, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4832,14 +4832,14 @@ def get_commit_diff(self, repository_id, target_version, **kwargs): "targetRepositoryId": kwargs.get("target_repository_id", missing), "isComparisonFromMergeBase": kwargs.get("is_comparison_from_merge_base", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4919,7 +4919,7 @@ def get_connection(self, connection_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection got unknown kwargs: {extra_kwargs!r}") @@ -4928,9 +4928,9 @@ def get_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4939,7 +4939,7 @@ def get_connection(self, connection_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5017,7 +5017,7 @@ def get_deploy_artifact(self, deploy_artifact_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deploy_artifact got unknown kwargs: {extra_kwargs!r}") @@ -5026,9 +5026,9 @@ def get_deploy_artifact(self, deploy_artifact_id, **kwargs): "deployArtifactId": deploy_artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5037,7 +5037,7 @@ def get_deploy_artifact(self, deploy_artifact_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5115,7 +5115,7 @@ def get_deploy_environment(self, deploy_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deploy_environment got unknown kwargs: {extra_kwargs!r}") @@ -5124,9 +5124,9 @@ def get_deploy_environment(self, deploy_environment_id, **kwargs): "deployEnvironmentId": deploy_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5135,7 +5135,7 @@ def get_deploy_environment(self, deploy_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5213,7 +5213,7 @@ def get_deploy_pipeline(self, deploy_pipeline_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deploy_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -5222,9 +5222,9 @@ def get_deploy_pipeline(self, deploy_pipeline_id, **kwargs): "deployPipelineId": deploy_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5233,7 +5233,7 @@ def get_deploy_pipeline(self, deploy_pipeline_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5311,7 +5311,7 @@ def get_deploy_stage(self, deploy_stage_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deploy_stage got unknown kwargs: {extra_kwargs!r}") @@ -5320,9 +5320,9 @@ def get_deploy_stage(self, deploy_stage_id, **kwargs): "deployStageId": deploy_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5331,7 +5331,7 @@ def get_deploy_stage(self, deploy_stage_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5409,7 +5409,7 @@ def get_deployment(self, deployment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deployment got unknown kwargs: {extra_kwargs!r}") @@ -5418,9 +5418,9 @@ def get_deployment(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5429,7 +5429,7 @@ def get_deployment(self, deployment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5520,7 +5520,7 @@ def get_file_diff(self, repository_id, file_path, base_version, target_version, "is_comparison_from_merge_base", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_file_diff got unknown kwargs: {extra_kwargs!r}") @@ -5530,9 +5530,9 @@ def get_file_diff(self, repository_id, file_path, base_version, target_version, "filePath": file_path } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5541,14 +5541,14 @@ def get_file_diff(self, repository_id, file_path, base_version, target_version, "targetVersion": target_version, "isComparisonFromMergeBase": kwargs.get("is_comparison_from_merge_base", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5635,7 +5635,7 @@ def get_mirror_record(self, repository_id, mirror_record_type, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_mirror_record got unknown kwargs: {extra_kwargs!r}") @@ -5645,9 +5645,9 @@ def get_mirror_record(self, repository_id, mirror_record_type, **kwargs): "mirrorRecordType": mirror_record_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5656,7 +5656,7 @@ def get_mirror_record(self, repository_id, mirror_record_type, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5742,7 +5742,7 @@ def get_object(self, repository_id, **kwargs): "ref_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -5751,9 +5751,9 @@ def get_object(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5761,14 +5761,14 @@ def get_object(self, repository_id, **kwargs): "filePath": kwargs.get("file_path", missing), "refName": kwargs.get("ref_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5855,7 +5855,7 @@ def get_object_content(self, repository_id, sha, **kwargs): "file_path", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object_content got unknown kwargs: {extra_kwargs!r}") @@ -5865,23 +5865,23 @@ def get_object_content(self, repository_id, sha, **kwargs): "sha": sha } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "filePath": kwargs.get("file_path", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5961,7 +5961,7 @@ def get_project(self, project_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project got unknown kwargs: {extra_kwargs!r}") @@ -5970,9 +5970,9 @@ def get_project(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5981,7 +5981,7 @@ def get_project(self, project_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6062,7 +6062,7 @@ def get_project_notification_preference(self, project_id, principal_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project_notification_preference got unknown kwargs: {extra_kwargs!r}") @@ -6072,9 +6072,9 @@ def get_project_notification_preference(self, project_id, principal_id, **kwargs "principalId": principal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6083,7 +6083,7 @@ def get_project_notification_preference(self, project_id, principal_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6161,7 +6161,7 @@ def get_project_repository_settings(self, project_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_project_repository_settings got unknown kwargs: {extra_kwargs!r}") @@ -6170,9 +6170,9 @@ def get_project_repository_settings(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6181,7 +6181,7 @@ def get_project_repository_settings(self, project_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6259,7 +6259,7 @@ def get_pull_request(self, pull_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -6268,9 +6268,9 @@ def get_pull_request(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6279,7 +6279,7 @@ def get_pull_request(self, pull_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6360,7 +6360,7 @@ def get_pull_request_attachment(self, pull_request_id, attachment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pull_request_attachment got unknown kwargs: {extra_kwargs!r}") @@ -6370,9 +6370,9 @@ def get_pull_request_attachment(self, pull_request_id, attachment_id, **kwargs): "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6381,7 +6381,7 @@ def get_pull_request_attachment(self, pull_request_id, attachment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6462,7 +6462,7 @@ def get_pull_request_attachment_content(self, pull_request_id, attachment_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pull_request_attachment_content got unknown kwargs: {extra_kwargs!r}") @@ -6472,9 +6472,9 @@ def get_pull_request_attachment_content(self, pull_request_id, attachment_id, ** "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6483,7 +6483,7 @@ def get_pull_request_attachment_content(self, pull_request_id, attachment_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6561,7 +6561,7 @@ def get_pull_request_change_summary_metrics(self, pull_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pull_request_change_summary_metrics got unknown kwargs: {extra_kwargs!r}") @@ -6570,9 +6570,9 @@ def get_pull_request_change_summary_metrics(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6581,7 +6581,7 @@ def get_pull_request_change_summary_metrics(self, pull_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6662,7 +6662,7 @@ def get_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -6672,9 +6672,9 @@ def get_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6683,7 +6683,7 @@ def get_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6764,7 +6764,7 @@ def get_pull_request_notification_preference(self, pull_request_id, principal_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pull_request_notification_preference got unknown kwargs: {extra_kwargs!r}") @@ -6774,9 +6774,9 @@ def get_pull_request_notification_preference(self, pull_request_id, principal_id "principalId": principal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6785,7 +6785,7 @@ def get_pull_request_notification_preference(self, pull_request_id, principal_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6866,7 +6866,7 @@ def get_ref(self, repository_id, ref_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ref got unknown kwargs: {extra_kwargs!r}") @@ -6876,9 +6876,9 @@ def get_ref(self, repository_id, ref_name, **kwargs): "refName": ref_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6887,7 +6887,7 @@ def get_ref(self, repository_id, ref_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6979,7 +6979,7 @@ def get_repo_file_diff(self, repository_id, base_version, target_version, **kwar "is_comparison_from_merge_base", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repo_file_diff got unknown kwargs: {extra_kwargs!r}") @@ -6988,9 +6988,9 @@ def get_repo_file_diff(self, repository_id, base_version, target_version, **kwar "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7000,14 +7000,14 @@ def get_repo_file_diff(self, repository_id, base_version, target_version, **kwar "targetVersion": target_version, "isComparisonFromMergeBase": kwargs.get("is_comparison_from_merge_base", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7102,7 +7102,7 @@ def get_repo_file_lines(self, repository_id, revision, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repo_file_lines got unknown kwargs: {extra_kwargs!r}") @@ -7111,9 +7111,9 @@ def get_repo_file_lines(self, repository_id, revision, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7123,14 +7123,14 @@ def get_repo_file_lines(self, repository_id, revision, **kwargs): "startLineNumber": kwargs.get("start_line_number", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7216,7 +7216,7 @@ def get_repository(self, repository_id, **kwargs): "opc_request_id", "fields" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repository got unknown kwargs: {extra_kwargs!r}") @@ -7225,9 +7225,9 @@ def get_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7242,14 +7242,14 @@ def get_repository(self, repository_id, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7337,7 +7337,7 @@ def get_repository_archive_content(self, repository_id, **kwargs): "format", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repository_archive_content got unknown kwargs: {extra_kwargs!r}") @@ -7346,9 +7346,9 @@ def get_repository_archive_content(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7356,14 +7356,14 @@ def get_repository_archive_content(self, repository_id, **kwargs): "refName": kwargs.get("ref_name", missing), "format": kwargs.get("format", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7457,7 +7457,7 @@ def get_repository_file_lines(self, repository_id, file_path, revision, **kwargs "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repository_file_lines got unknown kwargs: {extra_kwargs!r}") @@ -7467,9 +7467,9 @@ def get_repository_file_lines(self, repository_id, file_path, revision, **kwargs "filePath": file_path } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7478,14 +7478,14 @@ def get_repository_file_lines(self, repository_id, file_path, revision, **kwargs "startLineNumber": kwargs.get("start_line_number", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7568,7 +7568,7 @@ def get_repository_notification_preference(self, repository_id, principal_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repository_notification_preference got unknown kwargs: {extra_kwargs!r}") @@ -7578,9 +7578,9 @@ def get_repository_notification_preference(self, repository_id, principal_id, ** "principalId": principal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7589,7 +7589,7 @@ def get_repository_notification_preference(self, repository_id, principal_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7667,7 +7667,7 @@ def get_repository_settings(self, repository_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_repository_settings got unknown kwargs: {extra_kwargs!r}") @@ -7676,9 +7676,9 @@ def get_repository_settings(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7687,7 +7687,7 @@ def get_repository_settings(self, repository_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7765,7 +7765,7 @@ def get_trigger(self, trigger_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_trigger got unknown kwargs: {extra_kwargs!r}") @@ -7774,9 +7774,9 @@ def get_trigger(self, trigger_id, **kwargs): "triggerId": trigger_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7785,7 +7785,7 @@ def get_trigger(self, trigger_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7863,7 +7863,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -7872,9 +7872,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7883,7 +7883,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7968,7 +7968,7 @@ def like_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"like_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -7978,9 +7978,9 @@ def like_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7990,7 +7990,7 @@ def like_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8086,7 +8086,7 @@ def list_authors(self, repository_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_authors got unknown kwargs: {extra_kwargs!r}") @@ -8095,9 +8095,9 @@ def list_authors(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8114,14 +8114,14 @@ def list_authors(self, repository_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8240,7 +8240,7 @@ def list_build_pipeline_stages(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_build_pipeline_stages got unknown kwargs: {extra_kwargs!r}") @@ -8277,14 +8277,14 @@ def list_build_pipeline_stages(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8401,7 +8401,7 @@ def list_build_pipelines(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_build_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -8438,14 +8438,14 @@ def list_build_pipelines(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8555,7 +8555,7 @@ def list_build_run_snapshots(self, pull_request_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_build_run_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -8564,9 +8564,9 @@ def list_build_run_snapshots(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8593,14 +8593,14 @@ def list_build_run_snapshots(self, pull_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8723,7 +8723,7 @@ def list_build_runs(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_build_runs got unknown kwargs: {extra_kwargs!r}") @@ -8761,14 +8761,14 @@ def list_build_runs(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8868,7 +8868,7 @@ def list_commit_diffs(self, repository_id, base_version, target_version, **kwarg "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_commit_diffs got unknown kwargs: {extra_kwargs!r}") @@ -8877,9 +8877,9 @@ def list_commit_diffs(self, repository_id, base_version, target_version, **kwarg "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8891,14 +8891,14 @@ def list_commit_diffs(self, repository_id, base_version, target_version, **kwarg "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9014,7 +9014,7 @@ def list_commits(self, repository_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_commits got unknown kwargs: {extra_kwargs!r}") @@ -9023,9 +9023,9 @@ def list_commits(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9040,14 +9040,14 @@ def list_commits(self, repository_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9172,7 +9172,7 @@ def list_connections(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connections got unknown kwargs: {extra_kwargs!r}") @@ -9217,14 +9217,14 @@ def list_connections(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9341,7 +9341,7 @@ def list_deploy_artifacts(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deploy_artifacts got unknown kwargs: {extra_kwargs!r}") @@ -9378,14 +9378,14 @@ def list_deploy_artifacts(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9502,7 +9502,7 @@ def list_deploy_environments(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deploy_environments got unknown kwargs: {extra_kwargs!r}") @@ -9539,14 +9539,14 @@ def list_deploy_environments(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9663,7 +9663,7 @@ def list_deploy_pipelines(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deploy_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -9700,14 +9700,14 @@ def list_deploy_pipelines(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9824,7 +9824,7 @@ def list_deploy_stages(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deploy_stages got unknown kwargs: {extra_kwargs!r}") @@ -9861,14 +9861,14 @@ def list_deploy_stages(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10001,7 +10001,7 @@ def list_deployments(self, **kwargs): "time_created_less_than", "time_created_greater_than_or_equal_to" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployments got unknown kwargs: {extra_kwargs!r}") @@ -10041,14 +10041,14 @@ def list_deployments(self, **kwargs): "timeCreatedLessThan": kwargs.get("time_created_less_than", missing), "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10133,7 +10133,7 @@ def list_fork_sync_statuses(self, repository_id, branch_name_query_param, **kwar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fork_sync_statuses got unknown kwargs: {extra_kwargs!r}") @@ -10142,16 +10142,16 @@ def list_fork_sync_statuses(self, repository_id, branch_name_query_param, **kwar "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "branchNameQueryParam": branch_name_query_param } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10159,7 +10159,7 @@ def list_fork_sync_statuses(self, repository_id, branch_name_query_param, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10253,7 +10253,7 @@ def list_mirror_records(self, repository_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mirror_records got unknown kwargs: {extra_kwargs!r}") @@ -10262,9 +10262,9 @@ def list_mirror_records(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10280,14 +10280,14 @@ def list_mirror_records(self, repository_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10404,7 +10404,7 @@ def list_paths(self, repository_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_paths got unknown kwargs: {extra_kwargs!r}") @@ -10413,9 +10413,9 @@ def list_paths(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10443,14 +10443,14 @@ def list_paths(self, repository_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10550,7 +10550,7 @@ def list_project_commit_analytics_authors(self, project_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_project_commit_analytics_authors got unknown kwargs: {extra_kwargs!r}") @@ -10559,9 +10559,9 @@ def list_project_commit_analytics_authors(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10585,14 +10585,14 @@ def list_project_commit_analytics_authors(self, project_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10706,7 +10706,7 @@ def list_projects(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_projects got unknown kwargs: {extra_kwargs!r}") @@ -10742,14 +10742,14 @@ def list_projects(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10851,7 +10851,7 @@ def list_protected_branches(self, repository_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protected_branches got unknown kwargs: {extra_kwargs!r}") @@ -10860,9 +10860,9 @@ def list_protected_branches(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10887,14 +10887,14 @@ def list_protected_branches(self, repository_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10994,7 +10994,7 @@ def list_pull_request_activities(self, pull_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_request_activities got unknown kwargs: {extra_kwargs!r}") @@ -11003,9 +11003,9 @@ def list_pull_request_activities(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11029,14 +11029,14 @@ def list_pull_request_activities(self, pull_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11144,7 +11144,7 @@ def list_pull_request_attachments(self, pull_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_request_attachments got unknown kwargs: {extra_kwargs!r}") @@ -11153,9 +11153,9 @@ def list_pull_request_attachments(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11181,14 +11181,14 @@ def list_pull_request_attachments(self, pull_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11282,7 +11282,7 @@ def list_pull_request_authors(self, repository_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_request_authors got unknown kwargs: {extra_kwargs!r}") @@ -11291,9 +11291,9 @@ def list_pull_request_authors(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11309,14 +11309,14 @@ def list_pull_request_authors(self, repository_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11432,7 +11432,7 @@ def list_pull_request_comments(self, pull_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_request_comments got unknown kwargs: {extra_kwargs!r}") @@ -11441,9 +11441,9 @@ def list_pull_request_comments(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11471,14 +11471,14 @@ def list_pull_request_comments(self, pull_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11566,7 +11566,7 @@ def list_pull_request_commits(self, pull_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_request_commits got unknown kwargs: {extra_kwargs!r}") @@ -11575,9 +11575,9 @@ def list_pull_request_commits(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11585,14 +11585,14 @@ def list_pull_request_commits(self, pull_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11684,7 +11684,7 @@ def list_pull_request_file_changes(self, pull_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_request_file_changes got unknown kwargs: {extra_kwargs!r}") @@ -11693,9 +11693,9 @@ def list_pull_request_file_changes(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11704,14 +11704,14 @@ def list_pull_request_file_changes(self, pull_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11856,7 +11856,7 @@ def list_pull_requests(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pull_requests got unknown kwargs: {extra_kwargs!r}") @@ -11906,14 +11906,14 @@ def list_pull_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12025,7 +12025,7 @@ def list_refs(self, repository_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_refs got unknown kwargs: {extra_kwargs!r}") @@ -12034,9 +12034,9 @@ def list_refs(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12070,14 +12070,14 @@ def list_refs(self, repository_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12196,7 +12196,7 @@ def list_repositories(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_repositories got unknown kwargs: {extra_kwargs!r}") @@ -12233,14 +12233,14 @@ def list_repositories(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12338,7 +12338,7 @@ def list_repository_commit_analytics_authors(self, repository_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_repository_commit_analytics_authors got unknown kwargs: {extra_kwargs!r}") @@ -12347,9 +12347,9 @@ def list_repository_commit_analytics_authors(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12373,14 +12373,14 @@ def list_repository_commit_analytics_authors(self, repository_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12499,7 +12499,7 @@ def list_triggers(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_triggers got unknown kwargs: {extra_kwargs!r}") @@ -12536,14 +12536,14 @@ def list_triggers(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12641,7 +12641,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -12650,9 +12650,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12676,14 +12676,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12783,7 +12783,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -12792,9 +12792,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12818,14 +12818,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12943,7 +12943,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_by", "operation_type_multi_value_query" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -12980,14 +12980,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "operationTypeMultiValueQuery": self.base_client.generate_collection_format_param(kwargs.get("operation_type_multi_value_query", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13076,7 +13076,7 @@ def merge_pull_request(self, pull_request_id, merge_pull_request_details, **kwar "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"merge_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -13085,9 +13085,9 @@ def merge_pull_request(self, pull_request_id, merge_pull_request_details, **kwar "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13098,7 +13098,7 @@ def merge_pull_request(self, pull_request_id, merge_pull_request_details, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13183,7 +13183,7 @@ def mirror_repository(self, repository_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"mirror_repository got unknown kwargs: {extra_kwargs!r}") @@ -13192,9 +13192,9 @@ def mirror_repository(self, repository_id, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13204,7 +13204,7 @@ def mirror_repository(self, repository_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13287,7 +13287,7 @@ def patch_pull_request(self, pull_request_id, patch_pull_request_details, **kwar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -13296,9 +13296,9 @@ def patch_pull_request(self, pull_request_id, patch_pull_request_details, **kwar "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13308,7 +13308,7 @@ def patch_pull_request(self, pull_request_id, patch_pull_request_details, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13402,7 +13402,7 @@ def put_repository_ref(self, repository_id, ref_name, put_repository_ref_details "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_repository_ref got unknown kwargs: {extra_kwargs!r}") @@ -13412,9 +13412,9 @@ def put_repository_ref(self, repository_id, ref_name, put_repository_ref_details "refName": ref_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13425,7 +13425,7 @@ def put_repository_ref(self, repository_id, ref_name, put_repository_ref_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13510,7 +13510,7 @@ def reopen_pull_request(self, pull_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reopen_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -13519,9 +13519,9 @@ def reopen_pull_request(self, pull_request_id, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13531,7 +13531,7 @@ def reopen_pull_request(self, pull_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13616,7 +13616,7 @@ def reopen_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reopen_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -13626,9 +13626,9 @@ def reopen_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13638,7 +13638,7 @@ def reopen_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13723,7 +13723,7 @@ def resolve_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resolve_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -13733,9 +13733,9 @@ def resolve_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13745,7 +13745,7 @@ def resolve_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13834,7 +13834,7 @@ def review_pull_request(self, pull_request_id, review_pull_request_details, **kw "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"review_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -13843,9 +13843,9 @@ def review_pull_request(self, pull_request_id, review_pull_request_details, **kw "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13856,7 +13856,7 @@ def review_pull_request(self, pull_request_id, review_pull_request_details, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13945,7 +13945,7 @@ def schedule_cascading_project_deletion(self, project_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_cascading_project_deletion got unknown kwargs: {extra_kwargs!r}") @@ -13954,9 +13954,9 @@ def schedule_cascading_project_deletion(self, project_id, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13967,7 +13967,7 @@ def schedule_cascading_project_deletion(self, project_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14055,7 +14055,7 @@ def summarize_project_repository_analytics(self, project_id, summarize_project_r "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_project_repository_analytics got unknown kwargs: {extra_kwargs!r}") @@ -14064,9 +14064,9 @@ def summarize_project_repository_analytics(self, project_id, summarize_project_r "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14074,14 +14074,14 @@ def summarize_project_repository_analytics(self, project_id, summarize_project_r "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14174,7 +14174,7 @@ def summarize_repository_analytics(self, repository_id, summarize_repository_ana "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_repository_analytics got unknown kwargs: {extra_kwargs!r}") @@ -14183,9 +14183,9 @@ def summarize_repository_analytics(self, repository_id, summarize_repository_ana "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14193,14 +14193,14 @@ def summarize_repository_analytics(self, repository_id, summarize_repository_ana "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14299,7 +14299,7 @@ def sync_repository(self, repository_id, sync_merge_strategy, sync_repository_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"sync_repository got unknown kwargs: {extra_kwargs!r}") @@ -14308,9 +14308,9 @@ def sync_repository(self, repository_id, sync_merge_strategy, sync_repository_de "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14323,7 +14323,7 @@ def sync_repository(self, repository_id, sync_merge_strategy, sync_repository_de query_params = { "syncMergeStrategy": sync_merge_strategy } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -14332,7 +14332,7 @@ def sync_repository(self, repository_id, sync_merge_strategy, sync_repository_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14417,7 +14417,7 @@ def trigger_deployment_dry_run(self, trigger_deployment_dry_run_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"trigger_deployment_dry_run got unknown kwargs: {extra_kwargs!r}") @@ -14428,7 +14428,7 @@ def trigger_deployment_dry_run(self, trigger_deployment_dry_run_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14514,7 +14514,7 @@ def unlike_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unlike_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -14524,9 +14524,9 @@ def unlike_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14536,7 +14536,7 @@ def unlike_pull_request_comment(self, pull_request_id, comment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14621,7 +14621,7 @@ def unsubscribe_pull_request(self, pull_request_id, token, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unsubscribe_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -14630,16 +14630,16 @@ def unsubscribe_pull_request(self, pull_request_id, token, **kwargs): "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "token": token } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "text/html", @@ -14647,7 +14647,7 @@ def unsubscribe_pull_request(self, pull_request_id, token, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14734,7 +14734,7 @@ def update_build_pipeline(self, build_pipeline_id, update_build_pipeline_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_build_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -14743,9 +14743,9 @@ def update_build_pipeline(self, build_pipeline_id, update_build_pipeline_details "buildPipelineId": build_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14755,7 +14755,7 @@ def update_build_pipeline(self, build_pipeline_id, update_build_pipeline_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14842,7 +14842,7 @@ def update_build_pipeline_stage(self, build_pipeline_stage_id, update_build_pipe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_build_pipeline_stage got unknown kwargs: {extra_kwargs!r}") @@ -14851,9 +14851,9 @@ def update_build_pipeline_stage(self, build_pipeline_stage_id, update_build_pipe "buildPipelineStageId": build_pipeline_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14863,7 +14863,7 @@ def update_build_pipeline_stage(self, build_pipeline_stage_id, update_build_pipe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14950,7 +14950,7 @@ def update_build_run(self, build_run_id, update_build_run_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_build_run got unknown kwargs: {extra_kwargs!r}") @@ -14959,9 +14959,9 @@ def update_build_run(self, build_run_id, update_build_run_details, **kwargs): "buildRunId": build_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14971,7 +14971,7 @@ def update_build_run(self, build_run_id, update_build_run_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15058,7 +15058,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_connection got unknown kwargs: {extra_kwargs!r}") @@ -15067,9 +15067,9 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15079,7 +15079,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15166,7 +15166,7 @@ def update_deploy_artifact(self, deploy_artifact_id, update_deploy_artifact_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deploy_artifact got unknown kwargs: {extra_kwargs!r}") @@ -15175,9 +15175,9 @@ def update_deploy_artifact(self, deploy_artifact_id, update_deploy_artifact_deta "deployArtifactId": deploy_artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15187,7 +15187,7 @@ def update_deploy_artifact(self, deploy_artifact_id, update_deploy_artifact_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15274,7 +15274,7 @@ def update_deploy_environment(self, deploy_environment_id, update_deploy_environ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deploy_environment got unknown kwargs: {extra_kwargs!r}") @@ -15283,9 +15283,9 @@ def update_deploy_environment(self, deploy_environment_id, update_deploy_environ "deployEnvironmentId": deploy_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15295,7 +15295,7 @@ def update_deploy_environment(self, deploy_environment_id, update_deploy_environ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15382,7 +15382,7 @@ def update_deploy_pipeline(self, deploy_pipeline_id, update_deploy_pipeline_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deploy_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -15391,9 +15391,9 @@ def update_deploy_pipeline(self, deploy_pipeline_id, update_deploy_pipeline_deta "deployPipelineId": deploy_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15403,7 +15403,7 @@ def update_deploy_pipeline(self, deploy_pipeline_id, update_deploy_pipeline_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15490,7 +15490,7 @@ def update_deploy_stage(self, deploy_stage_id, update_deploy_stage_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deploy_stage got unknown kwargs: {extra_kwargs!r}") @@ -15499,9 +15499,9 @@ def update_deploy_stage(self, deploy_stage_id, update_deploy_stage_details, **kw "deployStageId": deploy_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15511,7 +15511,7 @@ def update_deploy_stage(self, deploy_stage_id, update_deploy_stage_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15598,7 +15598,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deployment got unknown kwargs: {extra_kwargs!r}") @@ -15607,9 +15607,9 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15619,7 +15619,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15706,7 +15706,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project got unknown kwargs: {extra_kwargs!r}") @@ -15715,9 +15715,9 @@ def update_project(self, project_id, update_project_details, **kwargs): "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15727,7 +15727,7 @@ def update_project(self, project_id, update_project_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15817,7 +15817,7 @@ def update_project_notification_preference(self, update_project_notification_pre "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project_notification_preference got unknown kwargs: {extra_kwargs!r}") @@ -15827,9 +15827,9 @@ def update_project_notification_preference(self, update_project_notification_pre "principalId": principal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15839,7 +15839,7 @@ def update_project_notification_preference(self, update_project_notification_pre "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15930,7 +15930,7 @@ def update_project_repository_settings(self, project_id, update_project_reposito "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_project_repository_settings got unknown kwargs: {extra_kwargs!r}") @@ -15939,9 +15939,9 @@ def update_project_repository_settings(self, project_id, update_project_reposito "projectId": project_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15952,7 +15952,7 @@ def update_project_repository_settings(self, project_id, update_project_reposito "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16040,7 +16040,7 @@ def update_pull_request(self, pull_request_id, update_pull_request_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pull_request got unknown kwargs: {extra_kwargs!r}") @@ -16049,9 +16049,9 @@ def update_pull_request(self, pull_request_id, update_pull_request_details, **kw "pullRequestId": pull_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16061,7 +16061,7 @@ def update_pull_request(self, pull_request_id, update_pull_request_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16151,7 +16151,7 @@ def update_pull_request_comment(self, pull_request_id, comment_id, update_pull_r "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pull_request_comment got unknown kwargs: {extra_kwargs!r}") @@ -16161,9 +16161,9 @@ def update_pull_request_comment(self, pull_request_id, comment_id, update_pull_r "commentId": comment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16173,7 +16173,7 @@ def update_pull_request_comment(self, pull_request_id, comment_id, update_pull_r "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16263,7 +16263,7 @@ def update_pull_request_notification_preference(self, update_pull_request_notifi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pull_request_notification_preference got unknown kwargs: {extra_kwargs!r}") @@ -16273,9 +16273,9 @@ def update_pull_request_notification_preference(self, update_pull_request_notifi "principalId": principal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16285,7 +16285,7 @@ def update_pull_request_notification_preference(self, update_pull_request_notifi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16372,7 +16372,7 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_repository got unknown kwargs: {extra_kwargs!r}") @@ -16381,9 +16381,9 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16393,7 +16393,7 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16483,7 +16483,7 @@ def update_repository_notification_preference(self, update_repository_notificati "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_repository_notification_preference got unknown kwargs: {extra_kwargs!r}") @@ -16493,9 +16493,9 @@ def update_repository_notification_preference(self, update_repository_notificati "principalId": principal_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16505,7 +16505,7 @@ def update_repository_notification_preference(self, update_repository_notificati "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16596,7 +16596,7 @@ def update_repository_settings(self, repository_id, update_repository_settings_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_repository_settings got unknown kwargs: {extra_kwargs!r}") @@ -16605,9 +16605,9 @@ def update_repository_settings(self, repository_id, update_repository_settings_d "repositoryId": repository_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16618,7 +16618,7 @@ def update_repository_settings(self, repository_id, update_repository_settings_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16706,7 +16706,7 @@ def update_trigger(self, trigger_id, update_trigger_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_trigger got unknown kwargs: {extra_kwargs!r}") @@ -16715,9 +16715,9 @@ def update_trigger(self, trigger_id, update_trigger_details, **kwargs): "triggerId": trigger_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16727,7 +16727,7 @@ def update_trigger(self, trigger_id, update_trigger_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16815,7 +16815,7 @@ def validate_connection(self, connection_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_connection got unknown kwargs: {extra_kwargs!r}") @@ -16824,9 +16824,9 @@ def validate_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16837,7 +16837,7 @@ def validate_connection(self, connection_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dif/stack_client.py b/src/oci/dif/stack_client.py index f1ea11d4e..28f79ca58 100644 --- a/src/oci/dif/stack_client.py +++ b/src/oci/dif/stack_client.py @@ -175,7 +175,7 @@ def add_service(self, stack_id, add_service_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_service got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def add_service(self, stack_id, add_service_details, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def add_service(self, stack_id, add_service_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -286,7 +286,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -295,9 +295,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -307,7 +307,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -401,7 +401,7 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stack_compartment got unknown kwargs: {extra_kwargs!r}") @@ -410,9 +410,9 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -422,7 +422,7 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def create_stack(self, create_stack_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stack got unknown kwargs: {extra_kwargs!r}") @@ -522,7 +522,7 @@ def create_stack(self, create_stack_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -613,7 +613,7 @@ def delete_stack(self, stack_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stack got unknown kwargs: {extra_kwargs!r}") @@ -622,9 +622,9 @@ def delete_stack(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -634,7 +634,7 @@ def delete_stack(self, stack_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -733,7 +733,7 @@ def deploy_artifacts(self, stack_id, deploy_artifacts_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deploy_artifacts got unknown kwargs: {extra_kwargs!r}") @@ -742,9 +742,9 @@ def deploy_artifacts(self, stack_id, deploy_artifacts_details, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -755,7 +755,7 @@ def deploy_artifacts(self, stack_id, deploy_artifacts_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -839,7 +839,7 @@ def get_stack(self, stack_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stack got unknown kwargs: {extra_kwargs!r}") @@ -848,9 +848,9 @@ def get_stack(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -859,7 +859,7 @@ def get_stack(self, stack_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -942,7 +942,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -951,9 +951,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -962,7 +962,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1092,7 +1092,7 @@ def list_stacks(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stacks got unknown kwargs: {extra_kwargs!r}") @@ -1128,14 +1128,14 @@ def list_stacks(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1246,7 +1246,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1255,9 +1255,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1281,14 +1281,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1401,7 +1401,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1410,9 +1410,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1436,14 +1436,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1575,7 +1575,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1611,14 +1611,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1711,7 +1711,7 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stack got unknown kwargs: {extra_kwargs!r}") @@ -1720,9 +1720,9 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1732,7 +1732,7 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/disaster_recovery/disaster_recovery_client.py b/src/oci/disaster_recovery/disaster_recovery_client.py index 24fa5dc30..382932bd5 100644 --- a/src/oci/disaster_recovery/disaster_recovery_client.py +++ b/src/oci/disaster_recovery/disaster_recovery_client.py @@ -185,7 +185,7 @@ def associate_dr_protection_group(self, associate_dr_protection_group_details, d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"associate_dr_protection_group got unknown kwargs: {extra_kwargs!r}") @@ -194,9 +194,9 @@ def associate_dr_protection_group(self, associate_dr_protection_group_details, d "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -207,7 +207,7 @@ def associate_dr_protection_group(self, associate_dr_protection_group_details, d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -307,7 +307,7 @@ def cancel_dr_plan_execution(self, cancel_dr_plan_execution_details, dr_plan_exe "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -316,9 +316,9 @@ def cancel_dr_plan_execution(self, cancel_dr_plan_execution_details, dr_plan_exe "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -329,7 +329,7 @@ def cancel_dr_plan_execution(self, cancel_dr_plan_execution_details, dr_plan_exe "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -418,7 +418,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -427,9 +427,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -439,7 +439,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -536,7 +536,7 @@ def change_dr_protection_group_compartment(self, change_dr_protection_group_comp "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dr_protection_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -545,9 +545,9 @@ def change_dr_protection_group_compartment(self, change_dr_protection_group_comp "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -558,7 +558,7 @@ def change_dr_protection_group_compartment(self, change_dr_protection_group_comp "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -645,7 +645,7 @@ def create_automatic_dr_configuration(self, create_automatic_dr_configuration_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_automatic_dr_configuration got unknown kwargs: {extra_kwargs!r}") @@ -656,7 +656,7 @@ def create_automatic_dr_configuration(self, create_automatic_dr_configuration_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -743,7 +743,7 @@ def create_dr_plan(self, create_dr_plan_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dr_plan got unknown kwargs: {extra_kwargs!r}") @@ -754,7 +754,7 @@ def create_dr_plan(self, create_dr_plan_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -841,7 +841,7 @@ def create_dr_plan_execution(self, create_dr_plan_execution_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -852,7 +852,7 @@ def create_dr_plan_execution(self, create_dr_plan_execution_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -939,7 +939,7 @@ def create_dr_protection_group(self, create_dr_protection_group_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dr_protection_group got unknown kwargs: {extra_kwargs!r}") @@ -950,7 +950,7 @@ def create_dr_protection_group(self, create_dr_protection_group_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1039,7 +1039,7 @@ def delete_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_automatic_dr_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1048,9 +1048,9 @@ def delete_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwa "automaticDrConfigurationId": automatic_dr_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1060,7 +1060,7 @@ def delete_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1146,7 +1146,7 @@ def delete_dr_plan(self, dr_plan_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dr_plan got unknown kwargs: {extra_kwargs!r}") @@ -1155,9 +1155,9 @@ def delete_dr_plan(self, dr_plan_id, **kwargs): "drPlanId": dr_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1167,7 +1167,7 @@ def delete_dr_plan(self, dr_plan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1253,7 +1253,7 @@ def delete_dr_plan_execution(self, dr_plan_execution_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -1262,9 +1262,9 @@ def delete_dr_plan_execution(self, dr_plan_execution_id, **kwargs): "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1274,7 +1274,7 @@ def delete_dr_plan_execution(self, dr_plan_execution_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1360,7 +1360,7 @@ def delete_dr_protection_group(self, dr_protection_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dr_protection_group got unknown kwargs: {extra_kwargs!r}") @@ -1369,9 +1369,9 @@ def delete_dr_protection_group(self, dr_protection_group_id, **kwargs): "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1381,7 +1381,7 @@ def delete_dr_protection_group(self, dr_protection_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1479,7 +1479,7 @@ def disassociate_dr_protection_group(self, disassociate_dr_protection_group_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disassociate_dr_protection_group got unknown kwargs: {extra_kwargs!r}") @@ -1488,9 +1488,9 @@ def disassociate_dr_protection_group(self, disassociate_dr_protection_group_deta "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1501,7 +1501,7 @@ def disassociate_dr_protection_group(self, disassociate_dr_protection_group_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1582,7 +1582,7 @@ def get_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_automatic_dr_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1591,9 +1591,9 @@ def get_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwargs "automaticDrConfigurationId": automatic_dr_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1602,7 +1602,7 @@ def get_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1682,7 +1682,7 @@ def get_dr_plan(self, dr_plan_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dr_plan got unknown kwargs: {extra_kwargs!r}") @@ -1691,9 +1691,9 @@ def get_dr_plan(self, dr_plan_id, **kwargs): "drPlanId": dr_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1702,7 +1702,7 @@ def get_dr_plan(self, dr_plan_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1782,7 +1782,7 @@ def get_dr_plan_execution(self, dr_plan_execution_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -1791,9 +1791,9 @@ def get_dr_plan_execution(self, dr_plan_execution_id, **kwargs): "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1802,7 +1802,7 @@ def get_dr_plan_execution(self, dr_plan_execution_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1882,7 +1882,7 @@ def get_dr_protection_group(self, dr_protection_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dr_protection_group got unknown kwargs: {extra_kwargs!r}") @@ -1891,9 +1891,9 @@ def get_dr_protection_group(self, dr_protection_group_id, **kwargs): "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1902,7 +1902,7 @@ def get_dr_protection_group(self, dr_protection_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1982,7 +1982,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1991,9 +1991,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2002,7 +2002,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2101,7 +2101,7 @@ def ignore_dr_plan_execution(self, ignore_dr_plan_execution_details, dr_plan_exe "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ignore_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -2110,9 +2110,9 @@ def ignore_dr_plan_execution(self, ignore_dr_plan_execution_details, dr_plan_exe "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2123,7 +2123,7 @@ def ignore_dr_plan_execution(self, ignore_dr_plan_execution_details, dr_plan_exe "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2266,7 +2266,7 @@ def list_automatic_dr_configurations(self, dr_protection_group_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_automatic_dr_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2310,14 +2310,14 @@ def list_automatic_dr_configurations(self, dr_protection_group_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2453,7 +2453,7 @@ def list_dr_plan_executions(self, dr_protection_group_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dr_plan_executions got unknown kwargs: {extra_kwargs!r}") @@ -2489,14 +2489,14 @@ def list_dr_plan_executions(self, dr_protection_group_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2644,7 +2644,7 @@ def list_dr_plans(self, dr_protection_group_id, **kwargs): "opc_request_id", "lifecycle_sub_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dr_plans got unknown kwargs: {extra_kwargs!r}") @@ -2696,14 +2696,14 @@ def list_dr_plans(self, dr_protection_group_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleSubState": kwargs.get("lifecycle_sub_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2851,7 +2851,7 @@ def list_dr_protection_groups(self, compartment_id, **kwargs): "role", "lifecycle_sub_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dr_protection_groups got unknown kwargs: {extra_kwargs!r}") @@ -2903,14 +2903,14 @@ def list_dr_protection_groups(self, compartment_id, **kwargs): "role": kwargs.get("role", missing), "lifecycleSubState": kwargs.get("lifecycle_sub_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3026,7 +3026,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3035,9 +3035,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3061,14 +3061,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3186,7 +3186,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3195,9 +3195,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3221,14 +3221,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3365,7 +3365,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3401,14 +3401,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3507,7 +3507,7 @@ def pause_dr_plan_execution(self, pause_dr_plan_execution_details, dr_plan_execu "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"pause_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -3516,9 +3516,9 @@ def pause_dr_plan_execution(self, pause_dr_plan_execution_details, dr_plan_execu "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3529,7 +3529,7 @@ def pause_dr_plan_execution(self, pause_dr_plan_execution_details, dr_plan_execu "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3629,7 +3629,7 @@ def refresh_dr_plan(self, refresh_dr_plan_details, dr_plan_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_dr_plan got unknown kwargs: {extra_kwargs!r}") @@ -3638,9 +3638,9 @@ def refresh_dr_plan(self, refresh_dr_plan_details, dr_plan_id, **kwargs): "drPlanId": dr_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3651,7 +3651,7 @@ def refresh_dr_plan(self, refresh_dr_plan_details, dr_plan_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3751,7 +3751,7 @@ def resume_dr_plan_execution(self, resume_dr_plan_execution_details, dr_plan_exe "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -3760,9 +3760,9 @@ def resume_dr_plan_execution(self, resume_dr_plan_execution_details, dr_plan_exe "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3773,7 +3773,7 @@ def resume_dr_plan_execution(self, resume_dr_plan_execution_details, dr_plan_exe "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3873,7 +3873,7 @@ def retry_dr_plan_execution(self, retry_dr_plan_execution_details, dr_plan_execu "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retry_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -3882,9 +3882,9 @@ def retry_dr_plan_execution(self, retry_dr_plan_execution_details, dr_plan_execu "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3895,7 +3895,7 @@ def retry_dr_plan_execution(self, retry_dr_plan_execution_details, dr_plan_execu "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3987,7 +3987,7 @@ def update_automatic_dr_configuration(self, update_automatic_dr_configuration_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_automatic_dr_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3996,9 +3996,9 @@ def update_automatic_dr_configuration(self, update_automatic_dr_configuration_de "automaticDrConfigurationId": automatic_dr_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4008,7 +4008,7 @@ def update_automatic_dr_configuration(self, update_automatic_dr_configuration_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4099,7 +4099,7 @@ def update_dr_plan(self, update_dr_plan_details, dr_plan_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dr_plan got unknown kwargs: {extra_kwargs!r}") @@ -4108,9 +4108,9 @@ def update_dr_plan(self, update_dr_plan_details, dr_plan_id, **kwargs): "drPlanId": dr_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4120,7 +4120,7 @@ def update_dr_plan(self, update_dr_plan_details, dr_plan_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4211,7 +4211,7 @@ def update_dr_plan_execution(self, update_dr_plan_execution_details, dr_plan_exe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dr_plan_execution got unknown kwargs: {extra_kwargs!r}") @@ -4220,9 +4220,9 @@ def update_dr_plan_execution(self, update_dr_plan_execution_details, dr_plan_exe "drPlanExecutionId": dr_plan_execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4232,7 +4232,7 @@ def update_dr_plan_execution(self, update_dr_plan_execution_details, dr_plan_exe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4323,7 +4323,7 @@ def update_dr_protection_group(self, update_dr_protection_group_details, dr_prot "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dr_protection_group got unknown kwargs: {extra_kwargs!r}") @@ -4332,9 +4332,9 @@ def update_dr_protection_group(self, update_dr_protection_group_details, dr_prot "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4344,7 +4344,7 @@ def update_dr_protection_group(self, update_dr_protection_group_details, dr_prot "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4443,7 +4443,7 @@ def update_dr_protection_group_role(self, update_dr_protection_group_role_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dr_protection_group_role got unknown kwargs: {extra_kwargs!r}") @@ -4452,9 +4452,9 @@ def update_dr_protection_group_role(self, update_dr_protection_group_role_detail "drProtectionGroupId": dr_protection_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4465,7 +4465,7 @@ def update_dr_protection_group_role(self, update_dr_protection_group_role_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4565,7 +4565,7 @@ def verify_dr_plan(self, verify_dr_plan_details, dr_plan_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"verify_dr_plan got unknown kwargs: {extra_kwargs!r}") @@ -4574,9 +4574,9 @@ def verify_dr_plan(self, verify_dr_plan_details, dr_plan_id, **kwargs): "drPlanId": dr_plan_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4587,7 +4587,7 @@ def verify_dr_plan(self, verify_dr_plan_details, dr_plan_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/distributed_database/distributed_autonomous_db_service_client.py b/src/oci/distributed_database/distributed_autonomous_db_service_client.py index 36330c143..807bc7f80 100644 --- a/src/oci/distributed_database/distributed_autonomous_db_service_client.py +++ b/src/oci/distributed_database/distributed_autonomous_db_service_client.py @@ -179,7 +179,7 @@ def add_distributed_autonomous_database_gds_control_node(self, distributed_auton "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_distributed_autonomous_database_gds_control_node got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def add_distributed_autonomous_database_gds_control_node(self, distributed_auton "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def add_distributed_autonomous_database_gds_control_node(self, distributed_auton "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -299,7 +299,7 @@ def change_distributed_autonomous_database_compartment(self, change_distributed_ "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_distributed_autonomous_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -308,9 +308,9 @@ def change_distributed_autonomous_database_compartment(self, change_distributed_ "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -321,7 +321,7 @@ def change_distributed_autonomous_database_compartment(self, change_distributed_ "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -419,7 +419,7 @@ def change_distributed_autonomous_db_backup_config(self, distributed_autonomous_ "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_distributed_autonomous_db_backup_config got unknown kwargs: {extra_kwargs!r}") @@ -428,9 +428,9 @@ def change_distributed_autonomous_db_backup_config(self, distributed_autonomous_ "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -441,7 +441,7 @@ def change_distributed_autonomous_db_backup_config(self, distributed_autonomous_ "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -539,7 +539,7 @@ def configure_distributed_autonomous_database_gsms(self, configure_distributed_a "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_distributed_autonomous_database_gsms got unknown kwargs: {extra_kwargs!r}") @@ -548,9 +548,9 @@ def configure_distributed_autonomous_database_gsms(self, configure_distributed_a "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -561,7 +561,7 @@ def configure_distributed_autonomous_database_gsms(self, configure_distributed_a "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -665,7 +665,7 @@ def configure_distributed_autonomous_database_sharding(self, distributed_autonom "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_distributed_autonomous_database_sharding got unknown kwargs: {extra_kwargs!r}") @@ -674,16 +674,16 @@ def configure_distributed_autonomous_database_sharding(self, distributed_autonom "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isRebalanceRequired": kwargs.get("is_rebalance_required", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -692,7 +692,7 @@ def configure_distributed_autonomous_database_sharding(self, distributed_autonom "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -779,7 +779,7 @@ def create_distributed_autonomous_database(self, create_distributed_autonomous_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -790,7 +790,7 @@ def create_distributed_autonomous_database(self, create_distributed_autonomous_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -885,7 +885,7 @@ def delete_distributed_autonomous_database(self, distributed_autonomous_database "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -894,9 +894,9 @@ def delete_distributed_autonomous_database(self, distributed_autonomous_database "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -907,7 +907,7 @@ def delete_distributed_autonomous_database(self, distributed_autonomous_database "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1003,7 +1003,7 @@ def download_distributed_autonomous_database_gsm_certificate_signing_request(sel "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_distributed_autonomous_database_gsm_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -1012,9 +1012,9 @@ def download_distributed_autonomous_database_gsm_certificate_signing_request(sel "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1025,7 +1025,7 @@ def download_distributed_autonomous_database_gsm_certificate_signing_request(sel "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1125,7 +1125,7 @@ def generate_distributed_autonomous_database_gsm_certificate_signing_request(sel "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_distributed_autonomous_database_gsm_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -1134,16 +1134,16 @@ def generate_distributed_autonomous_database_gsm_certificate_signing_request(sel "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "caBundleId": ca_bundle_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1152,7 +1152,7 @@ def generate_distributed_autonomous_database_gsm_certificate_signing_request(sel "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1250,7 +1250,7 @@ def generate_distributed_autonomous_database_wallet(self, distributed_autonomous "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_distributed_autonomous_database_wallet got unknown kwargs: {extra_kwargs!r}") @@ -1259,9 +1259,9 @@ def generate_distributed_autonomous_database_wallet(self, distributed_autonomous "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1272,7 +1272,7 @@ def generate_distributed_autonomous_database_wallet(self, distributed_autonomous "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1365,7 +1365,7 @@ def get_distributed_autonomous_database(self, distributed_autonomous_database_id "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -1374,16 +1374,16 @@ def get_distributed_autonomous_database(self, distributed_autonomous_database_id "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "metadata": kwargs.get("metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1391,7 +1391,7 @@ def get_distributed_autonomous_database(self, distributed_autonomous_database_id "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1511,7 +1511,7 @@ def list_distributed_autonomous_databases(self, compartment_id, **kwargs): "db_deployment_type", "metadata" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_distributed_autonomous_databases got unknown kwargs: {extra_kwargs!r}") @@ -1555,14 +1555,14 @@ def list_distributed_autonomous_databases(self, compartment_id, **kwargs): "dbDeploymentType": kwargs.get("db_deployment_type", missing), "metadata": kwargs.get("metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1661,7 +1661,7 @@ def patch_distributed_autonomous_database(self, distributed_autonomous_database_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -1670,9 +1670,9 @@ def patch_distributed_autonomous_database(self, distributed_autonomous_database_ "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1683,7 +1683,7 @@ def patch_distributed_autonomous_database(self, distributed_autonomous_database_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1778,7 +1778,7 @@ def rotate_distributed_autonomous_database_passwords(self, distributed_autonomou "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_distributed_autonomous_database_passwords got unknown kwargs: {extra_kwargs!r}") @@ -1787,9 +1787,9 @@ def rotate_distributed_autonomous_database_passwords(self, distributed_autonomou "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1800,7 +1800,7 @@ def rotate_distributed_autonomous_database_passwords(self, distributed_autonomou "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1893,7 +1893,7 @@ def start_distributed_autonomous_database(self, distributed_autonomous_database_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -1902,9 +1902,9 @@ def start_distributed_autonomous_database(self, distributed_autonomous_database_ "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1915,7 +1915,7 @@ def start_distributed_autonomous_database(self, distributed_autonomous_database_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2008,7 +2008,7 @@ def stop_distributed_autonomous_database(self, distributed_autonomous_database_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -2017,9 +2017,9 @@ def stop_distributed_autonomous_database(self, distributed_autonomous_database_i "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2030,7 +2030,7 @@ def stop_distributed_autonomous_database(self, distributed_autonomous_database_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2118,7 +2118,7 @@ def update_distributed_autonomous_database(self, distributed_autonomous_database "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_distributed_autonomous_database got unknown kwargs: {extra_kwargs!r}") @@ -2127,9 +2127,9 @@ def update_distributed_autonomous_database(self, distributed_autonomous_database "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2139,7 +2139,7 @@ def update_distributed_autonomous_database(self, distributed_autonomous_database "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2241,7 +2241,7 @@ def upload_distributed_autonomous_database_signed_certificate_and_generate_walle "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_distributed_autonomous_database_signed_certificate_and_generate_wallet got unknown kwargs: {extra_kwargs!r}") @@ -2250,9 +2250,9 @@ def upload_distributed_autonomous_database_signed_certificate_and_generate_walle "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2263,7 +2263,7 @@ def upload_distributed_autonomous_database_signed_certificate_and_generate_walle "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2370,7 +2370,7 @@ def validate_distributed_autonomous_database_network(self, distributed_autonomou "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_distributed_autonomous_database_network got unknown kwargs: {extra_kwargs!r}") @@ -2379,9 +2379,9 @@ def validate_distributed_autonomous_database_network(self, distributed_autonomou "distributedAutonomousDatabaseId": distributed_autonomous_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2390,7 +2390,7 @@ def validate_distributed_autonomous_database_network(self, distributed_autonomou "resourceName": kwargs.get("resource_name", missing), "shardGroup": kwargs.get("shard_group", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2399,7 +2399,7 @@ def validate_distributed_autonomous_database_network(self, distributed_autonomou "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py b/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py index 79b0f4276..b244212f4 100644 --- a/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py +++ b/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py @@ -179,7 +179,7 @@ def change_distributed_database_private_endpoint_compartment(self, change_distri "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_distributed_database_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_distributed_database_private_endpoint_compartment(self, change_distri "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_distributed_database_private_endpoint_compartment(self, change_distri "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_distributed_database_private_endpoint(self, create_distributed_databa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_distributed_database_private_endpoint(self, create_distributed_databa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def delete_distributed_database_private_endpoint(self, distributed_database_priv "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def delete_distributed_database_private_endpoint(self, distributed_database_priv "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def delete_distributed_database_private_endpoint(self, distributed_database_priv "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -501,7 +501,7 @@ def get_distributed_database_private_endpoint(self, distributed_database_private "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -510,9 +510,9 @@ def get_distributed_database_private_endpoint(self, distributed_database_private "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -522,7 +522,7 @@ def get_distributed_database_private_endpoint(self, distributed_database_private "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -630,7 +630,7 @@ def list_distributed_database_private_endpoints(self, compartment_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_distributed_database_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -665,14 +665,14 @@ def list_distributed_database_private_endpoints(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -766,7 +766,7 @@ def reinstate_proxy_instance(self, distributed_database_private_endpoint_id, **k "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reinstate_proxy_instance got unknown kwargs: {extra_kwargs!r}") @@ -775,9 +775,9 @@ def reinstate_proxy_instance(self, distributed_database_private_endpoint_id, **k "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -788,7 +788,7 @@ def reinstate_proxy_instance(self, distributed_database_private_endpoint_id, **k "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -884,7 +884,7 @@ def update_distributed_database_private_endpoint(self, distributed_database_priv "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_distributed_database_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -893,9 +893,9 @@ def update_distributed_database_private_endpoint(self, distributed_database_priv "distributedDatabasePrivateEndpointId": distributed_database_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -906,7 +906,7 @@ def update_distributed_database_private_endpoint(self, distributed_database_priv "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/distributed_database/distributed_db_service_client.py b/src/oci/distributed_database/distributed_db_service_client.py index c3e7448fd..35cbe7792 100644 --- a/src/oci/distributed_database/distributed_db_service_client.py +++ b/src/oci/distributed_database/distributed_db_service_client.py @@ -179,7 +179,7 @@ def add_distributed_database_gds_control_node(self, distributed_database_id, add "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_distributed_database_gds_control_node got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def add_distributed_database_gds_control_node(self, distributed_database_id, add "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def add_distributed_database_gds_control_node(self, distributed_database_id, add "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -299,7 +299,7 @@ def change_distributed_database_compartment(self, change_distributed_database_co "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_distributed_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -308,9 +308,9 @@ def change_distributed_database_compartment(self, change_distributed_database_co "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -321,7 +321,7 @@ def change_distributed_database_compartment(self, change_distributed_database_co "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -419,7 +419,7 @@ def change_distributed_db_backup_config(self, distributed_database_id, change_di "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_distributed_db_backup_config got unknown kwargs: {extra_kwargs!r}") @@ -428,9 +428,9 @@ def change_distributed_db_backup_config(self, distributed_database_id, change_di "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -441,7 +441,7 @@ def change_distributed_db_backup_config(self, distributed_database_id, change_di "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -539,7 +539,7 @@ def configure_distributed_database_gsms(self, configure_distributed_database_gsm "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_distributed_database_gsms got unknown kwargs: {extra_kwargs!r}") @@ -548,9 +548,9 @@ def configure_distributed_database_gsms(self, configure_distributed_database_gsm "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -561,7 +561,7 @@ def configure_distributed_database_gsms(self, configure_distributed_database_gsm "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -665,7 +665,7 @@ def configure_distributed_database_sharding(self, distributed_database_id, **kwa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_distributed_database_sharding got unknown kwargs: {extra_kwargs!r}") @@ -674,16 +674,16 @@ def configure_distributed_database_sharding(self, distributed_database_id, **kwa "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isRebalanceRequired": kwargs.get("is_rebalance_required", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -692,7 +692,7 @@ def configure_distributed_database_sharding(self, distributed_database_id, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -779,7 +779,7 @@ def create_distributed_database(self, create_distributed_database_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -790,7 +790,7 @@ def create_distributed_database(self, create_distributed_database_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -885,7 +885,7 @@ def delete_distributed_database(self, distributed_database_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -894,9 +894,9 @@ def delete_distributed_database(self, distributed_database_id, **kwargs): "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -907,7 +907,7 @@ def delete_distributed_database(self, distributed_database_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1003,7 +1003,7 @@ def download_distributed_database_gsm_certificate_signing_request(self, distribu "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_distributed_database_gsm_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -1012,9 +1012,9 @@ def download_distributed_database_gsm_certificate_signing_request(self, distribu "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1025,7 +1025,7 @@ def download_distributed_database_gsm_certificate_signing_request(self, distribu "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1125,7 +1125,7 @@ def generate_distributed_database_gsm_certificate_signing_request(self, distribu "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_distributed_database_gsm_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -1134,16 +1134,16 @@ def generate_distributed_database_gsm_certificate_signing_request(self, distribu "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "caBundleId": ca_bundle_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1152,7 +1152,7 @@ def generate_distributed_database_gsm_certificate_signing_request(self, distribu "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1250,7 +1250,7 @@ def generate_distributed_database_wallet(self, distributed_database_id, generate "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_distributed_database_wallet got unknown kwargs: {extra_kwargs!r}") @@ -1259,9 +1259,9 @@ def generate_distributed_database_wallet(self, distributed_database_id, generate "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1272,7 +1272,7 @@ def generate_distributed_database_wallet(self, distributed_database_id, generate "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1365,7 +1365,7 @@ def get_distributed_database(self, distributed_database_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -1374,16 +1374,16 @@ def get_distributed_database(self, distributed_database_id, **kwargs): "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "metadata": kwargs.get("metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1391,7 +1391,7 @@ def get_distributed_database(self, distributed_database_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1511,7 +1511,7 @@ def list_distributed_databases(self, compartment_id, **kwargs): "db_deployment_type", "metadata" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_distributed_databases got unknown kwargs: {extra_kwargs!r}") @@ -1555,14 +1555,14 @@ def list_distributed_databases(self, compartment_id, **kwargs): "dbDeploymentType": kwargs.get("db_deployment_type", missing), "metadata": kwargs.get("metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1661,7 +1661,7 @@ def patch_distributed_database(self, distributed_database_id, patch_distributed_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -1670,9 +1670,9 @@ def patch_distributed_database(self, distributed_database_id, patch_distributed_ "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1683,7 +1683,7 @@ def patch_distributed_database(self, distributed_database_id, patch_distributed_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1778,7 +1778,7 @@ def rotate_distributed_database_passwords(self, distributed_database_id, **kwarg "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_distributed_database_passwords got unknown kwargs: {extra_kwargs!r}") @@ -1787,9 +1787,9 @@ def rotate_distributed_database_passwords(self, distributed_database_id, **kwarg "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1800,7 +1800,7 @@ def rotate_distributed_database_passwords(self, distributed_database_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1893,7 +1893,7 @@ def start_distributed_database(self, distributed_database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -1902,9 +1902,9 @@ def start_distributed_database(self, distributed_database_id, **kwargs): "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1915,7 +1915,7 @@ def start_distributed_database(self, distributed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2008,7 +2008,7 @@ def stop_distributed_database(self, distributed_database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -2017,9 +2017,9 @@ def stop_distributed_database(self, distributed_database_id, **kwargs): "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2030,7 +2030,7 @@ def stop_distributed_database(self, distributed_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2118,7 +2118,7 @@ def update_distributed_database(self, distributed_database_id, update_distribute "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_distributed_database got unknown kwargs: {extra_kwargs!r}") @@ -2127,9 +2127,9 @@ def update_distributed_database(self, distributed_database_id, update_distribute "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2139,7 +2139,7 @@ def update_distributed_database(self, distributed_database_id, update_distribute "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2241,7 +2241,7 @@ def upload_distributed_database_signed_certificate_and_generate_wallet(self, dis "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_distributed_database_signed_certificate_and_generate_wallet got unknown kwargs: {extra_kwargs!r}") @@ -2250,9 +2250,9 @@ def upload_distributed_database_signed_certificate_and_generate_wallet(self, dis "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2263,7 +2263,7 @@ def upload_distributed_database_signed_certificate_and_generate_wallet(self, dis "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2370,7 +2370,7 @@ def validate_distributed_database_network(self, distributed_database_id, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_distributed_database_network got unknown kwargs: {extra_kwargs!r}") @@ -2379,9 +2379,9 @@ def validate_distributed_database_network(self, distributed_database_id, **kwarg "distributedDatabaseId": distributed_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2390,7 +2390,7 @@ def validate_distributed_database_network(self, distributed_database_id, **kwarg "resourceName": kwargs.get("resource_name", missing), "shardGroup": kwargs.get("shard_group", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2399,7 +2399,7 @@ def validate_distributed_database_network(self, distributed_database_id, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/distributed_database/distributed_db_work_request_service_client.py b/src/oci/distributed_database/distributed_db_work_request_service_client.py index 79a2a2c48..79f241212 100644 --- a/src/oci/distributed_database/distributed_db_work_request_service_client.py +++ b/src/oci/distributed_database/distributed_db_work_request_service_client.py @@ -160,7 +160,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -169,9 +169,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -180,7 +180,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -278,7 +278,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -287,9 +287,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -313,14 +313,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -420,7 +420,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -429,9 +429,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -455,14 +455,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -576,7 +576,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -612,14 +612,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/dns/dns_client.py b/src/oci/dns/dns_client.py index 36293848a..e211ecfc2 100644 --- a/src/oci/dns/dns_client.py +++ b/src/oci/dns/dns_client.py @@ -194,7 +194,7 @@ def change_resolver_compartment(self, resolver_id, change_resolver_compartment_d "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_resolver_compartment got unknown kwargs: {extra_kwargs!r}") @@ -203,9 +203,9 @@ def change_resolver_compartment(self, resolver_id, change_resolver_compartment_d "resolverId": resolver_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -219,7 +219,7 @@ def change_resolver_compartment(self, resolver_id, change_resolver_compartment_d query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -228,7 +228,7 @@ def change_resolver_compartment(self, resolver_id, change_resolver_compartment_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -337,7 +337,7 @@ def change_steering_policy_compartment(self, steering_policy_id, change_steering "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_steering_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -346,9 +346,9 @@ def change_steering_policy_compartment(self, steering_policy_id, change_steering "steeringPolicyId": steering_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -362,7 +362,7 @@ def change_steering_policy_compartment(self, steering_policy_id, change_steering query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -371,7 +371,7 @@ def change_steering_policy_compartment(self, steering_policy_id, change_steering "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -480,7 +480,7 @@ def change_tsig_key_compartment(self, tsig_key_id, change_tsig_key_compartment_d "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_tsig_key_compartment got unknown kwargs: {extra_kwargs!r}") @@ -489,9 +489,9 @@ def change_tsig_key_compartment(self, tsig_key_id, change_tsig_key_compartment_d "tsigKeyId": tsig_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -505,7 +505,7 @@ def change_tsig_key_compartment(self, tsig_key_id, change_tsig_key_compartment_d query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -514,7 +514,7 @@ def change_tsig_key_compartment(self, tsig_key_id, change_tsig_key_compartment_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -625,7 +625,7 @@ def change_view_compartment(self, view_id, change_view_compartment_details, **kw "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_view_compartment got unknown kwargs: {extra_kwargs!r}") @@ -634,9 +634,9 @@ def change_view_compartment(self, view_id, change_view_compartment_details, **kw "viewId": view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -650,7 +650,7 @@ def change_view_compartment(self, view_id, change_view_compartment_details, **kw query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -659,7 +659,7 @@ def change_view_compartment(self, view_id, change_view_compartment_details, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -775,7 +775,7 @@ def change_zone_compartment(self, zone_id, change_zone_compartment_details, **kw "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_zone_compartment got unknown kwargs: {extra_kwargs!r}") @@ -784,9 +784,9 @@ def change_zone_compartment(self, zone_id, change_zone_compartment_details, **kw "zoneId": zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -800,7 +800,7 @@ def change_zone_compartment(self, zone_id, change_zone_compartment_details, **kw query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -809,7 +809,7 @@ def change_zone_compartment(self, zone_id, change_zone_compartment_details, **kw "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -910,7 +910,7 @@ def create_resolver_endpoint(self, resolver_id, create_resolver_endpoint_details "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_resolver_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -919,9 +919,9 @@ def create_resolver_endpoint(self, resolver_id, create_resolver_endpoint_details "resolverId": resolver_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -935,7 +935,7 @@ def create_resolver_endpoint(self, resolver_id, create_resolver_endpoint_details query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -943,7 +943,7 @@ def create_resolver_endpoint(self, resolver_id, create_resolver_endpoint_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1046,7 +1046,7 @@ def create_steering_policy(self, create_steering_policy_details, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_steering_policy got unknown kwargs: {extra_kwargs!r}") @@ -1061,7 +1061,7 @@ def create_steering_policy(self, create_steering_policy_details, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1069,7 +1069,7 @@ def create_steering_policy(self, create_steering_policy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1172,7 +1172,7 @@ def create_steering_policy_attachment(self, create_steering_policy_attachment_de "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_steering_policy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -1187,7 +1187,7 @@ def create_steering_policy_attachment(self, create_steering_policy_attachment_de query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1195,7 +1195,7 @@ def create_steering_policy_attachment(self, create_steering_policy_attachment_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1285,7 +1285,7 @@ def create_tsig_key(self, create_tsig_key_details, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tsig_key got unknown kwargs: {extra_kwargs!r}") @@ -1300,14 +1300,14 @@ def create_tsig_key(self, create_tsig_key_details, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1404,7 +1404,7 @@ def create_view(self, create_view_details, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_view got unknown kwargs: {extra_kwargs!r}") @@ -1419,7 +1419,7 @@ def create_view(self, create_view_details, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1427,7 +1427,7 @@ def create_view(self, create_view_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1529,7 +1529,7 @@ def create_zone(self, create_zone_details, **kwargs): "scope", "view_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_zone got unknown kwargs: {extra_kwargs!r}") @@ -1546,14 +1546,14 @@ def create_zone(self, create_zone_details, **kwargs): "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1654,7 +1654,7 @@ def create_zone_from_zone_file(self, compartment_id, create_zone_from_zone_file_ "scope", "view_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_zone_from_zone_file got unknown kwargs: {extra_kwargs!r}") @@ -1671,13 +1671,13 @@ def create_zone_from_zone_file(self, compartment_id, create_zone_from_zone_file_ "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1816,7 +1816,7 @@ def delete_domain_records(self, zone_name_or_id, domain, **kwargs): "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_domain_records got unknown kwargs: {extra_kwargs!r}") @@ -1826,9 +1826,9 @@ def delete_domain_records(self, zone_name_or_id, domain, **kwargs): "domain": domain } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1844,7 +1844,7 @@ def delete_domain_records(self, zone_name_or_id, domain, **kwargs): "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1853,7 +1853,7 @@ def delete_domain_records(self, zone_name_or_id, domain, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1962,7 +1962,7 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_resolver_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1972,9 +1972,9 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs "resolverEndpointName": resolver_endpoint_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1988,7 +1988,7 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1997,7 +1997,7 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2116,7 +2116,7 @@ def delete_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "scope", "view_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rr_set got unknown kwargs: {extra_kwargs!r}") @@ -2127,9 +2127,9 @@ def delete_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "rtype": rtype } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2145,7 +2145,7 @@ def delete_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2154,7 +2154,7 @@ def delete_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2260,7 +2260,7 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_steering_policy got unknown kwargs: {extra_kwargs!r}") @@ -2269,9 +2269,9 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): "steeringPolicyId": steering_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2285,7 +2285,7 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2294,7 +2294,7 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2395,7 +2395,7 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_steering_policy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2404,9 +2404,9 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa "steeringPolicyAttachmentId": steering_policy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2420,7 +2420,7 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2429,7 +2429,7 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2529,7 +2529,7 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tsig_key got unknown kwargs: {extra_kwargs!r}") @@ -2538,9 +2538,9 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): "tsigKeyId": tsig_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2554,7 +2554,7 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2563,7 +2563,7 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2668,7 +2668,7 @@ def delete_view(self, view_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_view got unknown kwargs: {extra_kwargs!r}") @@ -2677,9 +2677,9 @@ def delete_view(self, view_id, **kwargs): "viewId": view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2693,7 +2693,7 @@ def delete_view(self, view_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2702,7 +2702,7 @@ def delete_view(self, view_id, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2816,7 +2816,7 @@ def delete_zone(self, zone_name_or_id, **kwargs): "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_zone got unknown kwargs: {extra_kwargs!r}") @@ -2825,9 +2825,9 @@ def delete_zone(self, zone_name_or_id, **kwargs): "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2843,7 +2843,7 @@ def delete_zone(self, zone_name_or_id, **kwargs): "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2852,7 +2852,7 @@ def delete_zone(self, zone_name_or_id, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2998,7 +2998,7 @@ def get_domain_records(self, zone_name_or_id, domain, **kwargs): "sort_order", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_domain_records got unknown kwargs: {extra_kwargs!r}") @@ -3008,9 +3008,9 @@ def get_domain_records(self, zone_name_or_id, domain, **kwargs): "domain": domain } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3046,7 +3046,7 @@ def get_domain_records(self, zone_name_or_id, domain, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3055,7 +3055,7 @@ def get_domain_records(self, zone_name_or_id, domain, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3160,7 +3160,7 @@ def get_resolver(self, resolver_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resolver got unknown kwargs: {extra_kwargs!r}") @@ -3169,9 +3169,9 @@ def get_resolver(self, resolver_id, **kwargs): "resolverId": resolver_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3185,7 +3185,7 @@ def get_resolver(self, resolver_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3194,7 +3194,7 @@ def get_resolver(self, resolver_id, **kwargs): "If-None-Match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3302,7 +3302,7 @@ def get_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resolver_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3312,9 +3312,9 @@ def get_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs): "resolverEndpointName": resolver_endpoint_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3328,7 +3328,7 @@ def get_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3337,7 +3337,7 @@ def get_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs): "If-None-Match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3470,7 +3470,7 @@ def get_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "scope", "view_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rr_set got unknown kwargs: {extra_kwargs!r}") @@ -3481,9 +3481,9 @@ def get_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "rtype": rtype } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3502,7 +3502,7 @@ def get_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3511,7 +3511,7 @@ def get_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3613,7 +3613,7 @@ def get_steering_policy(self, steering_policy_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_steering_policy got unknown kwargs: {extra_kwargs!r}") @@ -3622,9 +3622,9 @@ def get_steering_policy(self, steering_policy_id, **kwargs): "steeringPolicyId": steering_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3638,7 +3638,7 @@ def get_steering_policy(self, steering_policy_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3647,7 +3647,7 @@ def get_steering_policy(self, steering_policy_id, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3749,7 +3749,7 @@ def get_steering_policy_attachment(self, steering_policy_attachment_id, **kwargs "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_steering_policy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -3758,9 +3758,9 @@ def get_steering_policy_attachment(self, steering_policy_attachment_id, **kwargs "steeringPolicyAttachmentId": steering_policy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3774,7 +3774,7 @@ def get_steering_policy_attachment(self, steering_policy_attachment_id, **kwargs query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3783,7 +3783,7 @@ def get_steering_policy_attachment(self, steering_policy_attachment_id, **kwargs "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3885,7 +3885,7 @@ def get_tsig_key(self, tsig_key_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tsig_key got unknown kwargs: {extra_kwargs!r}") @@ -3894,9 +3894,9 @@ def get_tsig_key(self, tsig_key_id, **kwargs): "tsigKeyId": tsig_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3910,7 +3910,7 @@ def get_tsig_key(self, tsig_key_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3919,7 +3919,7 @@ def get_tsig_key(self, tsig_key_id, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4025,7 +4025,7 @@ def get_view(self, view_id, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_view got unknown kwargs: {extra_kwargs!r}") @@ -4034,9 +4034,9 @@ def get_view(self, view_id, **kwargs): "viewId": view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4050,7 +4050,7 @@ def get_view(self, view_id, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4059,7 +4059,7 @@ def get_view(self, view_id, **kwargs): "If-None-Match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4174,7 +4174,7 @@ def get_zone(self, zone_name_or_id, **kwargs): "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_zone got unknown kwargs: {extra_kwargs!r}") @@ -4183,9 +4183,9 @@ def get_zone(self, zone_name_or_id, **kwargs): "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4201,7 +4201,7 @@ def get_zone(self, zone_name_or_id, **kwargs): "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4210,7 +4210,7 @@ def get_zone(self, zone_name_or_id, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4316,7 +4316,7 @@ def get_zone_content(self, zone_name_or_id, **kwargs): "scope", "view_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_zone_content got unknown kwargs: {extra_kwargs!r}") @@ -4325,9 +4325,9 @@ def get_zone_content(self, zone_name_or_id, **kwargs): "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4342,7 +4342,7 @@ def get_zone_content(self, zone_name_or_id, **kwargs): "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "text/dns", @@ -4351,7 +4351,7 @@ def get_zone_content(self, zone_name_or_id, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4511,7 +4511,7 @@ def get_zone_records(self, zone_name_or_id, **kwargs): "scope", "view_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_zone_records got unknown kwargs: {extra_kwargs!r}") @@ -4520,9 +4520,9 @@ def get_zone_records(self, zone_name_or_id, **kwargs): "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4560,7 +4560,7 @@ def get_zone_records(self, zone_name_or_id, **kwargs): "scope": kwargs.get("scope", missing), "viewId": kwargs.get("view_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4569,7 +4569,7 @@ def get_zone_records(self, zone_name_or_id, **kwargs): "If-Modified-Since": kwargs.get("if_modified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4690,7 +4690,7 @@ def list_resolver_endpoints(self, resolver_id, **kwargs): "lifecycle_state", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resolver_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -4699,9 +4699,9 @@ def list_resolver_endpoints(self, resolver_id, **kwargs): "resolverId": resolver_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4742,14 +4742,14 @@ def list_resolver_endpoints(self, resolver_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4876,7 +4876,7 @@ def list_resolvers(self, compartment_id, **kwargs): "lifecycle_state", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resolvers got unknown kwargs: {extra_kwargs!r}") @@ -4920,14 +4920,14 @@ def list_resolvers(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5076,7 +5076,7 @@ def list_steering_policies(self, compartment_id, **kwargs): "sort_order", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_steering_policies got unknown kwargs: {extra_kwargs!r}") @@ -5125,14 +5125,14 @@ def list_steering_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5286,7 +5286,7 @@ def list_steering_policy_attachments(self, compartment_id, **kwargs): "sort_order", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_steering_policy_attachments got unknown kwargs: {extra_kwargs!r}") @@ -5336,14 +5336,14 @@ def list_steering_policy_attachments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5463,7 +5463,7 @@ def list_tsig_keys(self, compartment_id, **kwargs): "sort_order", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tsig_keys got unknown kwargs: {extra_kwargs!r}") @@ -5507,14 +5507,14 @@ def list_tsig_keys(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5639,7 +5639,7 @@ def list_views(self, compartment_id, **kwargs): "lifecycle_state", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_views got unknown kwargs: {extra_kwargs!r}") @@ -5683,14 +5683,14 @@ def list_views(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5782,7 +5782,7 @@ def list_zone_transfer_servers(self, compartment_id, **kwargs): "scope", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zone_transfer_servers got unknown kwargs: {extra_kwargs!r}") @@ -5799,14 +5799,14 @@ def list_zone_transfer_servers(self, compartment_id, **kwargs): "scope": kwargs.get("scope", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5966,7 +5966,7 @@ def list_zones(self, compartment_id, **kwargs): "tsig_key_id", "dnssec_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zones got unknown kwargs: {extra_kwargs!r}") @@ -6030,14 +6030,14 @@ def list_zones(self, compartment_id, **kwargs): "tsigKeyId": kwargs.get("tsig_key_id", missing), "dnssecState": kwargs.get("dnssec_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6160,7 +6160,7 @@ def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_det "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_domain_records got unknown kwargs: {extra_kwargs!r}") @@ -6170,9 +6170,9 @@ def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_det "domain": domain } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6188,7 +6188,7 @@ def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_det "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6197,7 +6197,7 @@ def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_det "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6325,7 +6325,7 @@ def patch_rr_set(self, zone_name_or_id, domain, rtype, patch_rr_set_details, **k "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_rr_set got unknown kwargs: {extra_kwargs!r}") @@ -6336,9 +6336,9 @@ def patch_rr_set(self, zone_name_or_id, domain, rtype, patch_rr_set_details, **k "rtype": rtype } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6354,7 +6354,7 @@ def patch_rr_set(self, zone_name_or_id, domain, rtype, patch_rr_set_details, **k "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6363,7 +6363,7 @@ def patch_rr_set(self, zone_name_or_id, domain, rtype, patch_rr_set_details, **k "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6487,7 +6487,7 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_zone_records got unknown kwargs: {extra_kwargs!r}") @@ -6496,9 +6496,9 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6514,7 +6514,7 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6523,7 +6523,7 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6652,7 +6652,7 @@ def promote_zone_dnssec_key_version(self, zone_id, promote_zone_dnssec_key_versi "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"promote_zone_dnssec_key_version got unknown kwargs: {extra_kwargs!r}") @@ -6661,9 +6661,9 @@ def promote_zone_dnssec_key_version(self, zone_id, promote_zone_dnssec_key_versi "zoneId": zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6677,7 +6677,7 @@ def promote_zone_dnssec_key_version(self, zone_id, promote_zone_dnssec_key_versi query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6687,7 +6687,7 @@ def promote_zone_dnssec_key_version(self, zone_id, promote_zone_dnssec_key_versi "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6810,7 +6810,7 @@ def stage_zone_dnssec_key_version(self, zone_id, stage_zone_dnssec_key_version_d "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stage_zone_dnssec_key_version got unknown kwargs: {extra_kwargs!r}") @@ -6819,9 +6819,9 @@ def stage_zone_dnssec_key_version(self, zone_id, stage_zone_dnssec_key_version_d "zoneId": zone_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6835,7 +6835,7 @@ def stage_zone_dnssec_key_version(self, zone_id, stage_zone_dnssec_key_version_d query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6845,7 +6845,7 @@ def stage_zone_dnssec_key_version(self, zone_id, stage_zone_dnssec_key_version_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6971,7 +6971,7 @@ def update_domain_records(self, zone_name_or_id, domain, update_domain_records_d "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_domain_records got unknown kwargs: {extra_kwargs!r}") @@ -6981,9 +6981,9 @@ def update_domain_records(self, zone_name_or_id, domain, update_domain_records_d "domain": domain } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6999,7 +6999,7 @@ def update_domain_records(self, zone_name_or_id, domain, update_domain_records_d "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7008,7 +7008,7 @@ def update_domain_records(self, zone_name_or_id, domain, update_domain_records_d "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7117,7 +7117,7 @@ def update_resolver(self, resolver_id, update_resolver_details, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_resolver got unknown kwargs: {extra_kwargs!r}") @@ -7126,9 +7126,9 @@ def update_resolver(self, resolver_id, update_resolver_details, **kwargs): "resolverId": resolver_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7142,7 +7142,7 @@ def update_resolver(self, resolver_id, update_resolver_details, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7151,7 +7151,7 @@ def update_resolver(self, resolver_id, update_resolver_details, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7263,7 +7263,7 @@ def update_resolver_endpoint(self, resolver_id, resolver_endpoint_name, update_r "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_resolver_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -7273,9 +7273,9 @@ def update_resolver_endpoint(self, resolver_id, resolver_endpoint_name, update_r "resolverEndpointName": resolver_endpoint_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7289,7 +7289,7 @@ def update_resolver_endpoint(self, resolver_id, resolver_endpoint_name, update_r query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7298,7 +7298,7 @@ def update_resolver_endpoint(self, resolver_id, resolver_endpoint_name, update_r "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7426,7 +7426,7 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, * "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_rr_set got unknown kwargs: {extra_kwargs!r}") @@ -7437,9 +7437,9 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, * "rtype": rtype } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7455,7 +7455,7 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, * "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7464,7 +7464,7 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, * "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7573,7 +7573,7 @@ def update_steering_policy(self, steering_policy_id, update_steering_policy_deta "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_steering_policy got unknown kwargs: {extra_kwargs!r}") @@ -7582,9 +7582,9 @@ def update_steering_policy(self, steering_policy_id, update_steering_policy_deta "steeringPolicyId": steering_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7598,7 +7598,7 @@ def update_steering_policy(self, steering_policy_id, update_steering_policy_deta query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7607,7 +7607,7 @@ def update_steering_policy(self, steering_policy_id, update_steering_policy_deta "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7716,7 +7716,7 @@ def update_steering_policy_attachment(self, steering_policy_attachment_id, updat "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_steering_policy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -7725,9 +7725,9 @@ def update_steering_policy_attachment(self, steering_policy_attachment_id, updat "steeringPolicyAttachmentId": steering_policy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7741,7 +7741,7 @@ def update_steering_policy_attachment(self, steering_policy_attachment_id, updat query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7750,7 +7750,7 @@ def update_steering_policy_attachment(self, steering_policy_attachment_id, updat "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7859,7 +7859,7 @@ def update_tsig_key(self, tsig_key_id, update_tsig_key_details, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tsig_key got unknown kwargs: {extra_kwargs!r}") @@ -7868,9 +7868,9 @@ def update_tsig_key(self, tsig_key_id, update_tsig_key_details, **kwargs): "tsigKeyId": tsig_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7884,7 +7884,7 @@ def update_tsig_key(self, tsig_key_id, update_tsig_key_details, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7893,7 +7893,7 @@ def update_tsig_key(self, tsig_key_id, update_tsig_key_details, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8002,7 +8002,7 @@ def update_view(self, view_id, update_view_details, **kwargs): "opc_request_id", "scope" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_view got unknown kwargs: {extra_kwargs!r}") @@ -8011,9 +8011,9 @@ def update_view(self, view_id, update_view_details, **kwargs): "viewId": view_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8027,7 +8027,7 @@ def update_view(self, view_id, update_view_details, **kwargs): query_params = { "scope": kwargs.get("scope", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8036,7 +8036,7 @@ def update_view(self, view_id, update_view_details, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8162,7 +8162,7 @@ def update_zone(self, zone_name_or_id, update_zone_details, **kwargs): "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_zone got unknown kwargs: {extra_kwargs!r}") @@ -8171,9 +8171,9 @@ def update_zone(self, zone_name_or_id, update_zone_details, **kwargs): "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8189,7 +8189,7 @@ def update_zone(self, zone_name_or_id, update_zone_details, **kwargs): "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8198,7 +8198,7 @@ def update_zone(self, zone_name_or_id, update_zone_details, **kwargs): "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8323,7 +8323,7 @@ def update_zone_records(self, zone_name_or_id, update_zone_records_details, **kw "view_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_zone_records got unknown kwargs: {extra_kwargs!r}") @@ -8332,9 +8332,9 @@ def update_zone_records(self, zone_name_or_id, update_zone_records_details, **kw "zoneNameOrId": zone_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8350,7 +8350,7 @@ def update_zone_records(self, zone_name_or_id, update_zone_records_details, **kw "viewId": kwargs.get("view_id", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8359,7 +8359,7 @@ def update_zone_records(self, zone_name_or_id, update_zone_records_details, **kw "If-Unmodified-Since": kwargs.get("if_unmodified_since", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/em_warehouse/em_warehouse_client.py b/src/oci/em_warehouse/em_warehouse_client.py index 177f7a1a9..15ba58eeb 100644 --- a/src/oci/em_warehouse/em_warehouse_client.py +++ b/src/oci/em_warehouse/em_warehouse_client.py @@ -168,7 +168,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -282,7 +282,7 @@ def change_em_warehouse_compartment(self, em_warehouse_id, change_em_warehouse_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_em_warehouse_compartment got unknown kwargs: {extra_kwargs!r}") @@ -291,9 +291,9 @@ def change_em_warehouse_compartment(self, em_warehouse_id, change_em_warehouse_c "emWarehouseId": em_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -304,7 +304,7 @@ def change_em_warehouse_compartment(self, em_warehouse_id, change_em_warehouse_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -389,7 +389,7 @@ def create_em_warehouse(self, create_em_warehouse_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_em_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -400,7 +400,7 @@ def create_em_warehouse(self, create_em_warehouse_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -483,7 +483,7 @@ def delete_em_warehouse(self, em_warehouse_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_em_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -492,9 +492,9 @@ def delete_em_warehouse(self, em_warehouse_id, **kwargs): "emWarehouseId": em_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -504,7 +504,7 @@ def delete_em_warehouse(self, em_warehouse_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -578,7 +578,7 @@ def get_em_warehouse(self, em_warehouse_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_em_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -587,9 +587,9 @@ def get_em_warehouse(self, em_warehouse_id, **kwargs): "emWarehouseId": em_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -598,7 +598,7 @@ def get_em_warehouse(self, em_warehouse_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -674,7 +674,7 @@ def get_em_warehouse_resource_usage(self, em_warehouse_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_em_warehouse_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -683,9 +683,9 @@ def get_em_warehouse_resource_usage(self, em_warehouse_id, **kwargs): "emWarehouseId": em_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -694,7 +694,7 @@ def get_em_warehouse_resource_usage(self, em_warehouse_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -770,7 +770,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -779,9 +779,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -790,7 +790,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -905,7 +905,7 @@ def list_em_warehouses(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_em_warehouses got unknown kwargs: {extra_kwargs!r}") @@ -942,14 +942,14 @@ def list_em_warehouses(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1053,7 +1053,7 @@ def list_etl_runs(self, em_warehouse_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_etl_runs got unknown kwargs: {extra_kwargs!r}") @@ -1062,9 +1062,9 @@ def list_etl_runs(self, em_warehouse_id, **kwargs): "emWarehouseId": em_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1090,14 +1090,14 @@ def list_etl_runs(self, em_warehouse_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1195,7 +1195,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1204,9 +1204,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1230,14 +1230,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1335,7 +1335,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1344,9 +1344,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1370,14 +1370,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1490,7 +1490,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1526,14 +1526,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1620,7 +1620,7 @@ def update_em_warehouse(self, em_warehouse_id, update_em_warehouse_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_em_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -1629,9 +1629,9 @@ def update_em_warehouse(self, em_warehouse_id, update_em_warehouse_details, **kw "emWarehouseId": em_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1641,7 +1641,7 @@ def update_em_warehouse(self, em_warehouse_id, update_em_warehouse_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/email/email_client.py b/src/oci/email/email_client.py index d3ad8269e..3c1976282 100644 --- a/src/oci/email/email_client.py +++ b/src/oci/email/email_client.py @@ -175,7 +175,7 @@ def add_email_domain_lock(self, email_domain_id, add_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_email_domain_lock got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def add_email_domain_lock(self, email_domain_id, add_lock_details, **kwargs): "emailDomainId": email_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def add_email_domain_lock(self, email_domain_id, add_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -285,7 +285,7 @@ def add_email_ip_pool_lock(self, email_ip_pool_id, add_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_email_ip_pool_lock got unknown kwargs: {extra_kwargs!r}") @@ -294,9 +294,9 @@ def add_email_ip_pool_lock(self, email_ip_pool_id, add_lock_details, **kwargs): "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -306,7 +306,7 @@ def add_email_ip_pool_lock(self, email_ip_pool_id, add_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -403,7 +403,7 @@ def add_email_outbound_ip(self, add_email_outbound_ip_details, email_ip_pool_id, "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_email_outbound_ip got unknown kwargs: {extra_kwargs!r}") @@ -412,9 +412,9 @@ def add_email_outbound_ip(self, add_email_outbound_ip_details, email_ip_pool_id, "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -425,7 +425,7 @@ def add_email_outbound_ip(self, add_email_outbound_ip_details, email_ip_pool_id, "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def add_return_path_lock(self, email_return_path_id, add_lock_details, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_return_path_lock got unknown kwargs: {extra_kwargs!r}") @@ -522,9 +522,9 @@ def add_return_path_lock(self, email_return_path_id, add_lock_details, **kwargs) "emailReturnPathId": email_return_path_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -534,7 +534,7 @@ def add_return_path_lock(self, email_return_path_id, add_lock_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -621,7 +621,7 @@ def add_sender_lock(self, sender_id, add_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_sender_lock got unknown kwargs: {extra_kwargs!r}") @@ -630,9 +630,9 @@ def add_sender_lock(self, sender_id, add_lock_details, **kwargs): "senderId": sender_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -642,7 +642,7 @@ def add_sender_lock(self, sender_id, add_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -750,7 +750,7 @@ def change_email_domain_compartment(self, email_domain_id, change_email_domain_c "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_email_domain_compartment got unknown kwargs: {extra_kwargs!r}") @@ -759,16 +759,16 @@ def change_email_domain_compartment(self, email_domain_id, change_email_domain_c "emailDomainId": email_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -777,7 +777,7 @@ def change_email_domain_compartment(self, email_domain_id, change_email_domain_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -879,7 +879,7 @@ def change_email_ip_pool_compartment(self, email_ip_pool_id, change_email_ip_poo "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_email_ip_pool_compartment got unknown kwargs: {extra_kwargs!r}") @@ -888,16 +888,16 @@ def change_email_ip_pool_compartment(self, email_ip_pool_id, change_email_ip_poo "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -906,7 +906,7 @@ def change_email_ip_pool_compartment(self, email_ip_pool_id, change_email_ip_poo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -998,7 +998,7 @@ def change_sender_compartment(self, sender_id, change_sender_compartment_details "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sender_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1007,16 +1007,16 @@ def change_sender_compartment(self, sender_id, change_sender_compartment_details "senderId": sender_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1024,7 +1024,7 @@ def change_sender_compartment(self, sender_id, change_sender_compartment_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1114,7 +1114,7 @@ def create_dkim(self, create_dkim_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dkim got unknown kwargs: {extra_kwargs!r}") @@ -1125,7 +1125,7 @@ def create_dkim(self, create_dkim_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1210,7 +1210,7 @@ def create_email_domain(self, create_email_domain_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_email_domain got unknown kwargs: {extra_kwargs!r}") @@ -1221,7 +1221,7 @@ def create_email_domain(self, create_email_domain_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1306,7 +1306,7 @@ def create_email_ip_pool(self, create_email_ip_pool_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_email_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -1317,7 +1317,7 @@ def create_email_ip_pool(self, create_email_ip_pool_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1402,7 +1402,7 @@ def create_email_return_path(self, create_email_return_path_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_email_return_path got unknown kwargs: {extra_kwargs!r}") @@ -1413,7 +1413,7 @@ def create_email_return_path(self, create_email_return_path_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1490,7 +1490,7 @@ def create_sender(self, create_sender_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sender got unknown kwargs: {extra_kwargs!r}") @@ -1500,7 +1500,7 @@ def create_sender(self, create_sender_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1579,7 +1579,7 @@ def create_suppression(self, create_suppression_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_suppression got unknown kwargs: {extra_kwargs!r}") @@ -1589,7 +1589,7 @@ def create_suppression(self, create_suppression_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1678,7 +1678,7 @@ def delete_dkim(self, dkim_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dkim got unknown kwargs: {extra_kwargs!r}") @@ -1687,9 +1687,9 @@ def delete_dkim(self, dkim_id, **kwargs): "dkimId": dkim_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1699,7 +1699,7 @@ def delete_dkim(self, dkim_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1785,7 +1785,7 @@ def delete_email_domain(self, email_domain_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_email_domain got unknown kwargs: {extra_kwargs!r}") @@ -1794,16 +1794,16 @@ def delete_email_domain(self, email_domain_id, **kwargs): "emailDomainId": email_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1811,7 +1811,7 @@ def delete_email_domain(self, email_domain_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1899,7 +1899,7 @@ def delete_email_ip_pool(self, email_ip_pool_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_email_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -1908,16 +1908,16 @@ def delete_email_ip_pool(self, email_ip_pool_id, **kwargs): "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1925,7 +1925,7 @@ def delete_email_ip_pool(self, email_ip_pool_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2013,7 +2013,7 @@ def delete_email_return_path(self, email_return_path_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_email_return_path got unknown kwargs: {extra_kwargs!r}") @@ -2022,16 +2022,16 @@ def delete_email_return_path(self, email_return_path_id, **kwargs): "emailReturnPathId": email_return_path_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2039,7 +2039,7 @@ def delete_email_return_path(self, email_return_path_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2126,7 +2126,7 @@ def delete_sender(self, sender_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sender got unknown kwargs: {extra_kwargs!r}") @@ -2135,16 +2135,16 @@ def delete_sender(self, sender_id, **kwargs): "senderId": sender_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2152,7 +2152,7 @@ def delete_sender(self, sender_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2229,7 +2229,7 @@ def delete_suppression(self, suppression_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_suppression got unknown kwargs: {extra_kwargs!r}") @@ -2238,9 +2238,9 @@ def delete_suppression(self, suppression_id, **kwargs): "suppressionId": suppression_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2249,7 +2249,7 @@ def delete_suppression(self, suppression_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2325,7 +2325,7 @@ def get_dkim(self, dkim_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dkim got unknown kwargs: {extra_kwargs!r}") @@ -2334,9 +2334,9 @@ def get_dkim(self, dkim_id, **kwargs): "dkimId": dkim_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2345,7 +2345,7 @@ def get_dkim(self, dkim_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2421,7 +2421,7 @@ def get_email_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_email_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2429,14 +2429,14 @@ def get_email_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2514,7 +2514,7 @@ def get_email_domain(self, email_domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_email_domain got unknown kwargs: {extra_kwargs!r}") @@ -2523,9 +2523,9 @@ def get_email_domain(self, email_domain_id, **kwargs): "emailDomainId": email_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2534,7 +2534,7 @@ def get_email_domain(self, email_domain_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2612,7 +2612,7 @@ def get_email_ip_pool(self, email_ip_pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_email_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -2621,9 +2621,9 @@ def get_email_ip_pool(self, email_ip_pool_id, **kwargs): "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2632,7 +2632,7 @@ def get_email_ip_pool(self, email_ip_pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2710,7 +2710,7 @@ def get_email_return_path(self, email_return_path_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_email_return_path got unknown kwargs: {extra_kwargs!r}") @@ -2719,9 +2719,9 @@ def get_email_return_path(self, email_return_path_id, **kwargs): "emailReturnPathId": email_return_path_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2730,7 +2730,7 @@ def get_email_return_path(self, email_return_path_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2806,7 +2806,7 @@ def get_sender(self, sender_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sender got unknown kwargs: {extra_kwargs!r}") @@ -2815,9 +2815,9 @@ def get_sender(self, sender_id, **kwargs): "senderId": sender_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2826,7 +2826,7 @@ def get_sender(self, sender_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2903,7 +2903,7 @@ def get_suppression(self, suppression_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_suppression got unknown kwargs: {extra_kwargs!r}") @@ -2912,9 +2912,9 @@ def get_suppression(self, suppression_id, **kwargs): "suppressionId": suppression_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2923,7 +2923,7 @@ def get_suppression(self, suppression_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2999,7 +2999,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3008,9 +3008,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3019,7 +3019,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3145,7 +3145,7 @@ def list_dkims(self, email_domain_id, **kwargs): "lifecycle_state", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dkims got unknown kwargs: {extra_kwargs!r}") @@ -3181,14 +3181,14 @@ def list_dkims(self, email_domain_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3312,7 +3312,7 @@ def list_email_domains(self, compartment_id, **kwargs): "lifecycle_state", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_email_domains got unknown kwargs: {extra_kwargs!r}") @@ -3348,14 +3348,14 @@ def list_email_domains(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3477,7 +3477,7 @@ def list_email_ip_pools(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_email_ip_pools got unknown kwargs: {extra_kwargs!r}") @@ -3513,14 +3513,14 @@ def list_email_ip_pools(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3642,7 +3642,7 @@ def list_email_outbound_ips(self, compartment_id, **kwargs): "assignment_state", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_email_outbound_ips got unknown kwargs: {extra_kwargs!r}") @@ -3685,14 +3685,14 @@ def list_email_outbound_ips(self, compartment_id, **kwargs): "assignmentState": kwargs.get("assignment_state", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3823,7 +3823,7 @@ def list_email_return_paths(self, **kwargs): "lifecycle_state", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_email_return_paths got unknown kwargs: {extra_kwargs!r}") @@ -3860,14 +3860,14 @@ def list_email_return_paths(self, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3992,7 +3992,7 @@ def list_senders(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_senders got unknown kwargs: {extra_kwargs!r}") @@ -4029,14 +4029,14 @@ def list_senders(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4175,7 +4175,7 @@ def list_suppressions(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_suppressions got unknown kwargs: {extra_kwargs!r}") @@ -4204,14 +4204,14 @@ def list_suppressions(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4303,7 +4303,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4312,9 +4312,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4322,14 +4322,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4423,7 +4423,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4432,9 +4432,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4442,14 +4442,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4547,7 +4547,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4558,14 +4558,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4652,7 +4652,7 @@ def remove_email_domain_lock(self, email_domain_id, remove_lock_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_email_domain_lock got unknown kwargs: {extra_kwargs!r}") @@ -4661,9 +4661,9 @@ def remove_email_domain_lock(self, email_domain_id, remove_lock_details, **kwarg "emailDomainId": email_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4673,7 +4673,7 @@ def remove_email_domain_lock(self, email_domain_id, remove_lock_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4762,7 +4762,7 @@ def remove_email_ip_pool_lock(self, email_ip_pool_id, remove_lock_details, **kwa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_email_ip_pool_lock got unknown kwargs: {extra_kwargs!r}") @@ -4771,9 +4771,9 @@ def remove_email_ip_pool_lock(self, email_ip_pool_id, remove_lock_details, **kwa "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4783,7 +4783,7 @@ def remove_email_ip_pool_lock(self, email_ip_pool_id, remove_lock_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4880,7 +4880,7 @@ def remove_email_outbound_ip(self, remove_email_outbound_ip_details, email_ip_po "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_email_outbound_ip got unknown kwargs: {extra_kwargs!r}") @@ -4889,9 +4889,9 @@ def remove_email_outbound_ip(self, remove_email_outbound_ip_details, email_ip_po "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4902,7 +4902,7 @@ def remove_email_outbound_ip(self, remove_email_outbound_ip_details, email_ip_po "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4990,7 +4990,7 @@ def remove_return_path_lock(self, email_return_path_id, remove_lock_details, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_return_path_lock got unknown kwargs: {extra_kwargs!r}") @@ -4999,9 +4999,9 @@ def remove_return_path_lock(self, email_return_path_id, remove_lock_details, **k "emailReturnPathId": email_return_path_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5011,7 +5011,7 @@ def remove_return_path_lock(self, email_return_path_id, remove_lock_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5098,7 +5098,7 @@ def remove_sender_lock(self, sender_id, remove_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_sender_lock got unknown kwargs: {extra_kwargs!r}") @@ -5107,9 +5107,9 @@ def remove_sender_lock(self, sender_id, remove_lock_details, **kwargs): "senderId": sender_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5119,7 +5119,7 @@ def remove_sender_lock(self, sender_id, remove_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5208,7 +5208,7 @@ def update_dkim(self, dkim_id, update_dkim_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dkim got unknown kwargs: {extra_kwargs!r}") @@ -5217,9 +5217,9 @@ def update_dkim(self, dkim_id, update_dkim_details, **kwargs): "dkimId": dkim_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5229,7 +5229,7 @@ def update_dkim(self, dkim_id, update_dkim_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5320,7 +5320,7 @@ def update_email_domain(self, email_domain_id, update_email_domain_details, **kw "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_email_domain got unknown kwargs: {extra_kwargs!r}") @@ -5329,16 +5329,16 @@ def update_email_domain(self, email_domain_id, update_email_domain_details, **kw "emailDomainId": email_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5346,7 +5346,7 @@ def update_email_domain(self, email_domain_id, update_email_domain_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5439,7 +5439,7 @@ def update_email_ip_pool(self, email_ip_pool_id, update_email_ip_pool_details, * "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_email_ip_pool got unknown kwargs: {extra_kwargs!r}") @@ -5448,16 +5448,16 @@ def update_email_ip_pool(self, email_ip_pool_id, update_email_ip_pool_details, * "emailIpPoolId": email_ip_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5465,7 +5465,7 @@ def update_email_ip_pool(self, email_ip_pool_id, update_email_ip_pool_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5558,7 +5558,7 @@ def update_email_return_path(self, email_return_path_id, update_email_return_pat "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_email_return_path got unknown kwargs: {extra_kwargs!r}") @@ -5567,16 +5567,16 @@ def update_email_return_path(self, email_return_path_id, update_email_return_pat "emailReturnPathId": email_return_path_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5584,7 +5584,7 @@ def update_email_return_path(self, email_return_path_id, update_email_return_pat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5680,7 +5680,7 @@ def update_sender(self, sender_id, update_sender_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sender got unknown kwargs: {extra_kwargs!r}") @@ -5689,16 +5689,16 @@ def update_sender(self, sender_id, update_sender_details, **kwargs): "senderId": sender_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5706,7 +5706,7 @@ def update_sender(self, sender_id, update_sender_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/email_data_plane/email_dp_client.py b/src/oci/email_data_plane/email_dp_client.py index 8392c9790..2130b24d0 100644 --- a/src/oci/email_data_plane/email_dp_client.py +++ b/src/oci/email_data_plane/email_dp_client.py @@ -162,7 +162,7 @@ def submit_email(self, submit_email_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"submit_email got unknown kwargs: {extra_kwargs!r}") @@ -172,7 +172,7 @@ def submit_email(self, submit_email_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -278,7 +278,7 @@ def submit_raw_email(self, content_type, compartment_id, sender, recipients, raw "opc_request_id", "content_length" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"submit_raw_email got unknown kwargs: {extra_kwargs!r}") @@ -292,7 +292,7 @@ def submit_raw_email(self, content_type, compartment_id, sender, recipients, raw "sender": sender, "recipients": recipients } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: diff --git a/src/oci/events/events_client.py b/src/oci/events/events_client.py index 7cffc8cd8..2db309ba0 100644 --- a/src/oci/events/events_client.py +++ b/src/oci/events/events_client.py @@ -183,7 +183,7 @@ def change_rule_compartment(self, rule_id, change_rule_compartment_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_rule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def change_rule_compartment(self, rule_id, change_rule_compartment_details, **kw "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def change_rule_compartment(self, rule_id, change_rule_compartment_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def create_rule(self, create_rule_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_rule got unknown kwargs: {extra_kwargs!r}") @@ -302,7 +302,7 @@ def create_rule(self, create_rule_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -388,7 +388,7 @@ def delete_rule(self, rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rule got unknown kwargs: {extra_kwargs!r}") @@ -397,9 +397,9 @@ def delete_rule(self, rule_id, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -409,7 +409,7 @@ def delete_rule(self, rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -486,7 +486,7 @@ def get_rule(self, rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rule got unknown kwargs: {extra_kwargs!r}") @@ -495,9 +495,9 @@ def get_rule(self, rule_id, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -506,7 +506,7 @@ def get_rule(self, rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def list_rules(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rules got unknown kwargs: {extra_kwargs!r}") @@ -669,14 +669,14 @@ def list_rules(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def update_rule(self, rule_id, update_rule_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_rule got unknown kwargs: {extra_kwargs!r}") @@ -773,9 +773,9 @@ def update_rule(self, rule_id, update_rule_details, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -785,7 +785,7 @@ def update_rule(self, rule_id, update_rule_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/file_storage/file_storage_client.py b/src/oci/file_storage/file_storage_client.py index 400b6198b..10cf20b7c 100644 --- a/src/oci/file_storage/file_storage_client.py +++ b/src/oci/file_storage/file_storage_client.py @@ -176,7 +176,7 @@ def add_export_lock(self, export_id, add_export_lock_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_export_lock got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def add_export_lock(self, export_id, add_export_lock_details, **kwargs): "exportId": export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -197,7 +197,7 @@ def add_export_lock(self, export_id, add_export_lock_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -289,7 +289,7 @@ def add_file_system_lock(self, file_system_id, add_file_system_lock_details, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_file_system_lock got unknown kwargs: {extra_kwargs!r}") @@ -298,9 +298,9 @@ def add_file_system_lock(self, file_system_id, add_file_system_lock_details, **k "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -310,7 +310,7 @@ def add_file_system_lock(self, file_system_id, add_file_system_lock_details, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -402,7 +402,7 @@ def add_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, add "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_filesystem_snapshot_policy_lock got unknown kwargs: {extra_kwargs!r}") @@ -411,9 +411,9 @@ def add_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, add "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -423,7 +423,7 @@ def add_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, add "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -515,7 +515,7 @@ def add_mount_target_lock(self, mount_target_id, add_mount_target_lock_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_mount_target_lock got unknown kwargs: {extra_kwargs!r}") @@ -524,9 +524,9 @@ def add_mount_target_lock(self, mount_target_id, add_mount_target_lock_details, "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -536,7 +536,7 @@ def add_mount_target_lock(self, mount_target_id, add_mount_target_lock_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -628,7 +628,7 @@ def add_outbound_connector_lock(self, outbound_connector_id, add_outbound_connec "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_outbound_connector_lock got unknown kwargs: {extra_kwargs!r}") @@ -637,9 +637,9 @@ def add_outbound_connector_lock(self, outbound_connector_id, add_outbound_connec "outboundConnectorId": outbound_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -649,7 +649,7 @@ def add_outbound_connector_lock(self, outbound_connector_id, add_outbound_connec "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -741,7 +741,7 @@ def add_replication_lock(self, replication_id, add_replication_lock_details, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_replication_lock got unknown kwargs: {extra_kwargs!r}") @@ -750,9 +750,9 @@ def add_replication_lock(self, replication_id, add_replication_lock_details, **k "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -762,7 +762,7 @@ def add_replication_lock(self, replication_id, add_replication_lock_details, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -854,7 +854,7 @@ def add_snapshot_lock(self, snapshot_id, add_snapshot_lock_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_snapshot_lock got unknown kwargs: {extra_kwargs!r}") @@ -863,9 +863,9 @@ def add_snapshot_lock(self, snapshot_id, add_snapshot_lock_details, **kwargs): "snapshotId": snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -875,7 +875,7 @@ def add_snapshot_lock(self, snapshot_id, add_snapshot_lock_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -964,7 +964,7 @@ def cancel_downgrade_shape_mount_target(self, mount_target_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_downgrade_shape_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -973,9 +973,9 @@ def cancel_downgrade_shape_mount_target(self, mount_target_id, **kwargs): "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -985,7 +985,7 @@ def cancel_downgrade_shape_mount_target(self, mount_target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1081,7 +1081,7 @@ def change_file_system_compartment(self, file_system_id, change_file_system_comp "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_file_system_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1090,16 +1090,16 @@ def change_file_system_compartment(self, file_system_id, change_file_system_comp "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1107,7 +1107,7 @@ def change_file_system_compartment(self, file_system_id, change_file_system_comp "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1205,7 +1205,7 @@ def change_filesystem_snapshot_policy_compartment(self, filesystem_snapshot_poli "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_filesystem_snapshot_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1214,16 +1214,16 @@ def change_filesystem_snapshot_policy_compartment(self, filesystem_snapshot_poli "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1231,7 +1231,7 @@ def change_filesystem_snapshot_policy_compartment(self, filesystem_snapshot_poli "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1329,7 +1329,7 @@ def change_mount_target_compartment(self, mount_target_id, change_mount_target_c "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_mount_target_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1338,16 +1338,16 @@ def change_mount_target_compartment(self, mount_target_id, change_mount_target_c "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1355,7 +1355,7 @@ def change_mount_target_compartment(self, mount_target_id, change_mount_target_c "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1455,7 +1455,7 @@ def change_outbound_connector_compartment(self, outbound_connector_id, change_ou "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_outbound_connector_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1464,16 +1464,16 @@ def change_outbound_connector_compartment(self, outbound_connector_id, change_ou "outboundConnectorId": outbound_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1481,7 +1481,7 @@ def change_outbound_connector_compartment(self, outbound_connector_id, change_ou "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1580,7 +1580,7 @@ def change_replication_compartment(self, replication_id, change_replication_comp "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_replication_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1589,16 +1589,16 @@ def change_replication_compartment(self, replication_id, change_replication_comp "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1606,7 +1606,7 @@ def change_replication_compartment(self, replication_id, change_replication_comp "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1694,7 +1694,7 @@ def create_export(self, create_export_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_export got unknown kwargs: {extra_kwargs!r}") @@ -1705,7 +1705,7 @@ def create_export(self, create_export_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1824,7 +1824,7 @@ def create_file_system(self, create_file_system_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_file_system got unknown kwargs: {extra_kwargs!r}") @@ -1835,7 +1835,7 @@ def create_file_system(self, create_file_system_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1925,7 +1925,7 @@ def create_filesystem_snapshot_policy(self, create_filesystem_snapshot_policy_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_filesystem_snapshot_policy got unknown kwargs: {extra_kwargs!r}") @@ -1936,7 +1936,7 @@ def create_filesystem_snapshot_policy(self, create_filesystem_snapshot_policy_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2061,7 +2061,7 @@ def create_mount_target(self, create_mount_target_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -2069,7 +2069,7 @@ def create_mount_target(self, create_mount_target_details, **kwargs): query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2077,7 +2077,7 @@ def create_mount_target(self, create_mount_target_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2188,7 +2188,7 @@ def create_outbound_connector(self, create_outbound_connector_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_outbound_connector got unknown kwargs: {extra_kwargs!r}") @@ -2199,7 +2199,7 @@ def create_outbound_connector(self, create_outbound_connector_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2299,7 +2299,7 @@ def create_quota_rule(self, create_quota_rule_details, file_system_id, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_quota_rule got unknown kwargs: {extra_kwargs!r}") @@ -2308,9 +2308,9 @@ def create_quota_rule(self, create_quota_rule_details, file_system_id, **kwargs) "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2321,7 +2321,7 @@ def create_quota_rule(self, create_quota_rule_details, file_system_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2440,7 +2440,7 @@ def create_replication(self, create_replication_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_replication got unknown kwargs: {extra_kwargs!r}") @@ -2451,7 +2451,7 @@ def create_replication(self, create_replication_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2538,7 +2538,7 @@ def create_snapshot(self, create_snapshot_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -2549,7 +2549,7 @@ def create_snapshot(self, create_snapshot_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2641,7 +2641,7 @@ def delete_export(self, export_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_export got unknown kwargs: {extra_kwargs!r}") @@ -2650,16 +2650,16 @@ def delete_export(self, export_id, **kwargs): "exportId": export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2667,7 +2667,7 @@ def delete_export(self, export_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2765,7 +2765,7 @@ def delete_file_system(self, file_system_id, **kwargs): "is_lock_override", "can_detach_child_file_system" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_file_system got unknown kwargs: {extra_kwargs!r}") @@ -2774,9 +2774,9 @@ def delete_file_system(self, file_system_id, **kwargs): "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2784,7 +2784,7 @@ def delete_file_system(self, file_system_id, **kwargs): "isLockOverride": kwargs.get("is_lock_override", missing), "canDetachChildFileSystem": kwargs.get("can_detach_child_file_system", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2792,7 +2792,7 @@ def delete_file_system(self, file_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2883,7 +2883,7 @@ def delete_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwa "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_filesystem_snapshot_policy got unknown kwargs: {extra_kwargs!r}") @@ -2892,16 +2892,16 @@ def delete_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwa "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2909,7 +2909,7 @@ def delete_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3001,7 +3001,7 @@ def delete_mount_target(self, mount_target_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -3010,16 +3010,16 @@ def delete_mount_target(self, mount_target_id, **kwargs): "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3027,7 +3027,7 @@ def delete_mount_target(self, mount_target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3118,7 +3118,7 @@ def delete_outbound_connector(self, outbound_connector_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_outbound_connector got unknown kwargs: {extra_kwargs!r}") @@ -3127,16 +3127,16 @@ def delete_outbound_connector(self, outbound_connector_id, **kwargs): "outboundConnectorId": outbound_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3144,7 +3144,7 @@ def delete_outbound_connector(self, outbound_connector_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3234,7 +3234,7 @@ def delete_quota_rule(self, file_system_id, quota_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_quota_rule got unknown kwargs: {extra_kwargs!r}") @@ -3244,9 +3244,9 @@ def delete_quota_rule(self, file_system_id, quota_rule_id, **kwargs): "quotaRuleId": quota_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3256,7 +3256,7 @@ def delete_quota_rule(self, file_system_id, quota_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3354,7 +3354,7 @@ def delete_replication(self, replication_id, **kwargs): "delete_mode", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_replication got unknown kwargs: {extra_kwargs!r}") @@ -3363,9 +3363,9 @@ def delete_replication(self, replication_id, **kwargs): "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3380,7 +3380,7 @@ def delete_replication(self, replication_id, **kwargs): "deleteMode": kwargs.get("delete_mode", missing), "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3388,7 +3388,7 @@ def delete_replication(self, replication_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3482,7 +3482,7 @@ def delete_replication_target(self, replication_target_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_replication_target got unknown kwargs: {extra_kwargs!r}") @@ -3491,16 +3491,16 @@ def delete_replication_target(self, replication_target_id, **kwargs): "replicationTargetId": replication_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3508,7 +3508,7 @@ def delete_replication_target(self, replication_target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3599,7 +3599,7 @@ def delete_snapshot(self, snapshot_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -3608,16 +3608,16 @@ def delete_snapshot(self, snapshot_id, **kwargs): "snapshotId": snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3625,7 +3625,7 @@ def delete_snapshot(self, snapshot_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3712,7 +3712,7 @@ def detach_clone(self, file_system_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_clone got unknown kwargs: {extra_kwargs!r}") @@ -3721,9 +3721,9 @@ def detach_clone(self, file_system_id, **kwargs): "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3733,7 +3733,7 @@ def detach_clone(self, file_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3822,7 +3822,7 @@ def estimate_replication(self, file_system_id, **kwargs): "opc_request_id", "change_rate_in_m_bps" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"estimate_replication got unknown kwargs: {extra_kwargs!r}") @@ -3831,16 +3831,16 @@ def estimate_replication(self, file_system_id, **kwargs): "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "changeRateInMBps": kwargs.get("change_rate_in_m_bps", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3848,7 +3848,7 @@ def estimate_replication(self, file_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3929,7 +3929,7 @@ def get_export(self, export_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_export got unknown kwargs: {extra_kwargs!r}") @@ -3938,9 +3938,9 @@ def get_export(self, export_id, **kwargs): "exportId": export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3949,7 +3949,7 @@ def get_export(self, export_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4028,7 +4028,7 @@ def get_export_set(self, export_set_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_export_set got unknown kwargs: {extra_kwargs!r}") @@ -4037,9 +4037,9 @@ def get_export_set(self, export_set_id, **kwargs): "exportSetId": export_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4048,7 +4048,7 @@ def get_export_set(self, export_set_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4127,7 +4127,7 @@ def get_file_system(self, file_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_file_system got unknown kwargs: {extra_kwargs!r}") @@ -4136,9 +4136,9 @@ def get_file_system(self, file_system_id, **kwargs): "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4147,7 +4147,7 @@ def get_file_system(self, file_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4226,7 +4226,7 @@ def get_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_filesystem_snapshot_policy got unknown kwargs: {extra_kwargs!r}") @@ -4235,9 +4235,9 @@ def get_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwargs "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4246,7 +4246,7 @@ def get_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4325,7 +4325,7 @@ def get_mount_target(self, mount_target_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -4334,9 +4334,9 @@ def get_mount_target(self, mount_target_id, **kwargs): "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4345,7 +4345,7 @@ def get_mount_target(self, mount_target_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4424,7 +4424,7 @@ def get_outbound_connector(self, outbound_connector_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_outbound_connector got unknown kwargs: {extra_kwargs!r}") @@ -4433,9 +4433,9 @@ def get_outbound_connector(self, outbound_connector_id, **kwargs): "outboundConnectorId": outbound_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4444,7 +4444,7 @@ def get_outbound_connector(self, outbound_connector_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4534,7 +4534,7 @@ def get_quota_rule(self, file_system_id, quota_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_quota_rule got unknown kwargs: {extra_kwargs!r}") @@ -4544,9 +4544,9 @@ def get_quota_rule(self, file_system_id, quota_rule_id, **kwargs): "quotaRuleId": quota_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4556,7 +4556,7 @@ def get_quota_rule(self, file_system_id, quota_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4635,7 +4635,7 @@ def get_replication(self, replication_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replication got unknown kwargs: {extra_kwargs!r}") @@ -4644,9 +4644,9 @@ def get_replication(self, replication_id, **kwargs): "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4655,7 +4655,7 @@ def get_replication(self, replication_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4734,7 +4734,7 @@ def get_replication_target(self, replication_target_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replication_target got unknown kwargs: {extra_kwargs!r}") @@ -4743,9 +4743,9 @@ def get_replication_target(self, replication_target_id, **kwargs): "replicationTargetId": replication_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4754,7 +4754,7 @@ def get_replication_target(self, replication_target_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4833,7 +4833,7 @@ def get_snapshot(self, snapshot_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -4842,9 +4842,9 @@ def get_snapshot(self, snapshot_id, **kwargs): "snapshotId": snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4853,7 +4853,7 @@ def get_snapshot(self, snapshot_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4997,7 +4997,7 @@ def list_export_sets(self, compartment_id, availability_domain, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_export_sets got unknown kwargs: {extra_kwargs!r}") @@ -5034,14 +5034,14 @@ def list_export_sets(self, compartment_id, availability_domain, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5189,7 +5189,7 @@ def list_exports(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exports got unknown kwargs: {extra_kwargs!r}") @@ -5226,14 +5226,14 @@ def list_exports(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5399,7 +5399,7 @@ def list_file_systems(self, compartment_id, availability_domain, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_file_systems got unknown kwargs: {extra_kwargs!r}") @@ -5439,14 +5439,14 @@ def list_file_systems(self, compartment_id, availability_domain, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5590,7 +5590,7 @@ def list_filesystem_snapshot_policies(self, compartment_id, availability_domain, "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_filesystem_snapshot_policies got unknown kwargs: {extra_kwargs!r}") @@ -5627,14 +5627,14 @@ def list_filesystem_snapshot_policies(self, compartment_id, availability_domain, "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5784,7 +5784,7 @@ def list_mount_targets(self, compartment_id, availability_domain, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mount_targets got unknown kwargs: {extra_kwargs!r}") @@ -5822,14 +5822,14 @@ def list_mount_targets(self, compartment_id, availability_domain, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5973,7 +5973,7 @@ def list_outbound_connectors(self, compartment_id, availability_domain, **kwargs "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_outbound_connectors got unknown kwargs: {extra_kwargs!r}") @@ -6010,14 +6010,14 @@ def list_outbound_connectors(self, compartment_id, availability_domain, **kwargs "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6152,7 +6152,7 @@ def list_quota_rules(self, file_system_id, principal_type, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_quota_rules got unknown kwargs: {extra_kwargs!r}") @@ -6161,9 +6161,9 @@ def list_quota_rules(self, file_system_id, principal_type, **kwargs): "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6188,7 +6188,7 @@ def list_quota_rules(self, file_system_id, principal_type, **kwargs): "areViolatorsOnly": kwargs.get("are_violators_only", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6196,7 +6196,7 @@ def list_quota_rules(self, file_system_id, principal_type, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6342,7 +6342,7 @@ def list_replication_targets(self, compartment_id, availability_domain, **kwargs "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_replication_targets got unknown kwargs: {extra_kwargs!r}") @@ -6379,14 +6379,14 @@ def list_replication_targets(self, compartment_id, availability_domain, **kwargs "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6536,7 +6536,7 @@ def list_replications(self, compartment_id, availability_domain, **kwargs): "opc_request_id", "file_system_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_replications got unknown kwargs: {extra_kwargs!r}") @@ -6574,14 +6574,14 @@ def list_replications(self, compartment_id, availability_domain, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "fileSystemId": kwargs.get("file_system_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6725,7 +6725,7 @@ def list_snapshots(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -6754,14 +6754,14 @@ def list_snapshots(self, **kwargs): "fileSystemId": kwargs.get("file_system_id", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6857,7 +6857,7 @@ def pause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwar "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"pause_filesystem_snapshot_policy got unknown kwargs: {extra_kwargs!r}") @@ -6866,16 +6866,16 @@ def pause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwar "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6883,7 +6883,7 @@ def pause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6975,7 +6975,7 @@ def remove_export_lock(self, export_id, remove_export_lock_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_export_lock got unknown kwargs: {extra_kwargs!r}") @@ -6984,9 +6984,9 @@ def remove_export_lock(self, export_id, remove_export_lock_details, **kwargs): "exportId": export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6996,7 +6996,7 @@ def remove_export_lock(self, export_id, remove_export_lock_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7088,7 +7088,7 @@ def remove_file_system_lock(self, file_system_id, remove_file_system_lock_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_file_system_lock got unknown kwargs: {extra_kwargs!r}") @@ -7097,9 +7097,9 @@ def remove_file_system_lock(self, file_system_id, remove_file_system_lock_detail "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7109,7 +7109,7 @@ def remove_file_system_lock(self, file_system_id, remove_file_system_lock_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7201,7 +7201,7 @@ def remove_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_filesystem_snapshot_policy_lock got unknown kwargs: {extra_kwargs!r}") @@ -7210,9 +7210,9 @@ def remove_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7222,7 +7222,7 @@ def remove_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7314,7 +7314,7 @@ def remove_mount_target_lock(self, mount_target_id, remove_mount_target_lock_det "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_mount_target_lock got unknown kwargs: {extra_kwargs!r}") @@ -7323,9 +7323,9 @@ def remove_mount_target_lock(self, mount_target_id, remove_mount_target_lock_det "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7335,7 +7335,7 @@ def remove_mount_target_lock(self, mount_target_id, remove_mount_target_lock_det "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7427,7 +7427,7 @@ def remove_outbound_connector_lock(self, outbound_connector_id, remove_outbound_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_outbound_connector_lock got unknown kwargs: {extra_kwargs!r}") @@ -7436,9 +7436,9 @@ def remove_outbound_connector_lock(self, outbound_connector_id, remove_outbound_ "outboundConnectorId": outbound_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7448,7 +7448,7 @@ def remove_outbound_connector_lock(self, outbound_connector_id, remove_outbound_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7540,7 +7540,7 @@ def remove_replication_lock(self, replication_id, remove_replication_lock_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_replication_lock got unknown kwargs: {extra_kwargs!r}") @@ -7549,9 +7549,9 @@ def remove_replication_lock(self, replication_id, remove_replication_lock_detail "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7561,7 +7561,7 @@ def remove_replication_lock(self, replication_id, remove_replication_lock_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7653,7 +7653,7 @@ def remove_snapshot_lock(self, snapshot_id, remove_snapshot_lock_details, **kwar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_snapshot_lock got unknown kwargs: {extra_kwargs!r}") @@ -7662,9 +7662,9 @@ def remove_snapshot_lock(self, snapshot_id, remove_snapshot_lock_details, **kwar "snapshotId": snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7674,7 +7674,7 @@ def remove_snapshot_lock(self, snapshot_id, remove_snapshot_lock_details, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7766,7 +7766,7 @@ def schedule_downgrade_shape_mount_target(self, mount_target_id, schedule_downgr "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_downgrade_shape_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -7775,9 +7775,9 @@ def schedule_downgrade_shape_mount_target(self, mount_target_id, schedule_downgr "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7787,7 +7787,7 @@ def schedule_downgrade_shape_mount_target(self, mount_target_id, schedule_downgr "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7889,7 +7889,7 @@ def toggle_quota_rules(self, file_system_id, toggle_quota_rules_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"toggle_quota_rules got unknown kwargs: {extra_kwargs!r}") @@ -7898,9 +7898,9 @@ def toggle_quota_rules(self, file_system_id, toggle_quota_rules_details, **kwarg "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7911,7 +7911,7 @@ def toggle_quota_rules(self, file_system_id, toggle_quota_rules_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8007,7 +8007,7 @@ def unpause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kw "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unpause_filesystem_snapshot_policy got unknown kwargs: {extra_kwargs!r}") @@ -8016,16 +8016,16 @@ def unpause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kw "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8033,7 +8033,7 @@ def unpause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8129,7 +8129,7 @@ def update_export(self, export_id, update_export_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_export got unknown kwargs: {extra_kwargs!r}") @@ -8138,16 +8138,16 @@ def update_export(self, export_id, update_export_details, **kwargs): "exportId": export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8155,7 +8155,7 @@ def update_export(self, export_id, update_export_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8249,7 +8249,7 @@ def update_export_set(self, export_set_id, update_export_set_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_export_set got unknown kwargs: {extra_kwargs!r}") @@ -8258,9 +8258,9 @@ def update_export_set(self, export_set_id, update_export_set_details, **kwargs): "exportSetId": export_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8270,7 +8270,7 @@ def update_export_set(self, export_set_id, update_export_set_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8367,7 +8367,7 @@ def update_file_system(self, file_system_id, update_file_system_details, **kwarg "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_file_system got unknown kwargs: {extra_kwargs!r}") @@ -8376,16 +8376,16 @@ def update_file_system(self, file_system_id, update_file_system_details, **kwarg "fileSystemId": file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8393,7 +8393,7 @@ def update_file_system(self, file_system_id, update_file_system_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8491,7 +8491,7 @@ def update_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, updat "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_filesystem_snapshot_policy got unknown kwargs: {extra_kwargs!r}") @@ -8500,16 +8500,16 @@ def update_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, updat "filesystemSnapshotPolicyId": filesystem_snapshot_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8517,7 +8517,7 @@ def update_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, updat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8615,7 +8615,7 @@ def update_mount_target(self, mount_target_id, update_mount_target_details, **kw "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -8624,16 +8624,16 @@ def update_mount_target(self, mount_target_id, update_mount_target_details, **kw "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8641,7 +8641,7 @@ def update_mount_target(self, mount_target_id, update_mount_target_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8739,7 +8739,7 @@ def update_outbound_connector(self, outbound_connector_id, update_outbound_conne "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_outbound_connector got unknown kwargs: {extra_kwargs!r}") @@ -8748,16 +8748,16 @@ def update_outbound_connector(self, outbound_connector_id, update_outbound_conne "outboundConnectorId": outbound_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8765,7 +8765,7 @@ def update_outbound_connector(self, outbound_connector_id, update_outbound_conne "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8862,7 +8862,7 @@ def update_quota_rule(self, update_quota_rule_details, file_system_id, quota_rul "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_quota_rule got unknown kwargs: {extra_kwargs!r}") @@ -8872,9 +8872,9 @@ def update_quota_rule(self, update_quota_rule_details, file_system_id, quota_rul "quotaRuleId": quota_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8884,7 +8884,7 @@ def update_quota_rule(self, update_quota_rule_details, file_system_id, quota_rul "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8980,7 +8980,7 @@ def update_replication(self, replication_id, update_replication_details, **kwarg "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_replication got unknown kwargs: {extra_kwargs!r}") @@ -8989,16 +8989,16 @@ def update_replication(self, replication_id, update_replication_details, **kwarg "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9006,7 +9006,7 @@ def update_replication(self, replication_id, update_replication_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9104,7 +9104,7 @@ def update_snapshot(self, snapshot_id, update_snapshot_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_snapshot got unknown kwargs: {extra_kwargs!r}") @@ -9113,16 +9113,16 @@ def update_snapshot(self, snapshot_id, update_snapshot_details, **kwargs): "snapshotId": snapshot_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9130,7 +9130,7 @@ def update_snapshot(self, snapshot_id, update_snapshot_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9224,7 +9224,7 @@ def upgrade_shape_mount_target(self, mount_target_id, upgrade_shape_mount_target "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_shape_mount_target got unknown kwargs: {extra_kwargs!r}") @@ -9233,9 +9233,9 @@ def upgrade_shape_mount_target(self, mount_target_id, upgrade_shape_mount_target "mountTargetId": mount_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9245,7 +9245,7 @@ def upgrade_shape_mount_target(self, mount_target_id, upgrade_shape_mount_target "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9326,7 +9326,7 @@ def validate_key_tabs(self, validate_key_tabs_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_key_tabs got unknown kwargs: {extra_kwargs!r}") @@ -9336,7 +9336,7 @@ def validate_key_tabs(self, validate_key_tabs_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py b/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py index 3598d36de..5f328664c 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py @@ -182,7 +182,7 @@ def change_platform_configuration_compartment(self, platform_configuration_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_platform_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_platform_configuration_compartment(self, platform_configuration_id, c "platformConfigurationId": platform_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_platform_configuration_compartment(self, platform_configuration_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -305,7 +305,7 @@ def change_property_compartment(self, property_id, change_property_compartment_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_property_compartment got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def change_property_compartment(self, property_id, change_property_compartment_d "propertyId": property_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -327,7 +327,7 @@ def change_property_compartment(self, property_id, change_property_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -414,7 +414,7 @@ def create_compliance_policy_rule(self, create_compliance_policy_rule_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -425,7 +425,7 @@ def create_compliance_policy_rule(self, create_compliance_policy_rule_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def create_onboarding(self, create_onboarding_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_onboarding got unknown kwargs: {extra_kwargs!r}") @@ -524,7 +524,7 @@ def create_onboarding(self, create_onboarding_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -611,7 +611,7 @@ def create_platform_configuration(self, create_platform_configuration_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_platform_configuration got unknown kwargs: {extra_kwargs!r}") @@ -622,7 +622,7 @@ def create_platform_configuration(self, create_platform_configuration_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -709,7 +709,7 @@ def create_property(self, create_property_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_property got unknown kwargs: {extra_kwargs!r}") @@ -720,7 +720,7 @@ def create_property(self, create_property_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -807,7 +807,7 @@ def delete_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -816,9 +816,9 @@ def delete_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): "compliancePolicyRuleId": compliance_policy_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -828,7 +828,7 @@ def delete_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -912,7 +912,7 @@ def delete_onboarding(self, onboarding_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_onboarding got unknown kwargs: {extra_kwargs!r}") @@ -921,9 +921,9 @@ def delete_onboarding(self, onboarding_id, **kwargs): "onboardingId": onboarding_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -933,7 +933,7 @@ def delete_onboarding(self, onboarding_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1017,7 +1017,7 @@ def delete_platform_configuration(self, platform_configuration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_platform_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1026,9 +1026,9 @@ def delete_platform_configuration(self, platform_configuration_id, **kwargs): "platformConfigurationId": platform_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1038,7 +1038,7 @@ def delete_platform_configuration(self, platform_configuration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1122,7 +1122,7 @@ def delete_property(self, property_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_property got unknown kwargs: {extra_kwargs!r}") @@ -1131,9 +1131,9 @@ def delete_property(self, property_id, **kwargs): "propertyId": property_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1143,7 +1143,7 @@ def delete_property(self, property_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1238,7 +1238,7 @@ def enable_latest_policy(self, onboarding_id, enable_latest_policy_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_latest_policy got unknown kwargs: {extra_kwargs!r}") @@ -1247,9 +1247,9 @@ def enable_latest_policy(self, onboarding_id, enable_latest_policy_details, **kw "onboardingId": onboarding_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1260,7 +1260,7 @@ def enable_latest_policy(self, onboarding_id, enable_latest_policy_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1339,7 +1339,7 @@ def get_compliance_policy(self, compliance_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compliance_policy got unknown kwargs: {extra_kwargs!r}") @@ -1348,9 +1348,9 @@ def get_compliance_policy(self, compliance_policy_id, **kwargs): "compliancePolicyId": compliance_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1359,7 +1359,7 @@ def get_compliance_policy(self, compliance_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1437,7 +1437,7 @@ def get_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -1446,9 +1446,9 @@ def get_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): "compliancePolicyRuleId": compliance_policy_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1457,7 +1457,7 @@ def get_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1535,7 +1535,7 @@ def get_onboarding(self, onboarding_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_onboarding got unknown kwargs: {extra_kwargs!r}") @@ -1544,9 +1544,9 @@ def get_onboarding(self, onboarding_id, **kwargs): "onboardingId": onboarding_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1555,7 +1555,7 @@ def get_onboarding(self, onboarding_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1633,7 +1633,7 @@ def get_platform_configuration(self, platform_configuration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_platform_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1642,9 +1642,9 @@ def get_platform_configuration(self, platform_configuration_id, **kwargs): "platformConfigurationId": platform_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1653,7 +1653,7 @@ def get_platform_configuration(self, platform_configuration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1731,7 +1731,7 @@ def get_property(self, property_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_property got unknown kwargs: {extra_kwargs!r}") @@ -1740,9 +1740,9 @@ def get_property(self, property_id, **kwargs): "propertyId": property_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1751,7 +1751,7 @@ def get_property(self, property_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1874,7 +1874,7 @@ def list_compliance_policies(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compliance_policies got unknown kwargs: {extra_kwargs!r}") @@ -1918,14 +1918,14 @@ def list_compliance_policies(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2049,7 +2049,7 @@ def list_compliance_policy_rules(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compliance_policy_rules got unknown kwargs: {extra_kwargs!r}") @@ -2087,14 +2087,14 @@ def list_compliance_policy_rules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2192,7 +2192,7 @@ def list_onboarding_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_onboarding_policies got unknown kwargs: {extra_kwargs!r}") @@ -2218,14 +2218,14 @@ def list_onboarding_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2337,7 +2337,7 @@ def list_onboardings(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_onboardings got unknown kwargs: {extra_kwargs!r}") @@ -2372,14 +2372,14 @@ def list_onboardings(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2512,7 +2512,7 @@ def list_platform_configurations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_platform_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2565,14 +2565,14 @@ def list_platform_configurations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2700,7 +2700,7 @@ def list_properties(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_properties got unknown kwargs: {extra_kwargs!r}") @@ -2752,14 +2752,14 @@ def list_properties(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2856,7 +2856,7 @@ def manage_settings(self, onboarding_id, manage_settings_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"manage_settings got unknown kwargs: {extra_kwargs!r}") @@ -2865,9 +2865,9 @@ def manage_settings(self, onboarding_id, manage_settings_details, **kwargs): "onboardingId": onboarding_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2878,7 +2878,7 @@ def manage_settings(self, onboarding_id, manage_settings_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2968,7 +2968,7 @@ def update_compliance_policy_rule(self, compliance_policy_rule_id, update_compli "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}") @@ -2977,9 +2977,9 @@ def update_compliance_policy_rule(self, compliance_policy_rule_id, update_compli "compliancePolicyRuleId": compliance_policy_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2989,7 +2989,7 @@ def update_compliance_policy_rule(self, compliance_policy_rule_id, update_compli "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3078,7 +3078,7 @@ def update_onboarding(self, onboarding_id, update_onboarding_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_onboarding got unknown kwargs: {extra_kwargs!r}") @@ -3087,9 +3087,9 @@ def update_onboarding(self, onboarding_id, update_onboarding_details, **kwargs): "onboardingId": onboarding_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3099,7 +3099,7 @@ def update_onboarding(self, onboarding_id, update_onboarding_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3188,7 +3188,7 @@ def update_platform_configuration(self, platform_configuration_id, update_platfo "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_platform_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3197,9 +3197,9 @@ def update_platform_configuration(self, platform_configuration_id, update_platfo "platformConfigurationId": platform_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3209,7 +3209,7 @@ def update_platform_configuration(self, platform_configuration_id, update_platfo "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3298,7 +3298,7 @@ def update_property(self, property_id, update_property_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_property got unknown kwargs: {extra_kwargs!r}") @@ -3307,9 +3307,9 @@ def update_property(self, property_id, update_property_details, **kwargs): "propertyId": property_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3319,7 +3319,7 @@ def update_property(self, property_id, update_property_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py b/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py index 9505b3b5e..52478a193 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py @@ -184,7 +184,7 @@ def change_catalog_item_compartment(self, catalog_item_id, change_catalog_item_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_catalog_item_compartment got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def change_catalog_item_compartment(self, catalog_item_id, change_catalog_item_c "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def change_catalog_item_compartment(self, catalog_item_id, change_catalog_item_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -309,7 +309,7 @@ def clone_catalog_item(self, catalog_item_id, clone_catalog_item_details, **kwar "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clone_catalog_item got unknown kwargs: {extra_kwargs!r}") @@ -318,9 +318,9 @@ def clone_catalog_item(self, catalog_item_id, clone_catalog_item_details, **kwar "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -331,7 +331,7 @@ def clone_catalog_item(self, catalog_item_id, clone_catalog_item_details, **kwar "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -433,7 +433,7 @@ def configure_catalog_item(self, catalog_item_id, configure_catalog_item_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_catalog_item got unknown kwargs: {extra_kwargs!r}") @@ -442,9 +442,9 @@ def configure_catalog_item(self, catalog_item_id, configure_catalog_item_details "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -455,7 +455,7 @@ def configure_catalog_item(self, catalog_item_id, configure_catalog_item_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -544,7 +544,7 @@ def create_catalog_item(self, create_catalog_item_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_catalog_item got unknown kwargs: {extra_kwargs!r}") @@ -555,7 +555,7 @@ def create_catalog_item(self, create_catalog_item_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -644,7 +644,7 @@ def delete_catalog_item(self, catalog_item_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_catalog_item got unknown kwargs: {extra_kwargs!r}") @@ -653,9 +653,9 @@ def delete_catalog_item(self, catalog_item_id, **kwargs): "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -665,7 +665,7 @@ def delete_catalog_item(self, catalog_item_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -743,7 +743,7 @@ def get_catalog_item(self, catalog_item_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_catalog_item got unknown kwargs: {extra_kwargs!r}") @@ -752,9 +752,9 @@ def get_catalog_item(self, catalog_item_id, **kwargs): "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -763,7 +763,7 @@ def get_catalog_item(self, catalog_item_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -843,7 +843,7 @@ def get_catalog_item_variables_definition(self, catalog_item_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_catalog_item_variables_definition got unknown kwargs: {extra_kwargs!r}") @@ -852,9 +852,9 @@ def get_catalog_item_variables_definition(self, catalog_item_id, **kwargs): "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -863,7 +863,7 @@ def get_catalog_item_variables_definition(self, catalog_item_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1000,7 +1000,7 @@ def list_catalog_items(self, compartment_id, **kwargs): "package_type", "should_list_public_items" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_catalog_items got unknown kwargs: {extra_kwargs!r}") @@ -1054,14 +1054,14 @@ def list_catalog_items(self, compartment_id, **kwargs): "packageType": kwargs.get("package_type", missing), "shouldListPublicItems": kwargs.get("should_list_public_items", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1152,7 +1152,7 @@ def update_catalog_item(self, catalog_item_id, update_catalog_item_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_catalog_item got unknown kwargs: {extra_kwargs!r}") @@ -1161,9 +1161,9 @@ def update_catalog_item(self, catalog_item_id, update_catalog_item_details, **kw "catalogItemId": catalog_item_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1173,7 +1173,7 @@ def update_catalog_item(self, catalog_item_id, update_catalog_item_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_client.py b/src/oci/fleet_apps_management/fleet_apps_management_client.py index cbb0484e7..0d771edb3 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_client.py @@ -182,7 +182,7 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fleet_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def check_resource_tagging(self, check_resource_tagging_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"check_resource_tagging got unknown kwargs: {extra_kwargs!r}") @@ -302,7 +302,7 @@ def check_resource_tagging(self, check_resource_tagging_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -393,7 +393,7 @@ def confirm_targets(self, confirm_targets_details, fleet_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"confirm_targets got unknown kwargs: {extra_kwargs!r}") @@ -402,9 +402,9 @@ def confirm_targets(self, confirm_targets_details, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -414,7 +414,7 @@ def confirm_targets(self, confirm_targets_details, fleet_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -501,7 +501,7 @@ def create_fleet(self, create_fleet_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fleet got unknown kwargs: {extra_kwargs!r}") @@ -512,7 +512,7 @@ def create_fleet(self, create_fleet_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -602,7 +602,7 @@ def create_fleet_credential(self, create_fleet_credential_details, fleet_id, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fleet_credential got unknown kwargs: {extra_kwargs!r}") @@ -611,9 +611,9 @@ def create_fleet_credential(self, create_fleet_credential_details, fleet_id, **k "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -623,7 +623,7 @@ def create_fleet_credential(self, create_fleet_credential_details, fleet_id, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -715,7 +715,7 @@ def create_fleet_property(self, create_fleet_property_details, fleet_id, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fleet_property got unknown kwargs: {extra_kwargs!r}") @@ -724,9 +724,9 @@ def create_fleet_property(self, create_fleet_property_details, fleet_id, **kwarg "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -736,7 +736,7 @@ def create_fleet_property(self, create_fleet_property_details, fleet_id, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -828,7 +828,7 @@ def create_fleet_resource(self, create_fleet_resource_details, fleet_id, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fleet_resource got unknown kwargs: {extra_kwargs!r}") @@ -837,9 +837,9 @@ def create_fleet_resource(self, create_fleet_resource_details, fleet_id, **kwarg "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -849,7 +849,7 @@ def create_fleet_resource(self, create_fleet_resource_details, fleet_id, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -938,7 +938,7 @@ def delete_fleet(self, fleet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fleet got unknown kwargs: {extra_kwargs!r}") @@ -947,9 +947,9 @@ def delete_fleet(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -959,7 +959,7 @@ def delete_fleet(self, fleet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1046,7 +1046,7 @@ def delete_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fleet_credential got unknown kwargs: {extra_kwargs!r}") @@ -1056,9 +1056,9 @@ def delete_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1068,7 +1068,7 @@ def delete_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1155,7 +1155,7 @@ def delete_fleet_property(self, fleet_property_id, fleet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fleet_property got unknown kwargs: {extra_kwargs!r}") @@ -1165,9 +1165,9 @@ def delete_fleet_property(self, fleet_property_id, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1177,7 +1177,7 @@ def delete_fleet_property(self, fleet_property_id, fleet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1264,7 +1264,7 @@ def delete_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fleet_resource got unknown kwargs: {extra_kwargs!r}") @@ -1274,9 +1274,9 @@ def delete_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1286,7 +1286,7 @@ def delete_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1373,7 +1373,7 @@ def generate_compliance_report(self, generate_compliance_report_details, fleet_i "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_compliance_report got unknown kwargs: {extra_kwargs!r}") @@ -1382,9 +1382,9 @@ def generate_compliance_report(self, generate_compliance_report_details, fleet_i "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1394,7 +1394,7 @@ def generate_compliance_report(self, generate_compliance_report_details, fleet_i "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1473,7 +1473,7 @@ def get_compliance(self, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compliance got unknown kwargs: {extra_kwargs!r}") @@ -1482,9 +1482,9 @@ def get_compliance(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1493,7 +1493,7 @@ def get_compliance(self, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1574,7 +1574,7 @@ def get_compliance_report(self, fleet_id, compliance_report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compliance_report got unknown kwargs: {extra_kwargs!r}") @@ -1584,9 +1584,9 @@ def get_compliance_report(self, fleet_id, compliance_report_id, **kwargs): "complianceReportId": compliance_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1595,7 +1595,7 @@ def get_compliance_report(self, fleet_id, compliance_report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1673,7 +1673,7 @@ def get_fleet(self, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet got unknown kwargs: {extra_kwargs!r}") @@ -1682,9 +1682,9 @@ def get_fleet(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1693,7 +1693,7 @@ def get_fleet(self, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1774,7 +1774,7 @@ def get_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet_credential got unknown kwargs: {extra_kwargs!r}") @@ -1784,9 +1784,9 @@ def get_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1795,7 +1795,7 @@ def get_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1876,7 +1876,7 @@ def get_fleet_property(self, fleet_property_id, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet_property got unknown kwargs: {extra_kwargs!r}") @@ -1886,9 +1886,9 @@ def get_fleet_property(self, fleet_property_id, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1897,7 +1897,7 @@ def get_fleet_property(self, fleet_property_id, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1978,7 +1978,7 @@ def get_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet_resource got unknown kwargs: {extra_kwargs!r}") @@ -1988,9 +1988,9 @@ def get_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1999,7 +1999,7 @@ def get_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2106,7 +2106,7 @@ def list_announcements(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_announcements got unknown kwargs: {extra_kwargs!r}") @@ -2134,14 +2134,14 @@ def list_announcements(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2267,7 +2267,7 @@ def list_fleet_credentials(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_credentials got unknown kwargs: {extra_kwargs!r}") @@ -2276,9 +2276,9 @@ def list_fleet_credentials(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2322,14 +2322,14 @@ def list_fleet_credentials(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2446,7 +2446,7 @@ def list_fleet_products(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_products got unknown kwargs: {extra_kwargs!r}") @@ -2455,9 +2455,9 @@ def list_fleet_products(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2485,14 +2485,14 @@ def list_fleet_products(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2606,7 +2606,7 @@ def list_fleet_properties(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_properties got unknown kwargs: {extra_kwargs!r}") @@ -2615,9 +2615,9 @@ def list_fleet_properties(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2651,14 +2651,14 @@ def list_fleet_properties(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2776,7 +2776,7 @@ def list_fleet_resources(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_resources got unknown kwargs: {extra_kwargs!r}") @@ -2785,9 +2785,9 @@ def list_fleet_resources(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2822,14 +2822,14 @@ def list_fleet_resources(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2951,7 +2951,7 @@ def list_fleet_targets(self, fleet_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_targets got unknown kwargs: {extra_kwargs!r}") @@ -2960,9 +2960,9 @@ def list_fleet_targets(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2998,14 +2998,14 @@ def list_fleet_targets(self, fleet_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3141,7 +3141,7 @@ def list_fleets(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleets got unknown kwargs: {extra_kwargs!r}") @@ -3188,14 +3188,14 @@ def list_fleets(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3334,7 +3334,7 @@ def list_inventory_resources(self, compartment_id, resource_compartment_id, **kw "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_inventory_resources got unknown kwargs: {extra_kwargs!r}") @@ -3368,14 +3368,14 @@ def list_inventory_resources(self, compartment_id, resource_compartment_id, **kw "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3482,7 +3482,7 @@ def list_targets(self, fleet_id, **kwargs): "opc_request_id", "is_confirmed_targets" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_targets got unknown kwargs: {extra_kwargs!r}") @@ -3491,9 +3491,9 @@ def list_targets(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3519,14 +3519,14 @@ def list_targets(self, fleet_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "isConfirmedTargets": kwargs.get("is_confirmed_targets", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3617,7 +3617,7 @@ def request_resource_validation(self, request_resource_validation_details, fleet "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_resource_validation got unknown kwargs: {extra_kwargs!r}") @@ -3626,9 +3626,9 @@ def request_resource_validation(self, request_resource_validation_details, fleet "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3638,7 +3638,7 @@ def request_resource_validation(self, request_resource_validation_details, fleet "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3728,7 +3728,7 @@ def request_target_discovery(self, request_target_discovery_details, fleet_id, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_target_discovery got unknown kwargs: {extra_kwargs!r}") @@ -3737,9 +3737,9 @@ def request_target_discovery(self, request_target_discovery_details, fleet_id, * "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3749,7 +3749,7 @@ def request_target_discovery(self, request_target_discovery_details, fleet_id, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3839,7 +3839,7 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet got unknown kwargs: {extra_kwargs!r}") @@ -3848,9 +3848,9 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3860,7 +3860,7 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3954,7 +3954,7 @@ def update_fleet_credential(self, fleet_credential_id, fleet_id, update_fleet_cr "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet_credential got unknown kwargs: {extra_kwargs!r}") @@ -3964,9 +3964,9 @@ def update_fleet_credential(self, fleet_credential_id, fleet_id, update_fleet_cr "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3976,7 +3976,7 @@ def update_fleet_credential(self, fleet_credential_id, fleet_id, update_fleet_cr "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4068,7 +4068,7 @@ def update_fleet_property(self, fleet_property_id, fleet_id, update_fleet_proper "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet_property got unknown kwargs: {extra_kwargs!r}") @@ -4078,9 +4078,9 @@ def update_fleet_property(self, fleet_property_id, fleet_id, update_fleet_proper "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4090,7 +4090,7 @@ def update_fleet_property(self, fleet_property_id, fleet_id, update_fleet_proper "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4184,7 +4184,7 @@ def update_fleet_resource(self, fleet_resource_id, fleet_id, update_fleet_resour "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet_resource got unknown kwargs: {extra_kwargs!r}") @@ -4194,9 +4194,9 @@ def update_fleet_resource(self, fleet_resource_id, fleet_id, update_fleet_resour "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4206,7 +4206,7 @@ def update_fleet_resource(self, fleet_resource_id, fleet_id, update_fleet_resour "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py b/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py index a326d3855..8a68bc614 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py @@ -168,7 +168,7 @@ def create_maintenance_window(self, create_maintenance_window_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_maintenance_window(self, create_maintenance_window_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -266,7 +266,7 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -275,9 +275,9 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -287,7 +287,7 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -363,7 +363,7 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -372,9 +372,9 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -383,7 +383,7 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -503,7 +503,7 @@ def list_maintenance_windows(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_maintenance_windows got unknown kwargs: {extra_kwargs!r}") @@ -540,14 +540,14 @@ def list_maintenance_windows(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -636,7 +636,7 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -645,9 +645,9 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -657,7 +657,7 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py b/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py index d6239e0a0..0be58f56d 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py @@ -182,7 +182,7 @@ def change_patch_compartment(self, patch_id, change_patch_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_patch_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_patch_compartment(self, patch_id, change_patch_compartment_details, * "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_patch_compartment(self, patch_id, change_patch_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def create_patch(self, create_patch_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_patch got unknown kwargs: {extra_kwargs!r}") @@ -302,7 +302,7 @@ def create_patch(self, create_patch_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -389,7 +389,7 @@ def create_scheduler_definition(self, create_scheduler_definition_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduler_definition got unknown kwargs: {extra_kwargs!r}") @@ -400,7 +400,7 @@ def create_scheduler_definition(self, create_scheduler_definition_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -487,7 +487,7 @@ def delete_patch(self, patch_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_patch got unknown kwargs: {extra_kwargs!r}") @@ -496,9 +496,9 @@ def delete_patch(self, patch_id, **kwargs): "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -508,7 +508,7 @@ def delete_patch(self, patch_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -592,7 +592,7 @@ def delete_scheduler_definition(self, scheduler_definition_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduler_definition got unknown kwargs: {extra_kwargs!r}") @@ -601,9 +601,9 @@ def delete_scheduler_definition(self, scheduler_definition_id, **kwargs): "schedulerDefinitionId": scheduler_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -613,7 +613,7 @@ def delete_scheduler_definition(self, scheduler_definition_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -697,7 +697,7 @@ def delete_scheduler_job(self, scheduler_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduler_job got unknown kwargs: {extra_kwargs!r}") @@ -706,9 +706,9 @@ def delete_scheduler_job(self, scheduler_job_id, **kwargs): "schedulerJobId": scheduler_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -718,7 +718,7 @@ def delete_scheduler_job(self, scheduler_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -810,7 +810,7 @@ def export_compliance_report(self, export_compliance_report_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_compliance_report got unknown kwargs: {extra_kwargs!r}") @@ -822,7 +822,7 @@ def export_compliance_report(self, export_compliance_report_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -910,7 +910,7 @@ def get_execution(self, scheduler_job_id, job_activity_id, resource_id, executio "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_execution got unknown kwargs: {extra_kwargs!r}") @@ -922,9 +922,9 @@ def get_execution(self, scheduler_job_id, job_activity_id, resource_id, executio "executionId": execution_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -933,7 +933,7 @@ def get_execution(self, scheduler_job_id, job_activity_id, resource_id, executio "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1018,7 +1018,7 @@ def get_job_activity(self, scheduler_job_id, job_activity_id, **kwargs): "is_details_required", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_activity got unknown kwargs: {extra_kwargs!r}") @@ -1028,23 +1028,23 @@ def get_job_activity(self, scheduler_job_id, job_activity_id, **kwargs): "jobActivityId": job_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isDetailsRequired": kwargs.get("is_details_required", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1124,7 +1124,7 @@ def get_patch(self, patch_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_patch got unknown kwargs: {extra_kwargs!r}") @@ -1133,9 +1133,9 @@ def get_patch(self, patch_id, **kwargs): "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1144,7 +1144,7 @@ def get_patch(self, patch_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1222,7 +1222,7 @@ def get_scheduler_definition(self, scheduler_definition_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduler_definition got unknown kwargs: {extra_kwargs!r}") @@ -1231,9 +1231,9 @@ def get_scheduler_definition(self, scheduler_definition_id, **kwargs): "schedulerDefinitionId": scheduler_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1242,7 +1242,7 @@ def get_scheduler_definition(self, scheduler_definition_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1320,7 +1320,7 @@ def get_scheduler_job(self, scheduler_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduler_job got unknown kwargs: {extra_kwargs!r}") @@ -1329,9 +1329,9 @@ def get_scheduler_job(self, scheduler_job_id, **kwargs): "schedulerJobId": scheduler_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1340,7 +1340,7 @@ def get_scheduler_job(self, scheduler_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1467,7 +1467,7 @@ def list_compliance_records(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compliance_records got unknown kwargs: {extra_kwargs!r}") @@ -1500,14 +1500,14 @@ def list_compliance_records(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1627,7 +1627,7 @@ def list_executions(self, scheduler_job_id, job_activity_id, resource_id, **kwar "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_executions got unknown kwargs: {extra_kwargs!r}") @@ -1638,9 +1638,9 @@ def list_executions(self, scheduler_job_id, job_activity_id, resource_id, **kwar "resourceId": resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1668,14 +1668,14 @@ def list_executions(self, scheduler_job_id, job_activity_id, resource_id, **kwar "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1798,7 +1798,7 @@ def list_installed_patches(self, compartment_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_installed_patches got unknown kwargs: {extra_kwargs!r}") @@ -1836,14 +1836,14 @@ def list_installed_patches(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1958,7 +1958,7 @@ def list_inventory_records(self, compartment_id, **kwargs): "is_details_required", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_inventory_records got unknown kwargs: {extra_kwargs!r}") @@ -1988,14 +1988,14 @@ def list_inventory_records(self, compartment_id, **kwargs): "isDetailsRequired": kwargs.get("is_details_required", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2141,7 +2141,7 @@ def list_patches(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_patches got unknown kwargs: {extra_kwargs!r}") @@ -2191,14 +2191,14 @@ def list_patches(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2324,7 +2324,7 @@ def list_recommended_patches(self, compartment_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recommended_patches got unknown kwargs: {extra_kwargs!r}") @@ -2370,14 +2370,14 @@ def list_recommended_patches(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2479,7 +2479,7 @@ def list_report_metadata(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_report_metadata got unknown kwargs: {extra_kwargs!r}") @@ -2506,14 +2506,14 @@ def list_report_metadata(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2630,7 +2630,7 @@ def list_resources(self, scheduler_job_id, job_activity_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resources got unknown kwargs: {extra_kwargs!r}") @@ -2640,9 +2640,9 @@ def list_resources(self, scheduler_job_id, job_activity_id, **kwargs): "jobActivityId": job_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2670,14 +2670,14 @@ def list_resources(self, scheduler_job_id, job_activity_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2781,7 +2781,7 @@ def list_scheduled_fleets(self, scheduler_definition_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_fleets got unknown kwargs: {extra_kwargs!r}") @@ -2790,9 +2790,9 @@ def list_scheduled_fleets(self, scheduler_definition_id, **kwargs): "schedulerDefinitionId": scheduler_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2817,14 +2817,14 @@ def list_scheduled_fleets(self, scheduler_definition_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2970,7 +2970,7 @@ def list_scheduler_definitions(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduler_definitions got unknown kwargs: {extra_kwargs!r}") @@ -3013,14 +3013,14 @@ def list_scheduler_definitions(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3165,7 +3165,7 @@ def list_scheduler_executions(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduler_executions got unknown kwargs: {extra_kwargs!r}") @@ -3202,14 +3202,14 @@ def list_scheduler_executions(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3354,7 +3354,7 @@ def list_scheduler_jobs(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduler_jobs got unknown kwargs: {extra_kwargs!r}") @@ -3397,14 +3397,14 @@ def list_scheduler_jobs(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3521,7 +3521,7 @@ def list_steps(self, scheduler_job_id, job_activity_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_steps got unknown kwargs: {extra_kwargs!r}") @@ -3531,9 +3531,9 @@ def list_steps(self, scheduler_job_id, job_activity_id, **kwargs): "jobActivityId": job_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3561,14 +3561,14 @@ def list_steps(self, scheduler_job_id, job_activity_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3686,7 +3686,7 @@ def list_target_components(self, compartment_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_components got unknown kwargs: {extra_kwargs!r}") @@ -3723,14 +3723,14 @@ def list_target_components(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3842,7 +3842,7 @@ def list_target_properties(self, compartment_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_target_properties got unknown kwargs: {extra_kwargs!r}") @@ -3878,14 +3878,14 @@ def list_target_properties(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3982,7 +3982,7 @@ def manage_job_execution(self, manage_job_execution_details, scheduler_job_id, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"manage_job_execution got unknown kwargs: {extra_kwargs!r}") @@ -3991,9 +3991,9 @@ def manage_job_execution(self, manage_job_execution_details, scheduler_job_id, * "schedulerJobId": scheduler_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4004,7 +4004,7 @@ def manage_job_execution(self, manage_job_execution_details, scheduler_job_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4115,7 +4115,7 @@ def report(self, report_details, compartment_id, **kwargs): "page", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"report got unknown kwargs: {extra_kwargs!r}") @@ -4126,7 +4126,7 @@ def report(self, report_details, compartment_id, **kwargs): "page": kwargs.get("page", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -4135,7 +4135,7 @@ def report(self, report_details, compartment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4237,7 +4237,7 @@ def summarize_compliance_record_counts(self, **kwargs): "page", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_compliance_record_counts got unknown kwargs: {extra_kwargs!r}") @@ -4256,14 +4256,14 @@ def summarize_compliance_record_counts(self, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4362,7 +4362,7 @@ def summarize_managed_entity_counts(self, **kwargs): "page", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_managed_entity_counts got unknown kwargs: {extra_kwargs!r}") @@ -4381,14 +4381,14 @@ def summarize_managed_entity_counts(self, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4487,7 +4487,7 @@ def summarize_scheduler_job_counts(self, **kwargs): "page", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_scheduler_job_counts got unknown kwargs: {extra_kwargs!r}") @@ -4506,14 +4506,14 @@ def summarize_scheduler_job_counts(self, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4602,7 +4602,7 @@ def update_patch(self, patch_id, update_patch_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_patch got unknown kwargs: {extra_kwargs!r}") @@ -4611,9 +4611,9 @@ def update_patch(self, patch_id, update_patch_details, **kwargs): "patchId": patch_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4623,7 +4623,7 @@ def update_patch(self, patch_id, update_patch_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4712,7 +4712,7 @@ def update_scheduler_definition(self, scheduler_definition_id, update_scheduler_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduler_definition got unknown kwargs: {extra_kwargs!r}") @@ -4721,9 +4721,9 @@ def update_scheduler_definition(self, scheduler_definition_id, update_scheduler_ "schedulerDefinitionId": scheduler_definition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4733,7 +4733,7 @@ def update_scheduler_definition(self, scheduler_definition_id, update_scheduler_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4822,7 +4822,7 @@ def update_scheduler_job(self, scheduler_job_id, update_scheduler_job_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduler_job got unknown kwargs: {extra_kwargs!r}") @@ -4831,9 +4831,9 @@ def update_scheduler_job(self, scheduler_job_id, update_scheduler_job_details, * "schedulerJobId": scheduler_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4843,7 +4843,7 @@ def update_scheduler_job(self, scheduler_job_id, update_scheduler_job_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py b/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py index 2f11e0bcb..f76db93d7 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py @@ -176,7 +176,7 @@ def change_provision_compartment(self, provision_id, change_provision_compartmen "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_provision_compartment got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def change_provision_compartment(self, provision_id, change_provision_compartmen "provisionId": provision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -197,7 +197,7 @@ def change_provision_compartment(self, provision_id, change_provision_compartmen "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def create_provision(self, create_provision_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_provision got unknown kwargs: {extra_kwargs!r}") @@ -294,7 +294,7 @@ def create_provision(self, create_provision_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -383,7 +383,7 @@ def delete_provision(self, provision_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_provision got unknown kwargs: {extra_kwargs!r}") @@ -392,9 +392,9 @@ def delete_provision(self, provision_id, **kwargs): "provisionId": provision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -404,7 +404,7 @@ def delete_provision(self, provision_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -482,7 +482,7 @@ def get_provision(self, provision_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_provision got unknown kwargs: {extra_kwargs!r}") @@ -491,9 +491,9 @@ def get_provision(self, provision_id, **kwargs): "provisionId": provision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -502,7 +502,7 @@ def get_provision(self, provision_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -623,7 +623,7 @@ def list_provisions(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_provisions got unknown kwargs: {extra_kwargs!r}") @@ -660,14 +660,14 @@ def list_provisions(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -758,7 +758,7 @@ def update_provision(self, provision_id, update_provision_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_provision got unknown kwargs: {extra_kwargs!r}") @@ -767,9 +767,9 @@ def update_provision(self, provision_id, update_provision_details, **kwargs): "provisionId": provision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -779,7 +779,7 @@ def update_provision(self, provision_id, update_provision_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py b/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py index 2f80c03bf..698639612 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py @@ -182,7 +182,7 @@ def change_runbook_compartment(self, runbook_id, change_runbook_compartment_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_runbook_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_runbook_compartment(self, runbook_id, change_runbook_compartment_deta "runbookId": runbook_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_runbook_compartment(self, runbook_id, change_runbook_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -305,7 +305,7 @@ def change_task_record_compartment(self, task_record_id, change_task_record_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_task_record_compartment got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def change_task_record_compartment(self, task_record_id, change_task_record_comp "taskRecordId": task_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -327,7 +327,7 @@ def change_task_record_compartment(self, task_record_id, change_task_record_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -414,7 +414,7 @@ def create_runbook(self, create_runbook_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_runbook got unknown kwargs: {extra_kwargs!r}") @@ -425,7 +425,7 @@ def create_runbook(self, create_runbook_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -512,7 +512,7 @@ def create_runbook_version(self, create_runbook_version_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_runbook_version got unknown kwargs: {extra_kwargs!r}") @@ -523,7 +523,7 @@ def create_runbook_version(self, create_runbook_version_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -610,7 +610,7 @@ def create_task_record(self, create_task_record_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_task_record got unknown kwargs: {extra_kwargs!r}") @@ -621,7 +621,7 @@ def create_task_record(self, create_task_record_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -708,7 +708,7 @@ def delete_runbook(self, runbook_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_runbook got unknown kwargs: {extra_kwargs!r}") @@ -717,9 +717,9 @@ def delete_runbook(self, runbook_id, **kwargs): "runbookId": runbook_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -729,7 +729,7 @@ def delete_runbook(self, runbook_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -813,7 +813,7 @@ def delete_runbook_version(self, runbook_version_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_runbook_version got unknown kwargs: {extra_kwargs!r}") @@ -822,9 +822,9 @@ def delete_runbook_version(self, runbook_version_id, **kwargs): "runbookVersionId": runbook_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -834,7 +834,7 @@ def delete_runbook_version(self, runbook_version_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -918,7 +918,7 @@ def delete_task_record(self, task_record_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_task_record got unknown kwargs: {extra_kwargs!r}") @@ -927,9 +927,9 @@ def delete_task_record(self, task_record_id, **kwargs): "taskRecordId": task_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -939,7 +939,7 @@ def delete_task_record(self, task_record_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1034,7 +1034,7 @@ def export_runbook(self, export_runbook_details, runbook_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_runbook got unknown kwargs: {extra_kwargs!r}") @@ -1043,9 +1043,9 @@ def export_runbook(self, export_runbook_details, runbook_id, **kwargs): "runbookId": runbook_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1056,7 +1056,7 @@ def export_runbook(self, export_runbook_details, runbook_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1154,7 +1154,7 @@ def export_runbook_version(self, export_runbook_version_details, runbook_version "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_runbook_version got unknown kwargs: {extra_kwargs!r}") @@ -1163,9 +1163,9 @@ def export_runbook_version(self, export_runbook_version_details, runbook_version "runbookVersionId": runbook_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1176,7 +1176,7 @@ def export_runbook_version(self, export_runbook_version_details, runbook_version "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1263,7 +1263,7 @@ def find_runbook_export_dependency(self, find_runbook_export_dependency_details, "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"find_runbook_export_dependency got unknown kwargs: {extra_kwargs!r}") @@ -1272,14 +1272,14 @@ def find_runbook_export_dependency(self, find_runbook_export_dependency_details, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1367,7 +1367,7 @@ def find_runbook_import_dependency(self, find_runbook_import_dependency_details, "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"find_runbook_import_dependency got unknown kwargs: {extra_kwargs!r}") @@ -1376,14 +1376,14 @@ def find_runbook_import_dependency(self, find_runbook_import_dependency_details, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1463,7 +1463,7 @@ def get_runbook(self, runbook_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_runbook got unknown kwargs: {extra_kwargs!r}") @@ -1472,9 +1472,9 @@ def get_runbook(self, runbook_id, **kwargs): "runbookId": runbook_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1483,7 +1483,7 @@ def get_runbook(self, runbook_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1564,7 +1564,7 @@ def get_runbook_export(self, runbook_id, export_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_runbook_export got unknown kwargs: {extra_kwargs!r}") @@ -1574,9 +1574,9 @@ def get_runbook_export(self, runbook_id, export_id, **kwargs): "exportId": export_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1585,7 +1585,7 @@ def get_runbook_export(self, runbook_id, export_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1666,7 +1666,7 @@ def get_runbook_import(self, runbook_id, import_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_runbook_import got unknown kwargs: {extra_kwargs!r}") @@ -1676,9 +1676,9 @@ def get_runbook_import(self, runbook_id, import_id, **kwargs): "importId": import_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1687,7 +1687,7 @@ def get_runbook_import(self, runbook_id, import_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1765,7 +1765,7 @@ def get_runbook_version(self, runbook_version_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_runbook_version got unknown kwargs: {extra_kwargs!r}") @@ -1774,9 +1774,9 @@ def get_runbook_version(self, runbook_version_id, **kwargs): "runbookVersionId": runbook_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1785,7 +1785,7 @@ def get_runbook_version(self, runbook_version_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1863,7 +1863,7 @@ def get_task_record(self, task_record_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_task_record got unknown kwargs: {extra_kwargs!r}") @@ -1872,9 +1872,9 @@ def get_task_record(self, task_record_id, **kwargs): "taskRecordId": task_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1883,7 +1883,7 @@ def get_task_record(self, task_record_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1977,7 +1977,7 @@ def import_runbook(self, import_runbook_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_runbook got unknown kwargs: {extra_kwargs!r}") @@ -1989,7 +1989,7 @@ def import_runbook(self, import_runbook_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2082,7 +2082,7 @@ def import_runbook_precheck(self, import_runbook_precheck_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_runbook_precheck got unknown kwargs: {extra_kwargs!r}") @@ -2094,7 +2094,7 @@ def import_runbook_precheck(self, import_runbook_precheck_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2187,7 +2187,7 @@ def import_runbook_version(self, import_runbook_version_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_runbook_version got unknown kwargs: {extra_kwargs!r}") @@ -2199,7 +2199,7 @@ def import_runbook_version(self, import_runbook_version_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2302,7 +2302,7 @@ def list_runbook_export_statuses(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runbook_export_statuses got unknown kwargs: {extra_kwargs!r}") @@ -2329,14 +2329,14 @@ def list_runbook_export_statuses(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2440,7 +2440,7 @@ def list_runbook_import_statuses(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runbook_import_statuses got unknown kwargs: {extra_kwargs!r}") @@ -2467,14 +2467,14 @@ def list_runbook_import_statuses(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2592,7 +2592,7 @@ def list_runbook_versions(self, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runbook_versions got unknown kwargs: {extra_kwargs!r}") @@ -2629,14 +2629,14 @@ def list_runbook_versions(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2766,7 +2766,7 @@ def list_runbooks(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_runbooks got unknown kwargs: {extra_kwargs!r}") @@ -2812,14 +2812,14 @@ def list_runbooks(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2949,7 +2949,7 @@ def list_task_records(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_records got unknown kwargs: {extra_kwargs!r}") @@ -2995,14 +2995,14 @@ def list_task_records(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3097,7 +3097,7 @@ def publish_runbook(self, publish_runbook_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_runbook got unknown kwargs: {extra_kwargs!r}") @@ -3109,7 +3109,7 @@ def publish_runbook(self, publish_runbook_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3202,7 +3202,7 @@ def set_default_runbook(self, set_default_runbook_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_default_runbook got unknown kwargs: {extra_kwargs!r}") @@ -3214,7 +3214,7 @@ def set_default_runbook(self, set_default_runbook_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3304,7 +3304,7 @@ def update_runbook(self, runbook_id, update_runbook_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_runbook got unknown kwargs: {extra_kwargs!r}") @@ -3313,9 +3313,9 @@ def update_runbook(self, runbook_id, update_runbook_details, **kwargs): "runbookId": runbook_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3325,7 +3325,7 @@ def update_runbook(self, runbook_id, update_runbook_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3414,7 +3414,7 @@ def update_runbook_version(self, runbook_version_id, update_runbook_version_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_runbook_version got unknown kwargs: {extra_kwargs!r}") @@ -3423,9 +3423,9 @@ def update_runbook_version(self, runbook_version_id, update_runbook_version_deta "runbookVersionId": runbook_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3435,7 +3435,7 @@ def update_runbook_version(self, runbook_version_id, update_runbook_version_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3524,7 +3524,7 @@ def update_task_record(self, task_record_id, update_task_record_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_task_record got unknown kwargs: {extra_kwargs!r}") @@ -3533,9 +3533,9 @@ def update_task_record(self, task_record_id, update_task_record_details, **kwarg "taskRecordId": task_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3545,7 +3545,7 @@ def update_task_record(self, task_record_id, update_task_record_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py b/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py index 047ccea33..70557aeea 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py @@ -160,7 +160,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -169,9 +169,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -180,7 +180,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -278,7 +278,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -287,9 +287,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -313,14 +313,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -420,7 +420,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -429,9 +429,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -455,14 +455,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -578,7 +578,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -614,14 +614,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fleet_software_update/fleet_software_update_client.py b/src/oci/fleet_software_update/fleet_software_update_client.py index 272de266a..7fbbdb055 100644 --- a/src/oci/fleet_software_update/fleet_software_update_client.py +++ b/src/oci/fleet_software_update/fleet_software_update_client.py @@ -177,7 +177,7 @@ def abort_fsu_discovery(self, fsu_discovery_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"abort_fsu_discovery got unknown kwargs: {extra_kwargs!r}") @@ -186,9 +186,9 @@ def abort_fsu_discovery(self, fsu_discovery_id, **kwargs): "fsuDiscoveryId": fsu_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -199,7 +199,7 @@ def abort_fsu_discovery(self, fsu_discovery_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -298,7 +298,7 @@ def add_fsu_collection_targets(self, fsu_collection_id, add_fsu_collection_targe "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_fsu_collection_targets got unknown kwargs: {extra_kwargs!r}") @@ -307,9 +307,9 @@ def add_fsu_collection_targets(self, fsu_collection_id, add_fsu_collection_targe "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -320,7 +320,7 @@ def add_fsu_collection_targets(self, fsu_collection_id, add_fsu_collection_targe "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -415,7 +415,7 @@ def cancel_fsu_action(self, fsu_action_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_fsu_action got unknown kwargs: {extra_kwargs!r}") @@ -424,9 +424,9 @@ def cancel_fsu_action(self, fsu_action_id, **kwargs): "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -437,7 +437,7 @@ def cancel_fsu_action(self, fsu_action_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -534,7 +534,7 @@ def change_fsu_action_compartment(self, fsu_action_id, change_fsu_action_compart "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fsu_action_compartment got unknown kwargs: {extra_kwargs!r}") @@ -543,9 +543,9 @@ def change_fsu_action_compartment(self, fsu_action_id, change_fsu_action_compart "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -556,7 +556,7 @@ def change_fsu_action_compartment(self, fsu_action_id, change_fsu_action_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -655,7 +655,7 @@ def change_fsu_collection_compartment(self, fsu_collection_id, change_fsu_collec "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fsu_collection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -664,9 +664,9 @@ def change_fsu_collection_compartment(self, fsu_collection_id, change_fsu_collec "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -677,7 +677,7 @@ def change_fsu_collection_compartment(self, fsu_collection_id, change_fsu_collec "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -776,7 +776,7 @@ def change_fsu_cycle_compartment(self, fsu_cycle_id, change_fsu_cycle_compartmen "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fsu_cycle_compartment got unknown kwargs: {extra_kwargs!r}") @@ -785,9 +785,9 @@ def change_fsu_cycle_compartment(self, fsu_cycle_id, change_fsu_cycle_compartmen "fsuCycleId": fsu_cycle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -798,7 +798,7 @@ def change_fsu_cycle_compartment(self, fsu_cycle_id, change_fsu_cycle_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -897,7 +897,7 @@ def change_fsu_discovery_compartment(self, fsu_discovery_id, change_fsu_discover "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fsu_discovery_compartment got unknown kwargs: {extra_kwargs!r}") @@ -906,9 +906,9 @@ def change_fsu_discovery_compartment(self, fsu_discovery_id, change_fsu_discover "fsuDiscoveryId": fsu_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -919,7 +919,7 @@ def change_fsu_discovery_compartment(self, fsu_discovery_id, change_fsu_discover "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1009,7 +1009,7 @@ def clone_fsu_cycle(self, fsu_cycle_id, clone_fsu_cycle_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clone_fsu_cycle got unknown kwargs: {extra_kwargs!r}") @@ -1018,9 +1018,9 @@ def clone_fsu_cycle(self, fsu_cycle_id, clone_fsu_cycle_details, **kwargs): "fsuCycleId": fsu_cycle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1030,7 +1030,7 @@ def clone_fsu_cycle(self, fsu_cycle_id, clone_fsu_cycle_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1119,7 +1119,7 @@ def create_fsu_action(self, create_fsu_action_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fsu_action got unknown kwargs: {extra_kwargs!r}") @@ -1130,7 +1130,7 @@ def create_fsu_action(self, create_fsu_action_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1217,7 +1217,7 @@ def create_fsu_collection(self, create_fsu_collection_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fsu_collection got unknown kwargs: {extra_kwargs!r}") @@ -1228,7 +1228,7 @@ def create_fsu_collection(self, create_fsu_collection_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1316,7 +1316,7 @@ def create_fsu_cycle(self, create_fsu_cycle_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fsu_cycle got unknown kwargs: {extra_kwargs!r}") @@ -1327,7 +1327,7 @@ def create_fsu_cycle(self, create_fsu_cycle_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1414,7 +1414,7 @@ def create_fsu_discovery(self, create_fsu_discovery_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fsu_discovery got unknown kwargs: {extra_kwargs!r}") @@ -1425,7 +1425,7 @@ def create_fsu_discovery(self, create_fsu_discovery_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1512,7 +1512,7 @@ def delete_fsu_action(self, fsu_action_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fsu_action got unknown kwargs: {extra_kwargs!r}") @@ -1521,9 +1521,9 @@ def delete_fsu_action(self, fsu_action_id, **kwargs): "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1533,7 +1533,7 @@ def delete_fsu_action(self, fsu_action_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1617,7 +1617,7 @@ def delete_fsu_collection(self, fsu_collection_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fsu_collection got unknown kwargs: {extra_kwargs!r}") @@ -1626,9 +1626,9 @@ def delete_fsu_collection(self, fsu_collection_id, **kwargs): "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1638,7 +1638,7 @@ def delete_fsu_collection(self, fsu_collection_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1727,7 +1727,7 @@ def delete_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fsu_collection_target got unknown kwargs: {extra_kwargs!r}") @@ -1737,9 +1737,9 @@ def delete_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1749,7 +1749,7 @@ def delete_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1833,7 +1833,7 @@ def delete_fsu_cycle(self, fsu_cycle_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fsu_cycle got unknown kwargs: {extra_kwargs!r}") @@ -1842,9 +1842,9 @@ def delete_fsu_cycle(self, fsu_cycle_id, **kwargs): "fsuCycleId": fsu_cycle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1854,7 +1854,7 @@ def delete_fsu_cycle(self, fsu_cycle_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1938,7 +1938,7 @@ def delete_fsu_discovery(self, fsu_discovery_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fsu_discovery got unknown kwargs: {extra_kwargs!r}") @@ -1947,9 +1947,9 @@ def delete_fsu_discovery(self, fsu_discovery_id, **kwargs): "fsuDiscoveryId": fsu_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1959,7 +1959,7 @@ def delete_fsu_discovery(self, fsu_discovery_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2043,7 +2043,7 @@ def delete_fsu_job(self, fsu_job_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fsu_job got unknown kwargs: {extra_kwargs!r}") @@ -2052,9 +2052,9 @@ def delete_fsu_job(self, fsu_job_id, **kwargs): "fsuJobId": fsu_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2064,7 +2064,7 @@ def delete_fsu_job(self, fsu_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2140,7 +2140,7 @@ def get_fsu_action(self, fsu_action_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_action got unknown kwargs: {extra_kwargs!r}") @@ -2149,9 +2149,9 @@ def get_fsu_action(self, fsu_action_id, **kwargs): "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2160,7 +2160,7 @@ def get_fsu_action(self, fsu_action_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2239,7 +2239,7 @@ def get_fsu_action_output_content(self, fsu_action_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_action_output_content got unknown kwargs: {extra_kwargs!r}") @@ -2248,9 +2248,9 @@ def get_fsu_action_output_content(self, fsu_action_id, **kwargs): "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2259,7 +2259,7 @@ def get_fsu_action_output_content(self, fsu_action_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2337,7 +2337,7 @@ def get_fsu_collection(self, fsu_collection_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_collection got unknown kwargs: {extra_kwargs!r}") @@ -2346,9 +2346,9 @@ def get_fsu_collection(self, fsu_collection_id, **kwargs): "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2357,7 +2357,7 @@ def get_fsu_collection(self, fsu_collection_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2438,7 +2438,7 @@ def get_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_collection_target got unknown kwargs: {extra_kwargs!r}") @@ -2448,9 +2448,9 @@ def get_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): "targetId": target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2459,7 +2459,7 @@ def get_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2537,7 +2537,7 @@ def get_fsu_cycle(self, fsu_cycle_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_cycle got unknown kwargs: {extra_kwargs!r}") @@ -2546,9 +2546,9 @@ def get_fsu_cycle(self, fsu_cycle_id, **kwargs): "fsuCycleId": fsu_cycle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2557,7 +2557,7 @@ def get_fsu_cycle(self, fsu_cycle_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2635,7 +2635,7 @@ def get_fsu_discovery(self, fsu_discovery_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_discovery got unknown kwargs: {extra_kwargs!r}") @@ -2644,9 +2644,9 @@ def get_fsu_discovery(self, fsu_discovery_id, **kwargs): "fsuDiscoveryId": fsu_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2655,7 +2655,7 @@ def get_fsu_discovery(self, fsu_discovery_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2733,7 +2733,7 @@ def get_fsu_job(self, fsu_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_job got unknown kwargs: {extra_kwargs!r}") @@ -2742,9 +2742,9 @@ def get_fsu_job(self, fsu_job_id, **kwargs): "fsuJobId": fsu_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2753,7 +2753,7 @@ def get_fsu_job(self, fsu_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2831,7 +2831,7 @@ def get_fsu_job_output_content(self, fsu_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fsu_job_output_content got unknown kwargs: {extra_kwargs!r}") @@ -2840,9 +2840,9 @@ def get_fsu_job_output_content(self, fsu_job_id, **kwargs): "fsuJobId": fsu_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2851,7 +2851,7 @@ def get_fsu_job_output_content(self, fsu_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2929,7 +2929,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2938,9 +2938,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2949,7 +2949,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3068,7 +3068,7 @@ def list_fsu_actions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_actions got unknown kwargs: {extra_kwargs!r}") @@ -3112,14 +3112,14 @@ def list_fsu_actions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3232,7 +3232,7 @@ def list_fsu_collection_targets(self, fsu_collection_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_collection_targets got unknown kwargs: {extra_kwargs!r}") @@ -3241,9 +3241,9 @@ def list_fsu_collection_targets(self, fsu_collection_id, **kwargs): "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3277,14 +3277,14 @@ def list_fsu_collection_targets(self, fsu_collection_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3401,7 +3401,7 @@ def list_fsu_collections(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_collections got unknown kwargs: {extra_kwargs!r}") @@ -3444,14 +3444,14 @@ def list_fsu_collections(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3574,7 +3574,7 @@ def list_fsu_cycles(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_cycles got unknown kwargs: {extra_kwargs!r}") @@ -3619,14 +3619,14 @@ def list_fsu_cycles(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3735,7 +3735,7 @@ def list_fsu_discoveries(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_discoveries got unknown kwargs: {extra_kwargs!r}") @@ -3770,14 +3770,14 @@ def list_fsu_discoveries(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3890,7 +3890,7 @@ def list_fsu_discovery_targets(self, fsu_discovery_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_discovery_targets got unknown kwargs: {extra_kwargs!r}") @@ -3899,9 +3899,9 @@ def list_fsu_discovery_targets(self, fsu_discovery_id, **kwargs): "fsuDiscoveryId": fsu_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3935,14 +3935,14 @@ def list_fsu_discovery_targets(self, fsu_discovery_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4031,7 +4031,7 @@ def list_fsu_job_outputs(self, fsu_job_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_job_outputs got unknown kwargs: {extra_kwargs!r}") @@ -4040,9 +4040,9 @@ def list_fsu_job_outputs(self, fsu_job_id, **kwargs): "fsuJobId": fsu_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4050,14 +4050,14 @@ def list_fsu_job_outputs(self, fsu_job_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4168,7 +4168,7 @@ def list_fsu_jobs(self, fsu_action_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fsu_jobs got unknown kwargs: {extra_kwargs!r}") @@ -4203,14 +4203,14 @@ def list_fsu_jobs(self, fsu_action_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4309,7 +4309,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4318,9 +4318,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4344,14 +4344,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4452,7 +4452,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4461,9 +4461,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4487,14 +4487,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4609,7 +4609,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4645,14 +4645,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4751,7 +4751,7 @@ def remove_fsu_collection_targets(self, fsu_collection_id, remove_fsu_collection "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_fsu_collection_targets got unknown kwargs: {extra_kwargs!r}") @@ -4760,9 +4760,9 @@ def remove_fsu_collection_targets(self, fsu_collection_id, remove_fsu_collection "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4773,7 +4773,7 @@ def remove_fsu_collection_targets(self, fsu_collection_id, remove_fsu_collection "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4868,7 +4868,7 @@ def resume_fsu_action(self, fsu_action_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_fsu_action got unknown kwargs: {extra_kwargs!r}") @@ -4877,9 +4877,9 @@ def resume_fsu_action(self, fsu_action_id, **kwargs): "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4890,7 +4890,7 @@ def resume_fsu_action(self, fsu_action_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4984,7 +4984,7 @@ def retry_fsu_job(self, fsu_job_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retry_fsu_job got unknown kwargs: {extra_kwargs!r}") @@ -4993,9 +4993,9 @@ def retry_fsu_job(self, fsu_job_id, **kwargs): "fsuJobId": fsu_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5006,7 +5006,7 @@ def retry_fsu_job(self, fsu_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5094,7 +5094,7 @@ def update_fsu_action(self, fsu_action_id, update_fsu_action_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fsu_action got unknown kwargs: {extra_kwargs!r}") @@ -5103,9 +5103,9 @@ def update_fsu_action(self, fsu_action_id, update_fsu_action_details, **kwargs): "fsuActionId": fsu_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5115,7 +5115,7 @@ def update_fsu_action(self, fsu_action_id, update_fsu_action_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5204,7 +5204,7 @@ def update_fsu_collection(self, fsu_collection_id, update_fsu_collection_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fsu_collection got unknown kwargs: {extra_kwargs!r}") @@ -5213,9 +5213,9 @@ def update_fsu_collection(self, fsu_collection_id, update_fsu_collection_details "fsuCollectionId": fsu_collection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5225,7 +5225,7 @@ def update_fsu_collection(self, fsu_collection_id, update_fsu_collection_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5314,7 +5314,7 @@ def update_fsu_cycle(self, fsu_cycle_id, update_fsu_cycle_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fsu_cycle got unknown kwargs: {extra_kwargs!r}") @@ -5323,9 +5323,9 @@ def update_fsu_cycle(self, fsu_cycle_id, update_fsu_cycle_details, **kwargs): "fsuCycleId": fsu_cycle_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5335,7 +5335,7 @@ def update_fsu_cycle(self, fsu_cycle_id, update_fsu_cycle_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5424,7 +5424,7 @@ def update_fsu_discovery(self, fsu_discovery_id, update_fsu_discovery_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fsu_discovery got unknown kwargs: {extra_kwargs!r}") @@ -5433,9 +5433,9 @@ def update_fsu_discovery(self, fsu_discovery_id, update_fsu_discovery_details, * "fsuDiscoveryId": fsu_discovery_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5445,7 +5445,7 @@ def update_fsu_discovery(self, fsu_discovery_id, update_fsu_discovery_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5534,7 +5534,7 @@ def update_fsu_job(self, fsu_job_id, update_fsu_job_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fsu_job got unknown kwargs: {extra_kwargs!r}") @@ -5543,9 +5543,9 @@ def update_fsu_job(self, fsu_job_id, update_fsu_job_details, **kwargs): "fsuJobId": fsu_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5555,7 +5555,7 @@ def update_fsu_job(self, fsu_job_id, update_fsu_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/functions/functions_invoke_client.py b/src/oci/functions/functions_invoke_client.py index 00e61b9d5..79e1179ef 100644 --- a/src/oci/functions/functions_invoke_client.py +++ b/src/oci/functions/functions_invoke_client.py @@ -194,7 +194,7 @@ def invoke_function(self, function_id, **kwargs): "opc_request_id", "is_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"invoke_function got unknown kwargs: {extra_kwargs!r}") @@ -203,9 +203,9 @@ def invoke_function(self, function_id, **kwargs): "functionId": function_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -216,7 +216,7 @@ def invoke_function(self, function_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "is-dry-run": kwargs.get("is_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: diff --git a/src/oci/functions/functions_management_client.py b/src/oci/functions/functions_management_client.py index ca0005fb5..2f36cdcdc 100644 --- a/src/oci/functions/functions_management_client.py +++ b/src/oci/functions/functions_management_client.py @@ -175,7 +175,7 @@ def change_application_compartment(self, application_id, change_application_comp "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_application_compartment got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def change_application_compartment(self, application_id, change_application_comp "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def change_application_compartment(self, application_id, change_application_comp "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -275,7 +275,7 @@ def create_application(self, create_application_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application got unknown kwargs: {extra_kwargs!r}") @@ -285,7 +285,7 @@ def create_application(self, create_application_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -364,7 +364,7 @@ def create_function(self, create_function_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_function got unknown kwargs: {extra_kwargs!r}") @@ -374,7 +374,7 @@ def create_function(self, create_function_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -461,7 +461,7 @@ def delete_application(self, application_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application got unknown kwargs: {extra_kwargs!r}") @@ -470,9 +470,9 @@ def delete_application(self, application_id, **kwargs): "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -482,7 +482,7 @@ def delete_application(self, application_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -567,7 +567,7 @@ def delete_function(self, function_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_function got unknown kwargs: {extra_kwargs!r}") @@ -576,9 +576,9 @@ def delete_function(self, function_id, **kwargs): "functionId": function_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -588,7 +588,7 @@ def delete_function(self, function_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -667,7 +667,7 @@ def get_application(self, application_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application got unknown kwargs: {extra_kwargs!r}") @@ -676,9 +676,9 @@ def get_application(self, application_id, **kwargs): "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -687,7 +687,7 @@ def get_application(self, application_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -768,7 +768,7 @@ def get_function(self, function_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_function got unknown kwargs: {extra_kwargs!r}") @@ -777,9 +777,9 @@ def get_function(self, function_id, **kwargs): "functionId": function_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -788,7 +788,7 @@ def get_function(self, function_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -867,7 +867,7 @@ def get_pbf_listing(self, pbf_listing_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pbf_listing got unknown kwargs: {extra_kwargs!r}") @@ -876,9 +876,9 @@ def get_pbf_listing(self, pbf_listing_id, **kwargs): "pbfListingId": pbf_listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -887,7 +887,7 @@ def get_pbf_listing(self, pbf_listing_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -966,7 +966,7 @@ def get_pbf_listing_version(self, pbf_listing_version_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pbf_listing_version got unknown kwargs: {extra_kwargs!r}") @@ -975,9 +975,9 @@ def get_pbf_listing_version(self, pbf_listing_version_id, **kwargs): "pbfListingVersionId": pbf_listing_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -986,7 +986,7 @@ def get_pbf_listing_version(self, pbf_listing_version_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1113,7 +1113,7 @@ def list_applications(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_applications got unknown kwargs: {extra_kwargs!r}") @@ -1149,14 +1149,14 @@ def list_applications(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1283,7 +1283,7 @@ def list_functions(self, application_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_functions got unknown kwargs: {extra_kwargs!r}") @@ -1319,14 +1319,14 @@ def list_functions(self, application_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1454,7 +1454,7 @@ def list_pbf_listing_versions(self, pbf_listing_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pbf_listing_versions got unknown kwargs: {extra_kwargs!r}") @@ -1491,14 +1491,14 @@ def list_pbf_listing_versions(self, pbf_listing_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1626,7 +1626,7 @@ def list_pbf_listings(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pbf_listings got unknown kwargs: {extra_kwargs!r}") @@ -1664,14 +1664,14 @@ def list_pbf_listings(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1770,7 +1770,7 @@ def list_triggers(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_triggers got unknown kwargs: {extra_kwargs!r}") @@ -1788,14 +1788,14 @@ def list_triggers(self, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1885,7 +1885,7 @@ def update_application(self, application_id, update_application_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_application got unknown kwargs: {extra_kwargs!r}") @@ -1894,9 +1894,9 @@ def update_application(self, application_id, update_application_details, **kwarg "applicationId": application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1906,7 +1906,7 @@ def update_application(self, application_id, update_application_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1998,7 +1998,7 @@ def update_function(self, function_id, update_function_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_function got unknown kwargs: {extra_kwargs!r}") @@ -2007,9 +2007,9 @@ def update_function(self, function_id, update_function_details, **kwargs): "functionId": function_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2019,7 +2019,7 @@ def update_function(self, function_id, update_function_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/fusion_apps/fusion_applications_client.py b/src/oci/fusion_apps/fusion_applications_client.py index f22103b50..32d50deee 100644 --- a/src/oci/fusion_apps/fusion_applications_client.py +++ b/src/oci/fusion_apps/fusion_applications_client.py @@ -180,7 +180,7 @@ def change_fusion_environment_compartment(self, fusion_environment_id, change_fu "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fusion_environment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def change_fusion_environment_compartment(self, fusion_environment_id, change_fu "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def change_fusion_environment_compartment(self, fusion_environment_id, change_fu "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def change_fusion_environment_family_compartment(self, fusion_environment_family "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fusion_environment_family_compartment got unknown kwargs: {extra_kwargs!r}") @@ -310,9 +310,9 @@ def change_fusion_environment_family_compartment(self, fusion_environment_family "fusionEnvironmentFamilyId": fusion_environment_family_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -323,7 +323,7 @@ def change_fusion_environment_family_compartment(self, fusion_environment_family "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -413,7 +413,7 @@ def create_data_masking_activity(self, fusion_environment_id, create_data_maskin "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_masking_activity got unknown kwargs: {extra_kwargs!r}") @@ -422,9 +422,9 @@ def create_data_masking_activity(self, fusion_environment_id, create_data_maskin "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -434,7 +434,7 @@ def create_data_masking_activity(self, fusion_environment_id, create_data_maskin "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -521,7 +521,7 @@ def create_fusion_environment(self, create_fusion_environment_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fusion_environment got unknown kwargs: {extra_kwargs!r}") @@ -532,7 +532,7 @@ def create_fusion_environment(self, create_fusion_environment_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -620,7 +620,7 @@ def create_fusion_environment_admin_user(self, create_fusion_environment_admin_u "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fusion_environment_admin_user got unknown kwargs: {extra_kwargs!r}") @@ -629,9 +629,9 @@ def create_fusion_environment_admin_user(self, create_fusion_environment_admin_u "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -641,7 +641,7 @@ def create_fusion_environment_admin_user(self, create_fusion_environment_admin_u "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -728,7 +728,7 @@ def create_fusion_environment_family(self, create_fusion_environment_family_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fusion_environment_family got unknown kwargs: {extra_kwargs!r}") @@ -739,7 +739,7 @@ def create_fusion_environment_family(self, create_fusion_environment_family_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -827,7 +827,7 @@ def create_refresh_activity(self, fusion_environment_id, create_refresh_activity "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_refresh_activity got unknown kwargs: {extra_kwargs!r}") @@ -836,9 +836,9 @@ def create_refresh_activity(self, fusion_environment_id, create_refresh_activity "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -848,7 +848,7 @@ def create_refresh_activity(self, fusion_environment_id, create_refresh_activity "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -938,7 +938,7 @@ def create_service_attachment(self, create_service_attachment_details, fusion_en "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service_attachment got unknown kwargs: {extra_kwargs!r}") @@ -947,9 +947,9 @@ def create_service_attachment(self, create_service_attachment_details, fusion_en "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -959,7 +959,7 @@ def create_service_attachment(self, create_service_attachment_details, fusion_en "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1046,7 +1046,7 @@ def delete_fusion_environment(self, fusion_environment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fusion_environment got unknown kwargs: {extra_kwargs!r}") @@ -1055,9 +1055,9 @@ def delete_fusion_environment(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1067,7 +1067,7 @@ def delete_fusion_environment(self, fusion_environment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1154,7 +1154,7 @@ def delete_fusion_environment_admin_user(self, admin_username, fusion_environmen "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fusion_environment_admin_user got unknown kwargs: {extra_kwargs!r}") @@ -1164,9 +1164,9 @@ def delete_fusion_environment_admin_user(self, admin_username, fusion_environmen "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1176,7 +1176,7 @@ def delete_fusion_environment_admin_user(self, admin_username, fusion_environmen "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1260,7 +1260,7 @@ def delete_fusion_environment_family(self, fusion_environment_family_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fusion_environment_family got unknown kwargs: {extra_kwargs!r}") @@ -1269,9 +1269,9 @@ def delete_fusion_environment_family(self, fusion_environment_family_id, **kwarg "fusionEnvironmentFamilyId": fusion_environment_family_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1281,7 +1281,7 @@ def delete_fusion_environment_family(self, fusion_environment_family_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1368,7 +1368,7 @@ def delete_refresh_activity(self, fusion_environment_id, refresh_activity_id, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_refresh_activity got unknown kwargs: {extra_kwargs!r}") @@ -1378,9 +1378,9 @@ def delete_refresh_activity(self, fusion_environment_id, refresh_activity_id, ** "refreshActivityId": refresh_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1390,7 +1390,7 @@ def delete_refresh_activity(self, fusion_environment_id, refresh_activity_id, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1477,7 +1477,7 @@ def delete_service_attachment(self, fusion_environment_id, service_attachment_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service_attachment got unknown kwargs: {extra_kwargs!r}") @@ -1487,9 +1487,9 @@ def delete_service_attachment(self, fusion_environment_id, service_attachment_id "serviceAttachmentId": service_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1499,7 +1499,7 @@ def delete_service_attachment(self, fusion_environment_id, service_attachment_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1575,7 +1575,7 @@ def generate_extract_details(self, fusion_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_extract_details got unknown kwargs: {extra_kwargs!r}") @@ -1584,9 +1584,9 @@ def generate_extract_details(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1595,7 +1595,7 @@ def generate_extract_details(self, fusion_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1676,7 +1676,7 @@ def get_data_masking_activity(self, fusion_environment_id, data_masking_activity "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_masking_activity got unknown kwargs: {extra_kwargs!r}") @@ -1686,9 +1686,9 @@ def get_data_masking_activity(self, fusion_environment_id, data_masking_activity "dataMaskingActivityId": data_masking_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1697,7 +1697,7 @@ def get_data_masking_activity(self, fusion_environment_id, data_masking_activity "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1775,7 +1775,7 @@ def get_fusion_environment(self, fusion_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fusion_environment got unknown kwargs: {extra_kwargs!r}") @@ -1784,9 +1784,9 @@ def get_fusion_environment(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1795,7 +1795,7 @@ def get_fusion_environment(self, fusion_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1873,7 +1873,7 @@ def get_fusion_environment_family(self, fusion_environment_family_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fusion_environment_family got unknown kwargs: {extra_kwargs!r}") @@ -1882,9 +1882,9 @@ def get_fusion_environment_family(self, fusion_environment_family_id, **kwargs): "fusionEnvironmentFamilyId": fusion_environment_family_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1893,7 +1893,7 @@ def get_fusion_environment_family(self, fusion_environment_family_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1971,7 +1971,7 @@ def get_fusion_environment_family_limits_and_usage(self, fusion_environment_fami "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fusion_environment_family_limits_and_usage got unknown kwargs: {extra_kwargs!r}") @@ -1980,9 +1980,9 @@ def get_fusion_environment_family_limits_and_usage(self, fusion_environment_fami "fusionEnvironmentFamilyId": fusion_environment_family_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1991,7 +1991,7 @@ def get_fusion_environment_family_limits_and_usage(self, fusion_environment_fami "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2069,7 +2069,7 @@ def get_fusion_environment_family_subscription_detail(self, fusion_environment_f "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fusion_environment_family_subscription_detail got unknown kwargs: {extra_kwargs!r}") @@ -2078,9 +2078,9 @@ def get_fusion_environment_family_subscription_detail(self, fusion_environment_f "fusionEnvironmentFamilyId": fusion_environment_family_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2089,7 +2089,7 @@ def get_fusion_environment_family_subscription_detail(self, fusion_environment_f "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2167,7 +2167,7 @@ def get_fusion_environment_status(self, fusion_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fusion_environment_status got unknown kwargs: {extra_kwargs!r}") @@ -2176,9 +2176,9 @@ def get_fusion_environment_status(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2187,7 +2187,7 @@ def get_fusion_environment_status(self, fusion_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2268,7 +2268,7 @@ def get_refresh_activity(self, fusion_environment_id, refresh_activity_id, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_refresh_activity got unknown kwargs: {extra_kwargs!r}") @@ -2278,9 +2278,9 @@ def get_refresh_activity(self, fusion_environment_id, refresh_activity_id, **kwa "refreshActivityId": refresh_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2289,7 +2289,7 @@ def get_refresh_activity(self, fusion_environment_id, refresh_activity_id, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2370,7 +2370,7 @@ def get_scheduled_activity(self, fusion_environment_id, scheduled_activity_id, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduled_activity got unknown kwargs: {extra_kwargs!r}") @@ -2380,9 +2380,9 @@ def get_scheduled_activity(self, fusion_environment_id, scheduled_activity_id, * "scheduledActivityId": scheduled_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2391,7 +2391,7 @@ def get_scheduled_activity(self, fusion_environment_id, scheduled_activity_id, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2472,7 +2472,7 @@ def get_service_attachment(self, fusion_environment_id, service_attachment_id, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2482,9 +2482,9 @@ def get_service_attachment(self, fusion_environment_id, service_attachment_id, * "serviceAttachmentId": service_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2493,7 +2493,7 @@ def get_service_attachment(self, fusion_environment_id, service_attachment_id, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2571,7 +2571,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2580,9 +2580,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2591,7 +2591,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2669,7 +2669,7 @@ def initiate_extract(self, fusion_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"initiate_extract got unknown kwargs: {extra_kwargs!r}") @@ -2678,9 +2678,9 @@ def initiate_extract(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2689,7 +2689,7 @@ def initiate_extract(self, fusion_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2765,7 +2765,7 @@ def list_admin_users(self, fusion_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_admin_users got unknown kwargs: {extra_kwargs!r}") @@ -2774,9 +2774,9 @@ def list_admin_users(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2785,7 +2785,7 @@ def list_admin_users(self, fusion_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2889,7 +2889,7 @@ def list_data_masking_activities(self, fusion_environment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_masking_activities got unknown kwargs: {extra_kwargs!r}") @@ -2898,9 +2898,9 @@ def list_data_masking_activities(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2932,14 +2932,14 @@ def list_data_masking_activities(self, fusion_environment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3053,7 +3053,7 @@ def list_fusion_environment_families(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fusion_environment_families got unknown kwargs: {extra_kwargs!r}") @@ -3089,14 +3089,14 @@ def list_fusion_environment_families(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3208,7 +3208,7 @@ def list_fusion_environments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fusion_environments got unknown kwargs: {extra_kwargs!r}") @@ -3244,14 +3244,14 @@ def list_fusion_environments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3367,7 +3367,7 @@ def list_refresh_activities(self, fusion_environment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_refresh_activities got unknown kwargs: {extra_kwargs!r}") @@ -3376,9 +3376,9 @@ def list_refresh_activities(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3413,14 +3413,14 @@ def list_refresh_activities(self, fusion_environment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3554,7 +3554,7 @@ def list_scheduled_activities(self, fusion_environment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_activities got unknown kwargs: {extra_kwargs!r}") @@ -3563,9 +3563,9 @@ def list_scheduled_activities(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3617,14 +3617,14 @@ def list_scheduled_activities(self, fusion_environment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3740,7 +3740,7 @@ def list_service_attachments(self, fusion_environment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_attachments got unknown kwargs: {extra_kwargs!r}") @@ -3749,9 +3749,9 @@ def list_service_attachments(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3792,14 +3792,14 @@ def list_service_attachments(self, fusion_environment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3899,7 +3899,7 @@ def list_time_available_for_refreshes(self, fusion_environment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_time_available_for_refreshes got unknown kwargs: {extra_kwargs!r}") @@ -3908,9 +3908,9 @@ def list_time_available_for_refreshes(self, fusion_environment_id, **kwargs): "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3934,14 +3934,14 @@ def list_time_available_for_refreshes(self, fusion_environment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4041,7 +4041,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4050,9 +4050,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4076,14 +4076,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4183,7 +4183,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4192,9 +4192,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4218,14 +4218,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4335,7 +4335,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4370,14 +4370,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4477,7 +4477,7 @@ def reset_fusion_environment_password(self, reset_fusion_environment_password_de "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reset_fusion_environment_password got unknown kwargs: {extra_kwargs!r}") @@ -4487,9 +4487,9 @@ def reset_fusion_environment_password(self, reset_fusion_environment_password_de "adminUsername": admin_username } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4500,7 +4500,7 @@ def reset_fusion_environment_password(self, reset_fusion_environment_password_de "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4590,7 +4590,7 @@ def update_fusion_environment(self, fusion_environment_id, update_fusion_environ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fusion_environment got unknown kwargs: {extra_kwargs!r}") @@ -4599,9 +4599,9 @@ def update_fusion_environment(self, fusion_environment_id, update_fusion_environ "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4611,7 +4611,7 @@ def update_fusion_environment(self, fusion_environment_id, update_fusion_environ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4700,7 +4700,7 @@ def update_fusion_environment_family(self, fusion_environment_family_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fusion_environment_family got unknown kwargs: {extra_kwargs!r}") @@ -4709,9 +4709,9 @@ def update_fusion_environment_family(self, fusion_environment_family_id, update_ "fusionEnvironmentFamilyId": fusion_environment_family_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4721,7 +4721,7 @@ def update_fusion_environment_family(self, fusion_environment_family_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4813,7 +4813,7 @@ def update_refresh_activity(self, fusion_environment_id, refresh_activity_id, up "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_refresh_activity got unknown kwargs: {extra_kwargs!r}") @@ -4823,9 +4823,9 @@ def update_refresh_activity(self, fusion_environment_id, refresh_activity_id, up "refreshActivityId": refresh_activity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4835,7 +4835,7 @@ def update_refresh_activity(self, fusion_environment_id, refresh_activity_id, up "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4918,7 +4918,7 @@ def verify_service_attachment(self, verify_service_attachment_details, fusion_en "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"verify_service_attachment got unknown kwargs: {extra_kwargs!r}") @@ -4927,9 +4927,9 @@ def verify_service_attachment(self, verify_service_attachment_details, fusion_en "fusionEnvironmentId": fusion_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4938,7 +4938,7 @@ def verify_service_attachment(self, verify_service_attachment_details, fusion_en "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/generative_ai/generative_ai_client.py b/src/oci/generative_ai/generative_ai_client.py index 56f4b5e62..0e4b6371e 100644 --- a/src/oci/generative_ai/generative_ai_client.py +++ b/src/oci/generative_ai/generative_ai_client.py @@ -191,7 +191,7 @@ def change_dedicated_ai_cluster_compartment(self, dedicated_ai_cluster_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_dedicated_ai_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -200,9 +200,9 @@ def change_dedicated_ai_cluster_compartment(self, dedicated_ai_cluster_id, chang "dedicatedAiClusterId": dedicated_ai_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -213,7 +213,7 @@ def change_dedicated_ai_cluster_compartment(self, dedicated_ai_cluster_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -317,7 +317,7 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -326,9 +326,9 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -339,7 +339,7 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -439,7 +439,7 @@ def change_generative_ai_private_endpoint_compartment(self, generative_ai_privat "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_generative_ai_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -448,9 +448,9 @@ def change_generative_ai_private_endpoint_compartment(self, generative_ai_privat "generativeAiPrivateEndpointId": generative_ai_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -461,7 +461,7 @@ def change_generative_ai_private_endpoint_compartment(self, generative_ai_privat "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -563,7 +563,7 @@ def change_imported_model_compartment(self, imported_model_id, change_imported_m "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_imported_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -572,9 +572,9 @@ def change_imported_model_compartment(self, imported_model_id, change_imported_m "importedModelId": imported_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -585,7 +585,7 @@ def change_imported_model_compartment(self, imported_model_id, change_imported_m "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -687,7 +687,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_model_compartment got unknown kwargs: {extra_kwargs!r}") @@ -696,9 +696,9 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -709,7 +709,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -799,7 +799,7 @@ def create_dedicated_ai_cluster(self, create_dedicated_ai_cluster_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dedicated_ai_cluster got unknown kwargs: {extra_kwargs!r}") @@ -810,7 +810,7 @@ def create_dedicated_ai_cluster(self, create_dedicated_ai_cluster_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -902,7 +902,7 @@ def create_endpoint(self, create_endpoint_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -913,7 +913,7 @@ def create_endpoint(self, create_endpoint_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1003,7 +1003,7 @@ def create_generative_ai_private_endpoint(self, create_generative_ai_private_end "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_generative_ai_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1014,7 +1014,7 @@ def create_generative_ai_private_endpoint(self, create_generative_ai_private_end "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1106,7 +1106,7 @@ def create_imported_model(self, create_imported_model_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_imported_model got unknown kwargs: {extra_kwargs!r}") @@ -1117,7 +1117,7 @@ def create_imported_model(self, create_imported_model_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1209,7 +1209,7 @@ def create_model(self, create_model_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_model got unknown kwargs: {extra_kwargs!r}") @@ -1220,7 +1220,7 @@ def create_model(self, create_model_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1313,7 +1313,7 @@ def delete_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dedicated_ai_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1322,9 +1322,9 @@ def delete_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): "dedicatedAiClusterId": dedicated_ai_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1334,7 +1334,7 @@ def delete_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1422,7 +1422,7 @@ def delete_endpoint(self, endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1431,9 +1431,9 @@ def delete_endpoint(self, endpoint_id, **kwargs): "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1443,7 +1443,7 @@ def delete_endpoint(self, endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1529,7 +1529,7 @@ def delete_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_generative_ai_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1538,9 +1538,9 @@ def delete_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i "generativeAiPrivateEndpointId": generative_ai_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1550,7 +1550,7 @@ def delete_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1636,7 +1636,7 @@ def delete_imported_model(self, imported_model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_imported_model got unknown kwargs: {extra_kwargs!r}") @@ -1645,9 +1645,9 @@ def delete_imported_model(self, imported_model_id, **kwargs): "importedModelId": imported_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1657,7 +1657,7 @@ def delete_imported_model(self, imported_model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1743,7 +1743,7 @@ def delete_model(self, model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_model got unknown kwargs: {extra_kwargs!r}") @@ -1752,9 +1752,9 @@ def delete_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1764,7 +1764,7 @@ def delete_model(self, model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1845,7 +1845,7 @@ def get_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dedicated_ai_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1854,9 +1854,9 @@ def get_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): "dedicatedAiClusterId": dedicated_ai_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1865,7 +1865,7 @@ def get_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1948,7 +1948,7 @@ def get_endpoint(self, endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1957,9 +1957,9 @@ def get_endpoint(self, endpoint_id, **kwargs): "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1968,7 +1968,7 @@ def get_endpoint(self, endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2049,7 +2049,7 @@ def get_generative_ai_private_endpoint(self, generative_ai_private_endpoint_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_generative_ai_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2058,9 +2058,9 @@ def get_generative_ai_private_endpoint(self, generative_ai_private_endpoint_id, "generativeAiPrivateEndpointId": generative_ai_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2069,7 +2069,7 @@ def get_generative_ai_private_endpoint(self, generative_ai_private_endpoint_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2150,7 +2150,7 @@ def get_imported_model(self, imported_model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_imported_model got unknown kwargs: {extra_kwargs!r}") @@ -2159,9 +2159,9 @@ def get_imported_model(self, imported_model_id, **kwargs): "importedModelId": imported_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2170,7 +2170,7 @@ def get_imported_model(self, imported_model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2251,7 +2251,7 @@ def get_model(self, model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_model got unknown kwargs: {extra_kwargs!r}") @@ -2260,9 +2260,9 @@ def get_model(self, model_id, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2271,7 +2271,7 @@ def get_model(self, model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2354,7 +2354,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2363,9 +2363,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2374,7 +2374,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2502,7 +2502,7 @@ def list_dedicated_ai_clusters(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dedicated_ai_clusters got unknown kwargs: {extra_kwargs!r}") @@ -2538,14 +2538,14 @@ def list_dedicated_ai_clusters(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2679,7 +2679,7 @@ def list_endpoints(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -2716,14 +2716,14 @@ def list_endpoints(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2850,7 +2850,7 @@ def list_generative_ai_private_endpoints(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_generative_ai_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -2886,14 +2886,14 @@ def list_generative_ai_private_endpoints(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3028,7 +3028,7 @@ def list_imported_models(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_imported_models got unknown kwargs: {extra_kwargs!r}") @@ -3074,14 +3074,14 @@ def list_imported_models(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3216,7 +3216,7 @@ def list_models(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_models got unknown kwargs: {extra_kwargs!r}") @@ -3262,14 +3262,14 @@ def list_models(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3380,7 +3380,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3389,9 +3389,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3415,14 +3415,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3535,7 +3535,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3544,9 +3544,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3570,14 +3570,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3708,7 +3708,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3744,14 +3744,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3844,7 +3844,7 @@ def update_dedicated_ai_cluster(self, dedicated_ai_cluster_id, update_dedicated_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dedicated_ai_cluster got unknown kwargs: {extra_kwargs!r}") @@ -3853,9 +3853,9 @@ def update_dedicated_ai_cluster(self, dedicated_ai_cluster_id, update_dedicated_ "dedicatedAiClusterId": dedicated_ai_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3865,7 +3865,7 @@ def update_dedicated_ai_cluster(self, dedicated_ai_cluster_id, update_dedicated_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3960,7 +3960,7 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3969,9 +3969,9 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): "endpointId": endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3981,7 +3981,7 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4074,7 +4074,7 @@ def update_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_generative_ai_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4083,9 +4083,9 @@ def update_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i "generativeAiPrivateEndpointId": generative_ai_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4095,7 +4095,7 @@ def update_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4188,7 +4188,7 @@ def update_imported_model(self, imported_model_id, update_imported_model_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_imported_model got unknown kwargs: {extra_kwargs!r}") @@ -4197,9 +4197,9 @@ def update_imported_model(self, imported_model_id, update_imported_model_details "importedModelId": imported_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4209,7 +4209,7 @@ def update_imported_model(self, imported_model_id, update_imported_model_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4302,7 +4302,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_model got unknown kwargs: {extra_kwargs!r}") @@ -4311,9 +4311,9 @@ def update_model(self, model_id, update_model_details, **kwargs): "modelId": model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4323,7 +4323,7 @@ def update_model(self, model_id, update_model_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/generative_ai_agent/generative_ai_agent_client.py b/src/oci/generative_ai_agent/generative_ai_agent_client.py index 1c57a07e0..864a09a4b 100644 --- a/src/oci/generative_ai_agent/generative_ai_agent_client.py +++ b/src/oci/generative_ai_agent/generative_ai_agent_client.py @@ -180,7 +180,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_agent_compartment got unknown kwargs: {extra_kwargs!r}") @@ -312,9 +312,9 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -430,7 +430,7 @@ def change_agent_endpoint_compartment(self, agent_endpoint_id, change_agent_endp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_agent_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -439,9 +439,9 @@ def change_agent_endpoint_compartment(self, agent_endpoint_id, change_agent_endp "agentEndpointId": agent_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -452,7 +452,7 @@ def change_agent_endpoint_compartment(self, agent_endpoint_id, change_agent_endp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -557,7 +557,7 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_knowledge_base_compartment got unknown kwargs: {extra_kwargs!r}") @@ -566,9 +566,9 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -579,7 +579,7 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -669,7 +669,7 @@ def create_agent(self, create_agent_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_agent got unknown kwargs: {extra_kwargs!r}") @@ -680,7 +680,7 @@ def create_agent(self, create_agent_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -770,7 +770,7 @@ def create_agent_endpoint(self, create_agent_endpoint_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_agent_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -781,7 +781,7 @@ def create_agent_endpoint(self, create_agent_endpoint_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -871,7 +871,7 @@ def create_data_ingestion_job(self, create_data_ingestion_job_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_ingestion_job got unknown kwargs: {extra_kwargs!r}") @@ -882,7 +882,7 @@ def create_data_ingestion_job(self, create_data_ingestion_job_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -972,7 +972,7 @@ def create_data_source(self, create_data_source_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_source got unknown kwargs: {extra_kwargs!r}") @@ -983,7 +983,7 @@ def create_data_source(self, create_data_source_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1073,7 +1073,7 @@ def create_knowledge_base(self, create_knowledge_base_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -1084,7 +1084,7 @@ def create_knowledge_base(self, create_knowledge_base_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1174,7 +1174,7 @@ def create_tool(self, create_tool_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tool got unknown kwargs: {extra_kwargs!r}") @@ -1185,7 +1185,7 @@ def create_tool(self, create_tool_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1276,7 +1276,7 @@ def delete_agent(self, agent_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_agent got unknown kwargs: {extra_kwargs!r}") @@ -1285,9 +1285,9 @@ def delete_agent(self, agent_id, **kwargs): "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1297,7 +1297,7 @@ def delete_agent(self, agent_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1385,7 +1385,7 @@ def delete_agent_endpoint(self, agent_endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_agent_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1394,9 +1394,9 @@ def delete_agent_endpoint(self, agent_endpoint_id, **kwargs): "agentEndpointId": agent_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1406,7 +1406,7 @@ def delete_agent_endpoint(self, agent_endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1494,7 +1494,7 @@ def delete_data_ingestion_job(self, data_ingestion_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_ingestion_job got unknown kwargs: {extra_kwargs!r}") @@ -1503,9 +1503,9 @@ def delete_data_ingestion_job(self, data_ingestion_job_id, **kwargs): "dataIngestionJobId": data_ingestion_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1515,7 +1515,7 @@ def delete_data_ingestion_job(self, data_ingestion_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1603,7 +1603,7 @@ def delete_data_source(self, data_source_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_source got unknown kwargs: {extra_kwargs!r}") @@ -1612,9 +1612,9 @@ def delete_data_source(self, data_source_id, **kwargs): "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1624,7 +1624,7 @@ def delete_data_source(self, data_source_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1712,7 +1712,7 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -1721,9 +1721,9 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1733,7 +1733,7 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1821,7 +1821,7 @@ def delete_tool(self, tool_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tool got unknown kwargs: {extra_kwargs!r}") @@ -1830,9 +1830,9 @@ def delete_tool(self, tool_id, **kwargs): "toolId": tool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1842,7 +1842,7 @@ def delete_tool(self, tool_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1923,7 +1923,7 @@ def get_agent(self, agent_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_agent got unknown kwargs: {extra_kwargs!r}") @@ -1932,9 +1932,9 @@ def get_agent(self, agent_id, **kwargs): "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1943,7 +1943,7 @@ def get_agent(self, agent_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2026,7 +2026,7 @@ def get_agent_endpoint(self, agent_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_agent_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2035,9 +2035,9 @@ def get_agent_endpoint(self, agent_endpoint_id, **kwargs): "agentEndpointId": agent_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2046,7 +2046,7 @@ def get_agent_endpoint(self, agent_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2129,7 +2129,7 @@ def get_data_ingestion_job(self, data_ingestion_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_ingestion_job got unknown kwargs: {extra_kwargs!r}") @@ -2138,9 +2138,9 @@ def get_data_ingestion_job(self, data_ingestion_job_id, **kwargs): "dataIngestionJobId": data_ingestion_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2149,7 +2149,7 @@ def get_data_ingestion_job(self, data_ingestion_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2232,7 +2232,7 @@ def get_data_ingestion_job_log_content(self, data_ingestion_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_ingestion_job_log_content got unknown kwargs: {extra_kwargs!r}") @@ -2241,9 +2241,9 @@ def get_data_ingestion_job_log_content(self, data_ingestion_job_id, **kwargs): "dataIngestionJobId": data_ingestion_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2252,7 +2252,7 @@ def get_data_ingestion_job_log_content(self, data_ingestion_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2335,7 +2335,7 @@ def get_data_source(self, data_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_source got unknown kwargs: {extra_kwargs!r}") @@ -2344,9 +2344,9 @@ def get_data_source(self, data_source_id, **kwargs): "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2355,7 +2355,7 @@ def get_data_source(self, data_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2438,7 +2438,7 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -2447,9 +2447,9 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2458,7 +2458,7 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2541,7 +2541,7 @@ def get_tool(self, tool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tool got unknown kwargs: {extra_kwargs!r}") @@ -2550,9 +2550,9 @@ def get_tool(self, tool_id, **kwargs): "toolId": tool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2561,7 +2561,7 @@ def get_tool(self, tool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2644,7 +2644,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2653,9 +2653,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2664,7 +2664,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2794,7 +2794,7 @@ def list_agent_endpoints(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agent_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -2830,14 +2830,14 @@ def list_agent_endpoints(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2961,7 +2961,7 @@ def list_agents(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agents got unknown kwargs: {extra_kwargs!r}") @@ -2996,14 +2996,14 @@ def list_agents(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3133,7 +3133,7 @@ def list_data_ingestion_jobs(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_ingestion_jobs got unknown kwargs: {extra_kwargs!r}") @@ -3169,14 +3169,14 @@ def list_data_ingestion_jobs(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3306,7 +3306,7 @@ def list_data_sources(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_sources got unknown kwargs: {extra_kwargs!r}") @@ -3342,14 +3342,14 @@ def list_data_sources(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3473,7 +3473,7 @@ def list_knowledge_bases(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_knowledge_bases got unknown kwargs: {extra_kwargs!r}") @@ -3508,14 +3508,14 @@ def list_knowledge_bases(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3645,7 +3645,7 @@ def list_tools(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tools got unknown kwargs: {extra_kwargs!r}") @@ -3681,14 +3681,14 @@ def list_tools(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3799,7 +3799,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3808,9 +3808,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3834,14 +3834,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3954,7 +3954,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3963,9 +3963,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3989,14 +3989,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4128,7 +4128,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4164,14 +4164,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4264,7 +4264,7 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_agent got unknown kwargs: {extra_kwargs!r}") @@ -4273,9 +4273,9 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): "agentId": agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4285,7 +4285,7 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4378,7 +4378,7 @@ def update_agent_endpoint(self, agent_endpoint_id, update_agent_endpoint_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_agent_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -4387,9 +4387,9 @@ def update_agent_endpoint(self, agent_endpoint_id, update_agent_endpoint_details "agentEndpointId": agent_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4399,7 +4399,7 @@ def update_agent_endpoint(self, agent_endpoint_id, update_agent_endpoint_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4492,7 +4492,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_source got unknown kwargs: {extra_kwargs!r}") @@ -4501,9 +4501,9 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg "dataSourceId": data_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4513,7 +4513,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4606,7 +4606,7 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_knowledge_base got unknown kwargs: {extra_kwargs!r}") @@ -4615,9 +4615,9 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4627,7 +4627,7 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4720,7 +4720,7 @@ def update_tool(self, tool_id, update_tool_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tool got unknown kwargs: {extra_kwargs!r}") @@ -4729,9 +4729,9 @@ def update_tool(self, tool_id, update_tool_details, **kwargs): "toolId": tool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4741,7 +4741,7 @@ def update_tool(self, tool_id, update_tool_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py index 268873b99..3d6e0c823 100644 --- a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +++ b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py @@ -187,7 +187,7 @@ def chat(self, agent_endpoint_id, chat_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"chat got unknown kwargs: {extra_kwargs!r}") @@ -196,9 +196,9 @@ def chat(self, agent_endpoint_id, chat_details, **kwargs): "agentEndpointId": agent_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -209,7 +209,7 @@ def chat(self, agent_endpoint_id, chat_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def create_session(self, create_session_details, agent_endpoint_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_session got unknown kwargs: {extra_kwargs!r}") @@ -312,9 +312,9 @@ def create_session(self, create_session_details, agent_endpoint_id, **kwargs): "agentEndpointId": agent_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -324,7 +324,7 @@ def create_session(self, create_session_details, agent_endpoint_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -416,7 +416,7 @@ def delete_session(self, agent_endpoint_id, session_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_session got unknown kwargs: {extra_kwargs!r}") @@ -426,9 +426,9 @@ def delete_session(self, agent_endpoint_id, session_id, **kwargs): "sessionId": session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -438,7 +438,7 @@ def delete_session(self, agent_endpoint_id, session_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -517,7 +517,7 @@ def get_session(self, agent_endpoint_id, session_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_session got unknown kwargs: {extra_kwargs!r}") @@ -527,9 +527,9 @@ def get_session(self, agent_endpoint_id, session_id, **kwargs): "sessionId": session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -538,7 +538,7 @@ def get_session(self, agent_endpoint_id, session_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -635,7 +635,7 @@ def retrieve_metadata(self, knowledge_base_id, retrieve_metadata_details, **kwar "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_metadata got unknown kwargs: {extra_kwargs!r}") @@ -644,9 +644,9 @@ def retrieve_metadata(self, knowledge_base_id, retrieve_metadata_details, **kwar "knowledgeBaseId": knowledge_base_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -657,7 +657,7 @@ def retrieve_metadata(self, knowledge_base_id, retrieve_metadata_details, **kwar "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -752,7 +752,7 @@ def update_session(self, agent_endpoint_id, session_id, update_session_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_session got unknown kwargs: {extra_kwargs!r}") @@ -762,9 +762,9 @@ def update_session(self, agent_endpoint_id, session_id, update_session_details, "sessionId": session_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -774,7 +774,7 @@ def update_session(self, agent_endpoint_id, session_id, update_session_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/generative_ai_inference/generative_ai_inference_client.py b/src/oci/generative_ai_inference/generative_ai_inference_client.py index 7e05c4706..196eb5112 100644 --- a/src/oci/generative_ai_inference/generative_ai_inference_client.py +++ b/src/oci/generative_ai_inference/generative_ai_inference_client.py @@ -173,7 +173,7 @@ def apply_guardrails(self, apply_guardrails_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"apply_guardrails got unknown kwargs: {extra_kwargs!r}") @@ -184,7 +184,7 @@ def apply_guardrails(self, apply_guardrails_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -270,7 +270,7 @@ def chat(self, chat_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"chat got unknown kwargs: {extra_kwargs!r}") @@ -281,7 +281,7 @@ def chat(self, chat_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -369,7 +369,7 @@ def embed_text(self, embed_text_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"embed_text got unknown kwargs: {extra_kwargs!r}") @@ -380,7 +380,7 @@ def embed_text(self, embed_text_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -466,7 +466,7 @@ def generate_text(self, generate_text_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_text got unknown kwargs: {extra_kwargs!r}") @@ -477,7 +477,7 @@ def generate_text(self, generate_text_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -565,7 +565,7 @@ def rerank_text(self, rerank_text_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rerank_text got unknown kwargs: {extra_kwargs!r}") @@ -576,7 +576,7 @@ def rerank_text(self, rerank_text_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -662,7 +662,7 @@ def summarize_text(self, summarize_text_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_text got unknown kwargs: {extra_kwargs!r}") @@ -673,7 +673,7 @@ def summarize_text(self, summarize_text_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/generic_artifacts_content/generic_artifacts_content_client.py b/src/oci/generic_artifacts_content/generic_artifacts_content_client.py index 1c78d51c7..9f7790158 100644 --- a/src/oci/generic_artifacts_content/generic_artifacts_content_client.py +++ b/src/oci/generic_artifacts_content/generic_artifacts_content_client.py @@ -171,7 +171,7 @@ def get_generic_artifact_content(self, artifact_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_generic_artifact_content got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def get_generic_artifact_content(self, artifact_id, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def get_generic_artifact_content(self, artifact_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -286,7 +286,7 @@ def get_generic_artifact_content_by_path(self, repository_id, artifact_path, ver "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_generic_artifact_content_by_path got unknown kwargs: {extra_kwargs!r}") @@ -297,9 +297,9 @@ def get_generic_artifact_content_by_path(self, repository_id, artifact_path, ver "version": version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def get_generic_artifact_content_by_path(self, repository_id, artifact_path, ver "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -418,7 +418,7 @@ def put_generic_artifact_content_by_path(self, repository_id, artifact_path, ver "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_generic_artifact_content_by_path got unknown kwargs: {extra_kwargs!r}") @@ -429,9 +429,9 @@ def put_generic_artifact_content_by_path(self, repository_id, artifact_path, ver "version": version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -440,7 +440,7 @@ def put_generic_artifact_content_by_path(self, repository_id, artifact_path, ver "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: diff --git a/src/oci/globally_distributed_database/sharded_database_service_client.py b/src/oci/globally_distributed_database/sharded_database_service_client.py index 5b3ced5c0..96f93fe3f 100644 --- a/src/oci/globally_distributed_database/sharded_database_service_client.py +++ b/src/oci/globally_distributed_database/sharded_database_service_client.py @@ -179,7 +179,7 @@ def change_private_endpoint_compartment(self, change_private_endpoint_compartmen "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_private_endpoint_compartment(self, change_private_endpoint_compartmen "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_private_endpoint_compartment(self, change_private_endpoint_compartmen "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -299,7 +299,7 @@ def change_sharded_database_compartment(self, change_sharded_database_compartmen "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sharded_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -308,9 +308,9 @@ def change_sharded_database_compartment(self, change_sharded_database_compartmen "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -321,7 +321,7 @@ def change_sharded_database_compartment(self, change_sharded_database_compartmen "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -422,7 +422,7 @@ def configure_sharded_database_gsms(self, configure_sharded_database_gsms_detail "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_sharded_database_gsms got unknown kwargs: {extra_kwargs!r}") @@ -431,9 +431,9 @@ def configure_sharded_database_gsms(self, configure_sharded_database_gsms_detail "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -444,7 +444,7 @@ def configure_sharded_database_gsms(self, configure_sharded_database_gsms_detail "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -548,7 +548,7 @@ def configure_sharding(self, sharded_database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_sharding got unknown kwargs: {extra_kwargs!r}") @@ -557,16 +557,16 @@ def configure_sharding(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isRebalanceRequired": kwargs.get("is_rebalance_required", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -575,7 +575,7 @@ def configure_sharding(self, sharded_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -662,7 +662,7 @@ def create_private_endpoint(self, create_private_endpoint_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -673,7 +673,7 @@ def create_private_endpoint(self, create_private_endpoint_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -760,7 +760,7 @@ def create_sharded_database(self, create_sharded_database_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -771,7 +771,7 @@ def create_sharded_database(self, create_sharded_database_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -866,7 +866,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -875,9 +875,9 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -888,7 +888,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -981,7 +981,7 @@ def delete_sharded_database(self, sharded_database_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -990,9 +990,9 @@ def delete_sharded_database(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1003,7 +1003,7 @@ def delete_sharded_database(self, sharded_database_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1099,7 +1099,7 @@ def download_gsm_certificate_signing_request(self, sharded_database_id, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_gsm_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -1108,9 +1108,9 @@ def download_gsm_certificate_signing_request(self, sharded_database_id, **kwargs "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1121,7 +1121,7 @@ def download_gsm_certificate_signing_request(self, sharded_database_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1216,7 +1216,7 @@ def fetch_connection_string(self, sharded_database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"fetch_connection_string got unknown kwargs: {extra_kwargs!r}") @@ -1225,9 +1225,9 @@ def fetch_connection_string(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1238,7 +1238,7 @@ def fetch_connection_string(self, sharded_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1325,7 +1325,7 @@ def fetch_shardable_cloud_autonomous_vm_clusters(self, fetch_shardable_cloud_aut "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"fetch_shardable_cloud_autonomous_vm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -1336,7 +1336,7 @@ def fetch_shardable_cloud_autonomous_vm_clusters(self, fetch_shardable_cloud_aut "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1437,7 +1437,7 @@ def generate_gsm_certificate_signing_request(self, sharded_database_id, **kwargs "opc_retry_token", "ca_bundle_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_gsm_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -1446,16 +1446,16 @@ def generate_gsm_certificate_signing_request(self, sharded_database_id, **kwargs "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "caBundleId": kwargs.get("ca_bundle_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1464,7 +1464,7 @@ def generate_gsm_certificate_signing_request(self, sharded_database_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1562,7 +1562,7 @@ def generate_wallet(self, sharded_database_id, generate_wallet_details, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_wallet got unknown kwargs: {extra_kwargs!r}") @@ -1571,9 +1571,9 @@ def generate_wallet(self, sharded_database_id, generate_wallet_details, **kwargs "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1584,7 +1584,7 @@ def generate_wallet(self, sharded_database_id, generate_wallet_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1673,7 +1673,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1682,9 +1682,9 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1694,7 +1694,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1785,7 +1785,7 @@ def get_sharded_database(self, sharded_database_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -1794,16 +1794,16 @@ def get_sharded_database(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "metadata": kwargs.get("metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1811,7 +1811,7 @@ def get_sharded_database(self, sharded_database_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1891,7 +1891,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1900,9 +1900,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1911,7 +1911,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2019,7 +2019,7 @@ def list_private_endpoints(self, compartment_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -2054,14 +2054,14 @@ def list_private_endpoints(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2169,7 +2169,7 @@ def list_sharded_databases(self, compartment_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sharded_databases got unknown kwargs: {extra_kwargs!r}") @@ -2204,14 +2204,14 @@ def list_sharded_databases(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2309,7 +2309,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2318,9 +2318,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2344,14 +2344,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2451,7 +2451,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2460,9 +2460,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2486,14 +2486,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2607,7 +2607,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2643,14 +2643,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2741,7 +2741,7 @@ def patch_sharded_database(self, sharded_database_id, patch_sharded_database_det "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -2750,9 +2750,9 @@ def patch_sharded_database(self, sharded_database_id, patch_sharded_database_det "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2762,7 +2762,7 @@ def patch_sharded_database(self, sharded_database_id, patch_sharded_database_det "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2851,7 +2851,7 @@ def prevalidate_sharded_database(self, compartment_id, prevalidate_sharded_datab "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"prevalidate_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -2859,7 +2859,7 @@ def prevalidate_sharded_database(self, compartment_id, prevalidate_sharded_datab query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2867,7 +2867,7 @@ def prevalidate_sharded_database(self, compartment_id, prevalidate_sharded_datab "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2964,7 +2964,7 @@ def reinstate_proxy_instance(self, private_endpoint_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reinstate_proxy_instance got unknown kwargs: {extra_kwargs!r}") @@ -2973,9 +2973,9 @@ def reinstate_proxy_instance(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2986,7 +2986,7 @@ def reinstate_proxy_instance(self, private_endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3079,7 +3079,7 @@ def start_sharded_database(self, sharded_database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -3088,9 +3088,9 @@ def start_sharded_database(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3101,7 +3101,7 @@ def start_sharded_database(self, sharded_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3194,7 +3194,7 @@ def stop_sharded_database(self, sharded_database_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -3203,9 +3203,9 @@ def stop_sharded_database(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3216,7 +3216,7 @@ def stop_sharded_database(self, sharded_database_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3312,7 +3312,7 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3321,9 +3321,9 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3334,7 +3334,7 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3426,7 +3426,7 @@ def update_sharded_database(self, sharded_database_id, update_sharded_database_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sharded_database got unknown kwargs: {extra_kwargs!r}") @@ -3435,9 +3435,9 @@ def update_sharded_database(self, sharded_database_id, update_sharded_database_d "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3447,7 +3447,7 @@ def update_sharded_database(self, sharded_database_id, update_sharded_database_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3549,7 +3549,7 @@ def upload_signed_certificate_and_generate_wallet(self, sharded_database_id, upl "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_signed_certificate_and_generate_wallet got unknown kwargs: {extra_kwargs!r}") @@ -3558,9 +3558,9 @@ def upload_signed_certificate_and_generate_wallet(self, sharded_database_id, upl "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3571,7 +3571,7 @@ def upload_signed_certificate_and_generate_wallet(self, sharded_database_id, upl "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3678,7 +3678,7 @@ def validate_network(self, sharded_database_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_network got unknown kwargs: {extra_kwargs!r}") @@ -3687,9 +3687,9 @@ def validate_network(self, sharded_database_id, **kwargs): "shardedDatabaseId": sharded_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3698,7 +3698,7 @@ def validate_network(self, sharded_database_id, **kwargs): "resourceName": kwargs.get("resource_name", missing), "isPrimary": kwargs.get("is_primary", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3707,7 +3707,7 @@ def validate_network(self, sharded_database_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/golden_gate/golden_gate_client.py b/src/oci/golden_gate/golden_gate_client.py index 96d357b16..17f085465 100644 --- a/src/oci/golden_gate/golden_gate_client.py +++ b/src/oci/golden_gate/golden_gate_client.py @@ -172,7 +172,7 @@ def add_connection_lock(self, connection_id, add_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_connection_lock got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def add_connection_lock(self, connection_id, add_resource_lock_details, **kwargs "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def add_connection_lock(self, connection_id, add_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def add_deployment_backup_lock(self, deployment_backup_id, add_resource_lock_det "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_deployment_backup_lock got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def add_deployment_backup_lock(self, deployment_backup_id, add_resource_lock_det "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -304,7 +304,7 @@ def add_deployment_backup_lock(self, deployment_backup_id, add_resource_lock_det "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -401,7 +401,7 @@ def add_deployment_local_peer(self, deployment_id, add_deployment_local_peer_det "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_deployment_local_peer got unknown kwargs: {extra_kwargs!r}") @@ -410,9 +410,9 @@ def add_deployment_local_peer(self, deployment_id, add_deployment_local_peer_det "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -423,7 +423,7 @@ def add_deployment_local_peer(self, deployment_id, add_deployment_local_peer_det "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -512,7 +512,7 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_deployment_lock got unknown kwargs: {extra_kwargs!r}") @@ -521,9 +521,9 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -533,7 +533,7 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -634,7 +634,7 @@ def cancel_deployment_backup(self, deployment_backup_id, cancel_deployment_backu "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_deployment_backup got unknown kwargs: {extra_kwargs!r}") @@ -643,16 +643,16 @@ def cancel_deployment_backup(self, deployment_backup_id, cancel_deployment_backu "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -661,7 +661,7 @@ def cancel_deployment_backup(self, deployment_backup_id, cancel_deployment_backu "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -759,7 +759,7 @@ def cancel_deployment_upgrade(self, deployment_upgrade_id, cancel_deployment_upg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -768,9 +768,9 @@ def cancel_deployment_upgrade(self, deployment_upgrade_id, cancel_deployment_upg "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -781,7 +781,7 @@ def cancel_deployment_upgrade(self, deployment_upgrade_id, cancel_deployment_upg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -879,7 +879,7 @@ def cancel_snooze_deployment_upgrade(self, deployment_upgrade_id, cancel_snooze_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_snooze_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -888,9 +888,9 @@ def cancel_snooze_deployment_upgrade(self, deployment_upgrade_id, cancel_snooze_ "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -901,7 +901,7 @@ def cancel_snooze_deployment_upgrade(self, deployment_upgrade_id, cancel_snooze_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1001,7 +1001,7 @@ def change_connection_compartment(self, connection_id, change_connection_compart "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_connection_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1010,16 +1010,16 @@ def change_connection_compartment(self, connection_id, change_connection_compart "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1027,7 +1027,7 @@ def change_connection_compartment(self, connection_id, change_connection_compart "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1126,7 +1126,7 @@ def change_connection_subscription(self, change_connection_subscription_details, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_connection_subscription got unknown kwargs: {extra_kwargs!r}") @@ -1135,9 +1135,9 @@ def change_connection_subscription(self, change_connection_subscription_details, "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1148,7 +1148,7 @@ def change_connection_subscription(self, change_connection_subscription_details, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1250,7 +1250,7 @@ def change_database_registration_compartment(self, database_registration_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_registration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1259,9 +1259,9 @@ def change_database_registration_compartment(self, database_registration_id, cha "databaseRegistrationId": database_registration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1272,7 +1272,7 @@ def change_database_registration_compartment(self, database_registration_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1377,7 +1377,7 @@ def change_deployment_backup_compartment(self, deployment_backup_id, change_depl "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_deployment_backup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1386,16 +1386,16 @@ def change_deployment_backup_compartment(self, deployment_backup_id, change_depl "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1404,7 +1404,7 @@ def change_deployment_backup_compartment(self, deployment_backup_id, change_depl "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1511,7 +1511,7 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_deployment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1520,16 +1520,16 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1538,7 +1538,7 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1636,7 +1636,7 @@ def change_deployment_subscription(self, change_deployment_subscription_details, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_deployment_subscription got unknown kwargs: {extra_kwargs!r}") @@ -1645,9 +1645,9 @@ def change_deployment_subscription(self, change_deployment_subscription_details, "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1658,7 +1658,7 @@ def change_deployment_subscription(self, change_deployment_subscription_details, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1765,7 +1765,7 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d "is_lock_override", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_pipeline_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1774,16 +1774,16 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1792,7 +1792,7 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1890,7 +1890,7 @@ def collect_deployment_diagnostic(self, deployment_id, collect_deployment_diagno "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"collect_deployment_diagnostic got unknown kwargs: {extra_kwargs!r}") @@ -1899,9 +1899,9 @@ def collect_deployment_diagnostic(self, deployment_id, collect_deployment_diagno "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1912,7 +1912,7 @@ def collect_deployment_diagnostic(self, deployment_id, collect_deployment_diagno "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2010,7 +2010,7 @@ def collect_pipeline_diagnostic(self, pipeline_id, collect_pipeline_diagnostic_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"collect_pipeline_diagnostic got unknown kwargs: {extra_kwargs!r}") @@ -2019,9 +2019,9 @@ def collect_pipeline_diagnostic(self, pipeline_id, collect_pipeline_diagnostic_d "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2032,7 +2032,7 @@ def collect_pipeline_diagnostic(self, pipeline_id, collect_pipeline_diagnostic_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2128,7 +2128,7 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_deployment_backup got unknown kwargs: {extra_kwargs!r}") @@ -2137,9 +2137,9 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2150,7 +2150,7 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2245,7 +2245,7 @@ def create_certificate(self, create_certificate_details, deployment_id, **kwargs "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_certificate got unknown kwargs: {extra_kwargs!r}") @@ -2254,16 +2254,16 @@ def create_certificate(self, create_certificate_details, deployment_id, **kwargs "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2271,7 +2271,7 @@ def create_certificate(self, create_certificate_details, deployment_id, **kwargs "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2359,7 +2359,7 @@ def create_connection(self, create_connection_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection got unknown kwargs: {extra_kwargs!r}") @@ -2370,7 +2370,7 @@ def create_connection(self, create_connection_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2460,7 +2460,7 @@ def create_connection_assignment(self, create_connection_assignment_details, **k "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connection_assignment got unknown kwargs: {extra_kwargs!r}") @@ -2468,7 +2468,7 @@ def create_connection_assignment(self, create_connection_assignment_details, **k query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2476,7 +2476,7 @@ def create_connection_assignment(self, create_connection_assignment_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2565,7 +2565,7 @@ def create_database_registration(self, create_database_registration_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database_registration got unknown kwargs: {extra_kwargs!r}") @@ -2576,7 +2576,7 @@ def create_database_registration(self, create_database_registration_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2662,7 +2662,7 @@ def create_deployment(self, create_deployment_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deployment got unknown kwargs: {extra_kwargs!r}") @@ -2673,7 +2673,7 @@ def create_deployment(self, create_deployment_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2759,7 +2759,7 @@ def create_deployment_backup(self, create_deployment_backup_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_deployment_backup got unknown kwargs: {extra_kwargs!r}") @@ -2770,7 +2770,7 @@ def create_deployment_backup(self, create_deployment_backup_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2856,7 +2856,7 @@ def create_pipeline(self, create_pipeline_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -2867,7 +2867,7 @@ def create_pipeline(self, create_pipeline_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2960,7 +2960,7 @@ def delete_certificate(self, deployment_id, certificate_key, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_certificate got unknown kwargs: {extra_kwargs!r}") @@ -2970,16 +2970,16 @@ def delete_certificate(self, deployment_id, certificate_key, **kwargs): "certificateKey": certificate_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2987,7 +2987,7 @@ def delete_certificate(self, deployment_id, certificate_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3078,7 +3078,7 @@ def delete_connection(self, connection_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection got unknown kwargs: {extra_kwargs!r}") @@ -3087,16 +3087,16 @@ def delete_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3104,7 +3104,7 @@ def delete_connection(self, connection_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3195,7 +3195,7 @@ def delete_connection_assignment(self, connection_assignment_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connection_assignment got unknown kwargs: {extra_kwargs!r}") @@ -3204,16 +3204,16 @@ def delete_connection_assignment(self, connection_assignment_id, **kwargs): "connectionAssignmentId": connection_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3221,7 +3221,7 @@ def delete_connection_assignment(self, connection_assignment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3307,7 +3307,7 @@ def delete_database_registration(self, database_registration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database_registration got unknown kwargs: {extra_kwargs!r}") @@ -3316,9 +3316,9 @@ def delete_database_registration(self, database_registration_id, **kwargs): "databaseRegistrationId": database_registration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3328,7 +3328,7 @@ def delete_database_registration(self, database_registration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3415,7 +3415,7 @@ def delete_deployment(self, deployment_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deployment got unknown kwargs: {extra_kwargs!r}") @@ -3424,16 +3424,16 @@ def delete_deployment(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3441,7 +3441,7 @@ def delete_deployment(self, deployment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3530,7 +3530,7 @@ def delete_deployment_backup(self, deployment_backup_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_deployment_backup got unknown kwargs: {extra_kwargs!r}") @@ -3539,16 +3539,16 @@ def delete_deployment_backup(self, deployment_backup_id, **kwargs): "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3556,7 +3556,7 @@ def delete_deployment_backup(self, deployment_backup_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3647,7 +3647,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -3656,16 +3656,16 @@ def delete_pipeline(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3673,7 +3673,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3768,7 +3768,7 @@ def deployment_wallet_exists(self, deployment_id, deployment_wallet_exists_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deployment_wallet_exists got unknown kwargs: {extra_kwargs!r}") @@ -3777,9 +3777,9 @@ def deployment_wallet_exists(self, deployment_id, deployment_wallet_exists_detai "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3790,7 +3790,7 @@ def deployment_wallet_exists(self, deployment_id, deployment_wallet_exists_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3888,7 +3888,7 @@ def export_deployment_wallet(self, deployment_id, export_deployment_wallet_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_deployment_wallet got unknown kwargs: {extra_kwargs!r}") @@ -3897,9 +3897,9 @@ def export_deployment_wallet(self, deployment_id, export_deployment_wallet_detai "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3910,7 +3910,7 @@ def export_deployment_wallet(self, deployment_id, export_deployment_wallet_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4006,7 +4006,7 @@ def generate_library_url(self, deployment_id, generate_library_url_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_library_url got unknown kwargs: {extra_kwargs!r}") @@ -4015,9 +4015,9 @@ def generate_library_url(self, deployment_id, generate_library_url_details, **kw "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4028,7 +4028,7 @@ def generate_library_url(self, deployment_id, generate_library_url_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4112,7 +4112,7 @@ def get_certificate(self, deployment_id, certificate_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate got unknown kwargs: {extra_kwargs!r}") @@ -4122,9 +4122,9 @@ def get_certificate(self, deployment_id, certificate_key, **kwargs): "certificateKey": certificate_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4133,7 +4133,7 @@ def get_certificate(self, deployment_id, certificate_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4219,7 +4219,7 @@ def get_connection(self, connection_id, **kwargs): "opc_request_id", "view" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection got unknown kwargs: {extra_kwargs!r}") @@ -4228,9 +4228,9 @@ def get_connection(self, connection_id, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4244,14 +4244,14 @@ def get_connection(self, connection_id, **kwargs): query_params = { "view": kwargs.get("view", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4333,7 +4333,7 @@ def get_connection_assignment(self, connection_assignment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection_assignment got unknown kwargs: {extra_kwargs!r}") @@ -4342,9 +4342,9 @@ def get_connection_assignment(self, connection_assignment_id, **kwargs): "connectionAssignmentId": connection_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4353,7 +4353,7 @@ def get_connection_assignment(self, connection_assignment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4432,7 +4432,7 @@ def get_database_registration(self, database_registration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_registration got unknown kwargs: {extra_kwargs!r}") @@ -4441,9 +4441,9 @@ def get_database_registration(self, database_registration_id, **kwargs): "databaseRegistrationId": database_registration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4452,7 +4452,7 @@ def get_database_registration(self, database_registration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4530,7 +4530,7 @@ def get_deployment(self, deployment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deployment got unknown kwargs: {extra_kwargs!r}") @@ -4539,9 +4539,9 @@ def get_deployment(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4550,7 +4550,7 @@ def get_deployment(self, deployment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4628,7 +4628,7 @@ def get_deployment_backup(self, deployment_backup_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deployment_backup got unknown kwargs: {extra_kwargs!r}") @@ -4637,9 +4637,9 @@ def get_deployment_backup(self, deployment_backup_id, **kwargs): "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4648,7 +4648,7 @@ def get_deployment_backup(self, deployment_backup_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4726,7 +4726,7 @@ def get_deployment_upgrade(self, deployment_upgrade_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -4735,9 +4735,9 @@ def get_deployment_upgrade(self, deployment_upgrade_id, **kwargs): "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4746,7 +4746,7 @@ def get_deployment_upgrade(self, deployment_upgrade_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4826,7 +4826,7 @@ def get_pipeline(self, pipeline_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -4835,9 +4835,9 @@ def get_pipeline(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4846,7 +4846,7 @@ def get_pipeline(self, pipeline_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4926,7 +4926,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -4935,9 +4935,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4946,7 +4946,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5045,7 +5045,7 @@ def import_deployment_wallet(self, deployment_id, import_deployment_wallet_detai "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_deployment_wallet got unknown kwargs: {extra_kwargs!r}") @@ -5054,16 +5054,16 @@ def import_deployment_wallet(self, deployment_id, import_deployment_wallet_detai "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5072,7 +5072,7 @@ def import_deployment_wallet(self, deployment_id, import_deployment_wallet_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5182,7 +5182,7 @@ def list_certificates(self, deployment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificates got unknown kwargs: {extra_kwargs!r}") @@ -5191,9 +5191,9 @@ def list_certificates(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5225,14 +5225,14 @@ def list_certificates(self, deployment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5360,7 +5360,7 @@ def list_connection_assignments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connection_assignments got unknown kwargs: {extra_kwargs!r}") @@ -5397,14 +5397,14 @@ def list_connection_assignments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5544,7 +5544,7 @@ def list_connections(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connections got unknown kwargs: {extra_kwargs!r}") @@ -5607,14 +5607,14 @@ def list_connections(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5729,7 +5729,7 @@ def list_database_registrations(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_registrations got unknown kwargs: {extra_kwargs!r}") @@ -5764,14 +5764,14 @@ def list_database_registrations(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5891,7 +5891,7 @@ def list_deployment_backups(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_backups got unknown kwargs: {extra_kwargs!r}") @@ -5927,14 +5927,14 @@ def list_deployment_backups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6038,7 +6038,7 @@ def list_deployment_environments(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_environments got unknown kwargs: {extra_kwargs!r}") @@ -6064,14 +6064,14 @@ def list_deployment_environments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6182,7 +6182,7 @@ def list_deployment_peers(self, deployment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_peers got unknown kwargs: {extra_kwargs!r}") @@ -6191,9 +6191,9 @@ def list_deployment_peers(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6226,14 +6226,14 @@ def list_deployment_peers(self, deployment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6353,7 +6353,7 @@ def list_deployment_types(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_types got unknown kwargs: {extra_kwargs!r}") @@ -6389,14 +6389,14 @@ def list_deployment_types(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6516,7 +6516,7 @@ def list_deployment_upgrades(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_upgrades got unknown kwargs: {extra_kwargs!r}") @@ -6552,14 +6552,14 @@ def list_deployment_upgrades(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6675,7 +6675,7 @@ def list_deployment_versions(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_versions got unknown kwargs: {extra_kwargs!r}") @@ -6710,14 +6710,14 @@ def list_deployment_versions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6821,7 +6821,7 @@ def list_deployment_wallets_operations(self, deployment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployment_wallets_operations got unknown kwargs: {extra_kwargs!r}") @@ -6830,9 +6830,9 @@ def list_deployment_wallets_operations(self, deployment_id, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6857,14 +6857,14 @@ def list_deployment_wallets_operations(self, deployment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7010,7 +7010,7 @@ def list_deployments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_deployments got unknown kwargs: {extra_kwargs!r}") @@ -7072,14 +7072,14 @@ def list_deployments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7166,7 +7166,7 @@ def list_messages(self, deployment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_messages got unknown kwargs: {extra_kwargs!r}") @@ -7176,14 +7176,14 @@ def list_messages(self, deployment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7263,7 +7263,7 @@ def list_pipeline_initialization_steps(self, pipeline_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipeline_initialization_steps got unknown kwargs: {extra_kwargs!r}") @@ -7272,9 +7272,9 @@ def list_pipeline_initialization_steps(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7283,7 +7283,7 @@ def list_pipeline_initialization_steps(self, pipeline_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7386,7 +7386,7 @@ def list_pipeline_running_processes(self, pipeline_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipeline_running_processes got unknown kwargs: {extra_kwargs!r}") @@ -7395,9 +7395,9 @@ def list_pipeline_running_processes(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7421,14 +7421,14 @@ def list_pipeline_running_processes(self, pipeline_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7543,7 +7543,7 @@ def list_pipeline_schema_tables(self, pipeline_id, source_schema_name, target_sc "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipeline_schema_tables got unknown kwargs: {extra_kwargs!r}") @@ -7552,9 +7552,9 @@ def list_pipeline_schema_tables(self, pipeline_id, source_schema_name, target_sc "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7581,14 +7581,14 @@ def list_pipeline_schema_tables(self, pipeline_id, source_schema_name, target_sc "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7697,7 +7697,7 @@ def list_pipeline_schemas(self, pipeline_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipeline_schemas got unknown kwargs: {extra_kwargs!r}") @@ -7706,9 +7706,9 @@ def list_pipeline_schemas(self, pipeline_id, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7733,14 +7733,14 @@ def list_pipeline_schemas(self, pipeline_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7862,7 +7862,7 @@ def list_pipelines(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -7905,14 +7905,14 @@ def list_pipelines(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8026,7 +8026,7 @@ def list_recipes(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recipes got unknown kwargs: {extra_kwargs!r}") @@ -8061,14 +8061,14 @@ def list_recipes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8178,7 +8178,7 @@ def list_trail_files(self, deployment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_trail_files got unknown kwargs: {extra_kwargs!r}") @@ -8206,14 +8206,14 @@ def list_trail_files(self, deployment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8326,7 +8326,7 @@ def list_trail_sequences(self, deployment_id, trail_file_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_trail_sequences got unknown kwargs: {extra_kwargs!r}") @@ -8355,14 +8355,14 @@ def list_trail_sequences(self, deployment_id, trail_file_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8451,7 +8451,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -8460,9 +8460,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8470,14 +8470,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8568,7 +8568,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -8577,9 +8577,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8587,14 +8587,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8692,7 +8692,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -8703,14 +8703,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8811,7 +8811,7 @@ def pause_pipeline(self, pipeline_id, pause_pipeline_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"pause_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -8820,16 +8820,16 @@ def pause_pipeline(self, pipeline_id, pause_pipeline_details, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8838,7 +8838,7 @@ def pause_pipeline(self, pipeline_id, pause_pipeline_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8935,7 +8935,7 @@ def refresh_connection(self, connection_id, refresh_connection_details, **kwargs "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_connection got unknown kwargs: {extra_kwargs!r}") @@ -8944,16 +8944,16 @@ def refresh_connection(self, connection_id, refresh_connection_details, **kwargs "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8961,7 +8961,7 @@ def refresh_connection(self, connection_id, refresh_connection_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9053,7 +9053,7 @@ def remove_connection_lock(self, connection_id, remove_resource_lock_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_connection_lock got unknown kwargs: {extra_kwargs!r}") @@ -9062,9 +9062,9 @@ def remove_connection_lock(self, connection_id, remove_resource_lock_details, ** "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9074,7 +9074,7 @@ def remove_connection_lock(self, connection_id, remove_resource_lock_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9164,7 +9164,7 @@ def remove_deployment_backup_lock(self, deployment_backup_id, remove_resource_lo "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_deployment_backup_lock got unknown kwargs: {extra_kwargs!r}") @@ -9173,9 +9173,9 @@ def remove_deployment_backup_lock(self, deployment_backup_id, remove_resource_lo "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9185,7 +9185,7 @@ def remove_deployment_backup_lock(self, deployment_backup_id, remove_resource_lo "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9282,7 +9282,7 @@ def remove_deployment_local_peer(self, deployment_id, remove_deployment_local_pe "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_deployment_local_peer got unknown kwargs: {extra_kwargs!r}") @@ -9291,9 +9291,9 @@ def remove_deployment_local_peer(self, deployment_id, remove_deployment_local_pe "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9304,7 +9304,7 @@ def remove_deployment_local_peer(self, deployment_id, remove_deployment_local_pe "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9393,7 +9393,7 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_deployment_lock got unknown kwargs: {extra_kwargs!r}") @@ -9402,9 +9402,9 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9414,7 +9414,7 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9511,7 +9511,7 @@ def reschedule_deployment_upgrade(self, deployment_upgrade_id, reschedule_deploy "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reschedule_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -9520,9 +9520,9 @@ def reschedule_deployment_upgrade(self, deployment_upgrade_id, reschedule_deploy "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9533,7 +9533,7 @@ def reschedule_deployment_upgrade(self, deployment_upgrade_id, reschedule_deploy "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9635,7 +9635,7 @@ def restore_deployment(self, deployment_backup_id, restore_deployment_details, * "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_deployment got unknown kwargs: {extra_kwargs!r}") @@ -9644,16 +9644,16 @@ def restore_deployment(self, deployment_backup_id, restore_deployment_details, * "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9662,7 +9662,7 @@ def restore_deployment(self, deployment_backup_id, restore_deployment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9764,7 +9764,7 @@ def rollback_deployment_upgrade(self, deployment_upgrade_id, rollback_deployment "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rollback_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -9773,16 +9773,16 @@ def rollback_deployment_upgrade(self, deployment_upgrade_id, rollback_deployment "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9791,7 +9791,7 @@ def rollback_deployment_upgrade(self, deployment_upgrade_id, rollback_deployment "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9889,7 +9889,7 @@ def snooze_deployment_upgrade(self, deployment_upgrade_id, snooze_deployment_upg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"snooze_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -9898,9 +9898,9 @@ def snooze_deployment_upgrade(self, deployment_upgrade_id, snooze_deployment_upg "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9911,7 +9911,7 @@ def snooze_deployment_upgrade(self, deployment_upgrade_id, snooze_deployment_upg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10011,7 +10011,7 @@ def start_deployment(self, deployment_id, start_deployment_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_deployment got unknown kwargs: {extra_kwargs!r}") @@ -10020,16 +10020,16 @@ def start_deployment(self, deployment_id, start_deployment_details, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10038,7 +10038,7 @@ def start_deployment(self, deployment_id, start_deployment_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10142,7 +10142,7 @@ def start_pipeline(self, pipeline_id, start_pipeline_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -10151,16 +10151,16 @@ def start_pipeline(self, pipeline_id, start_pipeline_details, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10169,7 +10169,7 @@ def start_pipeline(self, pipeline_id, start_pipeline_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10271,7 +10271,7 @@ def stop_deployment(self, deployment_id, stop_deployment_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_deployment got unknown kwargs: {extra_kwargs!r}") @@ -10280,16 +10280,16 @@ def stop_deployment(self, deployment_id, stop_deployment_details, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10298,7 +10298,7 @@ def stop_deployment(self, deployment_id, stop_deployment_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10402,7 +10402,7 @@ def stop_pipeline(self, pipeline_id, stop_pipeline_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -10411,16 +10411,16 @@ def stop_pipeline(self, pipeline_id, stop_pipeline_details, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10429,7 +10429,7 @@ def stop_pipeline(self, pipeline_id, stop_pipeline_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10527,7 +10527,7 @@ def switchover_deployment_peer(self, deployment_id, switchover_deployment_peer_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switchover_deployment_peer got unknown kwargs: {extra_kwargs!r}") @@ -10536,9 +10536,9 @@ def switchover_deployment_peer(self, deployment_id, switchover_deployment_peer_d "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10549,7 +10549,7 @@ def switchover_deployment_peer(self, deployment_id, switchover_deployment_peer_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10648,7 +10648,7 @@ def test_connection_assignment(self, connection_assignment_id, test_connection_a "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_connection_assignment got unknown kwargs: {extra_kwargs!r}") @@ -10657,9 +10657,9 @@ def test_connection_assignment(self, connection_assignment_id, test_connection_a "connectionAssignmentId": connection_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10670,7 +10670,7 @@ def test_connection_assignment(self, connection_assignment_id, test_connection_a "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10771,7 +10771,7 @@ def test_pipeline_connection(self, pipeline_id, test_pipeline_connection_details "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_pipeline_connection got unknown kwargs: {extra_kwargs!r}") @@ -10780,9 +10780,9 @@ def test_pipeline_connection(self, pipeline_id, test_pipeline_connection_details "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10793,7 +10793,7 @@ def test_pipeline_connection(self, pipeline_id, test_pipeline_connection_details "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10890,7 +10890,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_connection got unknown kwargs: {extra_kwargs!r}") @@ -10899,16 +10899,16 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "connectionId": connection_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10916,7 +10916,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11007,7 +11007,7 @@ def update_database_registration(self, database_registration_id, update_database "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_registration got unknown kwargs: {extra_kwargs!r}") @@ -11016,9 +11016,9 @@ def update_database_registration(self, database_registration_id, update_database "databaseRegistrationId": database_registration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11028,7 +11028,7 @@ def update_database_registration(self, database_registration_id, update_database "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11120,7 +11120,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deployment got unknown kwargs: {extra_kwargs!r}") @@ -11129,16 +11129,16 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11146,7 +11146,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11240,7 +11240,7 @@ def update_deployment_backup(self, deployment_backup_id, update_deployment_backu "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_deployment_backup got unknown kwargs: {extra_kwargs!r}") @@ -11249,16 +11249,16 @@ def update_deployment_backup(self, deployment_backup_id, update_deployment_backu "deploymentBackupId": deployment_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11266,7 +11266,7 @@ def update_deployment_backup(self, deployment_backup_id, update_deployment_backu "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11364,7 +11364,7 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -11373,16 +11373,16 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): "pipelineId": pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11390,7 +11390,7 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11491,7 +11491,7 @@ def upgrade_deployment(self, deployment_id, upgrade_deployment_details, **kwargs "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_deployment got unknown kwargs: {extra_kwargs!r}") @@ -11500,16 +11500,16 @@ def upgrade_deployment(self, deployment_id, upgrade_deployment_details, **kwargs "deploymentId": deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11518,7 +11518,7 @@ def upgrade_deployment(self, deployment_id, upgrade_deployment_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11620,7 +11620,7 @@ def upgrade_deployment_upgrade(self, deployment_upgrade_id, upgrade_deployment_u "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_deployment_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -11629,16 +11629,16 @@ def upgrade_deployment_upgrade(self, deployment_upgrade_id, upgrade_deployment_u "deploymentUpgradeId": deployment_upgrade_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11647,7 +11647,7 @@ def upgrade_deployment_upgrade(self, deployment_upgrade_id, upgrade_deployment_u "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/governance_rules_control_plane/governance_rule_client.py b/src/oci/governance_rules_control_plane/governance_rule_client.py index b5e824f9a..5be7a7087 100644 --- a/src/oci/governance_rules_control_plane/governance_rule_client.py +++ b/src/oci/governance_rules_control_plane/governance_rule_client.py @@ -168,7 +168,7 @@ def create_governance_rule(self, create_governance_rule_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_governance_rule got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_governance_rule(self, create_governance_rule_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -264,7 +264,7 @@ def create_inclusion_criterion(self, create_inclusion_criterion_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_inclusion_criterion got unknown kwargs: {extra_kwargs!r}") @@ -275,7 +275,7 @@ def create_inclusion_criterion(self, create_inclusion_criterion_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -360,7 +360,7 @@ def delete_governance_rule(self, governance_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_governance_rule got unknown kwargs: {extra_kwargs!r}") @@ -369,9 +369,9 @@ def delete_governance_rule(self, governance_rule_id, **kwargs): "governanceRuleId": governance_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -381,7 +381,7 @@ def delete_governance_rule(self, governance_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -463,7 +463,7 @@ def delete_inclusion_criterion(self, inclusion_criterion_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_inclusion_criterion got unknown kwargs: {extra_kwargs!r}") @@ -472,9 +472,9 @@ def delete_inclusion_criterion(self, inclusion_criterion_id, **kwargs): "inclusionCriterionId": inclusion_criterion_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -484,7 +484,7 @@ def delete_inclusion_criterion(self, inclusion_criterion_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -558,7 +558,7 @@ def get_enforced_governance_rule(self, enforced_governance_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_enforced_governance_rule got unknown kwargs: {extra_kwargs!r}") @@ -567,9 +567,9 @@ def get_enforced_governance_rule(self, enforced_governance_rule_id, **kwargs): "enforcedGovernanceRuleId": enforced_governance_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -578,7 +578,7 @@ def get_enforced_governance_rule(self, enforced_governance_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -654,7 +654,7 @@ def get_governance_rule(self, governance_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_governance_rule got unknown kwargs: {extra_kwargs!r}") @@ -663,9 +663,9 @@ def get_governance_rule(self, governance_rule_id, **kwargs): "governanceRuleId": governance_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -674,7 +674,7 @@ def get_governance_rule(self, governance_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -750,7 +750,7 @@ def get_inclusion_criterion(self, inclusion_criterion_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_inclusion_criterion got unknown kwargs: {extra_kwargs!r}") @@ -759,9 +759,9 @@ def get_inclusion_criterion(self, inclusion_criterion_id, **kwargs): "inclusionCriterionId": inclusion_criterion_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -770,7 +770,7 @@ def get_inclusion_criterion(self, inclusion_criterion_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -846,7 +846,7 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tenancy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -855,9 +855,9 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "tenancyAttachmentId": tenancy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -866,7 +866,7 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -978,7 +978,7 @@ def list_enforced_governance_rules(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_enforced_governance_rules got unknown kwargs: {extra_kwargs!r}") @@ -1014,14 +1014,14 @@ def list_enforced_governance_rules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1139,7 +1139,7 @@ def list_governance_rules(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_governance_rules got unknown kwargs: {extra_kwargs!r}") @@ -1183,14 +1183,14 @@ def list_governance_rules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1297,7 +1297,7 @@ def list_inclusion_criteria(self, governance_rule_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_inclusion_criteria got unknown kwargs: {extra_kwargs!r}") @@ -1332,14 +1332,14 @@ def list_inclusion_criteria(self, governance_rule_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1455,7 +1455,7 @@ def list_tenancy_attachments(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tenancy_attachments got unknown kwargs: {extra_kwargs!r}") @@ -1492,14 +1492,14 @@ def list_tenancy_attachments(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1593,7 +1593,7 @@ def retry_governance_rule(self, governance_rule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retry_governance_rule got unknown kwargs: {extra_kwargs!r}") @@ -1602,9 +1602,9 @@ def retry_governance_rule(self, governance_rule_id, **kwargs): "governanceRuleId": governance_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1615,7 +1615,7 @@ def retry_governance_rule(self, governance_rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1707,7 +1707,7 @@ def retry_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retry_tenancy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -1716,9 +1716,9 @@ def retry_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "tenancyAttachmentId": tenancy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1729,7 +1729,7 @@ def retry_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1815,7 +1815,7 @@ def update_governance_rule(self, governance_rule_id, update_governance_rule_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_governance_rule got unknown kwargs: {extra_kwargs!r}") @@ -1824,9 +1824,9 @@ def update_governance_rule(self, governance_rule_id, update_governance_rule_deta "governanceRuleId": governance_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1836,7 +1836,7 @@ def update_governance_rule(self, governance_rule_id, update_governance_rule_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/governance_rules_control_plane/work_request_client.py b/src/oci/governance_rules_control_plane/work_request_client.py index aebc5258d..6e6d68934 100644 --- a/src/oci/governance_rules_control_plane/work_request_client.py +++ b/src/oci/governance_rules_control_plane/work_request_client.py @@ -168,7 +168,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -263,7 +263,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -272,9 +272,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -283,7 +283,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -379,7 +379,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -388,9 +388,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -414,14 +414,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -519,7 +519,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -528,9 +528,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -554,14 +554,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -674,7 +674,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -710,14 +710,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/healthchecks/health_checks_client.py b/src/oci/healthchecks/health_checks_client.py index 54de34a7f..7821adc37 100644 --- a/src/oci/healthchecks/health_checks_client.py +++ b/src/oci/healthchecks/health_checks_client.py @@ -183,7 +183,7 @@ def change_http_monitor_compartment(self, monitor_id, change_http_monitor_compar "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_http_monitor_compartment got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def change_http_monitor_compartment(self, monitor_id, change_http_monitor_compar "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def change_http_monitor_compartment(self, monitor_id, change_http_monitor_compar "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def change_ping_monitor_compartment(self, monitor_id, change_ping_monitor_compar "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ping_monitor_compartment got unknown kwargs: {extra_kwargs!r}") @@ -312,9 +312,9 @@ def change_ping_monitor_compartment(self, monitor_id, change_ping_monitor_compar "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def change_ping_monitor_compartment(self, monitor_id, change_ping_monitor_compar "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -414,7 +414,7 @@ def create_http_monitor(self, create_http_monitor_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_http_monitor got unknown kwargs: {extra_kwargs!r}") @@ -425,7 +425,7 @@ def create_http_monitor(self, create_http_monitor_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -506,7 +506,7 @@ def create_on_demand_http_probe(self, create_on_demand_http_probe_details, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_on_demand_http_probe got unknown kwargs: {extra_kwargs!r}") @@ -516,7 +516,7 @@ def create_on_demand_http_probe(self, create_on_demand_http_probe_details, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -596,7 +596,7 @@ def create_on_demand_ping_probe(self, create_on_demand_ping_probe_details, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_on_demand_ping_probe got unknown kwargs: {extra_kwargs!r}") @@ -606,7 +606,7 @@ def create_on_demand_ping_probe(self, create_on_demand_ping_probe_details, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -694,7 +694,7 @@ def create_ping_monitor(self, create_ping_monitor_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ping_monitor got unknown kwargs: {extra_kwargs!r}") @@ -705,7 +705,7 @@ def create_ping_monitor(self, create_ping_monitor_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -791,7 +791,7 @@ def delete_http_monitor(self, monitor_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_http_monitor got unknown kwargs: {extra_kwargs!r}") @@ -800,9 +800,9 @@ def delete_http_monitor(self, monitor_id, **kwargs): "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -812,7 +812,7 @@ def delete_http_monitor(self, monitor_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -895,7 +895,7 @@ def delete_ping_monitor(self, monitor_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ping_monitor got unknown kwargs: {extra_kwargs!r}") @@ -904,9 +904,9 @@ def delete_ping_monitor(self, monitor_id, **kwargs): "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -916,7 +916,7 @@ def delete_ping_monitor(self, monitor_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -998,7 +998,7 @@ def get_http_monitor(self, monitor_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_http_monitor got unknown kwargs: {extra_kwargs!r}") @@ -1007,9 +1007,9 @@ def get_http_monitor(self, monitor_id, **kwargs): "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1019,7 +1019,7 @@ def get_http_monitor(self, monitor_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1103,7 +1103,7 @@ def get_ping_monitor(self, monitor_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ping_monitor got unknown kwargs: {extra_kwargs!r}") @@ -1112,9 +1112,9 @@ def get_ping_monitor(self, monitor_id, **kwargs): "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1124,7 +1124,7 @@ def get_ping_monitor(self, monitor_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1227,7 +1227,7 @@ def list_health_checks_vantage_points(self, **kwargs): "name", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_health_checks_vantage_points got unknown kwargs: {extra_kwargs!r}") @@ -1254,14 +1254,14 @@ def list_health_checks_vantage_points(self, **kwargs): "name": kwargs.get("name", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1367,7 +1367,7 @@ def list_http_monitors(self, compartment_id, **kwargs): "display_name", "home_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_http_monitors got unknown kwargs: {extra_kwargs!r}") @@ -1395,14 +1395,14 @@ def list_http_monitors(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "homeRegion": kwargs.get("home_region", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1508,7 +1508,7 @@ def list_http_probe_results(self, probe_configuration_id, **kwargs): "sort_order", "target" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_http_probe_results got unknown kwargs: {extra_kwargs!r}") @@ -1517,9 +1517,9 @@ def list_http_probe_results(self, probe_configuration_id, **kwargs): "probeConfigurationId": probe_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1538,14 +1538,14 @@ def list_http_probe_results(self, probe_configuration_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "target": kwargs.get("target", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1656,7 +1656,7 @@ def list_ping_monitors(self, compartment_id, **kwargs): "display_name", "home_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ping_monitors got unknown kwargs: {extra_kwargs!r}") @@ -1684,14 +1684,14 @@ def list_ping_monitors(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "homeRegion": kwargs.get("home_region", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1801,7 +1801,7 @@ def list_ping_probe_results(self, probe_configuration_id, **kwargs): "sort_order", "target" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ping_probe_results got unknown kwargs: {extra_kwargs!r}") @@ -1810,9 +1810,9 @@ def list_ping_probe_results(self, probe_configuration_id, **kwargs): "probeConfigurationId": probe_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1831,14 +1831,14 @@ def list_ping_probe_results(self, probe_configuration_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "target": kwargs.get("target", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1929,7 +1929,7 @@ def update_http_monitor(self, monitor_id, update_http_monitor_details, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_http_monitor got unknown kwargs: {extra_kwargs!r}") @@ -1938,9 +1938,9 @@ def update_http_monitor(self, monitor_id, update_http_monitor_details, **kwargs) "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1950,7 +1950,7 @@ def update_http_monitor(self, monitor_id, update_http_monitor_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2041,7 +2041,7 @@ def update_ping_monitor(self, monitor_id, update_ping_monitor_details, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ping_monitor got unknown kwargs: {extra_kwargs!r}") @@ -2050,9 +2050,9 @@ def update_ping_monitor(self, monitor_id, update_ping_monitor_details, **kwargs) "monitorId": monitor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2062,7 +2062,7 @@ def update_ping_monitor(self, monitor_id, update_ping_monitor_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/identity/identity_client.py b/src/oci/identity/identity_client.py index 97daba9df..c293c9d78 100644 --- a/src/oci/identity/identity_client.py +++ b/src/oci/identity/identity_client.py @@ -181,7 +181,7 @@ def activate_domain(self, domain_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_domain got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def activate_domain(self, domain_id, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def activate_domain(self, domain_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -296,7 +296,7 @@ def activate_mfa_totp_device(self, user_id, mfa_totp_device_id, mfa_totp_token, "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_mfa_totp_device got unknown kwargs: {extra_kwargs!r}") @@ -306,9 +306,9 @@ def activate_mfa_totp_device(self, user_id, mfa_totp_device_id, mfa_totp_token, "mfaTotpDeviceId": mfa_totp_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -318,7 +318,7 @@ def activate_mfa_totp_device(self, user_id, mfa_totp_device_id, mfa_totp_token, "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -417,7 +417,7 @@ def add_tag_default_lock(self, tag_default_id, add_lock_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_tag_default_lock got unknown kwargs: {extra_kwargs!r}") @@ -426,9 +426,9 @@ def add_tag_default_lock(self, tag_default_id, add_lock_details, **kwargs): "tagDefaultId": tag_default_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -439,7 +439,7 @@ def add_tag_default_lock(self, tag_default_id, add_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -538,7 +538,7 @@ def add_tag_namespace_lock(self, tag_namespace_id, add_lock_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_tag_namespace_lock got unknown kwargs: {extra_kwargs!r}") @@ -547,9 +547,9 @@ def add_tag_namespace_lock(self, tag_namespace_id, add_lock_details, **kwargs): "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -560,7 +560,7 @@ def add_tag_namespace_lock(self, tag_namespace_id, add_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -648,7 +648,7 @@ def add_user_to_group(self, add_user_to_group_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_user_to_group got unknown kwargs: {extra_kwargs!r}") @@ -658,7 +658,7 @@ def add_user_to_group(self, add_user_to_group_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -742,7 +742,7 @@ def assemble_effective_tag_set(self, compartment_id, **kwargs): "retry_strategy", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"assemble_effective_tag_set got unknown kwargs: {extra_kwargs!r}") @@ -758,7 +758,7 @@ def assemble_effective_tag_set(self, compartment_id, **kwargs): "compartmentId": compartment_id, "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -859,7 +859,7 @@ def bulk_delete_resources(self, compartment_id, bulk_delete_resources_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_delete_resources got unknown kwargs: {extra_kwargs!r}") @@ -868,9 +868,9 @@ def bulk_delete_resources(self, compartment_id, bulk_delete_resources_details, * "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -880,7 +880,7 @@ def bulk_delete_resources(self, compartment_id, bulk_delete_resources_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -992,7 +992,7 @@ def bulk_delete_tags(self, bulk_delete_tags_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_delete_tags got unknown kwargs: {extra_kwargs!r}") @@ -1000,7 +1000,7 @@ def bulk_delete_tags(self, bulk_delete_tags_details, **kwargs): query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1008,7 +1008,7 @@ def bulk_delete_tags(self, bulk_delete_tags_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1110,7 +1110,7 @@ def bulk_edit_tags(self, **kwargs): "opc_retry_token", "bulk_edit_tags_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_edit_tags got unknown kwargs: {extra_kwargs!r}") @@ -1121,7 +1121,7 @@ def bulk_edit_tags(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1216,7 +1216,7 @@ def bulk_move_resources(self, compartment_id, bulk_move_resources_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_move_resources got unknown kwargs: {extra_kwargs!r}") @@ -1225,9 +1225,9 @@ def bulk_move_resources(self, compartment_id, bulk_move_resources_details, **kwa "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1237,7 +1237,7 @@ def bulk_move_resources(self, compartment_id, bulk_move_resources_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1353,7 +1353,7 @@ def cascade_delete_tag_namespace(self, tag_namespace_id, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascade_delete_tag_namespace got unknown kwargs: {extra_kwargs!r}") @@ -1362,16 +1362,16 @@ def cascade_delete_tag_namespace(self, tag_namespace_id, **kwargs): "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1380,7 +1380,7 @@ def cascade_delete_tag_namespace(self, tag_namespace_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1480,7 +1480,7 @@ def change_domain_compartment(self, domain_id, change_domain_compartment_details "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_domain_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1489,9 +1489,9 @@ def change_domain_compartment(self, domain_id, change_domain_compartment_details "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1502,7 +1502,7 @@ def change_domain_compartment(self, domain_id, change_domain_compartment_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1607,7 +1607,7 @@ def change_domain_license_type(self, domain_id, change_domain_license_type_detai "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_domain_license_type got unknown kwargs: {extra_kwargs!r}") @@ -1616,9 +1616,9 @@ def change_domain_license_type(self, domain_id, change_domain_license_type_detai "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1629,7 +1629,7 @@ def change_domain_license_type(self, domain_id, change_domain_license_type_detai "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1726,7 +1726,7 @@ def change_tag_namespace_compartment(self, tag_namespace_id, change_tag_namespac "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_tag_namespace_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1735,23 +1735,23 @@ def change_tag_namespace_compartment(self, tag_namespace_id, change_tag_namespac "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1850,7 +1850,7 @@ def create_auth_token(self, create_auth_token_details, user_id, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -1859,9 +1859,9 @@ def create_auth_token(self, create_auth_token_details, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1870,7 +1870,7 @@ def create_auth_token(self, create_auth_token_details, user_id, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1974,7 +1974,7 @@ def create_compartment(self, create_compartment_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1984,7 +1984,7 @@ def create_compartment(self, create_compartment_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2082,7 +2082,7 @@ def create_customer_secret_key(self, create_customer_secret_key_details, user_id "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -2091,9 +2091,9 @@ def create_customer_secret_key(self, create_customer_secret_key_details, user_id "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2102,7 +2102,7 @@ def create_customer_secret_key(self, create_customer_secret_key_details, user_id "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2195,7 +2195,7 @@ def create_db_credential(self, create_db_credential_details, user_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -2204,9 +2204,9 @@ def create_db_credential(self, create_db_credential_details, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2216,7 +2216,7 @@ def create_db_credential(self, create_db_credential_details, user_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2313,7 +2313,7 @@ def create_domain(self, create_domain_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_domain got unknown kwargs: {extra_kwargs!r}") @@ -2324,7 +2324,7 @@ def create_domain(self, create_domain_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2425,7 +2425,7 @@ def create_dynamic_group(self, create_dynamic_group_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dynamic_group got unknown kwargs: {extra_kwargs!r}") @@ -2435,7 +2435,7 @@ def create_dynamic_group(self, create_dynamic_group_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2541,7 +2541,7 @@ def create_group(self, create_group_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_group got unknown kwargs: {extra_kwargs!r}") @@ -2551,7 +2551,7 @@ def create_group(self, create_group_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2657,7 +2657,7 @@ def create_identity_provider(self, create_identity_provider_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -2667,7 +2667,7 @@ def create_identity_provider(self, create_identity_provider_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2758,7 +2758,7 @@ def create_idp_group_mapping(self, create_idp_group_mapping_details, identity_pr "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_idp_group_mapping got unknown kwargs: {extra_kwargs!r}") @@ -2767,9 +2767,9 @@ def create_idp_group_mapping(self, create_idp_group_mapping_details, identity_pr "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2778,7 +2778,7 @@ def create_idp_group_mapping(self, create_idp_group_mapping_details, identity_pr "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2863,7 +2863,7 @@ def create_mfa_totp_device(self, user_id, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_mfa_totp_device got unknown kwargs: {extra_kwargs!r}") @@ -2872,9 +2872,9 @@ def create_mfa_totp_device(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2883,7 +2883,7 @@ def create_mfa_totp_device(self, user_id, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2990,7 +2990,7 @@ def create_network_source(self, create_network_source_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_source got unknown kwargs: {extra_kwargs!r}") @@ -3000,7 +3000,7 @@ def create_network_source(self, create_network_source_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3086,7 +3086,7 @@ def create_o_auth_client_credential(self, user_id, create_o_auth2_client_credent "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_o_auth_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -3095,9 +3095,9 @@ def create_o_auth_client_credential(self, user_id, create_o_auth2_client_credent "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3106,7 +3106,7 @@ def create_o_auth_client_credential(self, user_id, create_o_auth2_client_credent "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3207,7 +3207,7 @@ def create_or_reset_ui_password(self, user_id, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_or_reset_ui_password got unknown kwargs: {extra_kwargs!r}") @@ -3216,9 +3216,9 @@ def create_or_reset_ui_password(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3227,7 +3227,7 @@ def create_or_reset_ui_password(self, user_id, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3330,7 +3330,7 @@ def create_policy(self, create_policy_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_policy got unknown kwargs: {extra_kwargs!r}") @@ -3340,7 +3340,7 @@ def create_policy(self, create_policy_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3426,7 +3426,7 @@ def create_region_subscription(self, create_region_subscription_details, tenancy "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_region_subscription got unknown kwargs: {extra_kwargs!r}") @@ -3435,9 +3435,9 @@ def create_region_subscription(self, create_region_subscription_details, tenancy "tenancyId": tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3446,7 +3446,7 @@ def create_region_subscription(self, create_region_subscription_details, tenancy "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3537,7 +3537,7 @@ def create_smtp_credential(self, create_smtp_credential_details, user_id, **kwar "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -3546,9 +3546,9 @@ def create_smtp_credential(self, create_smtp_credential_details, user_id, **kwar "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3557,7 +3557,7 @@ def create_smtp_credential(self, create_smtp_credential_details, user_id, **kwar "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3658,7 +3658,7 @@ def create_swift_password(self, create_swift_password_details, user_id, **kwargs "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_swift_password got unknown kwargs: {extra_kwargs!r}") @@ -3667,9 +3667,9 @@ def create_swift_password(self, create_swift_password_details, user_id, **kwargs "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3678,7 +3678,7 @@ def create_swift_password(self, create_swift_password_details, user_id, **kwargs "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3791,7 +3791,7 @@ def create_tag(self, tag_namespace_id, create_tag_details, **kwargs): "opc_retry_token", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tag got unknown kwargs: {extra_kwargs!r}") @@ -3800,23 +3800,23 @@ def create_tag(self, tag_namespace_id, create_tag_details, **kwargs): "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3915,7 +3915,7 @@ def create_tag_default(self, create_tag_default_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tag_default got unknown kwargs: {extra_kwargs!r}") @@ -3926,7 +3926,7 @@ def create_tag_default(self, create_tag_default_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4022,7 +4022,7 @@ def create_tag_namespace(self, create_tag_namespace_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tag_namespace got unknown kwargs: {extra_kwargs!r}") @@ -4032,7 +4032,7 @@ def create_tag_namespace(self, create_tag_namespace_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4153,7 +4153,7 @@ def create_user(self, create_user_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_user got unknown kwargs: {extra_kwargs!r}") @@ -4163,7 +4163,7 @@ def create_user(self, create_user_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4265,7 +4265,7 @@ def deactivate_domain(self, domain_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_domain got unknown kwargs: {extra_kwargs!r}") @@ -4274,9 +4274,9 @@ def deactivate_domain(self, domain_id, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4287,7 +4287,7 @@ def deactivate_domain(self, domain_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4374,7 +4374,7 @@ def delete_api_key(self, user_id, fingerprint, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_api_key got unknown kwargs: {extra_kwargs!r}") @@ -4384,9 +4384,9 @@ def delete_api_key(self, user_id, fingerprint, **kwargs): "fingerprint": fingerprint } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4395,7 +4395,7 @@ def delete_api_key(self, user_id, fingerprint, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4476,7 +4476,7 @@ def delete_auth_token(self, user_id, auth_token_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -4486,9 +4486,9 @@ def delete_auth_token(self, user_id, auth_token_id, **kwargs): "authTokenId": auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4497,7 +4497,7 @@ def delete_auth_token(self, user_id, auth_token_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4575,7 +4575,7 @@ def delete_compartment(self, compartment_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4584,9 +4584,9 @@ def delete_compartment(self, compartment_id, **kwargs): "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4595,7 +4595,7 @@ def delete_compartment(self, compartment_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4676,7 +4676,7 @@ def delete_customer_secret_key(self, user_id, customer_secret_key_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -4686,9 +4686,9 @@ def delete_customer_secret_key(self, user_id, customer_secret_key_id, **kwargs): "customerSecretKeyId": customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4697,7 +4697,7 @@ def delete_customer_secret_key(self, user_id, customer_secret_key_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4783,7 +4783,7 @@ def delete_db_credential(self, user_id, db_credential_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -4793,9 +4793,9 @@ def delete_db_credential(self, user_id, db_credential_id, **kwargs): "dbCredentialId": db_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4805,7 +4805,7 @@ def delete_db_credential(self, user_id, db_credential_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4894,7 +4894,7 @@ def delete_domain(self, domain_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_domain got unknown kwargs: {extra_kwargs!r}") @@ -4903,9 +4903,9 @@ def delete_domain(self, domain_id, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4915,7 +4915,7 @@ def delete_domain(self, domain_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4993,7 +4993,7 @@ def delete_dynamic_group(self, dynamic_group_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dynamic_group got unknown kwargs: {extra_kwargs!r}") @@ -5002,9 +5002,9 @@ def delete_dynamic_group(self, dynamic_group_id, **kwargs): "dynamicGroupId": dynamic_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5013,7 +5013,7 @@ def delete_dynamic_group(self, dynamic_group_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5091,7 +5091,7 @@ def delete_group(self, group_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_group got unknown kwargs: {extra_kwargs!r}") @@ -5100,9 +5100,9 @@ def delete_group(self, group_id, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5111,7 +5111,7 @@ def delete_group(self, group_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5194,7 +5194,7 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -5203,9 +5203,9 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5214,7 +5214,7 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5299,7 +5299,7 @@ def delete_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_idp_group_mapping got unknown kwargs: {extra_kwargs!r}") @@ -5309,9 +5309,9 @@ def delete_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): "mappingId": mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5320,7 +5320,7 @@ def delete_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5401,7 +5401,7 @@ def delete_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_mfa_totp_device got unknown kwargs: {extra_kwargs!r}") @@ -5411,9 +5411,9 @@ def delete_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): "mfaTotpDeviceId": mfa_totp_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5422,7 +5422,7 @@ def delete_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5500,7 +5500,7 @@ def delete_network_source(self, network_source_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_source got unknown kwargs: {extra_kwargs!r}") @@ -5509,9 +5509,9 @@ def delete_network_source(self, network_source_id, **kwargs): "networkSourceId": network_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5520,7 +5520,7 @@ def delete_network_source(self, network_source_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5601,7 +5601,7 @@ def delete_o_auth_client_credential(self, user_id, oauth2_client_credential_id, "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_o_auth_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -5611,9 +5611,9 @@ def delete_o_auth_client_credential(self, user_id, oauth2_client_credential_id, "oauth2ClientCredentialId": oauth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5622,7 +5622,7 @@ def delete_o_auth_client_credential(self, user_id, oauth2_client_credential_id, "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5700,7 +5700,7 @@ def delete_policy(self, policy_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_policy got unknown kwargs: {extra_kwargs!r}") @@ -5709,9 +5709,9 @@ def delete_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5720,7 +5720,7 @@ def delete_policy(self, policy_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5801,7 +5801,7 @@ def delete_smtp_credential(self, user_id, smtp_credential_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -5811,9 +5811,9 @@ def delete_smtp_credential(self, user_id, smtp_credential_id, **kwargs): "smtpCredentialId": smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5822,7 +5822,7 @@ def delete_smtp_credential(self, user_id, smtp_credential_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5905,7 +5905,7 @@ def delete_swift_password(self, user_id, swift_password_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_swift_password got unknown kwargs: {extra_kwargs!r}") @@ -5915,9 +5915,9 @@ def delete_swift_password(self, user_id, swift_password_id, **kwargs): "swiftPasswordId": swift_password_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5926,7 +5926,7 @@ def delete_swift_password(self, user_id, swift_password_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6030,7 +6030,7 @@ def delete_tag(self, tag_namespace_id, tag_name, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tag got unknown kwargs: {extra_kwargs!r}") @@ -6040,23 +6040,23 @@ def delete_tag(self, tag_namespace_id, tag_name, **kwargs): "tagName": tag_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6145,7 +6145,7 @@ def delete_tag_default(self, tag_default_id, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tag_default got unknown kwargs: {extra_kwargs!r}") @@ -6154,16 +6154,16 @@ def delete_tag_default(self, tag_default_id, **kwargs): "tagDefaultId": tag_default_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6171,7 +6171,7 @@ def delete_tag_default(self, tag_default_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6266,7 +6266,7 @@ def delete_tag_namespace(self, tag_namespace_id, **kwargs): "opc_request_id", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tag_namespace got unknown kwargs: {extra_kwargs!r}") @@ -6275,16 +6275,16 @@ def delete_tag_namespace(self, tag_namespace_id, **kwargs): "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6292,7 +6292,7 @@ def delete_tag_namespace(self, tag_namespace_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6372,7 +6372,7 @@ def delete_user(self, user_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_user got unknown kwargs: {extra_kwargs!r}") @@ -6381,9 +6381,9 @@ def delete_user(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6392,7 +6392,7 @@ def delete_user(self, user_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6495,7 +6495,7 @@ def enable_replication_to_region(self, domain_id, enable_replication_to_region_d "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_replication_to_region got unknown kwargs: {extra_kwargs!r}") @@ -6504,9 +6504,9 @@ def enable_replication_to_region(self, domain_id, enable_replication_to_region_d "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6517,7 +6517,7 @@ def enable_replication_to_region(self, domain_id, enable_replication_to_region_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6601,7 +6601,7 @@ def generate_totp_seed(self, user_id, mfa_totp_device_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_totp_seed got unknown kwargs: {extra_kwargs!r}") @@ -6611,9 +6611,9 @@ def generate_totp_seed(self, user_id, mfa_totp_device_id, **kwargs): "mfaTotpDeviceId": mfa_totp_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6622,7 +6622,7 @@ def generate_totp_seed(self, user_id, mfa_totp_device_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6693,7 +6693,7 @@ def get_authentication_policy(self, compartment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthenticationPolicy/GetAuthenticationPolicy" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_authentication_policy got unknown kwargs: {extra_kwargs!r}") @@ -6702,9 +6702,9 @@ def get_authentication_policy(self, compartment_id, **kwargs): "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6788,7 +6788,7 @@ def get_compartment(self, compartment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/GetCompartment" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_compartment got unknown kwargs: {extra_kwargs!r}") @@ -6797,9 +6797,9 @@ def get_compartment(self, compartment_id, **kwargs): "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6885,7 +6885,7 @@ def get_domain(self, domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_domain got unknown kwargs: {extra_kwargs!r}") @@ -6894,9 +6894,9 @@ def get_domain(self, domain_id, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6905,7 +6905,7 @@ def get_domain(self, domain_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6975,7 +6975,7 @@ def get_dynamic_group(self, dynamic_group_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/GetDynamicGroup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dynamic_group got unknown kwargs: {extra_kwargs!r}") @@ -6984,9 +6984,9 @@ def get_dynamic_group(self, dynamic_group_id, **kwargs): "dynamicGroupId": dynamic_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7067,7 +7067,7 @@ def get_group(self, group_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Group/GetGroup" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_group got unknown kwargs: {extra_kwargs!r}") @@ -7076,9 +7076,9 @@ def get_group(self, group_id, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7164,7 +7164,7 @@ def get_iam_work_request(self, iam_work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_iam_work_request got unknown kwargs: {extra_kwargs!r}") @@ -7173,9 +7173,9 @@ def get_iam_work_request(self, iam_work_request_id, **kwargs): "iamWorkRequestId": iam_work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7184,7 +7184,7 @@ def get_iam_work_request(self, iam_work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7258,7 +7258,7 @@ def get_identity_provider(self, identity_provider_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdentityProvider/GetIdentityProvider" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -7267,9 +7267,9 @@ def get_identity_provider(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7353,7 +7353,7 @@ def get_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdpGroupMapping/GetIdpGroupMapping" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_idp_group_mapping got unknown kwargs: {extra_kwargs!r}") @@ -7363,9 +7363,9 @@ def get_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): "mappingId": mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7445,7 +7445,7 @@ def get_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDeviceSummary/GetMfaTotpDevice" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_mfa_totp_device got unknown kwargs: {extra_kwargs!r}") @@ -7455,9 +7455,9 @@ def get_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): "mfaTotpDeviceId": mfa_totp_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7534,7 +7534,7 @@ def get_network_source(self, network_source_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/NetworkSources/GetNetworkSource" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_source got unknown kwargs: {extra_kwargs!r}") @@ -7543,9 +7543,9 @@ def get_network_source(self, network_source_id, **kwargs): "networkSourceId": network_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7622,7 +7622,7 @@ def get_policy(self, policy_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Policy/GetPolicy" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_policy got unknown kwargs: {extra_kwargs!r}") @@ -7631,9 +7631,9 @@ def get_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7713,7 +7713,7 @@ def get_standard_tag_template(self, compartment_id, standard_tag_namespace_name, api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/StandardTagNamespaceTemplate/GetStandardTagTemplate" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_standard_tag_template got unknown kwargs: {extra_kwargs!r}") @@ -7722,16 +7722,16 @@ def get_standard_tag_template(self, compartment_id, standard_tag_namespace_name, "standardTagNamespaceName": standard_tag_namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7811,7 +7811,7 @@ def get_tag(self, tag_namespace_id, tag_name, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/GetTag" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tag got unknown kwargs: {extra_kwargs!r}") @@ -7821,9 +7821,9 @@ def get_tag(self, tag_namespace_id, tag_name, **kwargs): "tagName": tag_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7900,7 +7900,7 @@ def get_tag_default(self, tag_default_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/GetTagDefault" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tag_default got unknown kwargs: {extra_kwargs!r}") @@ -7909,9 +7909,9 @@ def get_tag_default(self, tag_default_id, **kwargs): "tagDefaultId": tag_default_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7988,7 +7988,7 @@ def get_tag_namespace(self, tag_namespace_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/GetTagNamespace" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tag_namespace got unknown kwargs: {extra_kwargs!r}") @@ -7997,9 +7997,9 @@ def get_tag_namespace(self, tag_namespace_id, **kwargs): "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8077,7 +8077,7 @@ def get_tagging_work_request(self, work_request_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TaggingWorkRequest/GetTaggingWorkRequest" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tagging_work_request got unknown kwargs: {extra_kwargs!r}") @@ -8086,9 +8086,9 @@ def get_tagging_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8165,7 +8165,7 @@ def get_tenancy(self, tenancy_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/GetTenancy" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tenancy got unknown kwargs: {extra_kwargs!r}") @@ -8174,9 +8174,9 @@ def get_tenancy(self, tenancy_id, **kwargs): "tenancyId": tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8253,7 +8253,7 @@ def get_user(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/GetUser" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user got unknown kwargs: {extra_kwargs!r}") @@ -8262,9 +8262,9 @@ def get_user(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8341,7 +8341,7 @@ def get_user_group_membership(self, user_group_membership_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UserGroupMembership/GetUserGroupMembership" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_group_membership got unknown kwargs: {extra_kwargs!r}") @@ -8350,9 +8350,9 @@ def get_user_group_membership(self, user_group_membership_id, **kwargs): "userGroupMembershipId": user_group_membership_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8430,7 +8430,7 @@ def get_user_ui_password_information(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UIPasswordInformation/GetUserUiPasswordInformation" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_ui_password_information got unknown kwargs: {extra_kwargs!r}") @@ -8439,9 +8439,9 @@ def get_user_ui_password_information(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8519,7 +8519,7 @@ def get_work_request(self, work_request_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/WorkRequest/GetWorkRequest" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -8528,9 +8528,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8626,7 +8626,7 @@ def import_standard_tags(self, **kwargs): "opc_retry_token", "import_standard_tags_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_standard_tags got unknown kwargs: {extra_kwargs!r}") @@ -8637,7 +8637,7 @@ def import_standard_tags(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8720,7 +8720,7 @@ def list_allowed_domain_license_types(self, **kwargs): "current_license_type_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_allowed_domain_license_types got unknown kwargs: {extra_kwargs!r}") @@ -8728,14 +8728,14 @@ def list_allowed_domain_license_types(self, **kwargs): query_params = { "currentLicenseTypeName": kwargs.get("current_license_type_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8808,7 +8808,7 @@ def list_api_keys(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/ApiKey/ListApiKeys" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_api_keys got unknown kwargs: {extra_kwargs!r}") @@ -8817,9 +8817,9 @@ def list_api_keys(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8897,7 +8897,7 @@ def list_auth_tokens(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthToken/ListAuthTokens" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_auth_tokens got unknown kwargs: {extra_kwargs!r}") @@ -8906,9 +8906,9 @@ def list_auth_tokens(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8991,7 +8991,7 @@ def list_availability_domains(self, compartment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AvailabilityDomain/ListAvailabilityDomains" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_availability_domains got unknown kwargs: {extra_kwargs!r}") @@ -8999,7 +8999,7 @@ def list_availability_domains(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9096,7 +9096,7 @@ def list_bulk_action_resource_types(self, bulk_action_type, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bulk_action_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -9112,7 +9112,7 @@ def list_bulk_action_resource_types(self, bulk_action_type, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9196,7 +9196,7 @@ def list_bulk_edit_tags_resource_types(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_bulk_edit_tags_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -9205,7 +9205,7 @@ def list_bulk_edit_tags_resource_types(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9361,7 +9361,7 @@ def list_compartments(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_compartments got unknown kwargs: {extra_kwargs!r}") @@ -9405,7 +9405,7 @@ def list_compartments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9495,7 +9495,7 @@ def list_cost_tracking_tags(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cost_tracking_tags got unknown kwargs: {extra_kwargs!r}") @@ -9505,7 +9505,7 @@ def list_cost_tracking_tags(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9581,7 +9581,7 @@ def list_customer_secret_keys(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/CustomerSecretKeySummary/ListCustomerSecretKeys" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_customer_secret_keys got unknown kwargs: {extra_kwargs!r}") @@ -9590,9 +9590,9 @@ def list_customer_secret_keys(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9716,7 +9716,7 @@ def list_db_credentials(self, user_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_credentials got unknown kwargs: {extra_kwargs!r}") @@ -9725,9 +9725,9 @@ def list_db_credentials(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9760,14 +9760,14 @@ def list_db_credentials(self, user_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9910,7 +9910,7 @@ def list_domains(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_domains got unknown kwargs: {extra_kwargs!r}") @@ -9951,14 +9951,14 @@ def list_domains(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10074,7 +10074,7 @@ def list_dynamic_groups(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dynamic_groups got unknown kwargs: {extra_kwargs!r}") @@ -10109,7 +10109,7 @@ def list_dynamic_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10191,7 +10191,7 @@ def list_fault_domains(self, compartment_id, availability_domain, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/FaultDomain/ListFaultDomains" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fault_domains got unknown kwargs: {extra_kwargs!r}") @@ -10200,7 +10200,7 @@ def list_fault_domains(self, compartment_id, availability_domain, **kwargs): "compartmentId": compartment_id, "availabilityDomain": availability_domain } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10321,7 +10321,7 @@ def list_groups(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_groups got unknown kwargs: {extra_kwargs!r}") @@ -10356,7 +10356,7 @@ def list_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10455,7 +10455,7 @@ def list_iam_work_request_errors(self, iam_work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_iam_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -10464,9 +10464,9 @@ def list_iam_work_request_errors(self, iam_work_request_id, **kwargs): "iamWorkRequestId": iam_work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10482,14 +10482,14 @@ def list_iam_work_request_errors(self, iam_work_request_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10585,7 +10585,7 @@ def list_iam_work_request_logs(self, iam_work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_iam_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -10594,9 +10594,9 @@ def list_iam_work_request_logs(self, iam_work_request_id, **kwargs): "iamWorkRequestId": iam_work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10612,14 +10612,14 @@ def list_iam_work_request_logs(self, iam_work_request_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10712,7 +10712,7 @@ def list_iam_work_requests(self, compartment_id, **kwargs): "resource_identifier", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_iam_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -10723,14 +10723,14 @@ def list_iam_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "resourceIdentifier": kwargs.get("resource_identifier", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10826,7 +10826,7 @@ def list_identity_provider_groups(self, identity_provider_id, **kwargs): "name", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_identity_provider_groups got unknown kwargs: {extra_kwargs!r}") @@ -10835,9 +10835,9 @@ def list_identity_provider_groups(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10854,7 +10854,7 @@ def list_identity_provider_groups(self, identity_provider_id, **kwargs): "name": kwargs.get("name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -10986,7 +10986,7 @@ def list_identity_providers(self, protocol, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_identity_providers got unknown kwargs: {extra_kwargs!r}") @@ -11022,7 +11022,7 @@ def list_identity_providers(self, protocol, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11113,7 +11113,7 @@ def list_idp_group_mappings(self, identity_provider_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_idp_group_mappings got unknown kwargs: {extra_kwargs!r}") @@ -11122,9 +11122,9 @@ def list_idp_group_mappings(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11132,7 +11132,7 @@ def list_idp_group_mappings(self, identity_provider_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11242,7 +11242,7 @@ def list_mfa_totp_devices(self, user_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mfa_totp_devices got unknown kwargs: {extra_kwargs!r}") @@ -11251,9 +11251,9 @@ def list_mfa_totp_devices(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11277,7 +11277,7 @@ def list_mfa_totp_devices(self, user_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11400,7 +11400,7 @@ def list_network_sources(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_sources got unknown kwargs: {extra_kwargs!r}") @@ -11435,7 +11435,7 @@ def list_network_sources(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11528,7 +11528,7 @@ def list_o_auth_client_credentials(self, user_id, **kwargs): "limit", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_o_auth_client_credentials got unknown kwargs: {extra_kwargs!r}") @@ -11537,9 +11537,9 @@ def list_o_auth_client_credentials(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11555,7 +11555,7 @@ def list_o_auth_client_credentials(self, user_id, **kwargs): "limit": kwargs.get("limit", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11680,7 +11680,7 @@ def list_policies(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_policies got unknown kwargs: {extra_kwargs!r}") @@ -11715,7 +11715,7 @@ def list_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -11790,7 +11790,7 @@ def list_region_subscriptions(self, tenancy_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/RegionSubscription/ListRegionSubscriptions" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_region_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -11799,9 +11799,9 @@ def list_region_subscriptions(self, tenancy_id, **kwargs): "tenancyId": tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11875,7 +11875,7 @@ def list_regions(self, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Region/ListRegions" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_regions got unknown kwargs: {extra_kwargs!r}") @@ -11952,7 +11952,7 @@ def list_smtp_credentials(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SmtpCredentialSummary/ListSmtpCredentials" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_smtp_credentials got unknown kwargs: {extra_kwargs!r}") @@ -11961,9 +11961,9 @@ def list_smtp_credentials(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12052,7 +12052,7 @@ def list_standard_tag_namespaces(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_standard_tag_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -12062,7 +12062,7 @@ def list_standard_tag_namespaces(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12140,7 +12140,7 @@ def list_swift_passwords(self, user_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SwiftPassword/ListSwiftPasswords" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_swift_passwords got unknown kwargs: {extra_kwargs!r}") @@ -12149,9 +12149,9 @@ def list_swift_passwords(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12255,7 +12255,7 @@ def list_tag_defaults(self, **kwargs): "tag_definition_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tag_defaults got unknown kwargs: {extra_kwargs!r}") @@ -12275,7 +12275,7 @@ def list_tag_defaults(self, **kwargs): "tagDefinitionId": kwargs.get("tag_definition_id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12373,7 +12373,7 @@ def list_tag_namespaces(self, compartment_id, **kwargs): "include_subcompartments", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tag_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -12392,7 +12392,7 @@ def list_tag_namespaces(self, compartment_id, **kwargs): "includeSubcompartments": kwargs.get("include_subcompartments", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12479,7 +12479,7 @@ def list_tagging_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tagging_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -12488,9 +12488,9 @@ def list_tagging_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12498,7 +12498,7 @@ def list_tagging_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12587,7 +12587,7 @@ def list_tagging_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tagging_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -12596,9 +12596,9 @@ def list_tagging_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12606,7 +12606,7 @@ def list_tagging_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12699,7 +12699,7 @@ def list_tagging_work_requests(self, compartment_id, **kwargs): "limit", "resource_identifier" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tagging_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -12710,7 +12710,7 @@ def list_tagging_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "resourceIdentifier": kwargs.get("resource_identifier", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12803,7 +12803,7 @@ def list_tags(self, tag_namespace_id, **kwargs): "limit", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tags got unknown kwargs: {extra_kwargs!r}") @@ -12812,9 +12812,9 @@ def list_tags(self, tag_namespace_id, **kwargs): "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12830,7 +12830,7 @@ def list_tags(self, tag_namespace_id, **kwargs): "limit": kwargs.get("limit", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -12938,7 +12938,7 @@ def list_user_group_memberships(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_group_memberships got unknown kwargs: {extra_kwargs!r}") @@ -12950,7 +12950,7 @@ def list_user_group_memberships(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -13079,7 +13079,7 @@ def list_users(self, compartment_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_users got unknown kwargs: {extra_kwargs!r}") @@ -13116,7 +13116,7 @@ def list_users(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -13207,7 +13207,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "resource_identifier" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -13218,7 +13218,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "resourceIdentifier": kwargs.get("resource_identifier", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -13328,7 +13328,7 @@ def move_compartment(self, compartment_id, move_compartment_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"move_compartment got unknown kwargs: {extra_kwargs!r}") @@ -13337,9 +13337,9 @@ def move_compartment(self, compartment_id, move_compartment_details, **kwargs): "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13350,7 +13350,7 @@ def move_compartment(self, compartment_id, move_compartment_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13436,7 +13436,7 @@ def recover_compartment(self, compartment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"recover_compartment got unknown kwargs: {extra_kwargs!r}") @@ -13445,9 +13445,9 @@ def recover_compartment(self, compartment_id, **kwargs): "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13457,7 +13457,7 @@ def recover_compartment(self, compartment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13553,7 +13553,7 @@ def remove_tag_default_lock(self, tag_default_id, remove_lock_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_tag_default_lock got unknown kwargs: {extra_kwargs!r}") @@ -13562,9 +13562,9 @@ def remove_tag_default_lock(self, tag_default_id, remove_lock_details, **kwargs) "tagDefaultId": tag_default_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13575,7 +13575,7 @@ def remove_tag_default_lock(self, tag_default_id, remove_lock_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13674,7 +13674,7 @@ def remove_tag_namespace_lock(self, tag_namespace_id, remove_lock_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_tag_namespace_lock got unknown kwargs: {extra_kwargs!r}") @@ -13683,9 +13683,9 @@ def remove_tag_namespace_lock(self, tag_namespace_id, remove_lock_details, **kwa "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13696,7 +13696,7 @@ def remove_tag_namespace_lock(self, tag_namespace_id, remove_lock_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13779,7 +13779,7 @@ def remove_user_from_group(self, user_group_membership_id, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_user_from_group got unknown kwargs: {extra_kwargs!r}") @@ -13788,9 +13788,9 @@ def remove_user_from_group(self, user_group_membership_id, **kwargs): "userGroupMembershipId": user_group_membership_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13799,7 +13799,7 @@ def remove_user_from_group(self, user_group_membership_id, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13867,7 +13867,7 @@ def reset_idp_scim_client(self, identity_provider_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity/20160918/ScimClientCredentials/ResetIdpScimClient" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reset_idp_scim_client got unknown kwargs: {extra_kwargs!r}") @@ -13876,9 +13876,9 @@ def reset_idp_scim_client(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13971,7 +13971,7 @@ def update_auth_token(self, user_id, auth_token_id, update_auth_token_details, * "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -13981,9 +13981,9 @@ def update_auth_token(self, user_id, auth_token_id, update_auth_token_details, * "authTokenId": auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13992,7 +13992,7 @@ def update_auth_token(self, user_id, auth_token_id, update_auth_token_details, * "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14077,7 +14077,7 @@ def update_authentication_policy(self, compartment_id, update_authentication_pol "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_authentication_policy got unknown kwargs: {extra_kwargs!r}") @@ -14086,9 +14086,9 @@ def update_authentication_policy(self, compartment_id, update_authentication_pol "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14097,7 +14097,7 @@ def update_authentication_policy(self, compartment_id, update_authentication_pol "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14182,7 +14182,7 @@ def update_compartment(self, compartment_id, update_compartment_details, **kwarg "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_compartment got unknown kwargs: {extra_kwargs!r}") @@ -14191,9 +14191,9 @@ def update_compartment(self, compartment_id, update_compartment_details, **kwarg "compartmentId": compartment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14202,7 +14202,7 @@ def update_compartment(self, compartment_id, update_compartment_details, **kwarg "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14290,7 +14290,7 @@ def update_customer_secret_key(self, user_id, customer_secret_key_id, update_cus "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -14300,9 +14300,9 @@ def update_customer_secret_key(self, user_id, customer_secret_key_id, update_cus "customerSecretKeyId": customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14311,7 +14311,7 @@ def update_customer_secret_key(self, user_id, customer_secret_key_id, update_cus "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14404,7 +14404,7 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_domain got unknown kwargs: {extra_kwargs!r}") @@ -14413,9 +14413,9 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14425,7 +14425,7 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14508,7 +14508,7 @@ def update_dynamic_group(self, dynamic_group_id, update_dynamic_group_details, * "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_dynamic_group got unknown kwargs: {extra_kwargs!r}") @@ -14517,9 +14517,9 @@ def update_dynamic_group(self, dynamic_group_id, update_dynamic_group_details, * "dynamicGroupId": dynamic_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14528,7 +14528,7 @@ def update_dynamic_group(self, dynamic_group_id, update_dynamic_group_details, * "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14613,7 +14613,7 @@ def update_group(self, group_id, update_group_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_group got unknown kwargs: {extra_kwargs!r}") @@ -14622,9 +14622,9 @@ def update_group(self, group_id, update_group_details, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14633,7 +14633,7 @@ def update_group(self, group_id, update_group_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14722,7 +14722,7 @@ def update_identity_provider(self, identity_provider_id, update_identity_provide "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -14731,9 +14731,9 @@ def update_identity_provider(self, identity_provider_id, update_identity_provide "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14742,7 +14742,7 @@ def update_identity_provider(self, identity_provider_id, update_identity_provide "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14834,7 +14834,7 @@ def update_idp_group_mapping(self, identity_provider_id, mapping_id, update_idp_ "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_idp_group_mapping got unknown kwargs: {extra_kwargs!r}") @@ -14844,9 +14844,9 @@ def update_idp_group_mapping(self, identity_provider_id, mapping_id, update_idp_ "mappingId": mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14855,7 +14855,7 @@ def update_idp_group_mapping(self, identity_provider_id, mapping_id, update_idp_ "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14940,7 +14940,7 @@ def update_network_source(self, network_source_id, update_network_source_details "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_source got unknown kwargs: {extra_kwargs!r}") @@ -14949,9 +14949,9 @@ def update_network_source(self, network_source_id, update_network_source_details "networkSourceId": network_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14960,7 +14960,7 @@ def update_network_source(self, network_source_id, update_network_source_details "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15048,7 +15048,7 @@ def update_o_auth_client_credential(self, user_id, oauth2_client_credential_id, "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_o_auth_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -15058,9 +15058,9 @@ def update_o_auth_client_credential(self, user_id, oauth2_client_credential_id, "oauth2ClientCredentialId": oauth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15069,7 +15069,7 @@ def update_o_auth_client_credential(self, user_id, oauth2_client_credential_id, "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15156,7 +15156,7 @@ def update_policy(self, policy_id, update_policy_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_policy got unknown kwargs: {extra_kwargs!r}") @@ -15165,9 +15165,9 @@ def update_policy(self, policy_id, update_policy_details, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15176,7 +15176,7 @@ def update_policy(self, policy_id, update_policy_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15264,7 +15264,7 @@ def update_smtp_credential(self, user_id, smtp_credential_id, update_smtp_creden "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -15274,9 +15274,9 @@ def update_smtp_credential(self, user_id, smtp_credential_id, update_smtp_creden "smtpCredentialId": smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15285,7 +15285,7 @@ def update_smtp_credential(self, user_id, smtp_credential_id, update_smtp_creden "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15375,7 +15375,7 @@ def update_swift_password(self, user_id, swift_password_id, update_swift_passwor "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_swift_password got unknown kwargs: {extra_kwargs!r}") @@ -15385,9 +15385,9 @@ def update_swift_password(self, user_id, swift_password_id, update_swift_passwor "swiftPasswordId": swift_password_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15396,7 +15396,7 @@ def update_swift_password(self, user_id, swift_password_id, update_swift_passwor "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15497,7 +15497,7 @@ def update_tag(self, tag_namespace_id, tag_name, update_tag_details, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tag got unknown kwargs: {extra_kwargs!r}") @@ -15507,23 +15507,23 @@ def update_tag(self, tag_namespace_id, tag_name, update_tag_details, **kwargs): "tagName": tag_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15624,7 +15624,7 @@ def update_tag_default(self, tag_default_id, update_tag_default_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tag_default got unknown kwargs: {extra_kwargs!r}") @@ -15633,16 +15633,16 @@ def update_tag_default(self, tag_default_id, update_tag_default_details, **kwarg "tagDefaultId": tag_default_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -15650,7 +15650,7 @@ def update_tag_default(self, tag_default_id, update_tag_default_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15745,7 +15745,7 @@ def update_tag_namespace(self, tag_namespace_id, update_tag_namespace_details, * "retry_strategy", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tag_namespace got unknown kwargs: {extra_kwargs!r}") @@ -15754,16 +15754,16 @@ def update_tag_namespace(self, tag_namespace_id, update_tag_namespace_details, * "tagNamespaceId": tag_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -15855,7 +15855,7 @@ def update_user(self, user_id, update_user_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_user got unknown kwargs: {extra_kwargs!r}") @@ -15864,9 +15864,9 @@ def update_user(self, user_id, update_user_details, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15875,7 +15875,7 @@ def update_user(self, user_id, update_user_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15960,7 +15960,7 @@ def update_user_capabilities(self, user_id, update_user_capabilities_details, ** "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_user_capabilities got unknown kwargs: {extra_kwargs!r}") @@ -15969,9 +15969,9 @@ def update_user_capabilities(self, user_id, update_user_capabilities_details, ** "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15980,7 +15980,7 @@ def update_user_capabilities(self, user_id, update_user_capabilities_details, ** "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16065,7 +16065,7 @@ def update_user_state(self, user_id, update_state_details, **kwargs): "retry_strategy", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_user_state got unknown kwargs: {extra_kwargs!r}") @@ -16074,9 +16074,9 @@ def update_user_state(self, user_id, update_state_details, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16085,7 +16085,7 @@ def update_user_state(self, user_id, update_state_details, **kwargs): "content-type": "application/json", "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16186,7 +16186,7 @@ def upload_api_key(self, user_id, create_api_key_details, **kwargs): "retry_strategy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_api_key got unknown kwargs: {extra_kwargs!r}") @@ -16195,9 +16195,9 @@ def upload_api_key(self, user_id, create_api_key_details, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16206,7 +16206,7 @@ def upload_api_key(self, user_id, create_api_key_details, **kwargs): "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/identity_data_plane/dataplane_client.py b/src/oci/identity_data_plane/dataplane_client.py index 82d801d82..49d4587e4 100644 --- a/src/oci/identity_data_plane/dataplane_client.py +++ b/src/oci/identity_data_plane/dataplane_client.py @@ -152,7 +152,7 @@ def generate_scoped_access_token(self, generate_scoped_access_token_details, **k api_reference_link = "https://docs.oracle.com/iaas/api/#/en/identity-dp/v1/SecurityToken/GenerateScopedAccessToken" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_scoped_access_token got unknown kwargs: {extra_kwargs!r}") @@ -239,7 +239,7 @@ def generate_user_security_token(self, generate_user_security_token_details, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_user_security_token got unknown kwargs: {extra_kwargs!r}") @@ -249,7 +249,7 @@ def generate_user_security_token(self, generate_user_security_token_details, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/identity_domains/identity_domains_client.py b/src/oci/identity_domains/identity_domains_client.py index fdcb98024..332d0702b 100644 --- a/src/oci/identity_domains/identity_domains_client.py +++ b/src/oci/identity_domains/identity_domains_client.py @@ -191,7 +191,7 @@ def create_api_key(self, **kwargs): "api_key", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_api_key got unknown kwargs: {extra_kwargs!r}") @@ -208,7 +208,7 @@ def create_api_key(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -217,7 +217,7 @@ def create_api_key(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -327,7 +327,7 @@ def create_app(self, **kwargs): "app", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_app got unknown kwargs: {extra_kwargs!r}") @@ -344,7 +344,7 @@ def create_app(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -353,7 +353,7 @@ def create_app(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -463,7 +463,7 @@ def create_app_role(self, **kwargs): "app_role", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_app_role got unknown kwargs: {extra_kwargs!r}") @@ -480,7 +480,7 @@ def create_app_role(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -489,7 +489,7 @@ def create_app_role(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -599,7 +599,7 @@ def create_approval_workflow(self, **kwargs): "approval_workflow", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_approval_workflow got unknown kwargs: {extra_kwargs!r}") @@ -616,7 +616,7 @@ def create_approval_workflow(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -625,7 +625,7 @@ def create_approval_workflow(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -735,7 +735,7 @@ def create_approval_workflow_assignment(self, **kwargs): "approval_workflow_assignment", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_approval_workflow_assignment got unknown kwargs: {extra_kwargs!r}") @@ -752,7 +752,7 @@ def create_approval_workflow_assignment(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -761,7 +761,7 @@ def create_approval_workflow_assignment(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -871,7 +871,7 @@ def create_approval_workflow_step(self, **kwargs): "approval_workflow_step", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_approval_workflow_step got unknown kwargs: {extra_kwargs!r}") @@ -888,7 +888,7 @@ def create_approval_workflow_step(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -897,7 +897,7 @@ def create_approval_workflow_step(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1007,7 +1007,7 @@ def create_auth_token(self, **kwargs): "auth_token", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -1024,7 +1024,7 @@ def create_auth_token(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1033,7 +1033,7 @@ def create_auth_token(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1133,7 +1133,7 @@ def create_authentication_factors_remover(self, **kwargs): "authentication_factors_remover", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_authentication_factors_remover got unknown kwargs: {extra_kwargs!r}") @@ -1145,7 +1145,7 @@ def create_authentication_factors_remover(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1253,7 +1253,7 @@ def create_cloud_gate(self, **kwargs): "cloud_gate", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_gate got unknown kwargs: {extra_kwargs!r}") @@ -1270,7 +1270,7 @@ def create_cloud_gate(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1279,7 +1279,7 @@ def create_cloud_gate(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1389,7 +1389,7 @@ def create_cloud_gate_mapping(self, **kwargs): "cloud_gate_mapping", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_gate_mapping got unknown kwargs: {extra_kwargs!r}") @@ -1406,7 +1406,7 @@ def create_cloud_gate_mapping(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1415,7 +1415,7 @@ def create_cloud_gate_mapping(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1525,7 +1525,7 @@ def create_cloud_gate_server(self, **kwargs): "cloud_gate_server", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cloud_gate_server got unknown kwargs: {extra_kwargs!r}") @@ -1542,7 +1542,7 @@ def create_cloud_gate_server(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1551,7 +1551,7 @@ def create_cloud_gate_server(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1663,7 +1663,7 @@ def create_condition(self, **kwargs): "condition", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_condition got unknown kwargs: {extra_kwargs!r}") @@ -1680,7 +1680,7 @@ def create_condition(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1689,7 +1689,7 @@ def create_condition(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1799,7 +1799,7 @@ def create_customer_secret_key(self, **kwargs): "customer_secret_key", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -1816,7 +1816,7 @@ def create_customer_secret_key(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1825,7 +1825,7 @@ def create_customer_secret_key(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1935,7 +1935,7 @@ def create_dynamic_resource_group(self, **kwargs): "dynamic_resource_group", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_dynamic_resource_group got unknown kwargs: {extra_kwargs!r}") @@ -1952,7 +1952,7 @@ def create_dynamic_resource_group(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -1961,7 +1961,7 @@ def create_dynamic_resource_group(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2071,7 +2071,7 @@ def create_grant(self, **kwargs): "grant", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_grant got unknown kwargs: {extra_kwargs!r}") @@ -2088,7 +2088,7 @@ def create_grant(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -2097,7 +2097,7 @@ def create_grant(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2207,7 +2207,7 @@ def create_group(self, **kwargs): "group", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_group got unknown kwargs: {extra_kwargs!r}") @@ -2224,7 +2224,7 @@ def create_group(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -2233,7 +2233,7 @@ def create_group(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2345,7 +2345,7 @@ def create_identity_propagation_trust(self, **kwargs): "identity_propagation_trust", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_identity_propagation_trust got unknown kwargs: {extra_kwargs!r}") @@ -2362,7 +2362,7 @@ def create_identity_propagation_trust(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -2371,7 +2371,7 @@ def create_identity_propagation_trust(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2481,7 +2481,7 @@ def create_identity_provider(self, **kwargs): "identity_provider", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -2498,7 +2498,7 @@ def create_identity_provider(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -2507,7 +2507,7 @@ def create_identity_provider(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2617,7 +2617,7 @@ def create_me(self, **kwargs): "me", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_me got unknown kwargs: {extra_kwargs!r}") @@ -2634,7 +2634,7 @@ def create_me(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -2643,7 +2643,7 @@ def create_me(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2743,7 +2743,7 @@ def create_my_api_key(self, **kwargs): "my_api_key", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_api_key got unknown kwargs: {extra_kwargs!r}") @@ -2755,7 +2755,7 @@ def create_my_api_key(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2853,7 +2853,7 @@ def create_my_auth_token(self, **kwargs): "my_auth_token", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -2865,7 +2865,7 @@ def create_my_auth_token(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2963,7 +2963,7 @@ def create_my_authentication_factor_initiator(self, **kwargs): "my_authentication_factor_initiator", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_authentication_factor_initiator got unknown kwargs: {extra_kwargs!r}") @@ -2975,7 +2975,7 @@ def create_my_authentication_factor_initiator(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3073,7 +3073,7 @@ def create_my_authentication_factor_validator(self, **kwargs): "my_authentication_factor_validator", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_authentication_factor_validator got unknown kwargs: {extra_kwargs!r}") @@ -3085,7 +3085,7 @@ def create_my_authentication_factor_validator(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3183,7 +3183,7 @@ def create_my_authentication_factors_remover(self, **kwargs): "my_authentication_factors_remover", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_authentication_factors_remover got unknown kwargs: {extra_kwargs!r}") @@ -3195,7 +3195,7 @@ def create_my_authentication_factors_remover(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3293,7 +3293,7 @@ def create_my_customer_secret_key(self, **kwargs): "my_customer_secret_key", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -3305,7 +3305,7 @@ def create_my_customer_secret_key(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3403,7 +3403,7 @@ def create_my_o_auth2_client_credential(self, **kwargs): "my_o_auth2_client_credential", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -3415,7 +3415,7 @@ def create_my_o_auth2_client_credential(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3523,7 +3523,7 @@ def create_my_request(self, **kwargs): "my_request", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_request got unknown kwargs: {extra_kwargs!r}") @@ -3540,7 +3540,7 @@ def create_my_request(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -3549,7 +3549,7 @@ def create_my_request(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3649,7 +3649,7 @@ def create_my_smtp_credential(self, **kwargs): "my_smtp_credential", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -3661,7 +3661,7 @@ def create_my_smtp_credential(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3759,7 +3759,7 @@ def create_my_support_account(self, **kwargs): "my_support_account", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_support_account got unknown kwargs: {extra_kwargs!r}") @@ -3771,7 +3771,7 @@ def create_my_support_account(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3869,7 +3869,7 @@ def create_my_user_db_credential(self, **kwargs): "my_user_db_credential", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_my_user_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -3881,7 +3881,7 @@ def create_my_user_db_credential(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3989,7 +3989,7 @@ def create_network_perimeter(self, **kwargs): "network_perimeter", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_perimeter got unknown kwargs: {extra_kwargs!r}") @@ -4006,7 +4006,7 @@ def create_network_perimeter(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -4015,7 +4015,7 @@ def create_network_perimeter(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4125,7 +4125,7 @@ def create_o_auth2_client_credential(self, **kwargs): "o_auth2_client_credential", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -4142,7 +4142,7 @@ def create_o_auth2_client_credential(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -4151,7 +4151,7 @@ def create_o_auth2_client_credential(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4251,7 +4251,7 @@ def create_o_auth_client_certificate(self, **kwargs): "o_auth_client_certificate", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_o_auth_client_certificate got unknown kwargs: {extra_kwargs!r}") @@ -4263,7 +4263,7 @@ def create_o_auth_client_certificate(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4361,7 +4361,7 @@ def create_o_auth_partner_certificate(self, **kwargs): "o_auth_partner_certificate", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_o_auth_partner_certificate got unknown kwargs: {extra_kwargs!r}") @@ -4373,7 +4373,7 @@ def create_o_auth_partner_certificate(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4481,7 +4481,7 @@ def create_password_policy(self, **kwargs): "password_policy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_password_policy got unknown kwargs: {extra_kwargs!r}") @@ -4498,7 +4498,7 @@ def create_password_policy(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -4507,7 +4507,7 @@ def create_password_policy(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4619,7 +4619,7 @@ def create_policy(self, **kwargs): "policy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_policy got unknown kwargs: {extra_kwargs!r}") @@ -4636,7 +4636,7 @@ def create_policy(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -4645,7 +4645,7 @@ def create_policy(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4747,7 +4747,7 @@ def create_restore_oci_console_policy(self, **kwargs): "restore_oci_console_policy", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_restore_oci_console_policy got unknown kwargs: {extra_kwargs!r}") @@ -4759,7 +4759,7 @@ def create_restore_oci_console_policy(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4869,7 +4869,7 @@ def create_rule(self, **kwargs): "rule", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_rule got unknown kwargs: {extra_kwargs!r}") @@ -4886,7 +4886,7 @@ def create_rule(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -4895,7 +4895,7 @@ def create_rule(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5005,7 +5005,7 @@ def create_security_question(self, **kwargs): "security_question", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_question got unknown kwargs: {extra_kwargs!r}") @@ -5022,7 +5022,7 @@ def create_security_question(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5031,7 +5031,7 @@ def create_security_question(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5141,7 +5141,7 @@ def create_self_registration_profile(self, **kwargs): "self_registration_profile", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_self_registration_profile got unknown kwargs: {extra_kwargs!r}") @@ -5158,7 +5158,7 @@ def create_self_registration_profile(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5167,7 +5167,7 @@ def create_self_registration_profile(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5277,7 +5277,7 @@ def create_smtp_credential(self, **kwargs): "smtp_credential", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -5294,7 +5294,7 @@ def create_smtp_credential(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5303,7 +5303,7 @@ def create_smtp_credential(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5405,7 +5405,7 @@ def create_social_identity_provider(self, **kwargs): "social_identity_provider", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_social_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -5417,7 +5417,7 @@ def create_social_identity_provider(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5525,7 +5525,7 @@ def create_user(self, **kwargs): "user", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_user got unknown kwargs: {extra_kwargs!r}") @@ -5542,7 +5542,7 @@ def create_user(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5551,7 +5551,7 @@ def create_user(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5661,7 +5661,7 @@ def create_user_db_credential(self, **kwargs): "user_db_credential", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_user_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -5678,7 +5678,7 @@ def create_user_db_credential(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5687,7 +5687,7 @@ def create_user_db_credential(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5782,7 +5782,7 @@ def delete_api_key(self, api_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_api_key got unknown kwargs: {extra_kwargs!r}") @@ -5791,16 +5791,16 @@ def delete_api_key(self, api_key_id, **kwargs): "apiKeyId": api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5810,7 +5810,7 @@ def delete_api_key(self, api_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5903,7 +5903,7 @@ def delete_app(self, app_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_app got unknown kwargs: {extra_kwargs!r}") @@ -5912,16 +5912,16 @@ def delete_app(self, app_id, **kwargs): "appId": app_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -5931,7 +5931,7 @@ def delete_app(self, app_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6024,7 +6024,7 @@ def delete_app_role(self, app_role_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_app_role got unknown kwargs: {extra_kwargs!r}") @@ -6033,16 +6033,16 @@ def delete_app_role(self, app_role_id, **kwargs): "appRoleId": app_role_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6052,7 +6052,7 @@ def delete_app_role(self, app_role_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6145,7 +6145,7 @@ def delete_approval_workflow(self, approval_workflow_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_approval_workflow got unknown kwargs: {extra_kwargs!r}") @@ -6154,16 +6154,16 @@ def delete_approval_workflow(self, approval_workflow_id, **kwargs): "approvalWorkflowId": approval_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6173,7 +6173,7 @@ def delete_approval_workflow(self, approval_workflow_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6266,7 +6266,7 @@ def delete_approval_workflow_assignment(self, approval_workflow_assignment_id, * "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_approval_workflow_assignment got unknown kwargs: {extra_kwargs!r}") @@ -6275,16 +6275,16 @@ def delete_approval_workflow_assignment(self, approval_workflow_assignment_id, * "approvalWorkflowAssignmentId": approval_workflow_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6294,7 +6294,7 @@ def delete_approval_workflow_assignment(self, approval_workflow_assignment_id, * "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6387,7 +6387,7 @@ def delete_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_approval_workflow_step got unknown kwargs: {extra_kwargs!r}") @@ -6396,16 +6396,16 @@ def delete_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "approvalWorkflowStepId": approval_workflow_step_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6415,7 +6415,7 @@ def delete_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6508,7 +6508,7 @@ def delete_auth_token(self, auth_token_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -6517,16 +6517,16 @@ def delete_auth_token(self, auth_token_id, **kwargs): "authTokenId": auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6536,7 +6536,7 @@ def delete_auth_token(self, auth_token_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6629,7 +6629,7 @@ def delete_cloud_gate(self, cloud_gate_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_gate got unknown kwargs: {extra_kwargs!r}") @@ -6638,16 +6638,16 @@ def delete_cloud_gate(self, cloud_gate_id, **kwargs): "cloudGateId": cloud_gate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6657,7 +6657,7 @@ def delete_cloud_gate(self, cloud_gate_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6750,7 +6750,7 @@ def delete_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_gate_mapping got unknown kwargs: {extra_kwargs!r}") @@ -6759,16 +6759,16 @@ def delete_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "cloudGateMappingId": cloud_gate_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6778,7 +6778,7 @@ def delete_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6871,7 +6871,7 @@ def delete_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cloud_gate_server got unknown kwargs: {extra_kwargs!r}") @@ -6880,16 +6880,16 @@ def delete_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "cloudGateServerId": cloud_gate_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -6899,7 +6899,7 @@ def delete_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6992,7 +6992,7 @@ def delete_condition(self, condition_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_condition got unknown kwargs: {extra_kwargs!r}") @@ -7001,16 +7001,16 @@ def delete_condition(self, condition_id, **kwargs): "conditionId": condition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7020,7 +7020,7 @@ def delete_condition(self, condition_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7113,7 +7113,7 @@ def delete_customer_secret_key(self, customer_secret_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -7122,16 +7122,16 @@ def delete_customer_secret_key(self, customer_secret_key_id, **kwargs): "customerSecretKeyId": customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7141,7 +7141,7 @@ def delete_customer_secret_key(self, customer_secret_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7234,7 +7234,7 @@ def delete_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_dynamic_resource_group got unknown kwargs: {extra_kwargs!r}") @@ -7243,16 +7243,16 @@ def delete_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "dynamicResourceGroupId": dynamic_resource_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7262,7 +7262,7 @@ def delete_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7355,7 +7355,7 @@ def delete_grant(self, grant_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_grant got unknown kwargs: {extra_kwargs!r}") @@ -7364,16 +7364,16 @@ def delete_grant(self, grant_id, **kwargs): "grantId": grant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7383,7 +7383,7 @@ def delete_grant(self, grant_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7476,7 +7476,7 @@ def delete_group(self, group_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_group got unknown kwargs: {extra_kwargs!r}") @@ -7485,16 +7485,16 @@ def delete_group(self, group_id, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7504,7 +7504,7 @@ def delete_group(self, group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7597,7 +7597,7 @@ def delete_identity_propagation_trust(self, identity_propagation_trust_id, **kwa "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_identity_propagation_trust got unknown kwargs: {extra_kwargs!r}") @@ -7606,16 +7606,16 @@ def delete_identity_propagation_trust(self, identity_propagation_trust_id, **kwa "identityPropagationTrustId": identity_propagation_trust_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7625,7 +7625,7 @@ def delete_identity_propagation_trust(self, identity_propagation_trust_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7718,7 +7718,7 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -7727,16 +7727,16 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7746,7 +7746,7 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7839,7 +7839,7 @@ def delete_my_api_key(self, my_api_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_api_key got unknown kwargs: {extra_kwargs!r}") @@ -7848,16 +7848,16 @@ def delete_my_api_key(self, my_api_key_id, **kwargs): "myApiKeyId": my_api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7867,7 +7867,7 @@ def delete_my_api_key(self, my_api_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7960,7 +7960,7 @@ def delete_my_auth_token(self, my_auth_token_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -7969,16 +7969,16 @@ def delete_my_auth_token(self, my_auth_token_id, **kwargs): "myAuthTokenId": my_auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -7988,7 +7988,7 @@ def delete_my_auth_token(self, my_auth_token_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8081,7 +8081,7 @@ def delete_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -8090,16 +8090,16 @@ def delete_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "myCustomerSecretKeyId": my_customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8109,7 +8109,7 @@ def delete_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8202,7 +8202,7 @@ def delete_my_device(self, my_device_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_device got unknown kwargs: {extra_kwargs!r}") @@ -8211,16 +8211,16 @@ def delete_my_device(self, my_device_id, **kwargs): "myDeviceId": my_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8230,7 +8230,7 @@ def delete_my_device(self, my_device_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8323,7 +8323,7 @@ def delete_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, * "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -8332,16 +8332,16 @@ def delete_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, * "myOAuth2ClientCredentialId": my_o_auth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8351,7 +8351,7 @@ def delete_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, * "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8444,7 +8444,7 @@ def delete_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -8453,16 +8453,16 @@ def delete_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "mySmtpCredentialId": my_smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8472,7 +8472,7 @@ def delete_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8565,7 +8565,7 @@ def delete_my_support_account(self, my_support_account_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_support_account got unknown kwargs: {extra_kwargs!r}") @@ -8574,16 +8574,16 @@ def delete_my_support_account(self, my_support_account_id, **kwargs): "mySupportAccountId": my_support_account_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8593,7 +8593,7 @@ def delete_my_support_account(self, my_support_account_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8686,7 +8686,7 @@ def delete_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_trusted_user_agent got unknown kwargs: {extra_kwargs!r}") @@ -8695,16 +8695,16 @@ def delete_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "myTrustedUserAgentId": my_trusted_user_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8714,7 +8714,7 @@ def delete_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8807,7 +8807,7 @@ def delete_my_user_db_credential(self, my_user_db_credential_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_my_user_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -8816,16 +8816,16 @@ def delete_my_user_db_credential(self, my_user_db_credential_id, **kwargs): "myUserDbCredentialId": my_user_db_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8835,7 +8835,7 @@ def delete_my_user_db_credential(self, my_user_db_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8928,7 +8928,7 @@ def delete_network_perimeter(self, network_perimeter_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_perimeter got unknown kwargs: {extra_kwargs!r}") @@ -8937,16 +8937,16 @@ def delete_network_perimeter(self, network_perimeter_id, **kwargs): "networkPerimeterId": network_perimeter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -8956,7 +8956,7 @@ def delete_network_perimeter(self, network_perimeter_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9049,7 +9049,7 @@ def delete_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwarg "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -9058,16 +9058,16 @@ def delete_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwarg "oAuth2ClientCredentialId": o_auth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9077,7 +9077,7 @@ def delete_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9170,7 +9170,7 @@ def delete_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwarg "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_o_auth_client_certificate got unknown kwargs: {extra_kwargs!r}") @@ -9179,16 +9179,16 @@ def delete_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwarg "oAuthClientCertificateId": o_auth_client_certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9198,7 +9198,7 @@ def delete_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9291,7 +9291,7 @@ def delete_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwa "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_o_auth_partner_certificate got unknown kwargs: {extra_kwargs!r}") @@ -9300,16 +9300,16 @@ def delete_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwa "oAuthPartnerCertificateId": o_auth_partner_certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9319,7 +9319,7 @@ def delete_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9412,7 +9412,7 @@ def delete_password_policy(self, password_policy_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_password_policy got unknown kwargs: {extra_kwargs!r}") @@ -9421,16 +9421,16 @@ def delete_password_policy(self, password_policy_id, **kwargs): "passwordPolicyId": password_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9440,7 +9440,7 @@ def delete_password_policy(self, password_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9533,7 +9533,7 @@ def delete_policy(self, policy_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_policy got unknown kwargs: {extra_kwargs!r}") @@ -9542,16 +9542,16 @@ def delete_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9561,7 +9561,7 @@ def delete_policy(self, policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9654,7 +9654,7 @@ def delete_rule(self, rule_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rule got unknown kwargs: {extra_kwargs!r}") @@ -9663,16 +9663,16 @@ def delete_rule(self, rule_id, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9682,7 +9682,7 @@ def delete_rule(self, rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9775,7 +9775,7 @@ def delete_security_question(self, security_question_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_question got unknown kwargs: {extra_kwargs!r}") @@ -9784,16 +9784,16 @@ def delete_security_question(self, security_question_id, **kwargs): "securityQuestionId": security_question_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9803,7 +9803,7 @@ def delete_security_question(self, security_question_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9896,7 +9896,7 @@ def delete_self_registration_profile(self, self_registration_profile_id, **kwarg "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_self_registration_profile got unknown kwargs: {extra_kwargs!r}") @@ -9905,16 +9905,16 @@ def delete_self_registration_profile(self, self_registration_profile_id, **kwarg "selfRegistrationProfileId": self_registration_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -9924,7 +9924,7 @@ def delete_self_registration_profile(self, self_registration_profile_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10017,7 +10017,7 @@ def delete_smtp_credential(self, smtp_credential_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -10026,16 +10026,16 @@ def delete_smtp_credential(self, smtp_credential_id, **kwargs): "smtpCredentialId": smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10045,7 +10045,7 @@ def delete_smtp_credential(self, smtp_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10138,7 +10138,7 @@ def delete_social_identity_provider(self, social_identity_provider_id, **kwargs) "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_social_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -10147,16 +10147,16 @@ def delete_social_identity_provider(self, social_identity_provider_id, **kwargs) "socialIdentityProviderId": social_identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10166,7 +10166,7 @@ def delete_social_identity_provider(self, social_identity_provider_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10259,7 +10259,7 @@ def delete_user(self, user_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_user got unknown kwargs: {extra_kwargs!r}") @@ -10268,16 +10268,16 @@ def delete_user(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10287,7 +10287,7 @@ def delete_user(self, user_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10380,7 +10380,7 @@ def delete_user_db_credential(self, user_db_credential_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_user_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -10389,16 +10389,16 @@ def delete_user_db_credential(self, user_db_credential_id, **kwargs): "userDbCredentialId": user_db_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "forceDelete": kwargs.get("force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10408,7 +10408,7 @@ def delete_user_db_credential(self, user_db_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10503,7 +10503,7 @@ def get_account_mgmt_info(self, account_mgmt_info_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_account_mgmt_info got unknown kwargs: {extra_kwargs!r}") @@ -10512,9 +10512,9 @@ def get_account_mgmt_info(self, account_mgmt_info_id, **kwargs): "accountMgmtInfoId": account_mgmt_info_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10530,7 +10530,7 @@ def get_account_mgmt_info(self, account_mgmt_info_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10539,7 +10539,7 @@ def get_account_mgmt_info(self, account_mgmt_info_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10636,7 +10636,7 @@ def get_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_account_recovery_setting got unknown kwargs: {extra_kwargs!r}") @@ -10645,9 +10645,9 @@ def get_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "accountRecoverySettingId": account_recovery_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10663,7 +10663,7 @@ def get_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10672,7 +10672,7 @@ def get_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10769,7 +10769,7 @@ def get_api_key(self, api_key_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_api_key got unknown kwargs: {extra_kwargs!r}") @@ -10778,9 +10778,9 @@ def get_api_key(self, api_key_id, **kwargs): "apiKeyId": api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10796,7 +10796,7 @@ def get_api_key(self, api_key_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10805,7 +10805,7 @@ def get_api_key(self, api_key_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10902,7 +10902,7 @@ def get_app(self, app_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_app got unknown kwargs: {extra_kwargs!r}") @@ -10911,9 +10911,9 @@ def get_app(self, app_id, **kwargs): "appId": app_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10929,7 +10929,7 @@ def get_app(self, app_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -10938,7 +10938,7 @@ def get_app(self, app_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11035,7 +11035,7 @@ def get_app_role(self, app_role_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_app_role got unknown kwargs: {extra_kwargs!r}") @@ -11044,9 +11044,9 @@ def get_app_role(self, app_role_id, **kwargs): "appRoleId": app_role_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11062,7 +11062,7 @@ def get_app_role(self, app_role_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11071,7 +11071,7 @@ def get_app_role(self, app_role_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11168,7 +11168,7 @@ def get_approval_workflow(self, approval_workflow_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_approval_workflow got unknown kwargs: {extra_kwargs!r}") @@ -11177,9 +11177,9 @@ def get_approval_workflow(self, approval_workflow_id, **kwargs): "approvalWorkflowId": approval_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11195,7 +11195,7 @@ def get_approval_workflow(self, approval_workflow_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11204,7 +11204,7 @@ def get_approval_workflow(self, approval_workflow_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11301,7 +11301,7 @@ def get_approval_workflow_assignment(self, approval_workflow_assignment_id, **kw "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_approval_workflow_assignment got unknown kwargs: {extra_kwargs!r}") @@ -11310,9 +11310,9 @@ def get_approval_workflow_assignment(self, approval_workflow_assignment_id, **kw "approvalWorkflowAssignmentId": approval_workflow_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11328,7 +11328,7 @@ def get_approval_workflow_assignment(self, approval_workflow_assignment_id, **kw "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11337,7 +11337,7 @@ def get_approval_workflow_assignment(self, approval_workflow_assignment_id, **kw "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11434,7 +11434,7 @@ def get_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_approval_workflow_step got unknown kwargs: {extra_kwargs!r}") @@ -11443,9 +11443,9 @@ def get_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "approvalWorkflowStepId": approval_workflow_step_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11461,7 +11461,7 @@ def get_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11470,7 +11470,7 @@ def get_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11567,7 +11567,7 @@ def get_auth_token(self, auth_token_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -11576,9 +11576,9 @@ def get_auth_token(self, auth_token_id, **kwargs): "authTokenId": auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11594,7 +11594,7 @@ def get_auth_token(self, auth_token_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11603,7 +11603,7 @@ def get_auth_token(self, auth_token_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11700,7 +11700,7 @@ def get_authentication_factor_setting(self, authentication_factor_setting_id, ** "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_authentication_factor_setting got unknown kwargs: {extra_kwargs!r}") @@ -11709,9 +11709,9 @@ def get_authentication_factor_setting(self, authentication_factor_setting_id, ** "authenticationFactorSettingId": authentication_factor_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11727,7 +11727,7 @@ def get_authentication_factor_setting(self, authentication_factor_setting_id, ** "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11736,7 +11736,7 @@ def get_authentication_factor_setting(self, authentication_factor_setting_id, ** "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11833,7 +11833,7 @@ def get_branding_setting(self, branding_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_branding_setting got unknown kwargs: {extra_kwargs!r}") @@ -11842,9 +11842,9 @@ def get_branding_setting(self, branding_setting_id, **kwargs): "brandingSettingId": branding_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11860,7 +11860,7 @@ def get_branding_setting(self, branding_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -11869,7 +11869,7 @@ def get_branding_setting(self, branding_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11966,7 +11966,7 @@ def get_cloud_gate(self, cloud_gate_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_gate got unknown kwargs: {extra_kwargs!r}") @@ -11975,9 +11975,9 @@ def get_cloud_gate(self, cloud_gate_id, **kwargs): "cloudGateId": cloud_gate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11993,7 +11993,7 @@ def get_cloud_gate(self, cloud_gate_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12002,7 +12002,7 @@ def get_cloud_gate(self, cloud_gate_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12099,7 +12099,7 @@ def get_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_gate_mapping got unknown kwargs: {extra_kwargs!r}") @@ -12108,9 +12108,9 @@ def get_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "cloudGateMappingId": cloud_gate_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12126,7 +12126,7 @@ def get_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12135,7 +12135,7 @@ def get_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12232,7 +12232,7 @@ def get_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cloud_gate_server got unknown kwargs: {extra_kwargs!r}") @@ -12241,9 +12241,9 @@ def get_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "cloudGateServerId": cloud_gate_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12259,7 +12259,7 @@ def get_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12268,7 +12268,7 @@ def get_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12365,7 +12365,7 @@ def get_condition(self, condition_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_condition got unknown kwargs: {extra_kwargs!r}") @@ -12374,9 +12374,9 @@ def get_condition(self, condition_id, **kwargs): "conditionId": condition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12392,7 +12392,7 @@ def get_condition(self, condition_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12401,7 +12401,7 @@ def get_condition(self, condition_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12498,7 +12498,7 @@ def get_customer_secret_key(self, customer_secret_key_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -12507,9 +12507,9 @@ def get_customer_secret_key(self, customer_secret_key_id, **kwargs): "customerSecretKeyId": customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12525,7 +12525,7 @@ def get_customer_secret_key(self, customer_secret_key_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12534,7 +12534,7 @@ def get_customer_secret_key(self, customer_secret_key_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12631,7 +12631,7 @@ def get_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_dynamic_resource_group got unknown kwargs: {extra_kwargs!r}") @@ -12640,9 +12640,9 @@ def get_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "dynamicResourceGroupId": dynamic_resource_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12658,7 +12658,7 @@ def get_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12667,7 +12667,7 @@ def get_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12764,7 +12764,7 @@ def get_grant(self, grant_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_grant got unknown kwargs: {extra_kwargs!r}") @@ -12773,9 +12773,9 @@ def get_grant(self, grant_id, **kwargs): "grantId": grant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12791,7 +12791,7 @@ def get_grant(self, grant_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12800,7 +12800,7 @@ def get_grant(self, grant_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12897,7 +12897,7 @@ def get_group(self, group_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_group got unknown kwargs: {extra_kwargs!r}") @@ -12906,9 +12906,9 @@ def get_group(self, group_id, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12924,7 +12924,7 @@ def get_group(self, group_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -12933,7 +12933,7 @@ def get_group(self, group_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13030,7 +13030,7 @@ def get_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_identity_propagation_trust got unknown kwargs: {extra_kwargs!r}") @@ -13039,9 +13039,9 @@ def get_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "identityPropagationTrustId": identity_propagation_trust_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13057,7 +13057,7 @@ def get_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -13066,7 +13066,7 @@ def get_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13163,7 +13163,7 @@ def get_identity_provider(self, identity_provider_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -13172,9 +13172,9 @@ def get_identity_provider(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13190,7 +13190,7 @@ def get_identity_provider(self, identity_provider_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -13199,7 +13199,7 @@ def get_identity_provider(self, identity_provider_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13296,7 +13296,7 @@ def get_identity_setting(self, identity_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_identity_setting got unknown kwargs: {extra_kwargs!r}") @@ -13305,9 +13305,9 @@ def get_identity_setting(self, identity_setting_id, **kwargs): "identitySettingId": identity_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13323,7 +13323,7 @@ def get_identity_setting(self, identity_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -13332,7 +13332,7 @@ def get_identity_setting(self, identity_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13429,7 +13429,7 @@ def get_kmsi_setting(self, kmsi_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_kmsi_setting got unknown kwargs: {extra_kwargs!r}") @@ -13438,9 +13438,9 @@ def get_kmsi_setting(self, kmsi_setting_id, **kwargs): "kmsiSettingId": kmsi_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13456,7 +13456,7 @@ def get_kmsi_setting(self, kmsi_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -13465,7 +13465,7 @@ def get_kmsi_setting(self, kmsi_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13559,7 +13559,7 @@ def get_me(self, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_me got unknown kwargs: {extra_kwargs!r}") @@ -13576,7 +13576,7 @@ def get_me(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -13585,7 +13585,7 @@ def get_me(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13670,7 +13670,7 @@ def get_my_api_key(self, my_api_key_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_api_key got unknown kwargs: {extra_kwargs!r}") @@ -13679,9 +13679,9 @@ def get_my_api_key(self, my_api_key_id, **kwargs): "myApiKeyId": my_api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13692,7 +13692,7 @@ def get_my_api_key(self, my_api_key_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13777,7 +13777,7 @@ def get_my_auth_token(self, my_auth_token_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -13786,9 +13786,9 @@ def get_my_auth_token(self, my_auth_token_id, **kwargs): "myAuthTokenId": my_auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13799,7 +13799,7 @@ def get_my_auth_token(self, my_auth_token_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13884,7 +13884,7 @@ def get_my_completed_approval(self, my_completed_approval_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_completed_approval got unknown kwargs: {extra_kwargs!r}") @@ -13893,9 +13893,9 @@ def get_my_completed_approval(self, my_completed_approval_id, **kwargs): "myCompletedApprovalId": my_completed_approval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13906,7 +13906,7 @@ def get_my_completed_approval(self, my_completed_approval_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13991,7 +13991,7 @@ def get_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -14000,9 +14000,9 @@ def get_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "myCustomerSecretKeyId": my_customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14013,7 +14013,7 @@ def get_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14108,7 +14108,7 @@ def get_my_device(self, my_device_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_device got unknown kwargs: {extra_kwargs!r}") @@ -14117,9 +14117,9 @@ def get_my_device(self, my_device_id, **kwargs): "myDeviceId": my_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14135,7 +14135,7 @@ def get_my_device(self, my_device_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -14144,7 +14144,7 @@ def get_my_device(self, my_device_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14231,7 +14231,7 @@ def get_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, **kw "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -14240,9 +14240,9 @@ def get_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, **kw "myOAuth2ClientCredentialId": my_o_auth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14253,7 +14253,7 @@ def get_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, **kw "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14338,7 +14338,7 @@ def get_my_pending_approval(self, my_pending_approval_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_pending_approval got unknown kwargs: {extra_kwargs!r}") @@ -14347,9 +14347,9 @@ def get_my_pending_approval(self, my_pending_approval_id, **kwargs): "myPendingApprovalId": my_pending_approval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14360,7 +14360,7 @@ def get_my_pending_approval(self, my_pending_approval_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14455,7 +14455,7 @@ def get_my_request(self, my_request_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_request got unknown kwargs: {extra_kwargs!r}") @@ -14464,9 +14464,9 @@ def get_my_request(self, my_request_id, **kwargs): "myRequestId": my_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14482,7 +14482,7 @@ def get_my_request(self, my_request_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -14491,7 +14491,7 @@ def get_my_request(self, my_request_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14578,7 +14578,7 @@ def get_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -14587,9 +14587,9 @@ def get_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "mySmtpCredentialId": my_smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14600,7 +14600,7 @@ def get_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14685,7 +14685,7 @@ def get_my_support_account(self, my_support_account_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_support_account got unknown kwargs: {extra_kwargs!r}") @@ -14694,9 +14694,9 @@ def get_my_support_account(self, my_support_account_id, **kwargs): "mySupportAccountId": my_support_account_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14707,7 +14707,7 @@ def get_my_support_account(self, my_support_account_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14802,7 +14802,7 @@ def get_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_trusted_user_agent got unknown kwargs: {extra_kwargs!r}") @@ -14811,9 +14811,9 @@ def get_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "myTrustedUserAgentId": my_trusted_user_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14829,7 +14829,7 @@ def get_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -14838,7 +14838,7 @@ def get_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14925,7 +14925,7 @@ def get_my_user_db_credential(self, my_user_db_credential_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_my_user_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -14934,9 +14934,9 @@ def get_my_user_db_credential(self, my_user_db_credential_id, **kwargs): "myUserDbCredentialId": my_user_db_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14947,7 +14947,7 @@ def get_my_user_db_credential(self, my_user_db_credential_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15042,7 +15042,7 @@ def get_network_perimeter(self, network_perimeter_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_perimeter got unknown kwargs: {extra_kwargs!r}") @@ -15051,9 +15051,9 @@ def get_network_perimeter(self, network_perimeter_id, **kwargs): "networkPerimeterId": network_perimeter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15069,7 +15069,7 @@ def get_network_perimeter(self, network_perimeter_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -15078,7 +15078,7 @@ def get_network_perimeter(self, network_perimeter_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15175,7 +15175,7 @@ def get_notification_setting(self, notification_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_notification_setting got unknown kwargs: {extra_kwargs!r}") @@ -15184,9 +15184,9 @@ def get_notification_setting(self, notification_setting_id, **kwargs): "notificationSettingId": notification_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15202,7 +15202,7 @@ def get_notification_setting(self, notification_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -15211,7 +15211,7 @@ def get_notification_setting(self, notification_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15308,7 +15308,7 @@ def get_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -15317,9 +15317,9 @@ def get_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs): "oAuth2ClientCredentialId": o_auth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15335,7 +15335,7 @@ def get_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -15344,7 +15344,7 @@ def get_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15431,7 +15431,7 @@ def get_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_o_auth_client_certificate got unknown kwargs: {extra_kwargs!r}") @@ -15440,9 +15440,9 @@ def get_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwargs): "oAuthClientCertificateId": o_auth_client_certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15453,7 +15453,7 @@ def get_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15538,7 +15538,7 @@ def get_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwargs "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_o_auth_partner_certificate got unknown kwargs: {extra_kwargs!r}") @@ -15547,9 +15547,9 @@ def get_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwargs "oAuthPartnerCertificateId": o_auth_partner_certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15560,7 +15560,7 @@ def get_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwargs "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15655,7 +15655,7 @@ def get_oci_console_sign_on_policy_consent(self, oci_console_sign_on_policy_cons "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oci_console_sign_on_policy_consent got unknown kwargs: {extra_kwargs!r}") @@ -15664,9 +15664,9 @@ def get_oci_console_sign_on_policy_consent(self, oci_console_sign_on_policy_cons "ociConsoleSignOnPolicyConsentId": oci_console_sign_on_policy_consent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15682,7 +15682,7 @@ def get_oci_console_sign_on_policy_consent(self, oci_console_sign_on_policy_cons "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -15691,7 +15691,7 @@ def get_oci_console_sign_on_policy_consent(self, oci_console_sign_on_policy_cons "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15788,7 +15788,7 @@ def get_password_policy(self, password_policy_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_password_policy got unknown kwargs: {extra_kwargs!r}") @@ -15797,9 +15797,9 @@ def get_password_policy(self, password_policy_id, **kwargs): "passwordPolicyId": password_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15815,7 +15815,7 @@ def get_password_policy(self, password_policy_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -15824,7 +15824,7 @@ def get_password_policy(self, password_policy_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15921,7 +15921,7 @@ def get_policy(self, policy_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_policy got unknown kwargs: {extra_kwargs!r}") @@ -15930,9 +15930,9 @@ def get_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15948,7 +15948,7 @@ def get_policy(self, policy_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -15957,7 +15957,7 @@ def get_policy(self, policy_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16054,7 +16054,7 @@ def get_rule(self, rule_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rule got unknown kwargs: {extra_kwargs!r}") @@ -16063,9 +16063,9 @@ def get_rule(self, rule_id, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16081,7 +16081,7 @@ def get_rule(self, rule_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -16090,7 +16090,7 @@ def get_rule(self, rule_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16177,7 +16177,7 @@ def get_schema(self, schema_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_schema got unknown kwargs: {extra_kwargs!r}") @@ -16186,9 +16186,9 @@ def get_schema(self, schema_id, **kwargs): "schemaId": schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16199,7 +16199,7 @@ def get_schema(self, schema_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16294,7 +16294,7 @@ def get_security_question(self, security_question_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_question got unknown kwargs: {extra_kwargs!r}") @@ -16303,9 +16303,9 @@ def get_security_question(self, security_question_id, **kwargs): "securityQuestionId": security_question_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16321,7 +16321,7 @@ def get_security_question(self, security_question_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -16330,7 +16330,7 @@ def get_security_question(self, security_question_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16427,7 +16427,7 @@ def get_security_question_setting(self, security_question_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_question_setting got unknown kwargs: {extra_kwargs!r}") @@ -16436,9 +16436,9 @@ def get_security_question_setting(self, security_question_setting_id, **kwargs): "securityQuestionSettingId": security_question_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16454,7 +16454,7 @@ def get_security_question_setting(self, security_question_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -16463,7 +16463,7 @@ def get_security_question_setting(self, security_question_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16560,7 +16560,7 @@ def get_self_registration_profile(self, self_registration_profile_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_self_registration_profile got unknown kwargs: {extra_kwargs!r}") @@ -16569,9 +16569,9 @@ def get_self_registration_profile(self, self_registration_profile_id, **kwargs): "selfRegistrationProfileId": self_registration_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16587,7 +16587,7 @@ def get_self_registration_profile(self, self_registration_profile_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -16596,7 +16596,7 @@ def get_self_registration_profile(self, self_registration_profile_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16693,7 +16693,7 @@ def get_setting(self, setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_setting got unknown kwargs: {extra_kwargs!r}") @@ -16702,9 +16702,9 @@ def get_setting(self, setting_id, **kwargs): "settingId": setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16720,7 +16720,7 @@ def get_setting(self, setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -16729,7 +16729,7 @@ def get_setting(self, setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16826,7 +16826,7 @@ def get_smtp_credential(self, smtp_credential_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -16835,9 +16835,9 @@ def get_smtp_credential(self, smtp_credential_id, **kwargs): "smtpCredentialId": smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16853,7 +16853,7 @@ def get_smtp_credential(self, smtp_credential_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -16862,7 +16862,7 @@ def get_smtp_credential(self, smtp_credential_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16949,7 +16949,7 @@ def get_social_identity_provider(self, social_identity_provider_id, **kwargs): "resource_type_schema_version", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_social_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -16958,9 +16958,9 @@ def get_social_identity_provider(self, social_identity_provider_id, **kwargs): "socialIdentityProviderId": social_identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16971,7 +16971,7 @@ def get_social_identity_provider(self, social_identity_provider_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17066,7 +17066,7 @@ def get_user(self, user_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user got unknown kwargs: {extra_kwargs!r}") @@ -17075,9 +17075,9 @@ def get_user(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17093,7 +17093,7 @@ def get_user(self, user_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17102,7 +17102,7 @@ def get_user(self, user_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17199,7 +17199,7 @@ def get_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_attributes_setting got unknown kwargs: {extra_kwargs!r}") @@ -17208,9 +17208,9 @@ def get_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "userAttributesSettingId": user_attributes_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17226,7 +17226,7 @@ def get_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17235,7 +17235,7 @@ def get_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17332,7 +17332,7 @@ def get_user_db_credential(self, user_db_credential_id, **kwargs): "attribute_sets", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_user_db_credential got unknown kwargs: {extra_kwargs!r}") @@ -17341,9 +17341,9 @@ def get_user_db_credential(self, user_db_credential_id, **kwargs): "userDbCredentialId": user_db_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17359,7 +17359,7 @@ def get_user_db_credential(self, user_db_credential_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17368,7 +17368,7 @@ def get_user_db_credential(self, user_db_credential_id, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17494,7 +17494,7 @@ def list_account_mgmt_infos(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_account_mgmt_infos got unknown kwargs: {extra_kwargs!r}") @@ -17525,7 +17525,7 @@ def list_account_mgmt_infos(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17534,7 +17534,7 @@ def list_account_mgmt_infos(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17634,7 +17634,7 @@ def list_account_recovery_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_account_recovery_settings got unknown kwargs: {extra_kwargs!r}") @@ -17653,7 +17653,7 @@ def list_account_recovery_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17662,7 +17662,7 @@ def list_account_recovery_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17786,7 +17786,7 @@ def list_api_keys(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_api_keys got unknown kwargs: {extra_kwargs!r}") @@ -17817,7 +17817,7 @@ def list_api_keys(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17826,7 +17826,7 @@ def list_api_keys(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17950,7 +17950,7 @@ def list_app_roles(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_app_roles got unknown kwargs: {extra_kwargs!r}") @@ -17981,7 +17981,7 @@ def list_app_roles(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -17990,7 +17990,7 @@ def list_app_roles(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18114,7 +18114,7 @@ def list_approval_workflow_assignments(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_approval_workflow_assignments got unknown kwargs: {extra_kwargs!r}") @@ -18145,7 +18145,7 @@ def list_approval_workflow_assignments(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -18154,7 +18154,7 @@ def list_approval_workflow_assignments(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18278,7 +18278,7 @@ def list_approval_workflow_steps(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_approval_workflow_steps got unknown kwargs: {extra_kwargs!r}") @@ -18309,7 +18309,7 @@ def list_approval_workflow_steps(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -18318,7 +18318,7 @@ def list_approval_workflow_steps(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18442,7 +18442,7 @@ def list_approval_workflows(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_approval_workflows got unknown kwargs: {extra_kwargs!r}") @@ -18473,7 +18473,7 @@ def list_approval_workflows(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -18482,7 +18482,7 @@ def list_approval_workflows(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18606,7 +18606,7 @@ def list_apps(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_apps got unknown kwargs: {extra_kwargs!r}") @@ -18637,7 +18637,7 @@ def list_apps(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -18646,7 +18646,7 @@ def list_apps(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18770,7 +18770,7 @@ def list_auth_tokens(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_auth_tokens got unknown kwargs: {extra_kwargs!r}") @@ -18801,7 +18801,7 @@ def list_auth_tokens(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -18810,7 +18810,7 @@ def list_auth_tokens(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18910,7 +18910,7 @@ def list_authentication_factor_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_authentication_factor_settings got unknown kwargs: {extra_kwargs!r}") @@ -18929,7 +18929,7 @@ def list_authentication_factor_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -18938,7 +18938,7 @@ def list_authentication_factor_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19038,7 +19038,7 @@ def list_branding_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_branding_settings got unknown kwargs: {extra_kwargs!r}") @@ -19057,7 +19057,7 @@ def list_branding_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -19066,7 +19066,7 @@ def list_branding_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19190,7 +19190,7 @@ def list_cloud_gate_mappings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_gate_mappings got unknown kwargs: {extra_kwargs!r}") @@ -19221,7 +19221,7 @@ def list_cloud_gate_mappings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -19230,7 +19230,7 @@ def list_cloud_gate_mappings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19354,7 +19354,7 @@ def list_cloud_gate_servers(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_gate_servers got unknown kwargs: {extra_kwargs!r}") @@ -19385,7 +19385,7 @@ def list_cloud_gate_servers(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -19394,7 +19394,7 @@ def list_cloud_gate_servers(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19518,7 +19518,7 @@ def list_cloud_gates(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_cloud_gates got unknown kwargs: {extra_kwargs!r}") @@ -19549,7 +19549,7 @@ def list_cloud_gates(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -19558,7 +19558,7 @@ def list_cloud_gates(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19682,7 +19682,7 @@ def list_conditions(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_conditions got unknown kwargs: {extra_kwargs!r}") @@ -19713,7 +19713,7 @@ def list_conditions(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -19722,7 +19722,7 @@ def list_conditions(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19846,7 +19846,7 @@ def list_customer_secret_keys(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_customer_secret_keys got unknown kwargs: {extra_kwargs!r}") @@ -19877,7 +19877,7 @@ def list_customer_secret_keys(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -19886,7 +19886,7 @@ def list_customer_secret_keys(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20010,7 +20010,7 @@ def list_dynamic_resource_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_dynamic_resource_groups got unknown kwargs: {extra_kwargs!r}") @@ -20041,7 +20041,7 @@ def list_dynamic_resource_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20050,7 +20050,7 @@ def list_dynamic_resource_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20174,7 +20174,7 @@ def list_grants(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_grants got unknown kwargs: {extra_kwargs!r}") @@ -20205,7 +20205,7 @@ def list_grants(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20214,7 +20214,7 @@ def list_grants(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20338,7 +20338,7 @@ def list_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_groups got unknown kwargs: {extra_kwargs!r}") @@ -20369,7 +20369,7 @@ def list_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20378,7 +20378,7 @@ def list_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20502,7 +20502,7 @@ def list_identity_propagation_trusts(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_identity_propagation_trusts got unknown kwargs: {extra_kwargs!r}") @@ -20533,7 +20533,7 @@ def list_identity_propagation_trusts(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20542,7 +20542,7 @@ def list_identity_propagation_trusts(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20666,7 +20666,7 @@ def list_identity_providers(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_identity_providers got unknown kwargs: {extra_kwargs!r}") @@ -20697,7 +20697,7 @@ def list_identity_providers(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20706,7 +20706,7 @@ def list_identity_providers(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20806,7 +20806,7 @@ def list_identity_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_identity_settings got unknown kwargs: {extra_kwargs!r}") @@ -20825,7 +20825,7 @@ def list_identity_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20834,7 +20834,7 @@ def list_identity_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20934,7 +20934,7 @@ def list_kmsi_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_kmsi_settings got unknown kwargs: {extra_kwargs!r}") @@ -20953,7 +20953,7 @@ def list_kmsi_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -20962,7 +20962,7 @@ def list_kmsi_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21076,7 +21076,7 @@ def list_my_api_keys(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_api_keys got unknown kwargs: {extra_kwargs!r}") @@ -21097,7 +21097,7 @@ def list_my_api_keys(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -21106,7 +21106,7 @@ def list_my_api_keys(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21220,7 +21220,7 @@ def list_my_apps(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_apps got unknown kwargs: {extra_kwargs!r}") @@ -21241,7 +21241,7 @@ def list_my_apps(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -21250,7 +21250,7 @@ def list_my_apps(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21364,7 +21364,7 @@ def list_my_auth_tokens(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_auth_tokens got unknown kwargs: {extra_kwargs!r}") @@ -21385,7 +21385,7 @@ def list_my_auth_tokens(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -21394,7 +21394,7 @@ def list_my_auth_tokens(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21508,7 +21508,7 @@ def list_my_completed_approvals(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_completed_approvals got unknown kwargs: {extra_kwargs!r}") @@ -21529,7 +21529,7 @@ def list_my_completed_approvals(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -21538,7 +21538,7 @@ def list_my_completed_approvals(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21652,7 +21652,7 @@ def list_my_customer_secret_keys(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_customer_secret_keys got unknown kwargs: {extra_kwargs!r}") @@ -21673,7 +21673,7 @@ def list_my_customer_secret_keys(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -21682,7 +21682,7 @@ def list_my_customer_secret_keys(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21806,7 +21806,7 @@ def list_my_devices(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_devices got unknown kwargs: {extra_kwargs!r}") @@ -21837,7 +21837,7 @@ def list_my_devices(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -21846,7 +21846,7 @@ def list_my_devices(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21970,7 +21970,7 @@ def list_my_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_groups got unknown kwargs: {extra_kwargs!r}") @@ -22001,7 +22001,7 @@ def list_my_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22010,7 +22010,7 @@ def list_my_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22124,7 +22124,7 @@ def list_my_o_auth2_client_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_o_auth2_client_credentials got unknown kwargs: {extra_kwargs!r}") @@ -22145,7 +22145,7 @@ def list_my_o_auth2_client_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22154,7 +22154,7 @@ def list_my_o_auth2_client_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22268,7 +22268,7 @@ def list_my_pending_approvals(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_pending_approvals got unknown kwargs: {extra_kwargs!r}") @@ -22289,7 +22289,7 @@ def list_my_pending_approvals(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22298,7 +22298,7 @@ def list_my_pending_approvals(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22412,7 +22412,7 @@ def list_my_requestable_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_requestable_groups got unknown kwargs: {extra_kwargs!r}") @@ -22433,7 +22433,7 @@ def list_my_requestable_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22442,7 +22442,7 @@ def list_my_requestable_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22566,7 +22566,7 @@ def list_my_requests(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_requests got unknown kwargs: {extra_kwargs!r}") @@ -22597,7 +22597,7 @@ def list_my_requests(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22606,7 +22606,7 @@ def list_my_requests(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22720,7 +22720,7 @@ def list_my_smtp_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_smtp_credentials got unknown kwargs: {extra_kwargs!r}") @@ -22741,7 +22741,7 @@ def list_my_smtp_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22750,7 +22750,7 @@ def list_my_smtp_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22864,7 +22864,7 @@ def list_my_support_accounts(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_support_accounts got unknown kwargs: {extra_kwargs!r}") @@ -22885,7 +22885,7 @@ def list_my_support_accounts(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -22894,7 +22894,7 @@ def list_my_support_accounts(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23018,7 +23018,7 @@ def list_my_trusted_user_agents(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_trusted_user_agents got unknown kwargs: {extra_kwargs!r}") @@ -23049,7 +23049,7 @@ def list_my_trusted_user_agents(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23058,7 +23058,7 @@ def list_my_trusted_user_agents(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23172,7 +23172,7 @@ def list_my_user_db_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_my_user_db_credentials got unknown kwargs: {extra_kwargs!r}") @@ -23193,7 +23193,7 @@ def list_my_user_db_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23202,7 +23202,7 @@ def list_my_user_db_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23326,7 +23326,7 @@ def list_network_perimeters(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_perimeters got unknown kwargs: {extra_kwargs!r}") @@ -23357,7 +23357,7 @@ def list_network_perimeters(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23366,7 +23366,7 @@ def list_network_perimeters(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23466,7 +23466,7 @@ def list_notification_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_notification_settings got unknown kwargs: {extra_kwargs!r}") @@ -23485,7 +23485,7 @@ def list_notification_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23494,7 +23494,7 @@ def list_notification_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23618,7 +23618,7 @@ def list_o_auth2_client_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_o_auth2_client_credentials got unknown kwargs: {extra_kwargs!r}") @@ -23649,7 +23649,7 @@ def list_o_auth2_client_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23658,7 +23658,7 @@ def list_o_auth2_client_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23772,7 +23772,7 @@ def list_o_auth_client_certificates(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_o_auth_client_certificates got unknown kwargs: {extra_kwargs!r}") @@ -23793,7 +23793,7 @@ def list_o_auth_client_certificates(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23802,7 +23802,7 @@ def list_o_auth_client_certificates(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23916,7 +23916,7 @@ def list_o_auth_partner_certificates(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_o_auth_partner_certificates got unknown kwargs: {extra_kwargs!r}") @@ -23937,7 +23937,7 @@ def list_o_auth_partner_certificates(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -23946,7 +23946,7 @@ def list_o_auth_partner_certificates(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24070,7 +24070,7 @@ def list_oci_console_sign_on_policy_consents(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oci_console_sign_on_policy_consents got unknown kwargs: {extra_kwargs!r}") @@ -24101,7 +24101,7 @@ def list_oci_console_sign_on_policy_consents(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -24110,7 +24110,7 @@ def list_oci_console_sign_on_policy_consents(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24234,7 +24234,7 @@ def list_password_policies(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_password_policies got unknown kwargs: {extra_kwargs!r}") @@ -24265,7 +24265,7 @@ def list_password_policies(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -24274,7 +24274,7 @@ def list_password_policies(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24398,7 +24398,7 @@ def list_policies(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_policies got unknown kwargs: {extra_kwargs!r}") @@ -24429,7 +24429,7 @@ def list_policies(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -24438,7 +24438,7 @@ def list_policies(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24562,7 +24562,7 @@ def list_resource_type_schema_attributes(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_type_schema_attributes got unknown kwargs: {extra_kwargs!r}") @@ -24593,7 +24593,7 @@ def list_resource_type_schema_attributes(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -24602,7 +24602,7 @@ def list_resource_type_schema_attributes(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24726,7 +24726,7 @@ def list_rules(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rules got unknown kwargs: {extra_kwargs!r}") @@ -24757,7 +24757,7 @@ def list_rules(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -24766,7 +24766,7 @@ def list_rules(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24876,7 +24876,7 @@ def list_schemas(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schemas got unknown kwargs: {extra_kwargs!r}") @@ -24896,7 +24896,7 @@ def list_schemas(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -24905,7 +24905,7 @@ def list_schemas(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25005,7 +25005,7 @@ def list_security_question_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_question_settings got unknown kwargs: {extra_kwargs!r}") @@ -25024,7 +25024,7 @@ def list_security_question_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25033,7 +25033,7 @@ def list_security_question_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25157,7 +25157,7 @@ def list_security_questions(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_questions got unknown kwargs: {extra_kwargs!r}") @@ -25188,7 +25188,7 @@ def list_security_questions(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25197,7 +25197,7 @@ def list_security_questions(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25321,7 +25321,7 @@ def list_self_registration_profiles(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_self_registration_profiles got unknown kwargs: {extra_kwargs!r}") @@ -25352,7 +25352,7 @@ def list_self_registration_profiles(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25361,7 +25361,7 @@ def list_self_registration_profiles(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25461,7 +25461,7 @@ def list_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_settings got unknown kwargs: {extra_kwargs!r}") @@ -25480,7 +25480,7 @@ def list_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25489,7 +25489,7 @@ def list_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25613,7 +25613,7 @@ def list_smtp_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_smtp_credentials got unknown kwargs: {extra_kwargs!r}") @@ -25644,7 +25644,7 @@ def list_smtp_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25653,7 +25653,7 @@ def list_smtp_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25767,7 +25767,7 @@ def list_social_identity_providers(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_social_identity_providers got unknown kwargs: {extra_kwargs!r}") @@ -25788,7 +25788,7 @@ def list_social_identity_providers(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25797,7 +25797,7 @@ def list_social_identity_providers(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25897,7 +25897,7 @@ def list_user_attributes_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_attributes_settings got unknown kwargs: {extra_kwargs!r}") @@ -25916,7 +25916,7 @@ def list_user_attributes_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -25925,7 +25925,7 @@ def list_user_attributes_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26049,7 +26049,7 @@ def list_user_db_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_user_db_credentials got unknown kwargs: {extra_kwargs!r}") @@ -26080,7 +26080,7 @@ def list_user_db_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -26089,7 +26089,7 @@ def list_user_db_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26213,7 +26213,7 @@ def list_users(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_users got unknown kwargs: {extra_kwargs!r}") @@ -26244,7 +26244,7 @@ def list_users(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -26253,7 +26253,7 @@ def list_users(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26368,7 +26368,7 @@ def patch_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_account_recovery_setting got unknown kwargs: {extra_kwargs!r}") @@ -26377,9 +26377,9 @@ def patch_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "accountRecoverySettingId": account_recovery_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26395,7 +26395,7 @@ def patch_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -26405,7 +26405,7 @@ def patch_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26524,7 +26524,7 @@ def patch_api_key(self, api_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_api_key got unknown kwargs: {extra_kwargs!r}") @@ -26533,9 +26533,9 @@ def patch_api_key(self, api_key_id, **kwargs): "apiKeyId": api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26551,7 +26551,7 @@ def patch_api_key(self, api_key_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -26561,7 +26561,7 @@ def patch_api_key(self, api_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26680,7 +26680,7 @@ def patch_app(self, app_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_app got unknown kwargs: {extra_kwargs!r}") @@ -26689,9 +26689,9 @@ def patch_app(self, app_id, **kwargs): "appId": app_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26707,7 +26707,7 @@ def patch_app(self, app_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -26717,7 +26717,7 @@ def patch_app(self, app_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26836,7 +26836,7 @@ def patch_app_role(self, app_role_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_app_role got unknown kwargs: {extra_kwargs!r}") @@ -26845,9 +26845,9 @@ def patch_app_role(self, app_role_id, **kwargs): "appRoleId": app_role_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26863,7 +26863,7 @@ def patch_app_role(self, app_role_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -26873,7 +26873,7 @@ def patch_app_role(self, app_role_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26992,7 +26992,7 @@ def patch_approval_workflow(self, approval_workflow_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_approval_workflow got unknown kwargs: {extra_kwargs!r}") @@ -27001,9 +27001,9 @@ def patch_approval_workflow(self, approval_workflow_id, **kwargs): "approvalWorkflowId": approval_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27019,7 +27019,7 @@ def patch_approval_workflow(self, approval_workflow_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27029,7 +27029,7 @@ def patch_approval_workflow(self, approval_workflow_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27148,7 +27148,7 @@ def patch_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_approval_workflow_step got unknown kwargs: {extra_kwargs!r}") @@ -27157,9 +27157,9 @@ def patch_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "approvalWorkflowStepId": approval_workflow_step_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27175,7 +27175,7 @@ def patch_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27185,7 +27185,7 @@ def patch_approval_workflow_step(self, approval_workflow_step_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27304,7 +27304,7 @@ def patch_auth_token(self, auth_token_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -27313,9 +27313,9 @@ def patch_auth_token(self, auth_token_id, **kwargs): "authTokenId": auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27331,7 +27331,7 @@ def patch_auth_token(self, auth_token_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27341,7 +27341,7 @@ def patch_auth_token(self, auth_token_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27460,7 +27460,7 @@ def patch_cloud_gate(self, cloud_gate_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_cloud_gate got unknown kwargs: {extra_kwargs!r}") @@ -27469,9 +27469,9 @@ def patch_cloud_gate(self, cloud_gate_id, **kwargs): "cloudGateId": cloud_gate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27487,7 +27487,7 @@ def patch_cloud_gate(self, cloud_gate_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27497,7 +27497,7 @@ def patch_cloud_gate(self, cloud_gate_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27616,7 +27616,7 @@ def patch_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_cloud_gate_mapping got unknown kwargs: {extra_kwargs!r}") @@ -27625,9 +27625,9 @@ def patch_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "cloudGateMappingId": cloud_gate_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27643,7 +27643,7 @@ def patch_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27653,7 +27653,7 @@ def patch_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27772,7 +27772,7 @@ def patch_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_cloud_gate_server got unknown kwargs: {extra_kwargs!r}") @@ -27781,9 +27781,9 @@ def patch_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "cloudGateServerId": cloud_gate_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27799,7 +27799,7 @@ def patch_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27809,7 +27809,7 @@ def patch_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27930,7 +27930,7 @@ def patch_condition(self, condition_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_condition got unknown kwargs: {extra_kwargs!r}") @@ -27939,9 +27939,9 @@ def patch_condition(self, condition_id, **kwargs): "conditionId": condition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -27957,7 +27957,7 @@ def patch_condition(self, condition_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -27967,7 +27967,7 @@ def patch_condition(self, condition_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28086,7 +28086,7 @@ def patch_customer_secret_key(self, customer_secret_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -28095,9 +28095,9 @@ def patch_customer_secret_key(self, customer_secret_key_id, **kwargs): "customerSecretKeyId": customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28113,7 +28113,7 @@ def patch_customer_secret_key(self, customer_secret_key_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -28123,7 +28123,7 @@ def patch_customer_secret_key(self, customer_secret_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28242,7 +28242,7 @@ def patch_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_dynamic_resource_group got unknown kwargs: {extra_kwargs!r}") @@ -28251,9 +28251,9 @@ def patch_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "dynamicResourceGroupId": dynamic_resource_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28269,7 +28269,7 @@ def patch_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -28279,7 +28279,7 @@ def patch_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28398,7 +28398,7 @@ def patch_grant(self, grant_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_grant got unknown kwargs: {extra_kwargs!r}") @@ -28407,9 +28407,9 @@ def patch_grant(self, grant_id, **kwargs): "grantId": grant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28425,7 +28425,7 @@ def patch_grant(self, grant_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -28435,7 +28435,7 @@ def patch_grant(self, grant_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28554,7 +28554,7 @@ def patch_group(self, group_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_group got unknown kwargs: {extra_kwargs!r}") @@ -28563,9 +28563,9 @@ def patch_group(self, group_id, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28581,7 +28581,7 @@ def patch_group(self, group_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -28591,7 +28591,7 @@ def patch_group(self, group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28712,7 +28712,7 @@ def patch_identity_propagation_trust(self, identity_propagation_trust_id, **kwar "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_identity_propagation_trust got unknown kwargs: {extra_kwargs!r}") @@ -28721,9 +28721,9 @@ def patch_identity_propagation_trust(self, identity_propagation_trust_id, **kwar "identityPropagationTrustId": identity_propagation_trust_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28739,7 +28739,7 @@ def patch_identity_propagation_trust(self, identity_propagation_trust_id, **kwar "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -28749,7 +28749,7 @@ def patch_identity_propagation_trust(self, identity_propagation_trust_id, **kwar "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28868,7 +28868,7 @@ def patch_identity_provider(self, identity_provider_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -28877,9 +28877,9 @@ def patch_identity_provider(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28895,7 +28895,7 @@ def patch_identity_provider(self, identity_provider_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -28905,7 +28905,7 @@ def patch_identity_provider(self, identity_provider_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29024,7 +29024,7 @@ def patch_identity_setting(self, identity_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_identity_setting got unknown kwargs: {extra_kwargs!r}") @@ -29033,9 +29033,9 @@ def patch_identity_setting(self, identity_setting_id, **kwargs): "identitySettingId": identity_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29051,7 +29051,7 @@ def patch_identity_setting(self, identity_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -29061,7 +29061,7 @@ def patch_identity_setting(self, identity_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29180,7 +29180,7 @@ def patch_kmsi_setting(self, kmsi_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_kmsi_setting got unknown kwargs: {extra_kwargs!r}") @@ -29189,9 +29189,9 @@ def patch_kmsi_setting(self, kmsi_setting_id, **kwargs): "kmsiSettingId": kmsi_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29207,7 +29207,7 @@ def patch_kmsi_setting(self, kmsi_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -29217,7 +29217,7 @@ def patch_kmsi_setting(self, kmsi_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29333,7 +29333,7 @@ def patch_me(self, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_me got unknown kwargs: {extra_kwargs!r}") @@ -29350,7 +29350,7 @@ def patch_me(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -29360,7 +29360,7 @@ def patch_me(self, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29467,7 +29467,7 @@ def patch_my_api_key(self, my_api_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_api_key got unknown kwargs: {extra_kwargs!r}") @@ -29476,9 +29476,9 @@ def patch_my_api_key(self, my_api_key_id, **kwargs): "myApiKeyId": my_api_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29490,7 +29490,7 @@ def patch_my_api_key(self, my_api_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29597,7 +29597,7 @@ def patch_my_auth_token(self, my_auth_token_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_auth_token got unknown kwargs: {extra_kwargs!r}") @@ -29606,9 +29606,9 @@ def patch_my_auth_token(self, my_auth_token_id, **kwargs): "myAuthTokenId": my_auth_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29620,7 +29620,7 @@ def patch_my_auth_token(self, my_auth_token_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29727,7 +29727,7 @@ def patch_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_customer_secret_key got unknown kwargs: {extra_kwargs!r}") @@ -29736,9 +29736,9 @@ def patch_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "myCustomerSecretKeyId": my_customer_secret_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29750,7 +29750,7 @@ def patch_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29867,7 +29867,7 @@ def patch_my_device(self, my_device_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_device got unknown kwargs: {extra_kwargs!r}") @@ -29876,9 +29876,9 @@ def patch_my_device(self, my_device_id, **kwargs): "myDeviceId": my_device_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29894,7 +29894,7 @@ def patch_my_device(self, my_device_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -29904,7 +29904,7 @@ def patch_my_device(self, my_device_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30013,7 +30013,7 @@ def patch_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, ** "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -30022,9 +30022,9 @@ def patch_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, ** "myOAuth2ClientCredentialId": my_o_auth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30036,7 +30036,7 @@ def patch_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, ** "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30143,7 +30143,7 @@ def patch_my_pending_approval(self, my_pending_approval_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_pending_approval got unknown kwargs: {extra_kwargs!r}") @@ -30152,9 +30152,9 @@ def patch_my_pending_approval(self, my_pending_approval_id, **kwargs): "myPendingApprovalId": my_pending_approval_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30166,7 +30166,7 @@ def patch_my_pending_approval(self, my_pending_approval_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30283,7 +30283,7 @@ def patch_my_request(self, my_request_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_request got unknown kwargs: {extra_kwargs!r}") @@ -30292,9 +30292,9 @@ def patch_my_request(self, my_request_id, **kwargs): "myRequestId": my_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30310,7 +30310,7 @@ def patch_my_request(self, my_request_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -30320,7 +30320,7 @@ def patch_my_request(self, my_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30429,7 +30429,7 @@ def patch_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_my_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -30438,9 +30438,9 @@ def patch_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "mySmtpCredentialId": my_smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30452,7 +30452,7 @@ def patch_my_smtp_credential(self, my_smtp_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30569,7 +30569,7 @@ def patch_network_perimeter(self, network_perimeter_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_network_perimeter got unknown kwargs: {extra_kwargs!r}") @@ -30578,9 +30578,9 @@ def patch_network_perimeter(self, network_perimeter_id, **kwargs): "networkPerimeterId": network_perimeter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30596,7 +30596,7 @@ def patch_network_perimeter(self, network_perimeter_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -30606,7 +30606,7 @@ def patch_network_perimeter(self, network_perimeter_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30725,7 +30725,7 @@ def patch_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_o_auth2_client_credential got unknown kwargs: {extra_kwargs!r}") @@ -30734,9 +30734,9 @@ def patch_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs "oAuth2ClientCredentialId": o_auth2_client_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30752,7 +30752,7 @@ def patch_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -30762,7 +30762,7 @@ def patch_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -30881,7 +30881,7 @@ def patch_password_policy(self, password_policy_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_password_policy got unknown kwargs: {extra_kwargs!r}") @@ -30890,9 +30890,9 @@ def patch_password_policy(self, password_policy_id, **kwargs): "passwordPolicyId": password_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -30908,7 +30908,7 @@ def patch_password_policy(self, password_policy_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -30918,7 +30918,7 @@ def patch_password_policy(self, password_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31039,7 +31039,7 @@ def patch_policy(self, policy_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_policy got unknown kwargs: {extra_kwargs!r}") @@ -31048,9 +31048,9 @@ def patch_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31066,7 +31066,7 @@ def patch_policy(self, policy_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -31076,7 +31076,7 @@ def patch_policy(self, policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31197,7 +31197,7 @@ def patch_rule(self, rule_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_rule got unknown kwargs: {extra_kwargs!r}") @@ -31206,9 +31206,9 @@ def patch_rule(self, rule_id, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31224,7 +31224,7 @@ def patch_rule(self, rule_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -31234,7 +31234,7 @@ def patch_rule(self, rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31343,7 +31343,7 @@ def patch_schema(self, schema_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_schema got unknown kwargs: {extra_kwargs!r}") @@ -31352,9 +31352,9 @@ def patch_schema(self, schema_id, **kwargs): "schemaId": schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31366,7 +31366,7 @@ def patch_schema(self, schema_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31483,7 +31483,7 @@ def patch_security_question(self, security_question_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_security_question got unknown kwargs: {extra_kwargs!r}") @@ -31492,9 +31492,9 @@ def patch_security_question(self, security_question_id, **kwargs): "securityQuestionId": security_question_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31510,7 +31510,7 @@ def patch_security_question(self, security_question_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -31520,7 +31520,7 @@ def patch_security_question(self, security_question_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31639,7 +31639,7 @@ def patch_security_question_setting(self, security_question_setting_id, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_security_question_setting got unknown kwargs: {extra_kwargs!r}") @@ -31648,9 +31648,9 @@ def patch_security_question_setting(self, security_question_setting_id, **kwargs "securityQuestionSettingId": security_question_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31666,7 +31666,7 @@ def patch_security_question_setting(self, security_question_setting_id, **kwargs "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -31676,7 +31676,7 @@ def patch_security_question_setting(self, security_question_setting_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31795,7 +31795,7 @@ def patch_self_registration_profile(self, self_registration_profile_id, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_self_registration_profile got unknown kwargs: {extra_kwargs!r}") @@ -31804,9 +31804,9 @@ def patch_self_registration_profile(self, self_registration_profile_id, **kwargs "selfRegistrationProfileId": self_registration_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31822,7 +31822,7 @@ def patch_self_registration_profile(self, self_registration_profile_id, **kwargs "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -31832,7 +31832,7 @@ def patch_self_registration_profile(self, self_registration_profile_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -31951,7 +31951,7 @@ def patch_setting(self, setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_setting got unknown kwargs: {extra_kwargs!r}") @@ -31960,9 +31960,9 @@ def patch_setting(self, setting_id, **kwargs): "settingId": setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -31978,7 +31978,7 @@ def patch_setting(self, setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -31988,7 +31988,7 @@ def patch_setting(self, setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32107,7 +32107,7 @@ def patch_smtp_credential(self, smtp_credential_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_smtp_credential got unknown kwargs: {extra_kwargs!r}") @@ -32116,9 +32116,9 @@ def patch_smtp_credential(self, smtp_credential_id, **kwargs): "smtpCredentialId": smtp_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32134,7 +32134,7 @@ def patch_smtp_credential(self, smtp_credential_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -32144,7 +32144,7 @@ def patch_smtp_credential(self, smtp_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32255,7 +32255,7 @@ def patch_social_identity_provider(self, social_identity_provider_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_social_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -32264,9 +32264,9 @@ def patch_social_identity_provider(self, social_identity_provider_id, **kwargs): "socialIdentityProviderId": social_identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32278,7 +32278,7 @@ def patch_social_identity_provider(self, social_identity_provider_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32395,7 +32395,7 @@ def patch_user(self, user_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_user got unknown kwargs: {extra_kwargs!r}") @@ -32404,9 +32404,9 @@ def patch_user(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32422,7 +32422,7 @@ def patch_user(self, user_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -32432,7 +32432,7 @@ def patch_user(self, user_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32551,7 +32551,7 @@ def patch_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_user_attributes_setting got unknown kwargs: {extra_kwargs!r}") @@ -32560,9 +32560,9 @@ def patch_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "userAttributesSettingId": user_attributes_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32578,7 +32578,7 @@ def patch_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -32588,7 +32588,7 @@ def patch_user_attributes_setting(self, user_attributes_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32707,7 +32707,7 @@ def put_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_account_recovery_setting got unknown kwargs: {extra_kwargs!r}") @@ -32716,9 +32716,9 @@ def put_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "accountRecoverySettingId": account_recovery_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32734,7 +32734,7 @@ def put_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -32744,7 +32744,7 @@ def put_account_recovery_setting(self, account_recovery_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -32863,7 +32863,7 @@ def put_app(self, app_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_app got unknown kwargs: {extra_kwargs!r}") @@ -32872,9 +32872,9 @@ def put_app(self, app_id, **kwargs): "appId": app_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -32890,7 +32890,7 @@ def put_app(self, app_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -32900,7 +32900,7 @@ def put_app(self, app_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33019,7 +33019,7 @@ def put_app_status_changer(self, app_status_changer_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_app_status_changer got unknown kwargs: {extra_kwargs!r}") @@ -33028,9 +33028,9 @@ def put_app_status_changer(self, app_status_changer_id, **kwargs): "appStatusChangerId": app_status_changer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33046,7 +33046,7 @@ def put_app_status_changer(self, app_status_changer_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33056,7 +33056,7 @@ def put_app_status_changer(self, app_status_changer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33175,7 +33175,7 @@ def put_approval_workflow(self, approval_workflow_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_approval_workflow got unknown kwargs: {extra_kwargs!r}") @@ -33184,9 +33184,9 @@ def put_approval_workflow(self, approval_workflow_id, **kwargs): "approvalWorkflowId": approval_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33202,7 +33202,7 @@ def put_approval_workflow(self, approval_workflow_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33212,7 +33212,7 @@ def put_approval_workflow(self, approval_workflow_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33331,7 +33331,7 @@ def put_authentication_factor_setting(self, authentication_factor_setting_id, ** "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_authentication_factor_setting got unknown kwargs: {extra_kwargs!r}") @@ -33340,9 +33340,9 @@ def put_authentication_factor_setting(self, authentication_factor_setting_id, ** "authenticationFactorSettingId": authentication_factor_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33358,7 +33358,7 @@ def put_authentication_factor_setting(self, authentication_factor_setting_id, ** "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33368,7 +33368,7 @@ def put_authentication_factor_setting(self, authentication_factor_setting_id, ** "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33487,7 +33487,7 @@ def put_cloud_gate(self, cloud_gate_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_cloud_gate got unknown kwargs: {extra_kwargs!r}") @@ -33496,9 +33496,9 @@ def put_cloud_gate(self, cloud_gate_id, **kwargs): "cloudGateId": cloud_gate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33514,7 +33514,7 @@ def put_cloud_gate(self, cloud_gate_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33524,7 +33524,7 @@ def put_cloud_gate(self, cloud_gate_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33643,7 +33643,7 @@ def put_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_cloud_gate_mapping got unknown kwargs: {extra_kwargs!r}") @@ -33652,9 +33652,9 @@ def put_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "cloudGateMappingId": cloud_gate_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33670,7 +33670,7 @@ def put_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33680,7 +33680,7 @@ def put_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33799,7 +33799,7 @@ def put_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_cloud_gate_server got unknown kwargs: {extra_kwargs!r}") @@ -33808,9 +33808,9 @@ def put_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "cloudGateServerId": cloud_gate_server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33826,7 +33826,7 @@ def put_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33836,7 +33836,7 @@ def put_cloud_gate_server(self, cloud_gate_server_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -33957,7 +33957,7 @@ def put_condition(self, condition_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_condition got unknown kwargs: {extra_kwargs!r}") @@ -33966,9 +33966,9 @@ def put_condition(self, condition_id, **kwargs): "conditionId": condition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -33984,7 +33984,7 @@ def put_condition(self, condition_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -33994,7 +33994,7 @@ def put_condition(self, condition_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34113,7 +34113,7 @@ def put_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_dynamic_resource_group got unknown kwargs: {extra_kwargs!r}") @@ -34122,9 +34122,9 @@ def put_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "dynamicResourceGroupId": dynamic_resource_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34140,7 +34140,7 @@ def put_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -34150,7 +34150,7 @@ def put_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34269,7 +34269,7 @@ def put_group(self, group_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_group got unknown kwargs: {extra_kwargs!r}") @@ -34278,9 +34278,9 @@ def put_group(self, group_id, **kwargs): "groupId": group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34296,7 +34296,7 @@ def put_group(self, group_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -34306,7 +34306,7 @@ def put_group(self, group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34427,7 +34427,7 @@ def put_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_identity_propagation_trust got unknown kwargs: {extra_kwargs!r}") @@ -34436,9 +34436,9 @@ def put_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "identityPropagationTrustId": identity_propagation_trust_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34454,7 +34454,7 @@ def put_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -34464,7 +34464,7 @@ def put_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34583,7 +34583,7 @@ def put_identity_provider(self, identity_provider_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -34592,9 +34592,9 @@ def put_identity_provider(self, identity_provider_id, **kwargs): "identityProviderId": identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34610,7 +34610,7 @@ def put_identity_provider(self, identity_provider_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -34620,7 +34620,7 @@ def put_identity_provider(self, identity_provider_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34739,7 +34739,7 @@ def put_identity_setting(self, identity_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_identity_setting got unknown kwargs: {extra_kwargs!r}") @@ -34748,9 +34748,9 @@ def put_identity_setting(self, identity_setting_id, **kwargs): "identitySettingId": identity_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34766,7 +34766,7 @@ def put_identity_setting(self, identity_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -34776,7 +34776,7 @@ def put_identity_setting(self, identity_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -34895,7 +34895,7 @@ def put_kmsi_setting(self, kmsi_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_kmsi_setting got unknown kwargs: {extra_kwargs!r}") @@ -34904,9 +34904,9 @@ def put_kmsi_setting(self, kmsi_setting_id, **kwargs): "kmsiSettingId": kmsi_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -34922,7 +34922,7 @@ def put_kmsi_setting(self, kmsi_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -34932,7 +34932,7 @@ def put_kmsi_setting(self, kmsi_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35048,7 +35048,7 @@ def put_me(self, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_me got unknown kwargs: {extra_kwargs!r}") @@ -35065,7 +35065,7 @@ def put_me(self, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -35075,7 +35075,7 @@ def put_me(self, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35179,7 +35179,7 @@ def put_me_password_changer(self, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_me_password_changer got unknown kwargs: {extra_kwargs!r}") @@ -35192,7 +35192,7 @@ def put_me_password_changer(self, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35307,7 +35307,7 @@ def put_network_perimeter(self, network_perimeter_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_network_perimeter got unknown kwargs: {extra_kwargs!r}") @@ -35316,9 +35316,9 @@ def put_network_perimeter(self, network_perimeter_id, **kwargs): "networkPerimeterId": network_perimeter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35334,7 +35334,7 @@ def put_network_perimeter(self, network_perimeter_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -35344,7 +35344,7 @@ def put_network_perimeter(self, network_perimeter_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35463,7 +35463,7 @@ def put_notification_setting(self, notification_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_notification_setting got unknown kwargs: {extra_kwargs!r}") @@ -35472,9 +35472,9 @@ def put_notification_setting(self, notification_setting_id, **kwargs): "notificationSettingId": notification_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35490,7 +35490,7 @@ def put_notification_setting(self, notification_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -35500,7 +35500,7 @@ def put_notification_setting(self, notification_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35619,7 +35619,7 @@ def put_password_policy(self, password_policy_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_password_policy got unknown kwargs: {extra_kwargs!r}") @@ -35628,9 +35628,9 @@ def put_password_policy(self, password_policy_id, **kwargs): "passwordPolicyId": password_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35646,7 +35646,7 @@ def put_password_policy(self, password_policy_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -35656,7 +35656,7 @@ def put_password_policy(self, password_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35777,7 +35777,7 @@ def put_policy(self, policy_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_policy got unknown kwargs: {extra_kwargs!r}") @@ -35786,9 +35786,9 @@ def put_policy(self, policy_id, **kwargs): "policyId": policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35804,7 +35804,7 @@ def put_policy(self, policy_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -35814,7 +35814,7 @@ def put_policy(self, policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -35935,7 +35935,7 @@ def put_rule(self, rule_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_rule got unknown kwargs: {extra_kwargs!r}") @@ -35944,9 +35944,9 @@ def put_rule(self, rule_id, **kwargs): "ruleId": rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -35962,7 +35962,7 @@ def put_rule(self, rule_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -35972,7 +35972,7 @@ def put_rule(self, rule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36081,7 +36081,7 @@ def put_schema(self, schema_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_schema got unknown kwargs: {extra_kwargs!r}") @@ -36090,9 +36090,9 @@ def put_schema(self, schema_id, **kwargs): "schemaId": schema_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36104,7 +36104,7 @@ def put_schema(self, schema_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36221,7 +36221,7 @@ def put_security_question_setting(self, security_question_setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_security_question_setting got unknown kwargs: {extra_kwargs!r}") @@ -36230,9 +36230,9 @@ def put_security_question_setting(self, security_question_setting_id, **kwargs): "securityQuestionSettingId": security_question_setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36248,7 +36248,7 @@ def put_security_question_setting(self, security_question_setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -36258,7 +36258,7 @@ def put_security_question_setting(self, security_question_setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36377,7 +36377,7 @@ def put_self_registration_profile(self, self_registration_profile_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_self_registration_profile got unknown kwargs: {extra_kwargs!r}") @@ -36386,9 +36386,9 @@ def put_self_registration_profile(self, self_registration_profile_id, **kwargs): "selfRegistrationProfileId": self_registration_profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36404,7 +36404,7 @@ def put_self_registration_profile(self, self_registration_profile_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -36414,7 +36414,7 @@ def put_self_registration_profile(self, self_registration_profile_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36533,7 +36533,7 @@ def put_setting(self, setting_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_setting got unknown kwargs: {extra_kwargs!r}") @@ -36542,9 +36542,9 @@ def put_setting(self, setting_id, **kwargs): "settingId": setting_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36560,7 +36560,7 @@ def put_setting(self, setting_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -36570,7 +36570,7 @@ def put_setting(self, setting_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36681,7 +36681,7 @@ def put_social_identity_provider(self, social_identity_provider_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_social_identity_provider got unknown kwargs: {extra_kwargs!r}") @@ -36690,9 +36690,9 @@ def put_social_identity_provider(self, social_identity_provider_id, **kwargs): "socialIdentityProviderId": social_identity_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36704,7 +36704,7 @@ def put_social_identity_provider(self, social_identity_provider_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36821,7 +36821,7 @@ def put_user(self, user_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_user got unknown kwargs: {extra_kwargs!r}") @@ -36830,9 +36830,9 @@ def put_user(self, user_id, **kwargs): "userId": user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36848,7 +36848,7 @@ def put_user(self, user_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -36858,7 +36858,7 @@ def put_user(self, user_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -36967,7 +36967,7 @@ def put_user_capabilities_changer(self, user_capabilities_changer_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_user_capabilities_changer got unknown kwargs: {extra_kwargs!r}") @@ -36976,9 +36976,9 @@ def put_user_capabilities_changer(self, user_capabilities_changer_id, **kwargs): "userCapabilitiesChangerId": user_capabilities_changer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -36990,7 +36990,7 @@ def put_user_capabilities_changer(self, user_capabilities_changer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37097,7 +37097,7 @@ def put_user_password_changer(self, user_password_changer_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_user_password_changer got unknown kwargs: {extra_kwargs!r}") @@ -37106,9 +37106,9 @@ def put_user_password_changer(self, user_password_changer_id, **kwargs): "userPasswordChangerId": user_password_changer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -37120,7 +37120,7 @@ def put_user_password_changer(self, user_password_changer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37227,7 +37227,7 @@ def put_user_password_resetter(self, user_password_resetter_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_user_password_resetter got unknown kwargs: {extra_kwargs!r}") @@ -37236,9 +37236,9 @@ def put_user_password_resetter(self, user_password_resetter_id, **kwargs): "userPasswordResetterId": user_password_resetter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -37250,7 +37250,7 @@ def put_user_password_resetter(self, user_password_resetter_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37367,7 +37367,7 @@ def put_user_status_changer(self, user_status_changer_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_user_status_changer got unknown kwargs: {extra_kwargs!r}") @@ -37376,9 +37376,9 @@ def put_user_status_changer(self, user_status_changer_id, **kwargs): "userStatusChangerId": user_status_changer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -37394,7 +37394,7 @@ def put_user_status_changer(self, user_status_changer_id, **kwargs): "attributes": kwargs.get("attributes", missing), "attributeSets": self.base_client.generate_collection_format_param(kwargs.get("attribute_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -37404,7 +37404,7 @@ def put_user_status_changer(self, user_status_changer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37502,7 +37502,7 @@ def search_account_mgmt_infos(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_account_mgmt_infos got unknown kwargs: {extra_kwargs!r}") @@ -37511,7 +37511,7 @@ def search_account_mgmt_infos(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -37520,7 +37520,7 @@ def search_account_mgmt_infos(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37616,7 +37616,7 @@ def search_api_keys(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_api_keys got unknown kwargs: {extra_kwargs!r}") @@ -37625,7 +37625,7 @@ def search_api_keys(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -37634,7 +37634,7 @@ def search_api_keys(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37730,7 +37730,7 @@ def search_app_roles(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_app_roles got unknown kwargs: {extra_kwargs!r}") @@ -37739,7 +37739,7 @@ def search_app_roles(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -37748,7 +37748,7 @@ def search_app_roles(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37844,7 +37844,7 @@ def search_apps(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_apps got unknown kwargs: {extra_kwargs!r}") @@ -37853,7 +37853,7 @@ def search_apps(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -37862,7 +37862,7 @@ def search_apps(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -37958,7 +37958,7 @@ def search_auth_tokens(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_auth_tokens got unknown kwargs: {extra_kwargs!r}") @@ -37967,7 +37967,7 @@ def search_auth_tokens(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -37976,7 +37976,7 @@ def search_auth_tokens(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38072,7 +38072,7 @@ def search_authentication_factor_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_authentication_factor_settings got unknown kwargs: {extra_kwargs!r}") @@ -38081,7 +38081,7 @@ def search_authentication_factor_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38090,7 +38090,7 @@ def search_authentication_factor_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38186,7 +38186,7 @@ def search_cloud_gate_mappings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_cloud_gate_mappings got unknown kwargs: {extra_kwargs!r}") @@ -38195,7 +38195,7 @@ def search_cloud_gate_mappings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38204,7 +38204,7 @@ def search_cloud_gate_mappings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38300,7 +38300,7 @@ def search_cloud_gate_servers(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_cloud_gate_servers got unknown kwargs: {extra_kwargs!r}") @@ -38309,7 +38309,7 @@ def search_cloud_gate_servers(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38318,7 +38318,7 @@ def search_cloud_gate_servers(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38414,7 +38414,7 @@ def search_cloud_gates(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_cloud_gates got unknown kwargs: {extra_kwargs!r}") @@ -38423,7 +38423,7 @@ def search_cloud_gates(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38432,7 +38432,7 @@ def search_cloud_gates(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38528,7 +38528,7 @@ def search_conditions(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_conditions got unknown kwargs: {extra_kwargs!r}") @@ -38537,7 +38537,7 @@ def search_conditions(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38546,7 +38546,7 @@ def search_conditions(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38642,7 +38642,7 @@ def search_customer_secret_keys(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_customer_secret_keys got unknown kwargs: {extra_kwargs!r}") @@ -38651,7 +38651,7 @@ def search_customer_secret_keys(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38660,7 +38660,7 @@ def search_customer_secret_keys(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38756,7 +38756,7 @@ def search_dynamic_resource_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_dynamic_resource_groups got unknown kwargs: {extra_kwargs!r}") @@ -38765,7 +38765,7 @@ def search_dynamic_resource_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38774,7 +38774,7 @@ def search_dynamic_resource_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38870,7 +38870,7 @@ def search_grants(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_grants got unknown kwargs: {extra_kwargs!r}") @@ -38879,7 +38879,7 @@ def search_grants(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -38888,7 +38888,7 @@ def search_grants(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -38984,7 +38984,7 @@ def search_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_groups got unknown kwargs: {extra_kwargs!r}") @@ -38993,7 +38993,7 @@ def search_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39002,7 +39002,7 @@ def search_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39098,7 +39098,7 @@ def search_identity_providers(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_identity_providers got unknown kwargs: {extra_kwargs!r}") @@ -39107,7 +39107,7 @@ def search_identity_providers(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39116,7 +39116,7 @@ def search_identity_providers(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39212,7 +39212,7 @@ def search_identity_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_identity_settings got unknown kwargs: {extra_kwargs!r}") @@ -39221,7 +39221,7 @@ def search_identity_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39230,7 +39230,7 @@ def search_identity_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39326,7 +39326,7 @@ def search_kmsi_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_kmsi_settings got unknown kwargs: {extra_kwargs!r}") @@ -39335,7 +39335,7 @@ def search_kmsi_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39344,7 +39344,7 @@ def search_kmsi_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39440,7 +39440,7 @@ def search_my_apps(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_my_apps got unknown kwargs: {extra_kwargs!r}") @@ -39449,7 +39449,7 @@ def search_my_apps(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39458,7 +39458,7 @@ def search_my_apps(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39554,7 +39554,7 @@ def search_my_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_my_groups got unknown kwargs: {extra_kwargs!r}") @@ -39563,7 +39563,7 @@ def search_my_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39572,7 +39572,7 @@ def search_my_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39668,7 +39668,7 @@ def search_my_requestable_groups(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_my_requestable_groups got unknown kwargs: {extra_kwargs!r}") @@ -39677,7 +39677,7 @@ def search_my_requestable_groups(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39686,7 +39686,7 @@ def search_my_requestable_groups(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39782,7 +39782,7 @@ def search_my_requests(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_my_requests got unknown kwargs: {extra_kwargs!r}") @@ -39791,7 +39791,7 @@ def search_my_requests(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39800,7 +39800,7 @@ def search_my_requests(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -39896,7 +39896,7 @@ def search_network_perimeters(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_network_perimeters got unknown kwargs: {extra_kwargs!r}") @@ -39905,7 +39905,7 @@ def search_network_perimeters(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -39914,7 +39914,7 @@ def search_network_perimeters(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40010,7 +40010,7 @@ def search_notification_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_notification_settings got unknown kwargs: {extra_kwargs!r}") @@ -40019,7 +40019,7 @@ def search_notification_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40028,7 +40028,7 @@ def search_notification_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40124,7 +40124,7 @@ def search_o_auth2_client_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_o_auth2_client_credentials got unknown kwargs: {extra_kwargs!r}") @@ -40133,7 +40133,7 @@ def search_o_auth2_client_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40142,7 +40142,7 @@ def search_o_auth2_client_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40238,7 +40238,7 @@ def search_o_auth_client_certificates(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_o_auth_client_certificates got unknown kwargs: {extra_kwargs!r}") @@ -40247,7 +40247,7 @@ def search_o_auth_client_certificates(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40256,7 +40256,7 @@ def search_o_auth_client_certificates(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40352,7 +40352,7 @@ def search_o_auth_partner_certificates(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_o_auth_partner_certificates got unknown kwargs: {extra_kwargs!r}") @@ -40361,7 +40361,7 @@ def search_o_auth_partner_certificates(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40370,7 +40370,7 @@ def search_o_auth_partner_certificates(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40466,7 +40466,7 @@ def search_oci_console_sign_on_policy_consents(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_oci_console_sign_on_policy_consents got unknown kwargs: {extra_kwargs!r}") @@ -40475,7 +40475,7 @@ def search_oci_console_sign_on_policy_consents(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40484,7 +40484,7 @@ def search_oci_console_sign_on_policy_consents(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40580,7 +40580,7 @@ def search_password_policies(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_password_policies got unknown kwargs: {extra_kwargs!r}") @@ -40589,7 +40589,7 @@ def search_password_policies(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40598,7 +40598,7 @@ def search_password_policies(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40694,7 +40694,7 @@ def search_policies(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_policies got unknown kwargs: {extra_kwargs!r}") @@ -40703,7 +40703,7 @@ def search_policies(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40712,7 +40712,7 @@ def search_policies(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40808,7 +40808,7 @@ def search_resource_type_schema_attributes(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_resource_type_schema_attributes got unknown kwargs: {extra_kwargs!r}") @@ -40817,7 +40817,7 @@ def search_resource_type_schema_attributes(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40826,7 +40826,7 @@ def search_resource_type_schema_attributes(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -40922,7 +40922,7 @@ def search_rules(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_rules got unknown kwargs: {extra_kwargs!r}") @@ -40931,7 +40931,7 @@ def search_rules(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -40940,7 +40940,7 @@ def search_rules(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41036,7 +41036,7 @@ def search_schemas(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_schemas got unknown kwargs: {extra_kwargs!r}") @@ -41045,7 +41045,7 @@ def search_schemas(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41054,7 +41054,7 @@ def search_schemas(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41150,7 +41150,7 @@ def search_security_question_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_security_question_settings got unknown kwargs: {extra_kwargs!r}") @@ -41159,7 +41159,7 @@ def search_security_question_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41168,7 +41168,7 @@ def search_security_question_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41264,7 +41264,7 @@ def search_security_questions(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_security_questions got unknown kwargs: {extra_kwargs!r}") @@ -41273,7 +41273,7 @@ def search_security_questions(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41282,7 +41282,7 @@ def search_security_questions(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41378,7 +41378,7 @@ def search_self_registration_profiles(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_self_registration_profiles got unknown kwargs: {extra_kwargs!r}") @@ -41387,7 +41387,7 @@ def search_self_registration_profiles(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41396,7 +41396,7 @@ def search_self_registration_profiles(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41492,7 +41492,7 @@ def search_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_settings got unknown kwargs: {extra_kwargs!r}") @@ -41501,7 +41501,7 @@ def search_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41510,7 +41510,7 @@ def search_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41606,7 +41606,7 @@ def search_smtp_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_smtp_credentials got unknown kwargs: {extra_kwargs!r}") @@ -41615,7 +41615,7 @@ def search_smtp_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41624,7 +41624,7 @@ def search_smtp_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41720,7 +41720,7 @@ def search_social_identity_providers(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_social_identity_providers got unknown kwargs: {extra_kwargs!r}") @@ -41729,7 +41729,7 @@ def search_social_identity_providers(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41738,7 +41738,7 @@ def search_social_identity_providers(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41834,7 +41834,7 @@ def search_user_attributes_settings(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_user_attributes_settings got unknown kwargs: {extra_kwargs!r}") @@ -41843,7 +41843,7 @@ def search_user_attributes_settings(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41852,7 +41852,7 @@ def search_user_attributes_settings(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -41948,7 +41948,7 @@ def search_user_db_credentials(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_user_db_credentials got unknown kwargs: {extra_kwargs!r}") @@ -41957,7 +41957,7 @@ def search_user_db_credentials(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -41966,7 +41966,7 @@ def search_user_db_credentials(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -42062,7 +42062,7 @@ def search_users(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_users got unknown kwargs: {extra_kwargs!r}") @@ -42071,7 +42071,7 @@ def search_users(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/scim+json", @@ -42080,7 +42080,7 @@ def search_users(self, **kwargs): "resource_type_schema_version": kwargs.get("resource_type_schema_version", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/integration/integration_instance_client.py b/src/oci/integration/integration_instance_client.py index 05a29ced4..6f6eb7d06 100644 --- a/src/oci/integration/integration_instance_client.py +++ b/src/oci/integration/integration_instance_client.py @@ -180,7 +180,7 @@ def add_oracle_managed_custom_endpoint(self, add_oracle_managed_custom_endpoint_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_oracle_managed_custom_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def add_oracle_managed_custom_endpoint(self, add_oracle_managed_custom_endpoint_ "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def add_oracle_managed_custom_endpoint(self, add_oracle_managed_custom_endpoint_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def change_integration_instance_compartment(self, integration_instance_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_integration_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -310,9 +310,9 @@ def change_integration_instance_compartment(self, integration_instance_id, chang "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -323,7 +323,7 @@ def change_integration_instance_compartment(self, integration_instance_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -421,7 +421,7 @@ def change_integration_instance_network_endpoint(self, integration_instance_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_integration_instance_network_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -430,9 +430,9 @@ def change_integration_instance_network_endpoint(self, integration_instance_id, "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -443,7 +443,7 @@ def change_integration_instance_network_endpoint(self, integration_instance_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -541,7 +541,7 @@ def change_private_endpoint_outbound_connection(self, integration_instance_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_private_endpoint_outbound_connection got unknown kwargs: {extra_kwargs!r}") @@ -550,9 +550,9 @@ def change_private_endpoint_outbound_connection(self, integration_instance_id, c "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -563,7 +563,7 @@ def change_private_endpoint_outbound_connection(self, integration_instance_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -649,7 +649,7 @@ def create_integration_instance(self, create_integration_instance_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_integration_instance got unknown kwargs: {extra_kwargs!r}") @@ -660,7 +660,7 @@ def create_integration_instance(self, create_integration_instance_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -745,7 +745,7 @@ def delete_integration_instance(self, integration_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_integration_instance got unknown kwargs: {extra_kwargs!r}") @@ -754,9 +754,9 @@ def delete_integration_instance(self, integration_instance_id, **kwargs): "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -766,7 +766,7 @@ def delete_integration_instance(self, integration_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -860,7 +860,7 @@ def disaster_recovery_failover(self, integration_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disaster_recovery_failover got unknown kwargs: {extra_kwargs!r}") @@ -869,9 +869,9 @@ def disaster_recovery_failover(self, integration_instance_id, **kwargs): "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -882,7 +882,7 @@ def disaster_recovery_failover(self, integration_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -976,7 +976,7 @@ def enable_process_automation(self, integration_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_process_automation got unknown kwargs: {extra_kwargs!r}") @@ -985,9 +985,9 @@ def enable_process_automation(self, integration_instance_id, **kwargs): "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -998,7 +998,7 @@ def enable_process_automation(self, integration_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1093,7 +1093,7 @@ def extend_data_retention(self, integration_instance_id, extend_data_retention_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"extend_data_retention got unknown kwargs: {extra_kwargs!r}") @@ -1102,9 +1102,9 @@ def extend_data_retention(self, integration_instance_id, extend_data_retention_d "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1115,7 +1115,7 @@ def extend_data_retention(self, integration_instance_id, extend_data_retention_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1194,7 +1194,7 @@ def get_integration_instance(self, integration_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_integration_instance got unknown kwargs: {extra_kwargs!r}") @@ -1203,9 +1203,9 @@ def get_integration_instance(self, integration_instance_id, **kwargs): "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1214,7 +1214,7 @@ def get_integration_instance(self, integration_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1290,7 +1290,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1299,9 +1299,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1310,7 +1310,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1420,7 +1420,7 @@ def list_integration_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_integration_instances got unknown kwargs: {extra_kwargs!r}") @@ -1455,14 +1455,14 @@ def list_integration_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1549,7 +1549,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1558,9 +1558,9 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1569,14 +1569,14 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1665,7 +1665,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1674,9 +1674,9 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1685,14 +1685,14 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1782,7 +1782,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "integration_instance_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1793,14 +1793,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "integrationInstanceId": kwargs.get("integration_instance_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1893,7 +1893,7 @@ def remove_oracle_managed_custom_endpoint(self, integration_instance_id, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_oracle_managed_custom_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1902,9 +1902,9 @@ def remove_oracle_managed_custom_endpoint(self, integration_instance_id, **kwarg "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1915,7 +1915,7 @@ def remove_oracle_managed_custom_endpoint(self, integration_instance_id, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2009,7 +2009,7 @@ def start_integration_instance(self, integration_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_integration_instance got unknown kwargs: {extra_kwargs!r}") @@ -2018,9 +2018,9 @@ def start_integration_instance(self, integration_instance_id, **kwargs): "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2031,7 +2031,7 @@ def start_integration_instance(self, integration_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2123,7 +2123,7 @@ def stop_integration_instance(self, integration_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_integration_instance got unknown kwargs: {extra_kwargs!r}") @@ -2132,9 +2132,9 @@ def stop_integration_instance(self, integration_instance_id, **kwargs): "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2145,7 +2145,7 @@ def stop_integration_instance(self, integration_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2231,7 +2231,7 @@ def update_integration_instance(self, integration_instance_id, update_integratio "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_integration_instance got unknown kwargs: {extra_kwargs!r}") @@ -2240,9 +2240,9 @@ def update_integration_instance(self, integration_instance_id, update_integratio "integrationInstanceId": integration_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2252,7 +2252,7 @@ def update_integration_instance(self, integration_instance_id, update_integratio "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/iot/iot_client.py b/src/oci/iot/iot_client.py index ce459bcea..cdb5718e6 100644 --- a/src/oci/iot/iot_client.py +++ b/src/oci/iot/iot_client.py @@ -186,7 +186,7 @@ def change_iot_domain_compartment(self, iot_domain_id, change_iot_domain_compart "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_iot_domain_compartment got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def change_iot_domain_compartment(self, iot_domain_id, change_iot_domain_compart "iotDomainId": iot_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -208,7 +208,7 @@ def change_iot_domain_compartment(self, iot_domain_id, change_iot_domain_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -309,7 +309,7 @@ def change_iot_domain_data_retention_period(self, iot_domain_id, change_iot_doma "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_iot_domain_data_retention_period got unknown kwargs: {extra_kwargs!r}") @@ -318,9 +318,9 @@ def change_iot_domain_data_retention_period(self, iot_domain_id, change_iot_doma "iotDomainId": iot_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -331,7 +331,7 @@ def change_iot_domain_data_retention_period(self, iot_domain_id, change_iot_doma "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -435,7 +435,7 @@ def change_iot_domain_group_compartment(self, iot_domain_group_id, change_iot_do "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_iot_domain_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -444,9 +444,9 @@ def change_iot_domain_group_compartment(self, iot_domain_group_id, change_iot_do "iotDomainGroupId": iot_domain_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -457,7 +457,7 @@ def change_iot_domain_group_compartment(self, iot_domain_group_id, change_iot_do "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -558,7 +558,7 @@ def configure_iot_domain_data_access(self, iot_domain_id, configure_iot_domain_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_iot_domain_data_access got unknown kwargs: {extra_kwargs!r}") @@ -567,9 +567,9 @@ def configure_iot_domain_data_access(self, iot_domain_id, configure_iot_domain_d "iotDomainId": iot_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -580,7 +580,7 @@ def configure_iot_domain_data_access(self, iot_domain_id, configure_iot_domain_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -681,7 +681,7 @@ def configure_iot_domain_group_data_access(self, iot_domain_group_id, configure_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_iot_domain_group_data_access got unknown kwargs: {extra_kwargs!r}") @@ -690,9 +690,9 @@ def configure_iot_domain_group_data_access(self, iot_domain_group_id, configure_ "iotDomainGroupId": iot_domain_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -703,7 +703,7 @@ def configure_iot_domain_group_data_access(self, iot_domain_group_id, configure_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -791,7 +791,7 @@ def create_digital_twin_adapter(self, create_digital_twin_adapter_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_digital_twin_adapter got unknown kwargs: {extra_kwargs!r}") @@ -802,7 +802,7 @@ def create_digital_twin_adapter(self, create_digital_twin_adapter_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -890,7 +890,7 @@ def create_digital_twin_instance(self, create_digital_twin_instance_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_digital_twin_instance got unknown kwargs: {extra_kwargs!r}") @@ -901,7 +901,7 @@ def create_digital_twin_instance(self, create_digital_twin_instance_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -989,7 +989,7 @@ def create_digital_twin_model(self, create_digital_twin_model_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_digital_twin_model got unknown kwargs: {extra_kwargs!r}") @@ -1000,7 +1000,7 @@ def create_digital_twin_model(self, create_digital_twin_model_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1088,7 +1088,7 @@ def create_digital_twin_relationship(self, create_digital_twin_relationship_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_digital_twin_relationship got unknown kwargs: {extra_kwargs!r}") @@ -1099,7 +1099,7 @@ def create_digital_twin_relationship(self, create_digital_twin_relationship_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1187,7 +1187,7 @@ def create_iot_domain(self, create_iot_domain_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_iot_domain got unknown kwargs: {extra_kwargs!r}") @@ -1198,7 +1198,7 @@ def create_iot_domain(self, create_iot_domain_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1286,7 +1286,7 @@ def create_iot_domain_group(self, create_iot_domain_group_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_iot_domain_group got unknown kwargs: {extra_kwargs!r}") @@ -1297,7 +1297,7 @@ def create_iot_domain_group(self, create_iot_domain_group_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1387,7 +1387,7 @@ def delete_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_digital_twin_adapter got unknown kwargs: {extra_kwargs!r}") @@ -1396,9 +1396,9 @@ def delete_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): "digitalTwinAdapterId": digital_twin_adapter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1408,7 +1408,7 @@ def delete_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1495,7 +1495,7 @@ def delete_digital_twin_instance(self, digital_twin_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_digital_twin_instance got unknown kwargs: {extra_kwargs!r}") @@ -1504,9 +1504,9 @@ def delete_digital_twin_instance(self, digital_twin_instance_id, **kwargs): "digitalTwinInstanceId": digital_twin_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1516,7 +1516,7 @@ def delete_digital_twin_instance(self, digital_twin_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1603,7 +1603,7 @@ def delete_digital_twin_model(self, digital_twin_model_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_digital_twin_model got unknown kwargs: {extra_kwargs!r}") @@ -1612,9 +1612,9 @@ def delete_digital_twin_model(self, digital_twin_model_id, **kwargs): "digitalTwinModelId": digital_twin_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1624,7 +1624,7 @@ def delete_digital_twin_model(self, digital_twin_model_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1711,7 +1711,7 @@ def delete_digital_twin_relationship(self, digital_twin_relationship_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_digital_twin_relationship got unknown kwargs: {extra_kwargs!r}") @@ -1720,9 +1720,9 @@ def delete_digital_twin_relationship(self, digital_twin_relationship_id, **kwarg "digitalTwinRelationshipId": digital_twin_relationship_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1732,7 +1732,7 @@ def delete_digital_twin_relationship(self, digital_twin_relationship_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1819,7 +1819,7 @@ def delete_iot_domain(self, iot_domain_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_iot_domain got unknown kwargs: {extra_kwargs!r}") @@ -1828,9 +1828,9 @@ def delete_iot_domain(self, iot_domain_id, **kwargs): "iotDomainId": iot_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1840,7 +1840,7 @@ def delete_iot_domain(self, iot_domain_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1927,7 +1927,7 @@ def delete_iot_domain_group(self, iot_domain_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_iot_domain_group got unknown kwargs: {extra_kwargs!r}") @@ -1936,9 +1936,9 @@ def delete_iot_domain_group(self, iot_domain_group_id, **kwargs): "iotDomainGroupId": iot_domain_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1948,7 +1948,7 @@ def delete_iot_domain_group(self, iot_domain_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2027,7 +2027,7 @@ def get_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_twin_adapter got unknown kwargs: {extra_kwargs!r}") @@ -2036,9 +2036,9 @@ def get_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): "digitalTwinAdapterId": digital_twin_adapter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2047,7 +2047,7 @@ def get_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2128,7 +2128,7 @@ def get_digital_twin_instance(self, digital_twin_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_twin_instance got unknown kwargs: {extra_kwargs!r}") @@ -2137,9 +2137,9 @@ def get_digital_twin_instance(self, digital_twin_instance_id, **kwargs): "digitalTwinInstanceId": digital_twin_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2148,7 +2148,7 @@ def get_digital_twin_instance(self, digital_twin_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2233,7 +2233,7 @@ def get_digital_twin_instance_content(self, digital_twin_instance_id, **kwargs): "opc_request_id", "should_include_metadata" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_twin_instance_content got unknown kwargs: {extra_kwargs!r}") @@ -2242,23 +2242,23 @@ def get_digital_twin_instance_content(self, digital_twin_instance_id, **kwargs): "digitalTwinInstanceId": digital_twin_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "shouldIncludeMetadata": kwargs.get("should_include_metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json, application/ld+json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2341,7 +2341,7 @@ def get_digital_twin_model(self, digital_twin_model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_twin_model got unknown kwargs: {extra_kwargs!r}") @@ -2350,9 +2350,9 @@ def get_digital_twin_model(self, digital_twin_model_id, **kwargs): "digitalTwinModelId": digital_twin_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2361,7 +2361,7 @@ def get_digital_twin_model(self, digital_twin_model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2442,7 +2442,7 @@ def get_digital_twin_model_spec(self, digital_twin_model_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_twin_model_spec got unknown kwargs: {extra_kwargs!r}") @@ -2451,9 +2451,9 @@ def get_digital_twin_model_spec(self, digital_twin_model_id, **kwargs): "digitalTwinModelId": digital_twin_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2462,7 +2462,7 @@ def get_digital_twin_model_spec(self, digital_twin_model_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2543,7 +2543,7 @@ def get_digital_twin_relationship(self, digital_twin_relationship_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_twin_relationship got unknown kwargs: {extra_kwargs!r}") @@ -2552,9 +2552,9 @@ def get_digital_twin_relationship(self, digital_twin_relationship_id, **kwargs): "digitalTwinRelationshipId": digital_twin_relationship_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2563,7 +2563,7 @@ def get_digital_twin_relationship(self, digital_twin_relationship_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2644,7 +2644,7 @@ def get_iot_domain(self, iot_domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_iot_domain got unknown kwargs: {extra_kwargs!r}") @@ -2653,9 +2653,9 @@ def get_iot_domain(self, iot_domain_id, **kwargs): "iotDomainId": iot_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2664,7 +2664,7 @@ def get_iot_domain(self, iot_domain_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2745,7 +2745,7 @@ def get_iot_domain_group(self, iot_domain_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_iot_domain_group got unknown kwargs: {extra_kwargs!r}") @@ -2754,9 +2754,9 @@ def get_iot_domain_group(self, iot_domain_group_id, **kwargs): "iotDomainGroupId": iot_domain_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2765,7 +2765,7 @@ def get_iot_domain_group(self, iot_domain_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2846,7 +2846,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2855,9 +2855,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2866,7 +2866,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2958,7 +2958,7 @@ def invoke_raw_command(self, digital_twin_instance_id, invoke_raw_command_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"invoke_raw_command got unknown kwargs: {extra_kwargs!r}") @@ -2967,9 +2967,9 @@ def invoke_raw_command(self, digital_twin_instance_id, invoke_raw_command_detail "digitalTwinInstanceId": digital_twin_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2979,7 +2979,7 @@ def invoke_raw_command(self, digital_twin_instance_id, invoke_raw_command_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3112,7 +3112,7 @@ def list_digital_twin_adapters(self, iot_domain_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_digital_twin_adapters got unknown kwargs: {extra_kwargs!r}") @@ -3150,14 +3150,14 @@ def list_digital_twin_adapters(self, iot_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3289,7 +3289,7 @@ def list_digital_twin_instances(self, iot_domain_id, **kwargs): "digital_twin_model_spec_uri", "id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_digital_twin_instances got unknown kwargs: {extra_kwargs!r}") @@ -3327,14 +3327,14 @@ def list_digital_twin_instances(self, iot_domain_id, **kwargs): "iotDomainId": iot_domain_id, "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3460,7 +3460,7 @@ def list_digital_twin_models(self, iot_domain_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_digital_twin_models got unknown kwargs: {extra_kwargs!r}") @@ -3497,14 +3497,14 @@ def list_digital_twin_models(self, iot_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3642,7 +3642,7 @@ def list_digital_twin_relationships(self, iot_domain_id, **kwargs): "opc_request_id", "id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_digital_twin_relationships got unknown kwargs: {extra_kwargs!r}") @@ -3681,14 +3681,14 @@ def list_digital_twin_relationships(self, iot_domain_id, **kwargs): "iotDomainId": iot_domain_id, "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3814,7 +3814,7 @@ def list_iot_domain_groups(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_iot_domain_groups got unknown kwargs: {extra_kwargs!r}") @@ -3850,14 +3850,14 @@ def list_iot_domain_groups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3989,7 +3989,7 @@ def list_iot_domains(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_iot_domains got unknown kwargs: {extra_kwargs!r}") @@ -4026,14 +4026,14 @@ def list_iot_domains(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4142,7 +4142,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -4151,9 +4151,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4177,14 +4177,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4295,7 +4295,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -4304,9 +4304,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4330,14 +4330,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4466,7 +4466,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4502,14 +4502,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4601,7 +4601,7 @@ def update_digital_twin_adapter(self, digital_twin_adapter_id, update_digital_tw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_digital_twin_adapter got unknown kwargs: {extra_kwargs!r}") @@ -4610,9 +4610,9 @@ def update_digital_twin_adapter(self, digital_twin_adapter_id, update_digital_tw "digitalTwinAdapterId": digital_twin_adapter_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4622,7 +4622,7 @@ def update_digital_twin_adapter(self, digital_twin_adapter_id, update_digital_tw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4716,7 +4716,7 @@ def update_digital_twin_instance(self, digital_twin_instance_id, update_digital_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_digital_twin_instance got unknown kwargs: {extra_kwargs!r}") @@ -4725,9 +4725,9 @@ def update_digital_twin_instance(self, digital_twin_instance_id, update_digital_ "digitalTwinInstanceId": digital_twin_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4737,7 +4737,7 @@ def update_digital_twin_instance(self, digital_twin_instance_id, update_digital_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4831,7 +4831,7 @@ def update_digital_twin_model(self, digital_twin_model_id, update_digital_twin_m "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_digital_twin_model got unknown kwargs: {extra_kwargs!r}") @@ -4840,9 +4840,9 @@ def update_digital_twin_model(self, digital_twin_model_id, update_digital_twin_m "digitalTwinModelId": digital_twin_model_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4852,7 +4852,7 @@ def update_digital_twin_model(self, digital_twin_model_id, update_digital_twin_m "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4946,7 +4946,7 @@ def update_digital_twin_relationship(self, digital_twin_relationship_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_digital_twin_relationship got unknown kwargs: {extra_kwargs!r}") @@ -4955,9 +4955,9 @@ def update_digital_twin_relationship(self, digital_twin_relationship_id, update_ "digitalTwinRelationshipId": digital_twin_relationship_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4967,7 +4967,7 @@ def update_digital_twin_relationship(self, digital_twin_relationship_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5061,7 +5061,7 @@ def update_iot_domain(self, iot_domain_id, update_iot_domain_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_iot_domain got unknown kwargs: {extra_kwargs!r}") @@ -5070,9 +5070,9 @@ def update_iot_domain(self, iot_domain_id, update_iot_domain_details, **kwargs): "iotDomainId": iot_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5082,7 +5082,7 @@ def update_iot_domain(self, iot_domain_id, update_iot_domain_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5174,7 +5174,7 @@ def update_iot_domain_group(self, iot_domain_group_id, update_iot_domain_group_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_iot_domain_group got unknown kwargs: {extra_kwargs!r}") @@ -5183,9 +5183,9 @@ def update_iot_domain_group(self, iot_domain_group_id, update_iot_domain_group_d "iotDomainGroupId": iot_domain_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5195,7 +5195,7 @@ def update_iot_domain_group(self, iot_domain_group_id, update_iot_domain_group_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/jms/java_management_service_client.py b/src/oci/jms/java_management_service_client.py index a9d4d2ac0..539964cb2 100644 --- a/src/oci/jms/java_management_service_client.py +++ b/src/oci/jms/java_management_service_client.py @@ -181,7 +181,7 @@ def add_fleet_installation_sites(self, fleet_id, add_fleet_installation_sites_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_fleet_installation_sites got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def add_fleet_installation_sites(self, fleet_id, add_fleet_installation_sites_de "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def add_fleet_installation_sites(self, fleet_id, add_fleet_installation_sites_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -292,7 +292,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -301,9 +301,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -313,7 +313,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_fleet_compartment got unknown kwargs: {extra_kwargs!r}") @@ -419,9 +419,9 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -432,7 +432,7 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -524,7 +524,7 @@ def create_blocklist(self, fleet_id, create_blocklist_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_blocklist got unknown kwargs: {extra_kwargs!r}") @@ -533,9 +533,9 @@ def create_blocklist(self, fleet_id, create_blocklist_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -545,7 +545,7 @@ def create_blocklist(self, fleet_id, create_blocklist_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -647,7 +647,7 @@ def create_drs_file(self, fleet_id, create_drs_file_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_drs_file got unknown kwargs: {extra_kwargs!r}") @@ -656,9 +656,9 @@ def create_drs_file(self, fleet_id, create_drs_file_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -669,7 +669,7 @@ def create_drs_file(self, fleet_id, create_drs_file_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def create_fleet(self, create_fleet_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_fleet got unknown kwargs: {extra_kwargs!r}") @@ -775,7 +775,7 @@ def create_fleet(self, create_fleet_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -862,7 +862,7 @@ def create_jms_plugin(self, create_jms_plugin_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_jms_plugin got unknown kwargs: {extra_kwargs!r}") @@ -873,7 +873,7 @@ def create_jms_plugin(self, create_jms_plugin_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -960,7 +960,7 @@ def create_task_schedule(self, create_task_schedule_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -971,7 +971,7 @@ def create_task_schedule(self, create_task_schedule_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1063,7 +1063,7 @@ def delete_blocklist(self, fleet_id, blocklist_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_blocklist got unknown kwargs: {extra_kwargs!r}") @@ -1073,9 +1073,9 @@ def delete_blocklist(self, fleet_id, blocklist_key, **kwargs): "blocklistKey": blocklist_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1085,7 +1085,7 @@ def delete_blocklist(self, fleet_id, blocklist_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1174,7 +1174,7 @@ def delete_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_crypto_analysis_result got unknown kwargs: {extra_kwargs!r}") @@ -1184,9 +1184,9 @@ def delete_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **k "cryptoAnalysisResultId": crypto_analysis_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1196,7 +1196,7 @@ def delete_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1285,7 +1285,7 @@ def delete_drs_file(self, fleet_id, drs_file_key, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_drs_file got unknown kwargs: {extra_kwargs!r}") @@ -1295,9 +1295,9 @@ def delete_drs_file(self, fleet_id, drs_file_key, **kwargs): "drsFileKey": drs_file_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1307,7 +1307,7 @@ def delete_drs_file(self, fleet_id, drs_file_key, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1393,7 +1393,7 @@ def delete_fleet(self, fleet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_fleet got unknown kwargs: {extra_kwargs!r}") @@ -1402,9 +1402,9 @@ def delete_fleet(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1414,7 +1414,7 @@ def delete_fleet(self, fleet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1503,7 +1503,7 @@ def delete_java_migration_analysis_result(self, fleet_id, java_migration_analysi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_java_migration_analysis_result got unknown kwargs: {extra_kwargs!r}") @@ -1513,9 +1513,9 @@ def delete_java_migration_analysis_result(self, fleet_id, java_migration_analysi "javaMigrationAnalysisResultId": java_migration_analysis_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1525,7 +1525,7 @@ def delete_java_migration_analysis_result(self, fleet_id, java_migration_analysi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1612,7 +1612,7 @@ def delete_jms_plugin(self, jms_plugin_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_jms_plugin got unknown kwargs: {extra_kwargs!r}") @@ -1621,9 +1621,9 @@ def delete_jms_plugin(self, jms_plugin_id, **kwargs): "jmsPluginId": jms_plugin_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1633,7 +1633,7 @@ def delete_jms_plugin(self, jms_plugin_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1722,7 +1722,7 @@ def delete_performance_tuning_analysis_result(self, fleet_id, performance_tuning "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_performance_tuning_analysis_result got unknown kwargs: {extra_kwargs!r}") @@ -1732,9 +1732,9 @@ def delete_performance_tuning_analysis_result(self, fleet_id, performance_tuning "performanceTuningAnalysisResultId": performance_tuning_analysis_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1744,7 +1744,7 @@ def delete_performance_tuning_analysis_result(self, fleet_id, performance_tuning "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1834,7 +1834,7 @@ def delete_task_schedule(self, task_schedule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1843,16 +1843,16 @@ def delete_task_schedule(self, task_schedule_id, **kwargs): "taskScheduleId": task_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "fleetId": kwargs.get("fleet_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1860,7 +1860,7 @@ def delete_task_schedule(self, task_schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1959,7 +1959,7 @@ def disable_drs(self, fleet_id, disable_drs_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_drs got unknown kwargs: {extra_kwargs!r}") @@ -1968,9 +1968,9 @@ def disable_drs(self, fleet_id, disable_drs_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1981,7 +1981,7 @@ def disable_drs(self, fleet_id, disable_drs_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2081,7 +2081,7 @@ def enable_drs(self, fleet_id, enable_drs_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_drs got unknown kwargs: {extra_kwargs!r}") @@ -2090,9 +2090,9 @@ def enable_drs(self, fleet_id, enable_drs_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2103,7 +2103,7 @@ def enable_drs(self, fleet_id, enable_drs_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2187,7 +2187,7 @@ def generate_agent_deploy_script(self, fleet_id, generate_agent_deploy_script_de "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_agent_deploy_script got unknown kwargs: {extra_kwargs!r}") @@ -2196,9 +2196,9 @@ def generate_agent_deploy_script(self, fleet_id, generate_agent_deploy_script_de "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2207,7 +2207,7 @@ def generate_agent_deploy_script(self, fleet_id, generate_agent_deploy_script_de "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2287,7 +2287,7 @@ def generate_agent_installer_configuration(self, generate_agent_installer_config "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_agent_installer_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2297,7 +2297,7 @@ def generate_agent_installer_configuration(self, generate_agent_installer_config "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2380,7 +2380,7 @@ def generate_load_pipeline_script(self, fleet_id, generate_load_pipeline_script_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_load_pipeline_script got unknown kwargs: {extra_kwargs!r}") @@ -2389,9 +2389,9 @@ def generate_load_pipeline_script(self, fleet_id, generate_load_pipeline_script_ "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2400,7 +2400,7 @@ def generate_load_pipeline_script(self, fleet_id, generate_load_pipeline_script_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2485,7 +2485,7 @@ def get_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_crypto_analysis_result got unknown kwargs: {extra_kwargs!r}") @@ -2495,9 +2495,9 @@ def get_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **kwar "cryptoAnalysisResultId": crypto_analysis_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2506,7 +2506,7 @@ def get_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2593,7 +2593,7 @@ def get_drs_file(self, fleet_id, drs_file_key, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_drs_file got unknown kwargs: {extra_kwargs!r}") @@ -2603,23 +2603,23 @@ def get_drs_file(self, fleet_id, drs_file_key, **kwargs): "drsFileKey": drs_file_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2701,7 +2701,7 @@ def get_export_setting(self, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_export_setting got unknown kwargs: {extra_kwargs!r}") @@ -2710,9 +2710,9 @@ def get_export_setting(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2721,7 +2721,7 @@ def get_export_setting(self, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2801,7 +2801,7 @@ def get_export_status(self, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_export_status got unknown kwargs: {extra_kwargs!r}") @@ -2810,9 +2810,9 @@ def get_export_status(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2821,7 +2821,7 @@ def get_export_status(self, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2901,7 +2901,7 @@ def get_fleet(self, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet got unknown kwargs: {extra_kwargs!r}") @@ -2910,9 +2910,9 @@ def get_fleet(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2921,7 +2921,7 @@ def get_fleet(self, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3009,7 +3009,7 @@ def get_fleet_advanced_feature_configuration(self, fleet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet_advanced_feature_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3018,9 +3018,9 @@ def get_fleet_advanced_feature_configuration(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3030,7 +3030,7 @@ def get_fleet_advanced_feature_configuration(self, fleet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3110,7 +3110,7 @@ def get_fleet_agent_configuration(self, fleet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fleet_agent_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3119,9 +3119,9 @@ def get_fleet_agent_configuration(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3130,7 +3130,7 @@ def get_fleet_agent_configuration(self, fleet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3208,7 +3208,7 @@ def get_java_family(self, family_version, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_family got unknown kwargs: {extra_kwargs!r}") @@ -3217,9 +3217,9 @@ def get_java_family(self, family_version, **kwargs): "familyVersion": family_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3228,7 +3228,7 @@ def get_java_family(self, family_version, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3311,7 +3311,7 @@ def get_java_migration_analysis_result(self, fleet_id, java_migration_analysis_r "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_migration_analysis_result got unknown kwargs: {extra_kwargs!r}") @@ -3321,9 +3321,9 @@ def get_java_migration_analysis_result(self, fleet_id, java_migration_analysis_r "javaMigrationAnalysisResultId": java_migration_analysis_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3332,7 +3332,7 @@ def get_java_migration_analysis_result(self, fleet_id, java_migration_analysis_r "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3410,7 +3410,7 @@ def get_java_release(self, release_version, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_release got unknown kwargs: {extra_kwargs!r}") @@ -3419,9 +3419,9 @@ def get_java_release(self, release_version, **kwargs): "releaseVersion": release_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3430,7 +3430,7 @@ def get_java_release(self, release_version, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3510,7 +3510,7 @@ def get_jms_plugin(self, jms_plugin_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_jms_plugin got unknown kwargs: {extra_kwargs!r}") @@ -3519,9 +3519,9 @@ def get_jms_plugin(self, jms_plugin_id, **kwargs): "jmsPluginId": jms_plugin_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3530,7 +3530,7 @@ def get_jms_plugin(self, jms_plugin_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3613,7 +3613,7 @@ def get_performance_tuning_analysis_result(self, fleet_id, performance_tuning_an "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_performance_tuning_analysis_result got unknown kwargs: {extra_kwargs!r}") @@ -3623,9 +3623,9 @@ def get_performance_tuning_analysis_result(self, fleet_id, performance_tuning_an "performanceTuningAnalysisResultId": performance_tuning_analysis_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3634,7 +3634,7 @@ def get_performance_tuning_analysis_result(self, fleet_id, performance_tuning_an "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3718,7 +3718,7 @@ def get_task_schedule(self, task_schedule_id, **kwargs): "fleet_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -3727,23 +3727,23 @@ def get_task_schedule(self, task_schedule_id, **kwargs): "taskScheduleId": task_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "fleetId": kwargs.get("fleet_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3825,7 +3825,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3834,9 +3834,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3845,7 +3845,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3964,7 +3964,7 @@ def list_agent_installers(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agent_installers got unknown kwargs: {extra_kwargs!r}") @@ -4007,14 +4007,14 @@ def list_agent_installers(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4126,7 +4126,7 @@ def list_announcements(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_announcements got unknown kwargs: {extra_kwargs!r}") @@ -4154,14 +4154,14 @@ def list_announcements(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4273,7 +4273,7 @@ def list_blocklists(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_blocklists got unknown kwargs: {extra_kwargs!r}") @@ -4282,9 +4282,9 @@ def list_blocklists(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4317,14 +4317,14 @@ def list_blocklists(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4459,7 +4459,7 @@ def list_containers(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_containers got unknown kwargs: {extra_kwargs!r}") @@ -4468,9 +4468,9 @@ def list_containers(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4508,14 +4508,14 @@ def list_containers(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4664,7 +4664,7 @@ def list_crypto_analysis_results(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_crypto_analysis_results got unknown kwargs: {extra_kwargs!r}") @@ -4673,9 +4673,9 @@ def list_crypto_analysis_results(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4715,14 +4715,14 @@ def list_crypto_analysis_results(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4826,7 +4826,7 @@ def list_drs_files(self, fleet_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_drs_files got unknown kwargs: {extra_kwargs!r}") @@ -4835,9 +4835,9 @@ def list_drs_files(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4861,14 +4861,14 @@ def list_drs_files(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4958,7 +4958,7 @@ def list_fleet_diagnoses(self, fleet_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_diagnoses got unknown kwargs: {extra_kwargs!r}") @@ -4967,9 +4967,9 @@ def list_fleet_diagnoses(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4977,14 +4977,14 @@ def list_fleet_diagnoses(self, fleet_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5113,7 +5113,7 @@ def list_fleet_errors(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleet_errors got unknown kwargs: {extra_kwargs!r}") @@ -5145,14 +5145,14 @@ def list_fleet_errors(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5276,7 +5276,7 @@ def list_fleets(self, **kwargs): "opc_request_id", "display_name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fleets got unknown kwargs: {extra_kwargs!r}") @@ -5313,14 +5313,14 @@ def list_fleets(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayNameContains": kwargs.get("display_name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5475,7 +5475,7 @@ def list_installation_sites(self, fleet_id, **kwargs): "time_start", "time_end" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_installation_sites got unknown kwargs: {extra_kwargs!r}") @@ -5484,9 +5484,9 @@ def list_installation_sites(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5536,14 +5536,14 @@ def list_installation_sites(self, fleet_id, **kwargs): "timeStart": kwargs.get("time_start", missing), "timeEnd": kwargs.get("time_end", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5653,7 +5653,7 @@ def list_java_families(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_families got unknown kwargs: {extra_kwargs!r}") @@ -5681,14 +5681,14 @@ def list_java_families(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5816,7 +5816,7 @@ def list_java_migration_analysis_results(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_migration_analysis_results got unknown kwargs: {extra_kwargs!r}") @@ -5825,9 +5825,9 @@ def list_java_migration_analysis_results(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5856,14 +5856,14 @@ def list_java_migration_analysis_results(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5986,7 +5986,7 @@ def list_java_releases(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_releases got unknown kwargs: {extra_kwargs!r}") @@ -6037,14 +6037,14 @@ def list_java_releases(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6202,7 +6202,7 @@ def list_jms_plugins(self, **kwargs): "hostname_contains", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jms_plugins got unknown kwargs: {extra_kwargs!r}") @@ -6259,14 +6259,14 @@ def list_jms_plugins(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "hostnameContains": kwargs.get("hostname_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6398,7 +6398,7 @@ def list_jre_usage(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jre_usage got unknown kwargs: {extra_kwargs!r}") @@ -6429,14 +6429,14 @@ def list_jre_usage(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6568,7 +6568,7 @@ def list_library_application_usage(self, fleet_id, library_key, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_library_application_usage got unknown kwargs: {extra_kwargs!r}") @@ -6578,9 +6578,9 @@ def list_library_application_usage(self, fleet_id, library_key, **kwargs): "libraryKey": library_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6610,14 +6610,14 @@ def list_library_application_usage(self, fleet_id, library_key, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6753,7 +6753,7 @@ def list_library_managed_instance_usage(self, fleet_id, library_key, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_library_managed_instance_usage got unknown kwargs: {extra_kwargs!r}") @@ -6763,9 +6763,9 @@ def list_library_managed_instance_usage(self, fleet_id, library_key, **kwargs): "libraryKey": library_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6795,14 +6795,14 @@ def list_library_managed_instance_usage(self, fleet_id, library_key, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6937,7 +6937,7 @@ def list_performance_tuning_analysis_results(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_performance_tuning_analysis_results got unknown kwargs: {extra_kwargs!r}") @@ -6946,9 +6946,9 @@ def list_performance_tuning_analysis_results(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6978,14 +6978,14 @@ def list_performance_tuning_analysis_results(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7114,7 +7114,7 @@ def list_plugin_errors(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_plugin_errors got unknown kwargs: {extra_kwargs!r}") @@ -7146,14 +7146,14 @@ def list_plugin_errors(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7272,7 +7272,7 @@ def list_task_schedules(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_task_schedules got unknown kwargs: {extra_kwargs!r}") @@ -7302,14 +7302,14 @@ def list_task_schedules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7433,7 +7433,7 @@ def list_uncorrelated_package_application_usage(self, fleet_id, package_name, ** "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_uncorrelated_package_application_usage got unknown kwargs: {extra_kwargs!r}") @@ -7443,9 +7443,9 @@ def list_uncorrelated_package_application_usage(self, fleet_id, package_name, ** "packageName": package_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7473,14 +7473,14 @@ def list_uncorrelated_package_application_usage(self, fleet_id, package_name, ** "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7606,7 +7606,7 @@ def list_uncorrelated_package_managed_instance_usage(self, fleet_id, package_nam "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_uncorrelated_package_managed_instance_usage got unknown kwargs: {extra_kwargs!r}") @@ -7616,9 +7616,9 @@ def list_uncorrelated_package_managed_instance_usage(self, fleet_id, package_nam "packageName": package_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7646,14 +7646,14 @@ def list_uncorrelated_package_managed_instance_usage(self, fleet_id, package_nam "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7780,7 +7780,7 @@ def list_uncorrelated_package_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_uncorrelated_package_usage got unknown kwargs: {extra_kwargs!r}") @@ -7789,9 +7789,9 @@ def list_uncorrelated_package_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7820,14 +7820,14 @@ def list_uncorrelated_package_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7917,7 +7917,7 @@ def list_work_items(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_items got unknown kwargs: {extra_kwargs!r}") @@ -7926,9 +7926,9 @@ def list_work_items(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7936,14 +7936,14 @@ def list_work_items(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8033,7 +8033,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -8042,9 +8042,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8052,14 +8052,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8149,7 +8149,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -8158,9 +8158,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8168,14 +8168,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8292,7 +8292,7 @@ def list_work_requests(self, **kwargs): "operation_type", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -8322,14 +8322,14 @@ def list_work_requests(self, **kwargs): "operationType": kwargs.get("operation_type", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8428,7 +8428,7 @@ def remove_fleet_installation_sites(self, fleet_id, remove_fleet_installation_si "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_fleet_installation_sites got unknown kwargs: {extra_kwargs!r}") @@ -8437,9 +8437,9 @@ def remove_fleet_installation_sites(self, fleet_id, remove_fleet_installation_si "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8450,7 +8450,7 @@ def remove_fleet_installation_sites(self, fleet_id, remove_fleet_installation_si "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8534,7 +8534,7 @@ def request_crypto_analyses(self, fleet_id, request_crypto_analyses_details, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_crypto_analyses got unknown kwargs: {extra_kwargs!r}") @@ -8543,9 +8543,9 @@ def request_crypto_analyses(self, fleet_id, request_crypto_analyses_details, **k "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8554,7 +8554,7 @@ def request_crypto_analyses(self, fleet_id, request_crypto_analyses_details, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8638,7 +8638,7 @@ def request_deployed_application_migration_analyses(self, fleet_id, request_depl "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_deployed_application_migration_analyses got unknown kwargs: {extra_kwargs!r}") @@ -8647,9 +8647,9 @@ def request_deployed_application_migration_analyses(self, fleet_id, request_depl "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8658,7 +8658,7 @@ def request_deployed_application_migration_analyses(self, fleet_id, request_depl "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8742,7 +8742,7 @@ def request_java_migration_analyses(self, fleet_id, request_java_migration_analy "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_java_migration_analyses got unknown kwargs: {extra_kwargs!r}") @@ -8751,9 +8751,9 @@ def request_java_migration_analyses(self, fleet_id, request_java_migration_analy "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8762,7 +8762,7 @@ def request_java_migration_analyses(self, fleet_id, request_java_migration_analy "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8845,7 +8845,7 @@ def request_jfr_recordings(self, fleet_id, request_jfr_recordings_details, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_jfr_recordings got unknown kwargs: {extra_kwargs!r}") @@ -8854,9 +8854,9 @@ def request_jfr_recordings(self, fleet_id, request_jfr_recordings_details, **kwa "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8865,7 +8865,7 @@ def request_jfr_recordings(self, fleet_id, request_jfr_recordings_details, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8949,7 +8949,7 @@ def request_performance_tuning_analyses(self, fleet_id, request_performance_tuni "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_performance_tuning_analyses got unknown kwargs: {extra_kwargs!r}") @@ -8958,9 +8958,9 @@ def request_performance_tuning_analyses(self, fleet_id, request_performance_tuni "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8969,7 +8969,7 @@ def request_performance_tuning_analyses(self, fleet_id, request_performance_tuni "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9068,7 +9068,7 @@ def scan_java_server_usage(self, fleet_id, scan_java_server_usage_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scan_java_server_usage got unknown kwargs: {extra_kwargs!r}") @@ -9077,9 +9077,9 @@ def scan_java_server_usage(self, fleet_id, scan_java_server_usage_details, **kwa "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9090,7 +9090,7 @@ def scan_java_server_usage(self, fleet_id, scan_java_server_usage_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9190,7 +9190,7 @@ def scan_library_usage(self, fleet_id, scan_library_usage_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scan_library_usage got unknown kwargs: {extra_kwargs!r}") @@ -9199,9 +9199,9 @@ def scan_library_usage(self, fleet_id, scan_library_usage_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9212,7 +9212,7 @@ def scan_library_usage(self, fleet_id, scan_library_usage_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9383,7 +9383,7 @@ def summarize_application_installation_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_application_installation_usage got unknown kwargs: {extra_kwargs!r}") @@ -9392,9 +9392,9 @@ def summarize_application_installation_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9441,14 +9441,14 @@ def summarize_application_installation_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9620,7 +9620,7 @@ def summarize_application_usage(self, fleet_id, **kwargs): "display_name_contains", "library_key" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_application_usage got unknown kwargs: {extra_kwargs!r}") @@ -9629,9 +9629,9 @@ def summarize_application_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9685,14 +9685,14 @@ def summarize_application_usage(self, fleet_id, **kwargs): "displayNameContains": kwargs.get("display_name_contains", missing), "libraryKey": kwargs.get("library_key", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9843,7 +9843,7 @@ def summarize_deployed_application_installation_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_deployed_application_installation_usage got unknown kwargs: {extra_kwargs!r}") @@ -9852,9 +9852,9 @@ def summarize_deployed_application_installation_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9889,14 +9889,14 @@ def summarize_deployed_application_installation_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10039,7 +10039,7 @@ def summarize_deployed_application_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_deployed_application_usage got unknown kwargs: {extra_kwargs!r}") @@ -10048,9 +10048,9 @@ def summarize_deployed_application_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10083,14 +10083,14 @@ def summarize_deployed_application_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10185,7 +10185,7 @@ def summarize_fleet_errors(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_fleet_errors got unknown kwargs: {extra_kwargs!r}") @@ -10196,14 +10196,14 @@ def summarize_fleet_errors(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10360,7 +10360,7 @@ def summarize_installation_usage(self, fleet_id, **kwargs): "os_family", "path_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_installation_usage got unknown kwargs: {extra_kwargs!r}") @@ -10369,9 +10369,9 @@ def summarize_installation_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10422,14 +10422,14 @@ def summarize_installation_usage(self, fleet_id, **kwargs): "osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi'), "pathContains": kwargs.get("path_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10572,7 +10572,7 @@ def summarize_java_server_instance_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_java_server_instance_usage got unknown kwargs: {extra_kwargs!r}") @@ -10581,9 +10581,9 @@ def summarize_java_server_instance_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10616,14 +10616,14 @@ def summarize_java_server_instance_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10754,7 +10754,7 @@ def summarize_java_server_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_java_server_usage got unknown kwargs: {extra_kwargs!r}") @@ -10763,9 +10763,9 @@ def summarize_java_server_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10795,14 +10795,14 @@ def summarize_java_server_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10965,7 +10965,7 @@ def summarize_jre_usage(self, fleet_id, **kwargs): "os_family", "jre_security_status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_jre_usage got unknown kwargs: {extra_kwargs!r}") @@ -10974,9 +10974,9 @@ def summarize_jre_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11034,14 +11034,14 @@ def summarize_jre_usage(self, fleet_id, **kwargs): "osFamily": self.base_client.generate_collection_format_param(kwargs.get("os_family", missing), 'multi'), "jreSecurityStatus": kwargs.get("jre_security_status", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11143,7 +11143,7 @@ def summarize_library_inventory(self, fleet_id, **kwargs): "time_end", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_library_inventory got unknown kwargs: {extra_kwargs!r}") @@ -11152,9 +11152,9 @@ def summarize_library_inventory(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11164,14 +11164,14 @@ def summarize_library_inventory(self, fleet_id, **kwargs): "timeStart": kwargs.get("time_start", missing), "timeEnd": kwargs.get("time_end", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11318,7 +11318,7 @@ def summarize_library_usage(self, fleet_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_library_usage got unknown kwargs: {extra_kwargs!r}") @@ -11327,9 +11327,9 @@ def summarize_library_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11363,14 +11363,14 @@ def summarize_library_usage(self, fleet_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11540,7 +11540,7 @@ def summarize_managed_instance_usage(self, fleet_id, **kwargs): "hostname_contains", "library_key" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_managed_instance_usage got unknown kwargs: {extra_kwargs!r}") @@ -11549,9 +11549,9 @@ def summarize_managed_instance_usage(self, fleet_id, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11611,14 +11611,14 @@ def summarize_managed_instance_usage(self, fleet_id, **kwargs): "hostnameContains": kwargs.get("hostname_contains", missing), "libraryKey": kwargs.get("library_key", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11713,7 +11713,7 @@ def summarize_plugin_errors(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_plugin_errors got unknown kwargs: {extra_kwargs!r}") @@ -11724,14 +11724,14 @@ def summarize_plugin_errors(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11828,7 +11828,7 @@ def summarize_resource_inventory(self, **kwargs): "time_end", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_resource_inventory got unknown kwargs: {extra_kwargs!r}") @@ -11839,14 +11839,14 @@ def summarize_resource_inventory(self, **kwargs): "timeStart": kwargs.get("time_start", missing), "timeEnd": kwargs.get("time_end", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11948,7 +11948,7 @@ def update_drs_file(self, fleet_id, update_drs_file_details, drs_file_key, **kwa "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_drs_file got unknown kwargs: {extra_kwargs!r}") @@ -11958,9 +11958,9 @@ def update_drs_file(self, fleet_id, update_drs_file_details, drs_file_key, **kwa "drsFileKey": drs_file_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11971,7 +11971,7 @@ def update_drs_file(self, fleet_id, update_drs_file_details, drs_file_key, **kwa "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12063,7 +12063,7 @@ def update_export_setting(self, fleet_id, update_export_setting_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_export_setting got unknown kwargs: {extra_kwargs!r}") @@ -12072,9 +12072,9 @@ def update_export_setting(self, fleet_id, update_export_setting_details, **kwarg "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12084,7 +12084,7 @@ def update_export_setting(self, fleet_id, update_export_setting_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12177,7 +12177,7 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet got unknown kwargs: {extra_kwargs!r}") @@ -12186,9 +12186,9 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12198,7 +12198,7 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12298,7 +12298,7 @@ def update_fleet_advanced_feature_configuration(self, fleet_id, update_fleet_adv "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet_advanced_feature_configuration got unknown kwargs: {extra_kwargs!r}") @@ -12307,9 +12307,9 @@ def update_fleet_advanced_feature_configuration(self, fleet_id, update_fleet_adv "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12320,7 +12320,7 @@ def update_fleet_advanced_feature_configuration(self, fleet_id, update_fleet_adv "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12414,7 +12414,7 @@ def update_fleet_agent_configuration(self, fleet_id, update_fleet_agent_configur "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_fleet_agent_configuration got unknown kwargs: {extra_kwargs!r}") @@ -12423,9 +12423,9 @@ def update_fleet_agent_configuration(self, fleet_id, update_fleet_agent_configur "fleetId": fleet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12435,7 +12435,7 @@ def update_fleet_agent_configuration(self, fleet_id, update_fleet_agent_configur "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12526,7 +12526,7 @@ def update_jms_plugin(self, jms_plugin_id, update_jms_plugin_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_jms_plugin got unknown kwargs: {extra_kwargs!r}") @@ -12535,9 +12535,9 @@ def update_jms_plugin(self, jms_plugin_id, update_jms_plugin_details, **kwargs): "jmsPluginId": jms_plugin_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12547,7 +12547,7 @@ def update_jms_plugin(self, jms_plugin_id, update_jms_plugin_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12648,7 +12648,7 @@ def update_task_schedule(self, update_task_schedule_details, task_schedule_id, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_task_schedule got unknown kwargs: {extra_kwargs!r}") @@ -12657,9 +12657,9 @@ def update_task_schedule(self, update_task_schedule_details, task_schedule_id, * "taskScheduleId": task_schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12670,7 +12670,7 @@ def update_task_schedule(self, update_task_schedule_details, task_schedule_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/jms_java_downloads/java_download_client.py b/src/oci/jms_java_downloads/java_download_client.py index 0bf76c566..8bc081039 100644 --- a/src/oci/jms_java_downloads/java_download_client.py +++ b/src/oci/jms_java_downloads/java_download_client.py @@ -168,7 +168,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -274,7 +274,7 @@ def create_java_download_report(self, create_java_download_report_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_java_download_report got unknown kwargs: {extra_kwargs!r}") @@ -285,7 +285,7 @@ def create_java_download_report(self, create_java_download_report_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -371,7 +371,7 @@ def create_java_download_token(self, create_java_download_token_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_java_download_token got unknown kwargs: {extra_kwargs!r}") @@ -382,7 +382,7 @@ def create_java_download_token(self, create_java_download_token_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -469,7 +469,7 @@ def create_java_license_acceptance_record(self, create_java_license_acceptance_r "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}") @@ -480,7 +480,7 @@ def create_java_license_acceptance_record(self, create_java_license_acceptance_r "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -567,7 +567,7 @@ def delete_java_download_report(self, java_download_report_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_java_download_report got unknown kwargs: {extra_kwargs!r}") @@ -576,9 +576,9 @@ def delete_java_download_report(self, java_download_report_id, **kwargs): "javaDownloadReportId": java_download_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -588,7 +588,7 @@ def delete_java_download_report(self, java_download_report_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -672,7 +672,7 @@ def delete_java_download_token(self, java_download_token_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_java_download_token got unknown kwargs: {extra_kwargs!r}") @@ -681,9 +681,9 @@ def delete_java_download_token(self, java_download_token_id, **kwargs): "javaDownloadTokenId": java_download_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -693,7 +693,7 @@ def delete_java_download_token(self, java_download_token_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -777,7 +777,7 @@ def delete_java_license_acceptance_record(self, java_license_acceptance_record_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}") @@ -786,9 +786,9 @@ def delete_java_license_acceptance_record(self, java_license_acceptance_record_i "javaLicenseAcceptanceRecordId": java_license_acceptance_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -798,7 +798,7 @@ def delete_java_license_acceptance_record(self, java_license_acceptance_record_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -879,7 +879,7 @@ def generate_artifact_download_url(self, generate_artifact_download_url_details, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_artifact_download_url got unknown kwargs: {extra_kwargs!r}") @@ -889,7 +889,7 @@ def generate_artifact_download_url(self, generate_artifact_download_url_details, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -967,7 +967,7 @@ def get_java_download_report(self, java_download_report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_download_report got unknown kwargs: {extra_kwargs!r}") @@ -976,9 +976,9 @@ def get_java_download_report(self, java_download_report_id, **kwargs): "javaDownloadReportId": java_download_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -987,7 +987,7 @@ def get_java_download_report(self, java_download_report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1065,7 +1065,7 @@ def get_java_download_report_content(self, java_download_report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_download_report_content got unknown kwargs: {extra_kwargs!r}") @@ -1074,9 +1074,9 @@ def get_java_download_report_content(self, java_download_report_id, **kwargs): "javaDownloadReportId": java_download_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1085,7 +1085,7 @@ def get_java_download_report_content(self, java_download_report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1163,7 +1163,7 @@ def get_java_download_token(self, java_download_token_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_download_token got unknown kwargs: {extra_kwargs!r}") @@ -1172,9 +1172,9 @@ def get_java_download_token(self, java_download_token_id, **kwargs): "javaDownloadTokenId": java_download_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1183,7 +1183,7 @@ def get_java_download_token(self, java_download_token_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1263,7 +1263,7 @@ def get_java_license(self, license_type, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_license got unknown kwargs: {extra_kwargs!r}") @@ -1272,9 +1272,9 @@ def get_java_license(self, license_type, **kwargs): "licenseType": license_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1283,7 +1283,7 @@ def get_java_license(self, license_type, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1361,7 +1361,7 @@ def get_java_license_acceptance_record(self, java_license_acceptance_record_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}") @@ -1370,9 +1370,9 @@ def get_java_license_acceptance_record(self, java_license_acceptance_record_id, "javaLicenseAcceptanceRecordId": java_license_acceptance_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1381,7 +1381,7 @@ def get_java_license_acceptance_record(self, java_license_acceptance_record_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1459,7 +1459,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1468,9 +1468,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1479,7 +1479,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1613,7 +1613,7 @@ def list_java_download_records(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_download_records got unknown kwargs: {extra_kwargs!r}") @@ -1646,14 +1646,14 @@ def list_java_download_records(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1767,7 +1767,7 @@ def list_java_download_reports(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_download_reports got unknown kwargs: {extra_kwargs!r}") @@ -1803,14 +1803,14 @@ def list_java_download_reports(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1938,7 +1938,7 @@ def list_java_download_tokens(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_download_tokens got unknown kwargs: {extra_kwargs!r}") @@ -1977,14 +1977,14 @@ def list_java_download_tokens(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2106,7 +2106,7 @@ def list_java_license_acceptance_records(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_license_acceptance_records got unknown kwargs: {extra_kwargs!r}") @@ -2150,14 +2150,14 @@ def list_java_license_acceptance_records(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2262,7 +2262,7 @@ def list_java_licenses(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_licenses got unknown kwargs: {extra_kwargs!r}") @@ -2296,14 +2296,14 @@ def list_java_licenses(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2401,7 +2401,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2410,9 +2410,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2436,14 +2436,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2543,7 +2543,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2552,9 +2552,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2578,14 +2578,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2701,7 +2701,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2737,14 +2737,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2822,7 +2822,7 @@ def request_summarized_java_download_counts(self, request_summarized_java_downlo "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_java_download_counts got unknown kwargs: {extra_kwargs!r}") @@ -2832,7 +2832,7 @@ def request_summarized_java_download_counts(self, request_summarized_java_downlo "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2921,7 +2921,7 @@ def update_java_download_token(self, java_download_token_id, update_java_downloa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_java_download_token got unknown kwargs: {extra_kwargs!r}") @@ -2930,9 +2930,9 @@ def update_java_download_token(self, java_download_token_id, update_java_downloa "javaDownloadTokenId": java_download_token_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2942,7 +2942,7 @@ def update_java_download_token(self, java_download_token_id, update_java_downloa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3031,7 +3031,7 @@ def update_java_license_acceptance_record(self, java_license_acceptance_record_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}") @@ -3040,9 +3040,9 @@ def update_java_license_acceptance_record(self, java_license_acceptance_record_i "javaLicenseAcceptanceRecordId": java_license_acceptance_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3052,7 +3052,7 @@ def update_java_license_acceptance_record(self, java_license_acceptance_record_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/jms_utils/jms_utils_client.py b/src/oci/jms_utils/jms_utils_client.py index be9b8dafd..cec824f91 100644 --- a/src/oci/jms_utils/jms_utils_client.py +++ b/src/oci/jms_utils/jms_utils_client.py @@ -172,7 +172,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def delete_java_migration_analysis(self, java_migration_analysis_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_java_migration_analysis got unknown kwargs: {extra_kwargs!r}") @@ -290,9 +290,9 @@ def delete_java_migration_analysis(self, java_migration_analysis_id, **kwargs): "javaMigrationAnalysisId": java_migration_analysis_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -302,7 +302,7 @@ def delete_java_migration_analysis(self, java_migration_analysis_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -390,7 +390,7 @@ def delete_performance_tuning_analysis(self, performance_tuning_analysis_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_performance_tuning_analysis got unknown kwargs: {extra_kwargs!r}") @@ -399,9 +399,9 @@ def delete_performance_tuning_analysis(self, performance_tuning_analysis_id, **k "performanceTuningAnalysisId": performance_tuning_analysis_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -411,7 +411,7 @@ def delete_performance_tuning_analysis(self, performance_tuning_analysis_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -493,7 +493,7 @@ def get_analyze_applications_configuration(self, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_analyze_applications_configuration got unknown kwargs: {extra_kwargs!r}") @@ -501,14 +501,14 @@ def get_analyze_applications_configuration(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -591,7 +591,7 @@ def get_java_migration_analysis(self, java_migration_analysis_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_java_migration_analysis got unknown kwargs: {extra_kwargs!r}") @@ -600,9 +600,9 @@ def get_java_migration_analysis(self, java_migration_analysis_id, **kwargs): "javaMigrationAnalysisId": java_migration_analysis_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -611,7 +611,7 @@ def get_java_migration_analysis(self, java_migration_analysis_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -694,7 +694,7 @@ def get_performance_tuning_analysis(self, performance_tuning_analysis_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_performance_tuning_analysis got unknown kwargs: {extra_kwargs!r}") @@ -703,9 +703,9 @@ def get_performance_tuning_analysis(self, performance_tuning_analysis_id, **kwar "performanceTuningAnalysisId": performance_tuning_analysis_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -714,7 +714,7 @@ def get_performance_tuning_analysis(self, performance_tuning_analysis_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -798,7 +798,7 @@ def get_subscription_acknowledgment_configuration(self, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscription_acknowledgment_configuration got unknown kwargs: {extra_kwargs!r}") @@ -806,14 +806,14 @@ def get_subscription_acknowledgment_configuration(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -896,7 +896,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -905,9 +905,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -916,7 +916,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1030,7 +1030,7 @@ def list_java_migration_analysis(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_java_migration_analysis got unknown kwargs: {extra_kwargs!r}") @@ -1058,14 +1058,14 @@ def list_java_migration_analysis(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1185,7 +1185,7 @@ def list_performance_tuning_analysis(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_performance_tuning_analysis got unknown kwargs: {extra_kwargs!r}") @@ -1221,14 +1221,14 @@ def list_performance_tuning_analysis(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1319,7 +1319,7 @@ def list_work_items(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_items got unknown kwargs: {extra_kwargs!r}") @@ -1328,9 +1328,9 @@ def list_work_items(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1338,14 +1338,14 @@ def list_work_items(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1450,7 +1450,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1459,9 +1459,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1485,14 +1485,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1597,7 +1597,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1606,9 +1606,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1632,14 +1632,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1763,7 +1763,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1799,14 +1799,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1895,7 +1895,7 @@ def request_java_migration_analysis(self, request_java_migration_analysis_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_java_migration_analysis got unknown kwargs: {extra_kwargs!r}") @@ -1906,7 +1906,7 @@ def request_java_migration_analysis(self, request_java_migration_analysis_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1994,7 +1994,7 @@ def request_performance_tuning_analysis(self, request_performance_tuning_analysi "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_performance_tuning_analysis got unknown kwargs: {extra_kwargs!r}") @@ -2005,7 +2005,7 @@ def request_performance_tuning_analysis(self, request_performance_tuning_analysi "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2098,7 +2098,7 @@ def update_analyze_applications_configuration(self, update_analyze_applications_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_analyze_applications_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2106,7 +2106,7 @@ def update_analyze_applications_configuration(self, update_analyze_applications_ query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2114,7 +2114,7 @@ def update_analyze_applications_configuration(self, update_analyze_applications_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2210,7 +2210,7 @@ def update_subscription_acknowledgment_configuration(self, update_subscription_a "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_subscription_acknowledgment_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2218,7 +2218,7 @@ def update_subscription_acknowledgment_configuration(self, update_subscription_a query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2226,7 +2226,7 @@ def update_subscription_acknowledgment_configuration(self, update_subscription_a "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/key_management/ekm_client.py b/src/oci/key_management/ekm_client.py index 9ca40fc45..5922f97dc 100644 --- a/src/oci/key_management/ekm_client.py +++ b/src/oci/key_management/ekm_client.py @@ -171,7 +171,7 @@ def create_ekms_private_endpoint(self, create_ekms_private_endpoint_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ekms_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -182,7 +182,7 @@ def create_ekms_private_endpoint(self, create_ekms_private_endpoint_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -269,7 +269,7 @@ def delete_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ekms_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -278,9 +278,9 @@ def delete_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): "ekmsPrivateEndpointId": ekms_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -290,7 +290,7 @@ def delete_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -366,7 +366,7 @@ def get_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ekms_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -375,9 +375,9 @@ def get_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): "ekmsPrivateEndpointId": ekms_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -386,7 +386,7 @@ def get_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -487,7 +487,7 @@ def list_ekms_private_endpoints(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ekms_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -513,14 +513,14 @@ def list_ekms_private_endpoints(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -609,7 +609,7 @@ def update_ekms_private_endpoint(self, ekms_private_endpoint_id, update_ekms_pri "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ekms_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -618,9 +618,9 @@ def update_ekms_private_endpoint(self, ekms_private_endpoint_id, update_ekms_pri "ekmsPrivateEndpointId": ekms_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -630,7 +630,7 @@ def update_ekms_private_endpoint(self, ekms_private_endpoint_id, update_ekms_pri "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/key_management/kms_crypto_client.py b/src/oci/key_management/kms_crypto_client.py index 8f14b22c3..78165c1b2 100644 --- a/src/oci/key_management/kms_crypto_client.py +++ b/src/oci/key_management/kms_crypto_client.py @@ -162,7 +162,7 @@ def decrypt(self, decrypt_data_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"decrypt got unknown kwargs: {extra_kwargs!r}") @@ -172,7 +172,7 @@ def decrypt(self, decrypt_data_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -253,7 +253,7 @@ def encrypt(self, encrypt_data_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"encrypt got unknown kwargs: {extra_kwargs!r}") @@ -263,7 +263,7 @@ def encrypt(self, encrypt_data_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -334,7 +334,7 @@ def export_key(self, export_key_details, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/key/release/ExportedKeyData/ExportKey" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_key got unknown kwargs: {extra_kwargs!r}") @@ -420,7 +420,7 @@ def generate_data_encryption_key(self, generate_key_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_data_encryption_key got unknown kwargs: {extra_kwargs!r}") @@ -430,7 +430,7 @@ def generate_data_encryption_key(self, generate_key_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -513,7 +513,7 @@ def sign(self, sign_data_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"sign got unknown kwargs: {extra_kwargs!r}") @@ -523,7 +523,7 @@ def sign(self, sign_data_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -606,7 +606,7 @@ def verify(self, verify_data_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"verify got unknown kwargs: {extra_kwargs!r}") @@ -616,7 +616,7 @@ def verify(self, verify_data_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/key_management/kms_hsm_cluster_client.py b/src/oci/key_management/kms_hsm_cluster_client.py index dae739e7d..bfcd690b8 100644 --- a/src/oci/key_management/kms_hsm_cluster_client.py +++ b/src/oci/key_management/kms_hsm_cluster_client.py @@ -179,7 +179,7 @@ def cancel_hsm_cluster_deletion(self, hsm_cluster_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_hsm_cluster_deletion got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def cancel_hsm_cluster_deletion(self, hsm_cluster_id, **kwargs): "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def cancel_hsm_cluster_deletion(self, hsm_cluster_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -300,7 +300,7 @@ def change_hsm_cluster_compartment(self, hsm_cluster_id, change_hsm_cluster_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_hsm_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -309,9 +309,9 @@ def change_hsm_cluster_compartment(self, hsm_cluster_id, change_hsm_cluster_comp "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -322,7 +322,7 @@ def change_hsm_cluster_compartment(self, hsm_cluster_id, change_hsm_cluster_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def create_hsm_cluster(self, create_hsm_cluster_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_hsm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -421,7 +421,7 @@ def create_hsm_cluster(self, create_hsm_cluster_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -517,7 +517,7 @@ def download_certificate_signing_request(self, hsm_cluster_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_certificate_signing_request got unknown kwargs: {extra_kwargs!r}") @@ -526,9 +526,9 @@ def download_certificate_signing_request(self, hsm_cluster_id, **kwargs): "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -539,7 +539,7 @@ def download_certificate_signing_request(self, hsm_cluster_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -623,7 +623,7 @@ def get_hsm_cluster(self, hsm_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_hsm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -632,9 +632,9 @@ def get_hsm_cluster(self, hsm_cluster_id, **kwargs): "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -643,7 +643,7 @@ def get_hsm_cluster(self, hsm_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -733,7 +733,7 @@ def get_hsm_partition(self, hsm_cluster_id, hsm_partition_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_hsm_partition got unknown kwargs: {extra_kwargs!r}") @@ -743,9 +743,9 @@ def get_hsm_partition(self, hsm_cluster_id, hsm_partition_id, **kwargs): "hsmPartitionId": hsm_partition_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -755,7 +755,7 @@ def get_hsm_partition(self, hsm_cluster_id, hsm_partition_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -843,7 +843,7 @@ def get_pre_co_user_credentials(self, hsm_cluster_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_pre_co_user_credentials got unknown kwargs: {extra_kwargs!r}") @@ -852,9 +852,9 @@ def get_pre_co_user_credentials(self, hsm_cluster_id, **kwargs): "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -864,7 +864,7 @@ def get_pre_co_user_credentials(self, hsm_cluster_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -971,7 +971,7 @@ def list_hsm_clusters(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_hsm_clusters got unknown kwargs: {extra_kwargs!r}") @@ -997,14 +997,14 @@ def list_hsm_clusters(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1111,7 +1111,7 @@ def list_hsm_partitions(self, hsm_cluster_id, **kwargs): "sort_order", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_hsm_partitions got unknown kwargs: {extra_kwargs!r}") @@ -1120,9 +1120,9 @@ def list_hsm_partitions(self, hsm_cluster_id, **kwargs): "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1154,14 +1154,14 @@ def list_hsm_partitions(self, hsm_cluster_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1262,7 +1262,7 @@ def schedule_hsm_cluster_deletion(self, hsm_cluster_id, schedule_hsm_cluster_del "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_hsm_cluster_deletion got unknown kwargs: {extra_kwargs!r}") @@ -1271,9 +1271,9 @@ def schedule_hsm_cluster_deletion(self, hsm_cluster_id, schedule_hsm_cluster_del "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1284,7 +1284,7 @@ def schedule_hsm_cluster_deletion(self, hsm_cluster_id, schedule_hsm_cluster_del "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1381,7 +1381,7 @@ def update_hsm_cluster(self, hsm_cluster_id, update_hsm_cluster_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_hsm_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1390,9 +1390,9 @@ def update_hsm_cluster(self, hsm_cluster_id, update_hsm_cluster_details, **kwarg "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1402,7 +1402,7 @@ def update_hsm_cluster(self, hsm_cluster_id, update_hsm_cluster_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1502,7 +1502,7 @@ def upload_partition_certificates(self, hsm_cluster_id, upload_partition_certifi "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_partition_certificates got unknown kwargs: {extra_kwargs!r}") @@ -1511,9 +1511,9 @@ def upload_partition_certificates(self, hsm_cluster_id, upload_partition_certifi "hsmClusterId": hsm_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1524,7 +1524,7 @@ def upload_partition_certificates(self, hsm_cluster_id, upload_partition_certifi "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/key_management/kms_management_client.py b/src/oci/key_management/kms_management_client.py index cae3068e8..54e2d3650 100644 --- a/src/oci/key_management/kms_management_client.py +++ b/src/oci/key_management/kms_management_client.py @@ -183,7 +183,7 @@ def backup_key(self, key_id, **kwargs): "opc_retry_token", "backup_key_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"backup_key got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def backup_key(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def backup_key(self, key_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -310,7 +310,7 @@ def cancel_key_deletion(self, key_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_key_deletion got unknown kwargs: {extra_kwargs!r}") @@ -319,9 +319,9 @@ def cancel_key_deletion(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -332,7 +332,7 @@ def cancel_key_deletion(self, key_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -438,7 +438,7 @@ def cancel_key_version_deletion(self, key_id, key_version_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_key_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -448,9 +448,9 @@ def cancel_key_version_deletion(self, key_id, key_version_id, **kwargs): "keyVersionId": key_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -461,7 +461,7 @@ def cancel_key_version_deletion(self, key_id, key_version_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -570,7 +570,7 @@ def change_key_compartment(self, key_id, change_key_compartment_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_key_compartment got unknown kwargs: {extra_kwargs!r}") @@ -579,9 +579,9 @@ def change_key_compartment(self, key_id, change_key_compartment_details, **kwarg "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -592,7 +592,7 @@ def change_key_compartment(self, key_id, change_key_compartment_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -685,7 +685,7 @@ def create_key(self, create_key_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_key got unknown kwargs: {extra_kwargs!r}") @@ -696,7 +696,7 @@ def create_key(self, create_key_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -796,7 +796,7 @@ def create_key_version(self, key_id, **kwargs): "opc_retry_token", "create_key_metadata_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_key_version got unknown kwargs: {extra_kwargs!r}") @@ -805,9 +805,9 @@ def create_key_version(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -817,7 +817,7 @@ def create_key_version(self, key_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -921,7 +921,7 @@ def disable_key(self, key_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_key got unknown kwargs: {extra_kwargs!r}") @@ -930,9 +930,9 @@ def disable_key(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -943,7 +943,7 @@ def disable_key(self, key_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1045,7 +1045,7 @@ def enable_key(self, key_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_key got unknown kwargs: {extra_kwargs!r}") @@ -1054,9 +1054,9 @@ def enable_key(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1067,7 +1067,7 @@ def enable_key(self, key_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1151,7 +1151,7 @@ def get_key(self, key_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_key got unknown kwargs: {extra_kwargs!r}") @@ -1160,9 +1160,9 @@ def get_key(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1171,7 +1171,7 @@ def get_key(self, key_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1257,7 +1257,7 @@ def get_key_version(self, key_id, key_version_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_key_version got unknown kwargs: {extra_kwargs!r}") @@ -1267,9 +1267,9 @@ def get_key_version(self, key_id, key_version_id, **kwargs): "keyVersionId": key_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1278,7 +1278,7 @@ def get_key_version(self, key_id, key_version_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1359,7 +1359,7 @@ def get_replication_status(self, replication_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replication_status got unknown kwargs: {extra_kwargs!r}") @@ -1368,9 +1368,9 @@ def get_replication_status(self, replication_id, **kwargs): "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1379,7 +1379,7 @@ def get_replication_status(self, replication_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1455,7 +1455,7 @@ def get_wrapping_key(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wrapping_key got unknown kwargs: {extra_kwargs!r}") @@ -1465,7 +1465,7 @@ def get_wrapping_key(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1555,7 +1555,7 @@ def import_key(self, import_key_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_key got unknown kwargs: {extra_kwargs!r}") @@ -1566,7 +1566,7 @@ def import_key(self, import_key_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1662,7 +1662,7 @@ def import_key_version(self, key_id, import_key_version_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_key_version got unknown kwargs: {extra_kwargs!r}") @@ -1671,9 +1671,9 @@ def import_key_version(self, key_id, import_key_version_details, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1683,7 +1683,7 @@ def import_key_version(self, key_id, import_key_version_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1795,7 +1795,7 @@ def list_key_versions(self, key_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_key_versions got unknown kwargs: {extra_kwargs!r}") @@ -1804,9 +1804,9 @@ def list_key_versions(self, key_id, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1830,14 +1830,14 @@ def list_key_versions(self, key_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1973,7 +1973,7 @@ def list_keys(self, compartment_id, **kwargs): "length", "curve_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_keys got unknown kwargs: {extra_kwargs!r}") @@ -2024,14 +2024,14 @@ def list_keys(self, compartment_id, **kwargs): "length": kwargs.get("length", missing), "curveId": kwargs.get("curve_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2150,7 +2150,7 @@ def restore_key_from_file(self, restore_key_from_file_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_key_from_file got unknown kwargs: {extra_kwargs!r}") @@ -2163,7 +2163,7 @@ def restore_key_from_file(self, restore_key_from_file_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -2283,7 +2283,7 @@ def restore_key_from_object_store(self, **kwargs): "opc_retry_token", "restore_key_from_object_store_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_key_from_object_store got unknown kwargs: {extra_kwargs!r}") @@ -2295,7 +2295,7 @@ def restore_key_from_object_store(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2400,7 +2400,7 @@ def schedule_key_deletion(self, key_id, schedule_key_deletion_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_key_deletion got unknown kwargs: {extra_kwargs!r}") @@ -2409,9 +2409,9 @@ def schedule_key_deletion(self, key_id, schedule_key_deletion_details, **kwargs) "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2422,7 +2422,7 @@ def schedule_key_deletion(self, key_id, schedule_key_deletion_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2532,7 +2532,7 @@ def schedule_key_version_deletion(self, key_id, key_version_id, schedule_key_ver "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_key_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -2542,9 +2542,9 @@ def schedule_key_version_deletion(self, key_id, key_version_id, schedule_key_ver "keyVersionId": key_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2555,7 +2555,7 @@ def schedule_key_version_deletion(self, key_id, key_version_id, schedule_key_ver "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2654,7 +2654,7 @@ def update_key(self, key_id, update_key_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_key got unknown kwargs: {extra_kwargs!r}") @@ -2663,9 +2663,9 @@ def update_key(self, key_id, update_key_details, **kwargs): "keyId": key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2675,7 +2675,7 @@ def update_key(self, key_id, update_key_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/key_management/kms_vault_client.py b/src/oci/key_management/kms_vault_client.py index ae8fb5798..13ef3321d 100644 --- a/src/oci/key_management/kms_vault_client.py +++ b/src/oci/key_management/kms_vault_client.py @@ -186,7 +186,7 @@ def backup_vault(self, vault_id, **kwargs): "opc_retry_token", "backup_vault_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"backup_vault got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def backup_vault(self, vault_id, **kwargs): "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -208,7 +208,7 @@ def backup_vault(self, vault_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -314,7 +314,7 @@ def cancel_vault_deletion(self, vault_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_vault_deletion got unknown kwargs: {extra_kwargs!r}") @@ -323,9 +323,9 @@ def cancel_vault_deletion(self, vault_id, **kwargs): "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -336,7 +336,7 @@ def cancel_vault_deletion(self, vault_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -445,7 +445,7 @@ def change_vault_compartment(self, vault_id, change_vault_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vault_compartment got unknown kwargs: {extra_kwargs!r}") @@ -454,9 +454,9 @@ def change_vault_compartment(self, vault_id, change_vault_compartment_details, * "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -467,7 +467,7 @@ def change_vault_compartment(self, vault_id, change_vault_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -563,7 +563,7 @@ def create_vault(self, create_vault_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vault got unknown kwargs: {extra_kwargs!r}") @@ -574,7 +574,7 @@ def create_vault(self, create_vault_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -682,7 +682,7 @@ def create_vault_replica(self, vault_id, create_vault_replica_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vault_replica got unknown kwargs: {extra_kwargs!r}") @@ -691,9 +691,9 @@ def create_vault_replica(self, vault_id, create_vault_replica_details, **kwargs) "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -704,7 +704,7 @@ def create_vault_replica(self, vault_id, create_vault_replica_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -808,7 +808,7 @@ def delete_vault_replica(self, vault_id, delete_vault_replica_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vault_replica got unknown kwargs: {extra_kwargs!r}") @@ -817,9 +817,9 @@ def delete_vault_replica(self, vault_id, delete_vault_replica_details, **kwargs) "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -830,7 +830,7 @@ def delete_vault_replica(self, vault_id, delete_vault_replica_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -914,7 +914,7 @@ def get_vault(self, vault_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vault got unknown kwargs: {extra_kwargs!r}") @@ -923,9 +923,9 @@ def get_vault(self, vault_id, **kwargs): "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -934,7 +934,7 @@ def get_vault(self, vault_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1012,7 +1012,7 @@ def get_vault_usage(self, vault_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vault_usage got unknown kwargs: {extra_kwargs!r}") @@ -1021,9 +1021,9 @@ def get_vault_usage(self, vault_id, **kwargs): "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1032,7 +1032,7 @@ def get_vault_usage(self, vault_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1155,7 +1155,7 @@ def list_vault_replicas(self, vault_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vault_replicas got unknown kwargs: {extra_kwargs!r}") @@ -1164,9 +1164,9 @@ def list_vault_replicas(self, vault_id, **kwargs): "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1190,7 +1190,7 @@ def list_vault_replicas(self, vault_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1199,7 +1199,7 @@ def list_vault_replicas(self, vault_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1308,7 +1308,7 @@ def list_vaults(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vaults got unknown kwargs: {extra_kwargs!r}") @@ -1334,14 +1334,14 @@ def list_vaults(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1463,7 +1463,7 @@ def restore_vault_from_file(self, compartment_id, restore_vault_from_file_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_vault_from_file got unknown kwargs: {extra_kwargs!r}") @@ -1471,7 +1471,7 @@ def restore_vault_from_file(self, compartment_id, restore_vault_from_file_detail query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1481,7 +1481,7 @@ def restore_vault_from_file(self, compartment_id, restore_vault_from_file_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1606,7 +1606,7 @@ def restore_vault_from_object_store(self, compartment_id, **kwargs): "opc_retry_token", "restore_vault_from_object_store_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_vault_from_object_store got unknown kwargs: {extra_kwargs!r}") @@ -1614,7 +1614,7 @@ def restore_vault_from_object_store(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1623,7 +1623,7 @@ def restore_vault_from_object_store(self, compartment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1733,7 +1733,7 @@ def schedule_vault_deletion(self, vault_id, schedule_vault_deletion_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_vault_deletion got unknown kwargs: {extra_kwargs!r}") @@ -1742,9 +1742,9 @@ def schedule_vault_deletion(self, vault_id, schedule_vault_deletion_details, **k "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1755,7 +1755,7 @@ def schedule_vault_deletion(self, vault_id, schedule_vault_deletion_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1854,7 +1854,7 @@ def update_vault(self, vault_id, update_vault_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vault got unknown kwargs: {extra_kwargs!r}") @@ -1863,9 +1863,9 @@ def update_vault(self, vault_id, update_vault_details, **kwargs): "vaultId": vault_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1875,7 +1875,7 @@ def update_vault(self, vault_id, update_vault_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/license_manager/license_manager_client.py b/src/oci/license_manager/license_manager_client.py index 7f5107ed9..59583db01 100644 --- a/src/oci/license_manager/license_manager_client.py +++ b/src/oci/license_manager/license_manager_client.py @@ -161,7 +161,7 @@ def bulk_upload_license_records(self, bulk_upload_license_records_details, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_license_records got unknown kwargs: {extra_kwargs!r}") @@ -171,7 +171,7 @@ def bulk_upload_license_records(self, bulk_upload_license_records_details, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -260,7 +260,7 @@ def create_license_record(self, create_license_record_details, product_license_i "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_license_record got unknown kwargs: {extra_kwargs!r}") @@ -268,7 +268,7 @@ def create_license_record(self, create_license_record_details, product_license_i query_params = { "productLicenseId": product_license_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -276,7 +276,7 @@ def create_license_record(self, create_license_record_details, product_license_i "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -365,7 +365,7 @@ def create_product_license(self, create_product_license_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_product_license got unknown kwargs: {extra_kwargs!r}") @@ -376,7 +376,7 @@ def create_product_license(self, create_product_license_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -462,7 +462,7 @@ def delete_license_record(self, license_record_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_license_record got unknown kwargs: {extra_kwargs!r}") @@ -471,9 +471,9 @@ def delete_license_record(self, license_record_id, **kwargs): "licenseRecordId": license_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -483,7 +483,7 @@ def delete_license_record(self, license_record_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -566,7 +566,7 @@ def delete_product_license(self, product_license_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_product_license got unknown kwargs: {extra_kwargs!r}") @@ -575,9 +575,9 @@ def delete_product_license(self, product_license_id, **kwargs): "productLicenseId": product_license_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -587,7 +587,7 @@ def delete_product_license(self, product_license_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -661,7 +661,7 @@ def get_bulk_upload_template(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_bulk_upload_template got unknown kwargs: {extra_kwargs!r}") @@ -671,7 +671,7 @@ def get_bulk_upload_template(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -750,7 +750,7 @@ def get_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -758,14 +758,14 @@ def get_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -850,7 +850,7 @@ def get_license_metric(self, compartment_id, **kwargs): "opc_request_id", "is_compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_license_metric got unknown kwargs: {extra_kwargs!r}") @@ -859,14 +859,14 @@ def get_license_metric(self, compartment_id, **kwargs): "compartmentId": compartment_id, "isCompartmentIdInSubtree": kwargs.get("is_compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -945,7 +945,7 @@ def get_license_record(self, license_record_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_license_record got unknown kwargs: {extra_kwargs!r}") @@ -954,9 +954,9 @@ def get_license_record(self, license_record_id, **kwargs): "licenseRecordId": license_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -965,7 +965,7 @@ def get_license_record(self, license_record_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1044,7 +1044,7 @@ def get_product_license(self, product_license_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_product_license got unknown kwargs: {extra_kwargs!r}") @@ -1053,9 +1053,9 @@ def get_product_license(self, product_license_id, **kwargs): "productLicenseId": product_license_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1064,7 +1064,7 @@ def get_product_license(self, product_license_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1167,7 +1167,7 @@ def list_license_records(self, product_license_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_license_records got unknown kwargs: {extra_kwargs!r}") @@ -1193,14 +1193,14 @@ def list_license_records(self, product_license_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1312,7 +1312,7 @@ def list_product_license_consumers(self, product_license_id, compartment_id, **k "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_product_license_consumers got unknown kwargs: {extra_kwargs!r}") @@ -1340,14 +1340,14 @@ def list_product_license_consumers(self, product_license_id, compartment_id, **k "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1456,7 +1456,7 @@ def list_product_licenses(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_product_licenses got unknown kwargs: {extra_kwargs!r}") @@ -1483,14 +1483,14 @@ def list_product_licenses(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1599,7 +1599,7 @@ def list_top_utilized_product_licenses(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_top_utilized_product_licenses got unknown kwargs: {extra_kwargs!r}") @@ -1626,14 +1626,14 @@ def list_top_utilized_product_licenses(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1748,7 +1748,7 @@ def list_top_utilized_resources(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_top_utilized_resources got unknown kwargs: {extra_kwargs!r}") @@ -1783,14 +1783,14 @@ def list_top_utilized_resources(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1880,7 +1880,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1888,7 +1888,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1896,7 +1896,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1986,7 +1986,7 @@ def update_license_record(self, license_record_id, update_license_record_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_license_record got unknown kwargs: {extra_kwargs!r}") @@ -1995,9 +1995,9 @@ def update_license_record(self, license_record_id, update_license_record_details "licenseRecordId": license_record_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2007,7 +2007,7 @@ def update_license_record(self, license_record_id, update_license_record_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2097,7 +2097,7 @@ def update_product_license(self, product_license_id, update_product_license_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_product_license got unknown kwargs: {extra_kwargs!r}") @@ -2106,9 +2106,9 @@ def update_product_license(self, product_license_id, update_product_license_deta "productLicenseId": product_license_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2118,7 +2118,7 @@ def update_product_license(self, product_license_id, update_product_license_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/limits/limits_client.py b/src/oci/limits/limits_client.py index cf0074b26..8e0cd8c5b 100644 --- a/src/oci/limits/limits_client.py +++ b/src/oci/limits/limits_client.py @@ -185,7 +185,7 @@ def get_resource_availability(self, service_name, limit_name, compartment_id, ** "subscription_id", "external_location" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_availability got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def get_resource_availability(self, service_name, limit_name, compartment_id, ** "limitName": limit_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -207,14 +207,14 @@ def get_resource_availability(self, service_name, limit_name, compartment_id, ** "subscriptionId": kwargs.get("subscription_id", missing), "externalLocation": kwargs.get("external_location", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -329,7 +329,7 @@ def list_limit_definitions(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_limit_definitions got unknown kwargs: {extra_kwargs!r}") @@ -358,14 +358,14 @@ def list_limit_definitions(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -490,7 +490,7 @@ def list_limit_values(self, compartment_id, service_name, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_limit_values got unknown kwargs: {extra_kwargs!r}") @@ -529,14 +529,14 @@ def list_limit_values(self, compartment_id, service_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -640,7 +640,7 @@ def list_services(self, compartment_id, **kwargs): "opc_request_id", "subscription_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_services got unknown kwargs: {extra_kwargs!r}") @@ -667,14 +667,14 @@ def list_services(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "subscriptionId": kwargs.get("subscription_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/limits/quotas_client.py b/src/oci/limits/quotas_client.py index 5bd7dba53..3c5c104da 100644 --- a/src/oci/limits/quotas_client.py +++ b/src/oci/limits/quotas_client.py @@ -169,7 +169,7 @@ def add_quota_lock(self, quota_id, add_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_quota_lock got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def add_quota_lock(self, quota_id, add_lock_details, **kwargs): "quotaId": quota_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -190,7 +190,7 @@ def add_quota_lock(self, quota_id, add_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -277,7 +277,7 @@ def create_quota(self, create_quota_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_quota got unknown kwargs: {extra_kwargs!r}") @@ -288,7 +288,7 @@ def create_quota(self, create_quota_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -378,7 +378,7 @@ def delete_quota(self, quota_id, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_quota got unknown kwargs: {extra_kwargs!r}") @@ -387,16 +387,16 @@ def delete_quota(self, quota_id, **kwargs): "quotaId": quota_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -404,7 +404,7 @@ def delete_quota(self, quota_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -483,7 +483,7 @@ def get_quota(self, quota_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_quota got unknown kwargs: {extra_kwargs!r}") @@ -492,9 +492,9 @@ def get_quota(self, quota_id, **kwargs): "quotaId": quota_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -503,7 +503,7 @@ def get_quota(self, quota_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def list_quotas(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_quotas got unknown kwargs: {extra_kwargs!r}") @@ -647,14 +647,14 @@ def list_quotas(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -741,7 +741,7 @@ def remove_quota_lock(self, quota_id, remove_lock_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_quota_lock got unknown kwargs: {extra_kwargs!r}") @@ -750,9 +750,9 @@ def remove_quota_lock(self, quota_id, remove_lock_details, **kwargs): "quotaId": quota_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -762,7 +762,7 @@ def remove_quota_lock(self, quota_id, remove_lock_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -854,7 +854,7 @@ def update_quota(self, quota_id, update_quota_details, **kwargs): "if_match", "is_lock_override" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_quota got unknown kwargs: {extra_kwargs!r}") @@ -863,16 +863,16 @@ def update_quota(self, quota_id, update_quota_details, **kwargs): "quotaId": quota_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -880,7 +880,7 @@ def update_quota(self, quota_id, update_quota_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/load_balancer/load_balancer_client.py b/src/oci/load_balancer/load_balancer_client.py index 86b3501bc..41d8c0716 100644 --- a/src/oci/load_balancer/load_balancer_client.py +++ b/src/oci/load_balancer/load_balancer_client.py @@ -191,7 +191,7 @@ def change_load_balancer_compartment(self, load_balancer_id, change_load_balance "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_load_balancer_compartment got unknown kwargs: {extra_kwargs!r}") @@ -200,9 +200,9 @@ def change_load_balancer_compartment(self, load_balancer_id, change_load_balance "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -213,7 +213,7 @@ def change_load_balancer_compartment(self, load_balancer_id, change_load_balance "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -322,7 +322,7 @@ def create_backend(self, create_backend_details, load_balancer_id, backend_set_n "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backend got unknown kwargs: {extra_kwargs!r}") @@ -332,9 +332,9 @@ def create_backend(self, create_backend_details, load_balancer_id, backend_set_n "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -345,7 +345,7 @@ def create_backend(self, create_backend_details, load_balancer_id, backend_set_n "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -449,7 +449,7 @@ def create_backend_set(self, create_backend_set_details, load_balancer_id, **kwa "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -458,9 +458,9 @@ def create_backend_set(self, create_backend_set_details, load_balancer_id, **kwa "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -471,7 +471,7 @@ def create_backend_set(self, create_backend_set_details, load_balancer_id, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -575,7 +575,7 @@ def create_certificate(self, create_certificate_details, load_balancer_id, **kwa "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_certificate got unknown kwargs: {extra_kwargs!r}") @@ -584,9 +584,9 @@ def create_certificate(self, create_certificate_details, load_balancer_id, **kwa "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -597,7 +597,7 @@ def create_certificate(self, create_certificate_details, load_balancer_id, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -704,7 +704,7 @@ def create_hostname(self, create_hostname_details, load_balancer_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_hostname got unknown kwargs: {extra_kwargs!r}") @@ -713,9 +713,9 @@ def create_hostname(self, create_hostname_details, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -726,7 +726,7 @@ def create_hostname(self, create_hostname_details, load_balancer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -830,7 +830,7 @@ def create_listener(self, create_listener_details, load_balancer_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listener got unknown kwargs: {extra_kwargs!r}") @@ -839,9 +839,9 @@ def create_listener(self, create_listener_details, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -852,7 +852,7 @@ def create_listener(self, create_listener_details, load_balancer_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -969,7 +969,7 @@ def create_load_balancer(self, create_load_balancer_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -980,7 +980,7 @@ def create_load_balancer(self, create_load_balancer_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1085,7 +1085,7 @@ def create_path_route_set(self, create_path_route_set_details, load_balancer_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_path_route_set got unknown kwargs: {extra_kwargs!r}") @@ -1094,9 +1094,9 @@ def create_path_route_set(self, create_path_route_set_details, load_balancer_id, "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1107,7 +1107,7 @@ def create_path_route_set(self, create_path_route_set_details, load_balancer_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1214,7 +1214,7 @@ def create_routing_policy(self, create_routing_policy_details, load_balancer_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_routing_policy got unknown kwargs: {extra_kwargs!r}") @@ -1223,9 +1223,9 @@ def create_routing_policy(self, create_routing_policy_details, load_balancer_id, "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1236,7 +1236,7 @@ def create_routing_policy(self, create_routing_policy_details, load_balancer_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1343,7 +1343,7 @@ def create_rule_set(self, load_balancer_id, create_rule_set_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_rule_set got unknown kwargs: {extra_kwargs!r}") @@ -1352,9 +1352,9 @@ def create_rule_set(self, load_balancer_id, create_rule_set_details, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1365,7 +1365,7 @@ def create_rule_set(self, load_balancer_id, create_rule_set_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1469,7 +1469,7 @@ def create_ssl_cipher_suite(self, create_ssl_cipher_suite_details, load_balancer "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ssl_cipher_suite got unknown kwargs: {extra_kwargs!r}") @@ -1478,9 +1478,9 @@ def create_ssl_cipher_suite(self, create_ssl_cipher_suite_details, load_balancer "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1491,7 +1491,7 @@ def create_ssl_cipher_suite(self, create_ssl_cipher_suite_details, load_balancer "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1594,7 +1594,7 @@ def delete_backend(self, load_balancer_id, backend_set_name, backend_name, **kwa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backend got unknown kwargs: {extra_kwargs!r}") @@ -1605,9 +1605,9 @@ def delete_backend(self, load_balancer_id, backend_set_name, backend_name, **kwa "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1617,7 +1617,7 @@ def delete_backend(self, load_balancer_id, backend_set_name, backend_name, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1714,7 +1714,7 @@ def delete_backend_set(self, load_balancer_id, backend_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -1724,9 +1724,9 @@ def delete_backend_set(self, load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1736,7 +1736,7 @@ def delete_backend_set(self, load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1832,7 +1832,7 @@ def delete_certificate(self, load_balancer_id, certificate_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1842,9 +1842,9 @@ def delete_certificate(self, load_balancer_id, certificate_name, **kwargs): "certificateName": certificate_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1854,7 +1854,7 @@ def delete_certificate(self, load_balancer_id, certificate_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1949,7 +1949,7 @@ def delete_hostname(self, load_balancer_id, name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_hostname got unknown kwargs: {extra_kwargs!r}") @@ -1959,9 +1959,9 @@ def delete_hostname(self, load_balancer_id, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1971,7 +1971,7 @@ def delete_hostname(self, load_balancer_id, name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2066,7 +2066,7 @@ def delete_listener(self, load_balancer_id, listener_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listener got unknown kwargs: {extra_kwargs!r}") @@ -2076,9 +2076,9 @@ def delete_listener(self, load_balancer_id, listener_name, **kwargs): "listenerName": listener_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2088,7 +2088,7 @@ def delete_listener(self, load_balancer_id, listener_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2178,7 +2178,7 @@ def delete_load_balancer(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -2187,9 +2187,9 @@ def delete_load_balancer(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2199,7 +2199,7 @@ def delete_load_balancer(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2297,7 +2297,7 @@ def delete_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_path_route_set got unknown kwargs: {extra_kwargs!r}") @@ -2307,9 +2307,9 @@ def delete_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs) "pathRouteSetName": path_route_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2319,7 +2319,7 @@ def delete_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2417,7 +2417,7 @@ def delete_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_routing_policy got unknown kwargs: {extra_kwargs!r}") @@ -2427,9 +2427,9 @@ def delete_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs) "routingPolicyName": routing_policy_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2439,7 +2439,7 @@ def delete_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2537,7 +2537,7 @@ def delete_rule_set(self, load_balancer_id, rule_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rule_set got unknown kwargs: {extra_kwargs!r}") @@ -2547,9 +2547,9 @@ def delete_rule_set(self, load_balancer_id, rule_set_name, **kwargs): "ruleSetName": rule_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2559,7 +2559,7 @@ def delete_rule_set(self, load_balancer_id, rule_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2654,7 +2654,7 @@ def delete_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ssl_cipher_suite got unknown kwargs: {extra_kwargs!r}") @@ -2664,9 +2664,9 @@ def delete_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2676,7 +2676,7 @@ def delete_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2776,7 +2776,7 @@ def get_backend(self, load_balancer_id, backend_set_name, backend_name, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend got unknown kwargs: {extra_kwargs!r}") @@ -2787,9 +2787,9 @@ def get_backend(self, load_balancer_id, backend_set_name, backend_name, **kwargs "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2799,7 +2799,7 @@ def get_backend(self, load_balancer_id, backend_set_name, backend_name, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2901,7 +2901,7 @@ def get_backend_health(self, load_balancer_id, backend_set_name, backend_name, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_health got unknown kwargs: {extra_kwargs!r}") @@ -2912,9 +2912,9 @@ def get_backend_health(self, load_balancer_id, backend_set_name, backend_name, * "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2924,7 +2924,7 @@ def get_backend_health(self, load_balancer_id, backend_set_name, backend_name, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3021,7 +3021,7 @@ def get_backend_set(self, load_balancer_id, backend_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -3031,9 +3031,9 @@ def get_backend_set(self, load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3043,7 +3043,7 @@ def get_backend_set(self, load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3140,7 +3140,7 @@ def get_backend_set_health(self, load_balancer_id, backend_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_set_health got unknown kwargs: {extra_kwargs!r}") @@ -3150,9 +3150,9 @@ def get_backend_set_health(self, load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3162,7 +3162,7 @@ def get_backend_set_health(self, load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3259,7 +3259,7 @@ def get_health_checker(self, load_balancer_id, backend_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_health_checker got unknown kwargs: {extra_kwargs!r}") @@ -3269,9 +3269,9 @@ def get_health_checker(self, load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3281,7 +3281,7 @@ def get_health_checker(self, load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3378,7 +3378,7 @@ def get_hostname(self, load_balancer_id, name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_hostname got unknown kwargs: {extra_kwargs!r}") @@ -3388,9 +3388,9 @@ def get_hostname(self, load_balancer_id, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3400,7 +3400,7 @@ def get_hostname(self, load_balancer_id, name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3492,7 +3492,7 @@ def get_load_balancer(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -3501,9 +3501,9 @@ def get_load_balancer(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3513,7 +3513,7 @@ def get_load_balancer(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3605,7 +3605,7 @@ def get_load_balancer_health(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_load_balancer_health got unknown kwargs: {extra_kwargs!r}") @@ -3614,9 +3614,9 @@ def get_load_balancer_health(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3626,7 +3626,7 @@ def get_load_balancer_health(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3723,7 +3723,7 @@ def get_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_path_route_set got unknown kwargs: {extra_kwargs!r}") @@ -3733,9 +3733,9 @@ def get_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs): "pathRouteSetName": path_route_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3745,7 +3745,7 @@ def get_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3842,7 +3842,7 @@ def get_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_routing_policy got unknown kwargs: {extra_kwargs!r}") @@ -3852,9 +3852,9 @@ def get_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs): "routingPolicyName": routing_policy_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3864,7 +3864,7 @@ def get_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3961,7 +3961,7 @@ def get_rule_set(self, load_balancer_id, rule_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rule_set got unknown kwargs: {extra_kwargs!r}") @@ -3971,9 +3971,9 @@ def get_rule_set(self, load_balancer_id, rule_set_name, **kwargs): "ruleSetName": rule_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3983,7 +3983,7 @@ def get_rule_set(self, load_balancer_id, rule_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4080,7 +4080,7 @@ def get_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ssl_cipher_suite got unknown kwargs: {extra_kwargs!r}") @@ -4090,9 +4090,9 @@ def get_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4102,7 +4102,7 @@ def get_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4181,7 +4181,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -4190,9 +4190,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4201,7 +4201,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4293,7 +4293,7 @@ def list_backend_sets(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backend_sets got unknown kwargs: {extra_kwargs!r}") @@ -4302,9 +4302,9 @@ def list_backend_sets(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4314,7 +4314,7 @@ def list_backend_sets(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4411,7 +4411,7 @@ def list_backends(self, load_balancer_id, backend_set_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backends got unknown kwargs: {extra_kwargs!r}") @@ -4421,9 +4421,9 @@ def list_backends(self, load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4433,7 +4433,7 @@ def list_backends(self, load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4526,7 +4526,7 @@ def list_certificates(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificates got unknown kwargs: {extra_kwargs!r}") @@ -4535,9 +4535,9 @@ def list_certificates(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4547,7 +4547,7 @@ def list_certificates(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4640,7 +4640,7 @@ def list_hostnames(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_hostnames got unknown kwargs: {extra_kwargs!r}") @@ -4649,9 +4649,9 @@ def list_hostnames(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4661,7 +4661,7 @@ def list_hostnames(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4763,7 +4763,7 @@ def list_listener_rules(self, load_balancer_id, listener_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listener_rules got unknown kwargs: {extra_kwargs!r}") @@ -4773,9 +4773,9 @@ def list_listener_rules(self, load_balancer_id, listener_name, **kwargs): "listenerName": listener_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4785,7 +4785,7 @@ def list_listener_rules(self, load_balancer_id, listener_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4882,7 +4882,7 @@ def list_load_balancer_healths(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_load_balancer_healths got unknown kwargs: {extra_kwargs!r}") @@ -4892,14 +4892,14 @@ def list_load_balancer_healths(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5029,7 +5029,7 @@ def list_load_balancers(self, compartment_id, **kwargs): "display_name", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_load_balancers got unknown kwargs: {extra_kwargs!r}") @@ -5065,14 +5065,14 @@ def list_load_balancers(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5165,7 +5165,7 @@ def list_path_route_sets(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_path_route_sets got unknown kwargs: {extra_kwargs!r}") @@ -5174,9 +5174,9 @@ def list_path_route_sets(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5186,7 +5186,7 @@ def list_path_route_sets(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5283,7 +5283,7 @@ def list_policies(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_policies got unknown kwargs: {extra_kwargs!r}") @@ -5293,14 +5293,14 @@ def list_policies(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5397,7 +5397,7 @@ def list_protocols(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protocols got unknown kwargs: {extra_kwargs!r}") @@ -5407,14 +5407,14 @@ def list_protocols(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5524,7 +5524,7 @@ def list_routing_policies(self, load_balancer_id, **kwargs): "page", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_routing_policies got unknown kwargs: {extra_kwargs!r}") @@ -5533,9 +5533,9 @@ def list_routing_policies(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5543,7 +5543,7 @@ def list_routing_policies(self, load_balancer_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5551,7 +5551,7 @@ def list_routing_policies(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5645,7 +5645,7 @@ def list_rule_sets(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rule_sets got unknown kwargs: {extra_kwargs!r}") @@ -5654,9 +5654,9 @@ def list_rule_sets(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5666,7 +5666,7 @@ def list_rule_sets(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5763,7 +5763,7 @@ def list_shapes(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_shapes got unknown kwargs: {extra_kwargs!r}") @@ -5773,14 +5773,14 @@ def list_shapes(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5872,7 +5872,7 @@ def list_ssl_cipher_suites(self, load_balancer_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ssl_cipher_suites got unknown kwargs: {extra_kwargs!r}") @@ -5881,9 +5881,9 @@ def list_ssl_cipher_suites(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5893,7 +5893,7 @@ def list_ssl_cipher_suites(self, load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5990,7 +5990,7 @@ def list_work_requests(self, load_balancer_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -5999,9 +5999,9 @@ def list_work_requests(self, load_balancer_id, **kwargs): "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6009,14 +6009,14 @@ def list_work_requests(self, load_balancer_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6131,7 +6131,7 @@ def update_backend(self, update_backend_details, load_balancer_id, backend_set_n "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backend got unknown kwargs: {extra_kwargs!r}") @@ -6142,9 +6142,9 @@ def update_backend(self, update_backend_details, load_balancer_id, backend_set_n "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6155,7 +6155,7 @@ def update_backend(self, update_backend_details, load_balancer_id, backend_set_n "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6264,7 +6264,7 @@ def update_backend_set(self, update_backend_set_details, load_balancer_id, backe "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -6274,9 +6274,9 @@ def update_backend_set(self, update_backend_set_details, load_balancer_id, backe "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6287,7 +6287,7 @@ def update_backend_set(self, update_backend_set_details, load_balancer_id, backe "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6396,7 +6396,7 @@ def update_health_checker(self, health_checker, load_balancer_id, backend_set_na "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_health_checker got unknown kwargs: {extra_kwargs!r}") @@ -6406,9 +6406,9 @@ def update_health_checker(self, health_checker, load_balancer_id, backend_set_na "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6419,7 +6419,7 @@ def update_health_checker(self, health_checker, load_balancer_id, backend_set_na "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6530,7 +6530,7 @@ def update_hostname(self, update_hostname_details, load_balancer_id, name, **kwa "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_hostname got unknown kwargs: {extra_kwargs!r}") @@ -6540,9 +6540,9 @@ def update_hostname(self, update_hostname_details, load_balancer_id, name, **kwa "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6553,7 +6553,7 @@ def update_hostname(self, update_hostname_details, load_balancer_id, name, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6662,7 +6662,7 @@ def update_listener(self, update_listener_details, load_balancer_id, listener_na "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listener got unknown kwargs: {extra_kwargs!r}") @@ -6672,9 +6672,9 @@ def update_listener(self, update_listener_details, load_balancer_id, listener_na "listenerName": listener_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6685,7 +6685,7 @@ def update_listener(self, update_listener_details, load_balancer_id, listener_na "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6789,7 +6789,7 @@ def update_load_balancer(self, update_load_balancer_details, load_balancer_id, * "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -6798,9 +6798,9 @@ def update_load_balancer(self, update_load_balancer_details, load_balancer_id, * "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6811,7 +6811,7 @@ def update_load_balancer(self, update_load_balancer_details, load_balancer_id, * "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6920,7 +6920,7 @@ def update_load_balancer_shape(self, load_balancer_id, update_load_balancer_shap "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_load_balancer_shape got unknown kwargs: {extra_kwargs!r}") @@ -6929,9 +6929,9 @@ def update_load_balancer_shape(self, load_balancer_id, update_load_balancer_shap "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6942,7 +6942,7 @@ def update_load_balancer_shape(self, load_balancer_id, update_load_balancer_shap "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7046,7 +7046,7 @@ def update_network_security_groups(self, update_network_security_groups_details, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_security_groups got unknown kwargs: {extra_kwargs!r}") @@ -7055,9 +7055,9 @@ def update_network_security_groups(self, update_network_security_groups_details, "loadBalancerId": load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7068,7 +7068,7 @@ def update_network_security_groups(self, update_network_security_groups_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7182,7 +7182,7 @@ def update_path_route_set(self, update_path_route_set_details, load_balancer_id, "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_path_route_set got unknown kwargs: {extra_kwargs!r}") @@ -7192,9 +7192,9 @@ def update_path_route_set(self, update_path_route_set_details, load_balancer_id, "pathRouteSetName": path_route_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7205,7 +7205,7 @@ def update_path_route_set(self, update_path_route_set_details, load_balancer_id, "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7317,7 +7317,7 @@ def update_routing_policy(self, update_routing_policy_details, load_balancer_id, "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_routing_policy got unknown kwargs: {extra_kwargs!r}") @@ -7327,9 +7327,9 @@ def update_routing_policy(self, update_routing_policy_details, load_balancer_id, "routingPolicyName": routing_policy_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7340,7 +7340,7 @@ def update_routing_policy(self, update_routing_policy_details, load_balancer_id, "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7452,7 +7452,7 @@ def update_rule_set(self, load_balancer_id, rule_set_name, update_rule_set_detai "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_rule_set got unknown kwargs: {extra_kwargs!r}") @@ -7462,9 +7462,9 @@ def update_rule_set(self, load_balancer_id, rule_set_name, update_rule_set_detai "ruleSetName": rule_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7475,7 +7475,7 @@ def update_rule_set(self, load_balancer_id, rule_set_name, update_rule_set_detai "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7584,7 +7584,7 @@ def update_ssl_cipher_suite(self, update_ssl_cipher_suite_details, load_balancer "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ssl_cipher_suite got unknown kwargs: {extra_kwargs!r}") @@ -7594,9 +7594,9 @@ def update_ssl_cipher_suite(self, update_ssl_cipher_suite_details, load_balancer "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7607,7 +7607,7 @@ def update_ssl_cipher_suite(self, update_ssl_cipher_suite_details, load_balancer "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/lockbox/lockbox_client.py b/src/oci/lockbox/lockbox_client.py index f313f18f6..cb10d0e1b 100644 --- a/src/oci/lockbox/lockbox_client.py +++ b/src/oci/lockbox/lockbox_client.py @@ -170,7 +170,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -286,7 +286,7 @@ def change_approval_template_compartment(self, approval_template_id, change_appr "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_approval_template_compartment got unknown kwargs: {extra_kwargs!r}") @@ -295,9 +295,9 @@ def change_approval_template_compartment(self, approval_template_id, change_appr "approvalTemplateId": approval_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def change_approval_template_compartment(self, approval_template_id, change_appr "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -406,7 +406,7 @@ def change_lockbox_compartment(self, lockbox_id, change_lockbox_compartment_deta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_lockbox_compartment got unknown kwargs: {extra_kwargs!r}") @@ -415,9 +415,9 @@ def change_lockbox_compartment(self, lockbox_id, change_lockbox_compartment_deta "lockboxId": lockbox_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -428,7 +428,7 @@ def change_lockbox_compartment(self, lockbox_id, change_lockbox_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -515,7 +515,7 @@ def create_access_request(self, create_access_request_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_access_request got unknown kwargs: {extra_kwargs!r}") @@ -526,7 +526,7 @@ def create_access_request(self, create_access_request_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -613,7 +613,7 @@ def create_approval_template(self, create_approval_template_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_approval_template got unknown kwargs: {extra_kwargs!r}") @@ -624,7 +624,7 @@ def create_approval_template(self, create_approval_template_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -711,7 +711,7 @@ def create_lockbox(self, create_lockbox_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_lockbox got unknown kwargs: {extra_kwargs!r}") @@ -722,7 +722,7 @@ def create_lockbox(self, create_lockbox_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -809,7 +809,7 @@ def delete_approval_template(self, approval_template_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_approval_template got unknown kwargs: {extra_kwargs!r}") @@ -818,9 +818,9 @@ def delete_approval_template(self, approval_template_id, **kwargs): "approvalTemplateId": approval_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -830,7 +830,7 @@ def delete_approval_template(self, approval_template_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -922,7 +922,7 @@ def delete_lockbox(self, lockbox_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_lockbox got unknown kwargs: {extra_kwargs!r}") @@ -931,9 +931,9 @@ def delete_lockbox(self, lockbox_id, **kwargs): "lockboxId": lockbox_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -944,7 +944,7 @@ def delete_lockbox(self, lockbox_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1069,7 +1069,7 @@ def export_access_requests(self, export_access_requests_details, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_access_requests got unknown kwargs: {extra_kwargs!r}") @@ -1114,14 +1114,14 @@ def export_access_requests(self, export_access_requests_details, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "text/csv", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1201,7 +1201,7 @@ def get_access_materials(self, access_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_access_materials got unknown kwargs: {extra_kwargs!r}") @@ -1210,9 +1210,9 @@ def get_access_materials(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1221,7 +1221,7 @@ def get_access_materials(self, access_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1299,7 +1299,7 @@ def get_access_request(self, access_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_access_request got unknown kwargs: {extra_kwargs!r}") @@ -1308,9 +1308,9 @@ def get_access_request(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1319,7 +1319,7 @@ def get_access_request(self, access_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1397,7 +1397,7 @@ def get_access_request_internal(self, access_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_access_request_internal got unknown kwargs: {extra_kwargs!r}") @@ -1406,9 +1406,9 @@ def get_access_request_internal(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1417,7 +1417,7 @@ def get_access_request_internal(self, access_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1495,7 +1495,7 @@ def get_approval_template(self, approval_template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_approval_template got unknown kwargs: {extra_kwargs!r}") @@ -1504,9 +1504,9 @@ def get_approval_template(self, approval_template_id, **kwargs): "approvalTemplateId": approval_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1515,7 +1515,7 @@ def get_approval_template(self, approval_template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1593,7 +1593,7 @@ def get_lockbox(self, lockbox_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lockbox got unknown kwargs: {extra_kwargs!r}") @@ -1602,9 +1602,9 @@ def get_lockbox(self, lockbox_id, **kwargs): "lockboxId": lockbox_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1613,7 +1613,7 @@ def get_lockbox(self, lockbox_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1691,7 +1691,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1700,9 +1700,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1711,7 +1711,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1808,7 +1808,7 @@ def handle_access_request(self, access_request_id, handle_access_request_details "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"handle_access_request got unknown kwargs: {extra_kwargs!r}") @@ -1817,9 +1817,9 @@ def handle_access_request(self, access_request_id, handle_access_request_details "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1830,7 +1830,7 @@ def handle_access_request(self, access_request_id, handle_access_request_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1970,7 +1970,7 @@ def list_access_requests(self, **kwargs): "time_created_after", "time_created_before" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_access_requests got unknown kwargs: {extra_kwargs!r}") @@ -2018,14 +2018,14 @@ def list_access_requests(self, **kwargs): "timeCreatedAfter": kwargs.get("time_created_after", missing), "timeCreatedBefore": kwargs.get("time_created_before", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2138,7 +2138,7 @@ def list_approval_templates(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_approval_templates got unknown kwargs: {extra_kwargs!r}") @@ -2174,14 +2174,14 @@ def list_approval_templates(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2308,7 +2308,7 @@ def list_lockboxes(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_lockboxes got unknown kwargs: {extra_kwargs!r}") @@ -2354,14 +2354,14 @@ def list_lockboxes(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2459,7 +2459,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2468,9 +2468,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2494,14 +2494,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2601,7 +2601,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2610,9 +2610,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2636,14 +2636,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2758,7 +2758,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2794,14 +2794,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2890,7 +2890,7 @@ def update_approval_template(self, approval_template_id, update_approval_templat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_approval_template got unknown kwargs: {extra_kwargs!r}") @@ -2899,9 +2899,9 @@ def update_approval_template(self, approval_template_id, update_approval_templat "approvalTemplateId": approval_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2911,7 +2911,7 @@ def update_approval_template(self, approval_template_id, update_approval_templat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3002,7 +3002,7 @@ def update_lockbox(self, lockbox_id, update_lockbox_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_lockbox got unknown kwargs: {extra_kwargs!r}") @@ -3011,9 +3011,9 @@ def update_lockbox(self, lockbox_id, update_lockbox_details, **kwargs): "lockboxId": lockbox_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3023,7 +3023,7 @@ def update_lockbox(self, lockbox_id, update_lockbox_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/log_analytics/log_analytics_client.py b/src/oci/log_analytics/log_analytics_client.py index 80db8ea29..75bc23d87 100644 --- a/src/oci/log_analytics/log_analytics_client.py +++ b/src/oci/log_analytics/log_analytics_client.py @@ -183,7 +183,7 @@ def add_entity_association(self, namespace_name, log_analytics_entity_id, add_en "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_entity_association got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def add_entity_association(self, namespace_name, log_analytics_entity_id, add_en "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def add_entity_association(self, namespace_name, log_analytics_entity_id, add_en "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -303,7 +303,7 @@ def add_source_event_types(self, namespace_name, source_name, add_event_type_det "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_source_event_types got unknown kwargs: {extra_kwargs!r}") @@ -313,9 +313,9 @@ def add_source_event_types(self, namespace_name, source_name, add_event_type_det "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def add_source_event_types(self, namespace_name, source_name, add_event_type_det "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -452,7 +452,7 @@ def append_lookup_data(self, namespace_name, lookup_name, append_lookup_file_bod "if_match", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"append_lookup_data got unknown kwargs: {extra_kwargs!r}") @@ -462,9 +462,9 @@ def append_lookup_data(self, namespace_name, lookup_name, append_lookup_file_bod "lookupName": lookup_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -472,7 +472,7 @@ def append_lookup_data(self, namespace_name, lookup_name, append_lookup_file_bod "isForce": kwargs.get("is_force", missing), "charEncoding": kwargs.get("char_encoding", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -481,7 +481,7 @@ def append_lookup_data(self, namespace_name, lookup_name, append_lookup_file_bod "if-match": kwargs.get("if_match", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -606,7 +606,7 @@ def assign_encryption_key(self, namespace_name, assign_encryption_key_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"assign_encryption_key got unknown kwargs: {extra_kwargs!r}") @@ -615,9 +615,9 @@ def assign_encryption_key(self, namespace_name, assign_encryption_key_details, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -628,7 +628,7 @@ def assign_encryption_key(self, namespace_name, assign_encryption_key_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -735,7 +735,7 @@ def batch_get_basic_info(self, namespace_name, basic_details, is_include_deleted "basic_label_sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_get_basic_info got unknown kwargs: {extra_kwargs!r}") @@ -744,9 +744,9 @@ def batch_get_basic_info(self, namespace_name, basic_details, is_include_deleted "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -771,14 +771,14 @@ def batch_get_basic_info(self, namespace_name, basic_details, is_include_deleted "sortOrder": kwargs.get("sort_order", missing), "basicLabelSortBy": kwargs.get("basic_label_sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -877,7 +877,7 @@ def cancel_query_work_request(self, namespace_name, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_query_work_request got unknown kwargs: {extra_kwargs!r}") @@ -887,9 +887,9 @@ def cancel_query_work_request(self, namespace_name, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -899,7 +899,7 @@ def cancel_query_work_request(self, namespace_name, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -997,7 +997,7 @@ def change_ingest_time_rule_compartment(self, namespace_name, ingest_time_rule_i "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_ingest_time_rule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1007,9 +1007,9 @@ def change_ingest_time_rule_compartment(self, namespace_name, ingest_time_rule_i "ingestTimeRuleId": ingest_time_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1020,7 +1020,7 @@ def change_ingest_time_rule_compartment(self, namespace_name, ingest_time_rule_i "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1125,7 +1125,7 @@ def change_log_analytics_em_bridge_compartment(self, namespace_name, log_analyti "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_analytics_em_bridge_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1135,9 +1135,9 @@ def change_log_analytics_em_bridge_compartment(self, namespace_name, log_analyti "logAnalyticsEmBridgeId": log_analytics_em_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1148,7 +1148,7 @@ def change_log_analytics_em_bridge_compartment(self, namespace_name, log_analyti "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1253,7 +1253,7 @@ def change_log_analytics_entity_compartment(self, namespace_name, log_analytics_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_analytics_entity_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1263,9 +1263,9 @@ def change_log_analytics_entity_compartment(self, namespace_name, log_analytics_ "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1276,7 +1276,7 @@ def change_log_analytics_entity_compartment(self, namespace_name, log_analytics_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1381,7 +1381,7 @@ def change_log_analytics_log_group_compartment(self, namespace_name, log_analyti "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_analytics_log_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1391,9 +1391,9 @@ def change_log_analytics_log_group_compartment(self, namespace_name, log_analyti "logAnalyticsLogGroupId": log_analytics_log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1404,7 +1404,7 @@ def change_log_analytics_log_group_compartment(self, namespace_name, log_analyti "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1503,7 +1503,7 @@ def change_log_analytics_object_collection_rule_compartment(self, namespace_name "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_analytics_object_collection_rule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1513,9 +1513,9 @@ def change_log_analytics_object_collection_rule_compartment(self, namespace_name "logAnalyticsObjectCollectionRuleId": log_analytics_object_collection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1525,7 +1525,7 @@ def change_log_analytics_object_collection_rule_compartment(self, namespace_name "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1627,7 +1627,7 @@ def change_lookup_compartment(self, namespace_name, lookup_name, change_lookup_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_lookup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1637,9 +1637,9 @@ def change_lookup_compartment(self, namespace_name, lookup_name, change_lookup_c "lookupName": lookup_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1650,7 +1650,7 @@ def change_lookup_compartment(self, namespace_name, lookup_name, change_lookup_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1756,7 +1756,7 @@ def change_scheduled_task_compartment(self, namespace_name, scheduled_task_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_scheduled_task_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1766,9 +1766,9 @@ def change_scheduled_task_compartment(self, namespace_name, scheduled_task_id, c "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1779,7 +1779,7 @@ def change_scheduled_task_compartment(self, namespace_name, scheduled_task_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -1883,7 +1883,7 @@ def clean(self, namespace_name, scheduled_task_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clean got unknown kwargs: {extra_kwargs!r}") @@ -1893,9 +1893,9 @@ def clean(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1903,7 +1903,7 @@ def clean(self, namespace_name, scheduled_task_id, **kwargs): "timeStart": kwargs.get("time_start", missing), "timeEnd": kwargs.get("time_end", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1911,7 +1911,7 @@ def clean(self, namespace_name, scheduled_task_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1993,7 +1993,7 @@ def compare_content(self, namespace_name, compare_content_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"compare_content got unknown kwargs: {extra_kwargs!r}") @@ -2002,9 +2002,9 @@ def compare_content(self, namespace_name, compare_content_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2013,7 +2013,7 @@ def compare_content(self, namespace_name, compare_content_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2108,7 +2108,7 @@ def create_ingest_time_rule(self, namespace_name, create_ingest_time_rule_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_ingest_time_rule got unknown kwargs: {extra_kwargs!r}") @@ -2117,9 +2117,9 @@ def create_ingest_time_rule(self, namespace_name, create_ingest_time_rule_detail "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2129,7 +2129,7 @@ def create_ingest_time_rule(self, namespace_name, create_ingest_time_rule_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2225,7 +2225,7 @@ def create_log_analytics_em_bridge(self, namespace_name, create_log_analytics_em "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_analytics_em_bridge got unknown kwargs: {extra_kwargs!r}") @@ -2234,9 +2234,9 @@ def create_log_analytics_em_bridge(self, namespace_name, create_log_analytics_em "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2246,7 +2246,7 @@ def create_log_analytics_em_bridge(self, namespace_name, create_log_analytics_em "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2342,7 +2342,7 @@ def create_log_analytics_entity(self, namespace_name, create_log_analytics_entit "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_analytics_entity got unknown kwargs: {extra_kwargs!r}") @@ -2351,9 +2351,9 @@ def create_log_analytics_entity(self, namespace_name, create_log_analytics_entit "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2363,7 +2363,7 @@ def create_log_analytics_entity(self, namespace_name, create_log_analytics_entit "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2459,7 +2459,7 @@ def create_log_analytics_entity_type(self, namespace_name, create_log_analytics_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_analytics_entity_type got unknown kwargs: {extra_kwargs!r}") @@ -2468,9 +2468,9 @@ def create_log_analytics_entity_type(self, namespace_name, create_log_analytics_ "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2480,7 +2480,7 @@ def create_log_analytics_entity_type(self, namespace_name, create_log_analytics_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2574,7 +2574,7 @@ def create_log_analytics_log_group(self, namespace_name, create_log_analytics_lo "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_analytics_log_group got unknown kwargs: {extra_kwargs!r}") @@ -2583,9 +2583,9 @@ def create_log_analytics_log_group(self, namespace_name, create_log_analytics_lo "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2595,7 +2595,7 @@ def create_log_analytics_log_group(self, namespace_name, create_log_analytics_lo "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2683,7 +2683,7 @@ def create_log_analytics_object_collection_rule(self, namespace_name, create_log "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_analytics_object_collection_rule got unknown kwargs: {extra_kwargs!r}") @@ -2692,9 +2692,9 @@ def create_log_analytics_object_collection_rule(self, namespace_name, create_log "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2703,7 +2703,7 @@ def create_log_analytics_object_collection_rule(self, namespace_name, create_log "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2796,7 +2796,7 @@ def create_scheduled_task(self, namespace_name, create_scheduled_task_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduled_task got unknown kwargs: {extra_kwargs!r}") @@ -2805,9 +2805,9 @@ def create_scheduled_task(self, namespace_name, create_scheduled_task_details, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2817,7 +2817,7 @@ def create_scheduled_task(self, namespace_name, create_scheduled_task_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -2911,7 +2911,7 @@ def delete_associations(self, namespace_name, delete_log_analytics_association_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_associations got unknown kwargs: {extra_kwargs!r}") @@ -2920,9 +2920,9 @@ def delete_associations(self, namespace_name, delete_log_analytics_association_d "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2932,7 +2932,7 @@ def delete_associations(self, namespace_name, delete_log_analytics_association_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -3034,7 +3034,7 @@ def delete_field(self, namespace_name, field_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_field got unknown kwargs: {extra_kwargs!r}") @@ -3044,9 +3044,9 @@ def delete_field(self, namespace_name, field_name, **kwargs): "fieldName": field_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3057,7 +3057,7 @@ def delete_field(self, namespace_name, field_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3145,7 +3145,7 @@ def delete_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_ingest_time_rule got unknown kwargs: {extra_kwargs!r}") @@ -3155,9 +3155,9 @@ def delete_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) "ingestTimeRuleId": ingest_time_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3167,7 +3167,7 @@ def delete_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3262,7 +3262,7 @@ def delete_label(self, namespace_name, label_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_label got unknown kwargs: {extra_kwargs!r}") @@ -3272,9 +3272,9 @@ def delete_label(self, namespace_name, label_name, **kwargs): "labelName": label_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3285,7 +3285,7 @@ def delete_label(self, namespace_name, label_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3377,7 +3377,7 @@ def delete_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge "opc_request_id", "is_delete_entities" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_analytics_em_bridge got unknown kwargs: {extra_kwargs!r}") @@ -3387,16 +3387,16 @@ def delete_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge "logAnalyticsEmBridgeId": log_analytics_em_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isDeleteEntities": kwargs.get("is_delete_entities", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3404,7 +3404,7 @@ def delete_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3495,7 +3495,7 @@ def delete_log_analytics_entity(self, namespace_name, log_analytics_entity_id, * "opc_request_id", "is_force_delete" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_analytics_entity got unknown kwargs: {extra_kwargs!r}") @@ -3505,16 +3505,16 @@ def delete_log_analytics_entity(self, namespace_name, log_analytics_entity_id, * "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isForceDelete": kwargs.get("is_force_delete", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3522,7 +3522,7 @@ def delete_log_analytics_entity(self, namespace_name, log_analytics_entity_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3609,7 +3609,7 @@ def delete_log_analytics_entity_type(self, namespace_name, entity_type_name, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_analytics_entity_type got unknown kwargs: {extra_kwargs!r}") @@ -3619,9 +3619,9 @@ def delete_log_analytics_entity_type(self, namespace_name, entity_type_name, **k "entityTypeName": entity_type_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3631,7 +3631,7 @@ def delete_log_analytics_entity_type(self, namespace_name, entity_type_name, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3716,7 +3716,7 @@ def delete_log_analytics_log_group(self, namespace_name, log_analytics_log_group "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_analytics_log_group got unknown kwargs: {extra_kwargs!r}") @@ -3726,9 +3726,9 @@ def delete_log_analytics_log_group(self, namespace_name, log_analytics_log_group "logAnalyticsLogGroupId": log_analytics_log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3738,7 +3738,7 @@ def delete_log_analytics_log_group(self, namespace_name, log_analytics_log_group "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3828,7 +3828,7 @@ def delete_log_analytics_object_collection_rule(self, namespace_name, log_analyt "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_analytics_object_collection_rule got unknown kwargs: {extra_kwargs!r}") @@ -3838,9 +3838,9 @@ def delete_log_analytics_object_collection_rule(self, namespace_name, log_analyt "logAnalyticsObjectCollectionRuleId": log_analytics_object_collection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3850,7 +3850,7 @@ def delete_log_analytics_object_collection_rule(self, namespace_name, log_analyt "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3947,7 +3947,7 @@ def delete_lookup(self, namespace_name, lookup_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_lookup got unknown kwargs: {extra_kwargs!r}") @@ -3957,16 +3957,16 @@ def delete_lookup(self, namespace_name, lookup_name, **kwargs): "lookupName": lookup_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isForce": kwargs.get("is_force", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3975,7 +3975,7 @@ def delete_lookup(self, namespace_name, lookup_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4073,7 +4073,7 @@ def delete_parser(self, namespace_name, parser_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_parser got unknown kwargs: {extra_kwargs!r}") @@ -4083,9 +4083,9 @@ def delete_parser(self, namespace_name, parser_name, **kwargs): "parserName": parser_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4096,7 +4096,7 @@ def delete_parser(self, namespace_name, parser_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4185,7 +4185,7 @@ def delete_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduled_task got unknown kwargs: {extra_kwargs!r}") @@ -4195,9 +4195,9 @@ def delete_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4207,7 +4207,7 @@ def delete_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4302,7 +4302,7 @@ def delete_source(self, namespace_name, source_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_source got unknown kwargs: {extra_kwargs!r}") @@ -4312,9 +4312,9 @@ def delete_source(self, namespace_name, source_name, **kwargs): "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4325,7 +4325,7 @@ def delete_source(self, namespace_name, source_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4414,7 +4414,7 @@ def delete_upload(self, namespace_name, upload_reference, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_upload got unknown kwargs: {extra_kwargs!r}") @@ -4424,9 +4424,9 @@ def delete_upload(self, namespace_name, upload_reference, **kwargs): "uploadReference": upload_reference } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4436,7 +4436,7 @@ def delete_upload(self, namespace_name, upload_reference, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4517,7 +4517,7 @@ def delete_upload_file(self, namespace_name, upload_reference, file_reference, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_upload_file got unknown kwargs: {extra_kwargs!r}") @@ -4528,9 +4528,9 @@ def delete_upload_file(self, namespace_name, upload_reference, file_reference, * "fileReference": file_reference } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4539,7 +4539,7 @@ def delete_upload_file(self, namespace_name, upload_reference, file_reference, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4619,7 +4619,7 @@ def delete_upload_warning(self, namespace_name, upload_reference, warning_refere "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_upload_warning got unknown kwargs: {extra_kwargs!r}") @@ -4630,9 +4630,9 @@ def delete_upload_warning(self, namespace_name, upload_reference, warning_refere "warningReference": warning_reference } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4641,7 +4641,7 @@ def delete_upload_warning(self, namespace_name, upload_reference, warning_refere "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4723,7 +4723,7 @@ def disable_archiving(self, namespace_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_archiving got unknown kwargs: {extra_kwargs!r}") @@ -4732,9 +4732,9 @@ def disable_archiving(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4744,7 +4744,7 @@ def disable_archiving(self, namespace_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4838,7 +4838,7 @@ def disable_auto_association(self, namespace_name, source_name, disable_auto_ass "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_auto_association got unknown kwargs: {extra_kwargs!r}") @@ -4848,9 +4848,9 @@ def disable_auto_association(self, namespace_name, source_name, disable_auto_ass "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4860,7 +4860,7 @@ def disable_auto_association(self, namespace_name, source_name, disable_auto_ass "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -4954,7 +4954,7 @@ def disable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_ingest_time_rule got unknown kwargs: {extra_kwargs!r}") @@ -4964,9 +4964,9 @@ def disable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs "ingestTimeRuleId": ingest_time_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4976,7 +4976,7 @@ def disable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5066,7 +5066,7 @@ def disable_source_event_types(self, namespace_name, source_name, disable_event_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_source_event_types got unknown kwargs: {extra_kwargs!r}") @@ -5076,9 +5076,9 @@ def disable_source_event_types(self, namespace_name, source_name, disable_event_ "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5088,7 +5088,7 @@ def disable_source_event_types(self, namespace_name, source_name, disable_event_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5179,7 +5179,7 @@ def enable_archiving(self, namespace_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_archiving got unknown kwargs: {extra_kwargs!r}") @@ -5188,9 +5188,9 @@ def enable_archiving(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5200,7 +5200,7 @@ def enable_archiving(self, namespace_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5294,7 +5294,7 @@ def enable_auto_association(self, namespace_name, source_name, enable_auto_assoc "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_auto_association got unknown kwargs: {extra_kwargs!r}") @@ -5304,9 +5304,9 @@ def enable_auto_association(self, namespace_name, source_name, enable_auto_assoc "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5316,7 +5316,7 @@ def enable_auto_association(self, namespace_name, source_name, enable_auto_assoc "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5410,7 +5410,7 @@ def enable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_ingest_time_rule got unknown kwargs: {extra_kwargs!r}") @@ -5420,9 +5420,9 @@ def enable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) "ingestTimeRuleId": ingest_time_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5432,7 +5432,7 @@ def enable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5522,7 +5522,7 @@ def enable_source_event_types(self, namespace_name, source_name, enable_event_ty "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_source_event_types got unknown kwargs: {extra_kwargs!r}") @@ -5532,9 +5532,9 @@ def enable_source_event_types(self, namespace_name, source_name, enable_event_ty "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5544,7 +5544,7 @@ def enable_source_event_types(self, namespace_name, source_name, enable_event_ty "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5646,7 +5646,7 @@ def estimate_purge_data_size(self, namespace_name, estimate_purge_data_size_deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"estimate_purge_data_size got unknown kwargs: {extra_kwargs!r}") @@ -5655,9 +5655,9 @@ def estimate_purge_data_size(self, namespace_name, estimate_purge_data_size_deta "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5668,7 +5668,7 @@ def estimate_purge_data_size(self, namespace_name, estimate_purge_data_size_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5756,7 +5756,7 @@ def estimate_recall_data_size(self, namespace_name, estimate_recall_data_size_de "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"estimate_recall_data_size got unknown kwargs: {extra_kwargs!r}") @@ -5765,9 +5765,9 @@ def estimate_recall_data_size(self, namespace_name, estimate_recall_data_size_de "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5776,7 +5776,7 @@ def estimate_recall_data_size(self, namespace_name, estimate_recall_data_size_de "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5863,7 +5863,7 @@ def estimate_release_data_size(self, namespace_name, estimate_release_data_size_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"estimate_release_data_size got unknown kwargs: {extra_kwargs!r}") @@ -5872,9 +5872,9 @@ def estimate_release_data_size(self, namespace_name, estimate_release_data_size_ "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5883,7 +5883,7 @@ def estimate_release_data_size(self, namespace_name, estimate_release_data_size_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5978,7 +5978,7 @@ def export_custom_content(self, namespace_name, export_custom_content_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_custom_content got unknown kwargs: {extra_kwargs!r}") @@ -5987,9 +5987,9 @@ def export_custom_content(self, namespace_name, export_custom_content_details, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5999,7 +5999,7 @@ def export_custom_content(self, namespace_name, export_custom_content_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -6087,7 +6087,7 @@ def export_query_result(self, namespace_name, export_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_query_result got unknown kwargs: {extra_kwargs!r}") @@ -6096,9 +6096,9 @@ def export_query_result(self, namespace_name, export_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6107,7 +6107,7 @@ def export_query_result(self, namespace_name, export_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -6208,7 +6208,7 @@ def extract_structured_log_field_paths(self, namespace_name, logan_parser_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"extract_structured_log_field_paths got unknown kwargs: {extra_kwargs!r}") @@ -6217,9 +6217,9 @@ def extract_structured_log_field_paths(self, namespace_name, logan_parser_detail "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6233,7 +6233,7 @@ def extract_structured_log_field_paths(self, namespace_name, logan_parser_detail query_params = { "parserType": kwargs.get("parser_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", @@ -6241,7 +6241,7 @@ def extract_structured_log_field_paths(self, namespace_name, logan_parser_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -6345,7 +6345,7 @@ def extract_structured_log_header_paths(self, namespace_name, logan_parser_detai "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"extract_structured_log_header_paths got unknown kwargs: {extra_kwargs!r}") @@ -6354,9 +6354,9 @@ def extract_structured_log_header_paths(self, namespace_name, logan_parser_detai "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6370,7 +6370,7 @@ def extract_structured_log_header_paths(self, namespace_name, logan_parser_detai query_params = { "parserType": kwargs.get("parser_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", @@ -6378,7 +6378,7 @@ def extract_structured_log_header_paths(self, namespace_name, logan_parser_detai "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -6468,7 +6468,7 @@ def filter(self, namespace_name, filter_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"filter got unknown kwargs: {extra_kwargs!r}") @@ -6477,9 +6477,9 @@ def filter(self, namespace_name, filter_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6488,7 +6488,7 @@ def filter(self, namespace_name, filter_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -6575,7 +6575,7 @@ def get_association_summary(self, namespace_name, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_association_summary got unknown kwargs: {extra_kwargs!r}") @@ -6584,23 +6584,23 @@ def get_association_summary(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6683,7 +6683,7 @@ def get_category(self, namespace_name, category_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_category got unknown kwargs: {extra_kwargs!r}") @@ -6693,9 +6693,9 @@ def get_category(self, namespace_name, category_name, **kwargs): "categoryName": category_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6704,7 +6704,7 @@ def get_category(self, namespace_name, category_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6793,7 +6793,7 @@ def get_column_names(self, namespace_name, sql_query, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_column_names got unknown kwargs: {extra_kwargs!r}") @@ -6802,16 +6802,16 @@ def get_column_names(self, namespace_name, sql_query, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "sqlQuery": sql_query } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6819,7 +6819,7 @@ def get_column_names(self, namespace_name, sql_query, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6905,7 +6905,7 @@ def get_config_work_request(self, namespace_name, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_config_work_request got unknown kwargs: {extra_kwargs!r}") @@ -6915,9 +6915,9 @@ def get_config_work_request(self, namespace_name, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6926,7 +6926,7 @@ def get_config_work_request(self, namespace_name, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7007,7 +7007,7 @@ def get_field(self, namespace_name, field_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_field got unknown kwargs: {extra_kwargs!r}") @@ -7017,9 +7017,9 @@ def get_field(self, namespace_name, field_name, **kwargs): "fieldName": field_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7028,7 +7028,7 @@ def get_field(self, namespace_name, field_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7109,7 +7109,7 @@ def get_field_usages(self, namespace_name, field_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_field_usages got unknown kwargs: {extra_kwargs!r}") @@ -7119,9 +7119,9 @@ def get_field_usages(self, namespace_name, field_name, **kwargs): "fieldName": field_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7130,7 +7130,7 @@ def get_field_usages(self, namespace_name, field_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7212,7 +7212,7 @@ def get_fields_summary(self, namespace_name, **kwargs): "is_show_detail", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_fields_summary got unknown kwargs: {extra_kwargs!r}") @@ -7221,23 +7221,23 @@ def get_fields_summary(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isShowDetail": kwargs.get("is_show_detail", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7320,7 +7320,7 @@ def get_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_ingest_time_rule got unknown kwargs: {extra_kwargs!r}") @@ -7330,9 +7330,9 @@ def get_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs): "ingestTimeRuleId": ingest_time_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7341,7 +7341,7 @@ def get_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7422,7 +7422,7 @@ def get_label(self, namespace_name, label_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_label got unknown kwargs: {extra_kwargs!r}") @@ -7432,9 +7432,9 @@ def get_label(self, namespace_name, label_name, **kwargs): "labelName": label_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7443,7 +7443,7 @@ def get_label(self, namespace_name, label_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7521,7 +7521,7 @@ def get_label_summary(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_label_summary got unknown kwargs: {extra_kwargs!r}") @@ -7530,9 +7530,9 @@ def get_label_summary(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7541,7 +7541,7 @@ def get_label_summary(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7622,7 +7622,7 @@ def get_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_em_bridge got unknown kwargs: {extra_kwargs!r}") @@ -7632,9 +7632,9 @@ def get_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge_id "logAnalyticsEmBridgeId": log_analytics_em_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7643,7 +7643,7 @@ def get_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7722,7 +7722,7 @@ def get_log_analytics_em_bridge_summary(self, namespace_name, compartment_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_em_bridge_summary got unknown kwargs: {extra_kwargs!r}") @@ -7731,23 +7731,23 @@ def get_log_analytics_em_bridge_summary(self, namespace_name, compartment_id, ** "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7828,7 +7828,7 @@ def get_log_analytics_entities_summary(self, namespace_name, compartment_id, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_entities_summary got unknown kwargs: {extra_kwargs!r}") @@ -7837,23 +7837,23 @@ def get_log_analytics_entities_summary(self, namespace_name, compartment_id, **k "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7938,7 +7938,7 @@ def get_log_analytics_entity(self, namespace_name, log_analytics_entity_id, **kw "opc_request_id", "is_show_associated_sources_count" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_entity got unknown kwargs: {extra_kwargs!r}") @@ -7948,23 +7948,23 @@ def get_log_analytics_entity(self, namespace_name, log_analytics_entity_id, **kw "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isShowAssociatedSourcesCount": kwargs.get("is_show_associated_sources_count", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8045,7 +8045,7 @@ def get_log_analytics_entity_type(self, namespace_name, entity_type_name, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_entity_type got unknown kwargs: {extra_kwargs!r}") @@ -8055,9 +8055,9 @@ def get_log_analytics_entity_type(self, namespace_name, entity_type_name, **kwar "entityTypeName": entity_type_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8066,7 +8066,7 @@ def get_log_analytics_entity_type(self, namespace_name, entity_type_name, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8145,7 +8145,7 @@ def get_log_analytics_log_group(self, namespace_name, log_analytics_log_group_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_log_group got unknown kwargs: {extra_kwargs!r}") @@ -8155,9 +8155,9 @@ def get_log_analytics_log_group(self, namespace_name, log_analytics_log_group_id "logAnalyticsLogGroupId": log_analytics_log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8166,7 +8166,7 @@ def get_log_analytics_log_group(self, namespace_name, log_analytics_log_group_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8247,7 +8247,7 @@ def get_log_analytics_log_groups_summary(self, namespace_name, compartment_id, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_log_groups_summary got unknown kwargs: {extra_kwargs!r}") @@ -8256,23 +8256,23 @@ def get_log_analytics_log_groups_summary(self, namespace_name, compartment_id, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8357,7 +8357,7 @@ def get_log_analytics_object_collection_rule(self, namespace_name, log_analytics "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_analytics_object_collection_rule got unknown kwargs: {extra_kwargs!r}") @@ -8367,9 +8367,9 @@ def get_log_analytics_object_collection_rule(self, namespace_name, log_analytics "logAnalyticsObjectCollectionRuleId": log_analytics_object_collection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8378,7 +8378,7 @@ def get_log_analytics_object_collection_rule(self, namespace_name, log_analytics "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8456,7 +8456,7 @@ def get_log_sets_count(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_sets_count got unknown kwargs: {extra_kwargs!r}") @@ -8465,9 +8465,9 @@ def get_log_sets_count(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8476,7 +8476,7 @@ def get_log_sets_count(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8557,7 +8557,7 @@ def get_lookup(self, namespace_name, lookup_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lookup got unknown kwargs: {extra_kwargs!r}") @@ -8567,9 +8567,9 @@ def get_lookup(self, namespace_name, lookup_name, **kwargs): "lookupName": lookup_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8578,7 +8578,7 @@ def get_lookup(self, namespace_name, lookup_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8660,7 +8660,7 @@ def get_lookup_summary(self, namespace_name, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lookup_summary got unknown kwargs: {extra_kwargs!r}") @@ -8669,23 +8669,23 @@ def get_lookup_summary(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8765,7 +8765,7 @@ def get_namespace(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_namespace got unknown kwargs: {extra_kwargs!r}") @@ -8774,9 +8774,9 @@ def get_namespace(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8785,7 +8785,7 @@ def get_namespace(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8866,7 +8866,7 @@ def get_parser(self, namespace_name, parser_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_parser got unknown kwargs: {extra_kwargs!r}") @@ -8876,9 +8876,9 @@ def get_parser(self, namespace_name, parser_name, **kwargs): "parserName": parser_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8887,7 +8887,7 @@ def get_parser(self, namespace_name, parser_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8965,7 +8965,7 @@ def get_parser_summary(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_parser_summary got unknown kwargs: {extra_kwargs!r}") @@ -8974,9 +8974,9 @@ def get_parser_summary(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8985,7 +8985,7 @@ def get_parser_summary(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9083,7 +9083,7 @@ def get_preferences(self, namespace_name, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_preferences got unknown kwargs: {extra_kwargs!r}") @@ -9092,9 +9092,9 @@ def get_preferences(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9118,14 +9118,14 @@ def get_preferences(self, namespace_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9233,7 +9233,7 @@ def get_query_result(self, namespace_name, work_request_id, **kwargs): "should_include_fields", "output_mode" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_query_result got unknown kwargs: {extra_kwargs!r}") @@ -9242,9 +9242,9 @@ def get_query_result(self, namespace_name, work_request_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9263,14 +9263,14 @@ def get_query_result(self, namespace_name, work_request_id, **kwargs): "shouldIncludeFields": kwargs.get("should_include_fields", missing), "outputMode": kwargs.get("output_mode", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9355,7 +9355,7 @@ def get_query_work_request(self, namespace_name, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_query_work_request got unknown kwargs: {extra_kwargs!r}") @@ -9365,9 +9365,9 @@ def get_query_work_request(self, namespace_name, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9376,7 +9376,7 @@ def get_query_work_request(self, namespace_name, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9454,7 +9454,7 @@ def get_recall_count(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_recall_count got unknown kwargs: {extra_kwargs!r}") @@ -9463,9 +9463,9 @@ def get_recall_count(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9474,7 +9474,7 @@ def get_recall_count(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9560,7 +9560,7 @@ def get_recalled_data_size(self, namespace_name, **kwargs): "time_data_started", "time_data_ended" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_recalled_data_size got unknown kwargs: {extra_kwargs!r}") @@ -9569,9 +9569,9 @@ def get_recalled_data_size(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9579,14 +9579,14 @@ def get_recalled_data_size(self, namespace_name, **kwargs): "timeDataStarted": kwargs.get("time_data_started", missing), "timeDataEnded": kwargs.get("time_data_ended", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9669,7 +9669,7 @@ def get_rules_summary(self, namespace_name, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rules_summary got unknown kwargs: {extra_kwargs!r}") @@ -9678,23 +9678,23 @@ def get_rules_summary(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9778,7 +9778,7 @@ def get_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduled_task got unknown kwargs: {extra_kwargs!r}") @@ -9788,9 +9788,9 @@ def get_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9799,7 +9799,7 @@ def get_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9883,7 +9883,7 @@ def get_source(self, namespace_name, source_name, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_source got unknown kwargs: {extra_kwargs!r}") @@ -9893,23 +9893,23 @@ def get_source(self, namespace_name, source_name, compartment_id, **kwargs): "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9989,7 +9989,7 @@ def get_source_summary(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_source_summary got unknown kwargs: {extra_kwargs!r}") @@ -9998,9 +9998,9 @@ def get_source_summary(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10009,7 +10009,7 @@ def get_source_summary(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10087,7 +10087,7 @@ def get_storage(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_storage got unknown kwargs: {extra_kwargs!r}") @@ -10096,9 +10096,9 @@ def get_storage(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10107,7 +10107,7 @@ def get_storage(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10186,7 +10186,7 @@ def get_storage_usage(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_storage_usage got unknown kwargs: {extra_kwargs!r}") @@ -10195,9 +10195,9 @@ def get_storage_usage(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10206,7 +10206,7 @@ def get_storage_usage(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10290,7 +10290,7 @@ def get_storage_work_request(self, work_request_id, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_storage_work_request got unknown kwargs: {extra_kwargs!r}") @@ -10300,9 +10300,9 @@ def get_storage_work_request(self, work_request_id, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10311,7 +10311,7 @@ def get_storage_work_request(self, work_request_id, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10392,7 +10392,7 @@ def get_template(self, namespace_name, template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_template got unknown kwargs: {extra_kwargs!r}") @@ -10402,9 +10402,9 @@ def get_template(self, namespace_name, template_id, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10413,7 +10413,7 @@ def get_template(self, namespace_name, template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10491,7 +10491,7 @@ def get_unprocessed_data_bucket(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_unprocessed_data_bucket got unknown kwargs: {extra_kwargs!r}") @@ -10500,9 +10500,9 @@ def get_unprocessed_data_bucket(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10511,7 +10511,7 @@ def get_unprocessed_data_bucket(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10592,7 +10592,7 @@ def get_upload(self, namespace_name, upload_reference, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_upload got unknown kwargs: {extra_kwargs!r}") @@ -10602,9 +10602,9 @@ def get_upload(self, namespace_name, upload_reference, **kwargs): "uploadReference": upload_reference } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10613,7 +10613,7 @@ def get_upload(self, namespace_name, upload_reference, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10696,7 +10696,7 @@ def get_work_request(self, namespace_name, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -10706,9 +10706,9 @@ def get_work_request(self, namespace_name, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10717,7 +10717,7 @@ def get_work_request(self, namespace_name, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10823,7 +10823,7 @@ def import_custom_content(self, namespace_name, import_custom_content_file_body, "opc_request_id", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_custom_content got unknown kwargs: {extra_kwargs!r}") @@ -10832,16 +10832,16 @@ def import_custom_content(self, namespace_name, import_custom_content_file_body, "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isOverwrite": kwargs.get("is_overwrite", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", @@ -10849,7 +10849,7 @@ def import_custom_content(self, namespace_name, import_custom_content_file_body, "opc-request-id": kwargs.get("opc_request_id", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -10994,7 +10994,7 @@ def list_associable_entities(self, namespace_name, source_name, compartment_id, "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_associable_entities got unknown kwargs: {extra_kwargs!r}") @@ -11004,9 +11004,9 @@ def list_associable_entities(self, namespace_name, source_name, compartment_id, "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11040,14 +11040,14 @@ def list_associable_entities(self, namespace_name, source_name, compartment_id, "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11164,7 +11164,7 @@ def list_associated_entities(self, namespace_name, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_associated_entities got unknown kwargs: {extra_kwargs!r}") @@ -11173,9 +11173,9 @@ def list_associated_entities(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11203,14 +11203,14 @@ def list_associated_entities(self, namespace_name, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11313,7 +11313,7 @@ def list_auto_associations(self, namespace_name, source_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_auto_associations got unknown kwargs: {extra_kwargs!r}") @@ -11323,9 +11323,9 @@ def list_auto_associations(self, namespace_name, source_name, **kwargs): "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11349,14 +11349,14 @@ def list_auto_associations(self, namespace_name, source_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11471,7 +11471,7 @@ def list_categories(self, namespace_name, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_categories got unknown kwargs: {extra_kwargs!r}") @@ -11480,9 +11480,9 @@ def list_categories(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11509,14 +11509,14 @@ def list_categories(self, namespace_name, **kwargs): "page": kwargs.get("page", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11615,7 +11615,7 @@ def list_config_work_requests(self, namespace_name, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_config_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -11624,9 +11624,9 @@ def list_config_work_requests(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11651,7 +11651,7 @@ def list_config_work_requests(self, namespace_name, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", @@ -11784,7 +11784,7 @@ def list_effective_properties(self, namespace_name, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_effective_properties got unknown kwargs: {extra_kwargs!r}") @@ -11793,9 +11793,9 @@ def list_effective_properties(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11826,14 +11826,14 @@ def list_effective_properties(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11913,7 +11913,7 @@ def list_encryption_key_info(self, namespace_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_encryption_key_info got unknown kwargs: {extra_kwargs!r}") @@ -11922,9 +11922,9 @@ def list_encryption_key_info(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11933,7 +11933,7 @@ def list_encryption_key_info(self, namespace_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12041,7 +12041,7 @@ def list_entity_associations(self, namespace_name, log_analytics_entity_id, **kw "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_entity_associations got unknown kwargs: {extra_kwargs!r}") @@ -12051,9 +12051,9 @@ def list_entity_associations(self, namespace_name, log_analytics_entity_id, **kw "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12085,14 +12085,14 @@ def list_entity_associations(self, namespace_name, log_analytics_entity_id, **kw "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12218,7 +12218,7 @@ def list_entity_source_associations(self, namespace_name, compartment_id, **kwar "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_entity_source_associations got unknown kwargs: {extra_kwargs!r}") @@ -12227,9 +12227,9 @@ def list_entity_source_associations(self, namespace_name, compartment_id, **kwar "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12266,14 +12266,14 @@ def list_entity_source_associations(self, namespace_name, compartment_id, **kwar "sortBy": kwargs.get("sort_by", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12416,7 +12416,7 @@ def list_fields(self, namespace_name, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_fields got unknown kwargs: {extra_kwargs!r}") @@ -12425,9 +12425,9 @@ def list_fields(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12466,14 +12466,14 @@ def list_fields(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12605,7 +12605,7 @@ def list_ingest_time_rules(self, namespace_name, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_ingest_time_rules got unknown kwargs: {extra_kwargs!r}") @@ -12614,9 +12614,9 @@ def list_ingest_time_rules(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12660,14 +12660,14 @@ def list_ingest_time_rules(self, namespace_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12755,7 +12755,7 @@ def list_label_priorities(self, namespace_name, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_label_priorities got unknown kwargs: {extra_kwargs!r}") @@ -12764,9 +12764,9 @@ def list_label_priorities(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12774,14 +12774,14 @@ def list_label_priorities(self, namespace_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12886,7 +12886,7 @@ def list_label_source_details(self, namespace_name, **kwargs): "label_source_sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_label_source_details got unknown kwargs: {extra_kwargs!r}") @@ -12895,9 +12895,9 @@ def list_label_source_details(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -12922,14 +12922,14 @@ def list_label_source_details(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "labelSourceSortBy": kwargs.get("label_source_sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13062,7 +13062,7 @@ def list_labels(self, namespace_name, **kwargs): "label_sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_labels got unknown kwargs: {extra_kwargs!r}") @@ -13071,9 +13071,9 @@ def list_labels(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13117,14 +13117,14 @@ def list_labels(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "labelSortBy": kwargs.get("label_sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13249,7 +13249,7 @@ def list_log_analytics_em_bridges(self, namespace_name, compartment_id, **kwargs "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_analytics_em_bridges got unknown kwargs: {extra_kwargs!r}") @@ -13258,9 +13258,9 @@ def list_log_analytics_em_bridges(self, namespace_name, compartment_id, **kwargs "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13305,14 +13305,14 @@ def list_log_analytics_em_bridges(self, namespace_name, compartment_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13511,7 +13511,7 @@ def list_log_analytics_entities(self, namespace_name, compartment_id, **kwargs): "freeform_tag_exists", "is_show_associated_sources_count" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_analytics_entities got unknown kwargs: {extra_kwargs!r}") @@ -13520,9 +13520,9 @@ def list_log_analytics_entities(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13587,14 +13587,14 @@ def list_log_analytics_entities(self, namespace_name, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "isShowAssociatedSourcesCount": kwargs.get("is_show_associated_sources_count", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13712,7 +13712,7 @@ def list_log_analytics_entity_topology(self, namespace_name, log_analytics_entit "metadata_equals", "context" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_analytics_entity_topology got unknown kwargs: {extra_kwargs!r}") @@ -13722,9 +13722,9 @@ def list_log_analytics_entity_topology(self, namespace_name, log_analytics_entit "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13758,14 +13758,14 @@ def list_log_analytics_entity_topology(self, namespace_name, log_analytics_entit "metadataEquals": self.base_client.generate_collection_format_param(kwargs.get("metadata_equals", missing), 'multi'), "context": kwargs.get("context", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13887,7 +13887,7 @@ def list_log_analytics_entity_types(self, namespace_name, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_analytics_entity_types got unknown kwargs: {extra_kwargs!r}") @@ -13896,9 +13896,9 @@ def list_log_analytics_entity_types(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13940,14 +13940,14 @@ def list_log_analytics_entity_types(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14053,7 +14053,7 @@ def list_log_analytics_log_groups(self, namespace_name, compartment_id, **kwargs "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_analytics_log_groups got unknown kwargs: {extra_kwargs!r}") @@ -14062,9 +14062,9 @@ def list_log_analytics_log_groups(self, namespace_name, compartment_id, **kwargs "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14090,14 +14090,14 @@ def list_log_analytics_log_groups(self, namespace_name, compartment_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14211,7 +14211,7 @@ def list_log_analytics_object_collection_rules(self, namespace_name, compartment "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_analytics_object_collection_rules got unknown kwargs: {extra_kwargs!r}") @@ -14220,9 +14220,9 @@ def list_log_analytics_object_collection_rules(self, namespace_name, compartment "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14256,14 +14256,14 @@ def list_log_analytics_object_collection_rules(self, namespace_name, compartment "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14361,7 +14361,7 @@ def list_log_sets(self, namespace_name, **kwargs): "sort_order", "log_set_name_contains" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_sets got unknown kwargs: {extra_kwargs!r}") @@ -14370,9 +14370,9 @@ def list_log_sets(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14389,14 +14389,14 @@ def list_log_sets(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "logSetNameContains": self.base_client.generate_collection_format_param(kwargs.get("log_set_name_contains", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14532,7 +14532,7 @@ def list_lookups(self, namespace_name, type, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_lookups got unknown kwargs: {extra_kwargs!r}") @@ -14541,9 +14541,9 @@ def list_lookups(self, namespace_name, type, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14594,14 +14594,14 @@ def list_lookups(self, namespace_name, type, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14701,7 +14701,7 @@ def list_meta_source_types(self, namespace_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_meta_source_types got unknown kwargs: {extra_kwargs!r}") @@ -14710,9 +14710,9 @@ def list_meta_source_types(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14736,14 +14736,14 @@ def list_meta_source_types(self, namespace_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14824,7 +14824,7 @@ def list_namespaces(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -14832,14 +14832,14 @@ def list_namespaces(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14946,7 +14946,7 @@ def list_overlapping_recalls(self, namespace_name, **kwargs): "time_data_started", "time_data_ended" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_overlapping_recalls got unknown kwargs: {extra_kwargs!r}") @@ -14955,9 +14955,9 @@ def list_overlapping_recalls(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -14983,14 +14983,14 @@ def list_overlapping_recalls(self, namespace_name, **kwargs): "timeDataStarted": kwargs.get("time_data_started", missing), "timeDataEnded": kwargs.get("time_data_ended", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15098,7 +15098,7 @@ def list_parser_actions(self, namespace_name, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_parser_actions got unknown kwargs: {extra_kwargs!r}") @@ -15107,9 +15107,9 @@ def list_parser_actions(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15135,14 +15135,14 @@ def list_parser_actions(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15246,7 +15246,7 @@ def list_parser_functions(self, namespace_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_parser_functions got unknown kwargs: {extra_kwargs!r}") @@ -15255,9 +15255,9 @@ def list_parser_functions(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15282,14 +15282,14 @@ def list_parser_functions(self, namespace_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15389,7 +15389,7 @@ def list_parser_meta_plugins(self, namespace_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_parser_meta_plugins got unknown kwargs: {extra_kwargs!r}") @@ -15398,9 +15398,9 @@ def list_parser_meta_plugins(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15424,14 +15424,14 @@ def list_parser_meta_plugins(self, namespace_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15574,7 +15574,7 @@ def list_parsers(self, namespace_name, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_parsers got unknown kwargs: {extra_kwargs!r}") @@ -15583,9 +15583,9 @@ def list_parsers(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15637,14 +15637,14 @@ def list_parsers(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15761,7 +15761,7 @@ def list_properties_metadata(self, namespace_name, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_properties_metadata got unknown kwargs: {extra_kwargs!r}") @@ -15770,9 +15770,9 @@ def list_properties_metadata(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15800,14 +15800,14 @@ def list_properties_metadata(self, namespace_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15916,7 +15916,7 @@ def list_query_work_requests(self, namespace_name, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_query_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -15925,9 +15925,9 @@ def list_query_work_requests(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15960,14 +15960,14 @@ def list_query_work_requests(self, namespace_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16076,7 +16076,7 @@ def list_recalled_data(self, namespace_name, **kwargs): "time_data_started_greater_than_or_equal", "time_data_ended_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recalled_data got unknown kwargs: {extra_kwargs!r}") @@ -16085,9 +16085,9 @@ def list_recalled_data(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16113,14 +16113,14 @@ def list_recalled_data(self, namespace_name, **kwargs): "timeDataStartedGreaterThanOrEqual": kwargs.get("time_data_started_greater_than_or_equal", missing), "timeDataEndedLessThan": kwargs.get("time_data_ended_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16233,7 +16233,7 @@ def list_recalled_info(self, namespace_name, **kwargs): "time_data_ended_less_than", "log_sets" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recalled_info got unknown kwargs: {extra_kwargs!r}") @@ -16242,9 +16242,9 @@ def list_recalled_info(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16271,14 +16271,14 @@ def list_recalled_info(self, namespace_name, **kwargs): "timeDataEndedLessThan": kwargs.get("time_data_ended_less_than", missing), "logSets": self.base_client.generate_collection_format_param(kwargs.get("log_sets", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16397,7 +16397,7 @@ def list_resource_categories(self, namespace_name, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_categories got unknown kwargs: {extra_kwargs!r}") @@ -16406,9 +16406,9 @@ def list_resource_categories(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16436,14 +16436,14 @@ def list_resource_categories(self, namespace_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16569,7 +16569,7 @@ def list_rules(self, namespace_name, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rules got unknown kwargs: {extra_kwargs!r}") @@ -16578,9 +16578,9 @@ def list_rules(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16623,14 +16623,14 @@ def list_rules(self, namespace_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16760,7 +16760,7 @@ def list_scheduled_tasks(self, namespace_name, task_type, compartment_id, **kwar "display_name_contains", "target_service" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_tasks got unknown kwargs: {extra_kwargs!r}") @@ -16769,9 +16769,9 @@ def list_scheduled_tasks(self, namespace_name, task_type, compartment_id, **kwar "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16808,14 +16808,14 @@ def list_scheduled_tasks(self, namespace_name, task_type, compartment_id, **kwar "displayNameContains": kwargs.get("display_name_contains", missing), "targetService": kwargs.get("target_service", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16936,7 +16936,7 @@ def list_source_associations(self, namespace_name, source_name, compartment_id, "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_source_associations got unknown kwargs: {extra_kwargs!r}") @@ -16945,9 +16945,9 @@ def list_source_associations(self, namespace_name, source_name, compartment_id, "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16983,14 +16983,14 @@ def list_source_associations(self, namespace_name, source_name, compartment_id, "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17110,7 +17110,7 @@ def list_source_event_types(self, namespace_name, source_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_source_event_types got unknown kwargs: {extra_kwargs!r}") @@ -17120,9 +17120,9 @@ def list_source_event_types(self, namespace_name, source_name, **kwargs): "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17156,14 +17156,14 @@ def list_source_event_types(self, namespace_name, source_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17266,7 +17266,7 @@ def list_source_extended_field_definitions(self, namespace_name, source_name, ** "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_source_extended_field_definitions got unknown kwargs: {extra_kwargs!r}") @@ -17276,9 +17276,9 @@ def list_source_extended_field_definitions(self, namespace_name, source_name, ** "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17302,14 +17302,14 @@ def list_source_extended_field_definitions(self, namespace_name, source_name, ** "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17409,7 +17409,7 @@ def list_source_label_operators(self, namespace_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_source_label_operators got unknown kwargs: {extra_kwargs!r}") @@ -17418,9 +17418,9 @@ def list_source_label_operators(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17444,14 +17444,14 @@ def list_source_label_operators(self, namespace_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17551,7 +17551,7 @@ def list_source_meta_functions(self, namespace_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_source_meta_functions got unknown kwargs: {extra_kwargs!r}") @@ -17560,9 +17560,9 @@ def list_source_meta_functions(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17586,14 +17586,14 @@ def list_source_meta_functions(self, namespace_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17700,7 +17700,7 @@ def list_source_patterns(self, namespace_name, source_name, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_source_patterns got unknown kwargs: {extra_kwargs!r}") @@ -17710,9 +17710,9 @@ def list_source_patterns(self, namespace_name, source_name, **kwargs): "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17737,14 +17737,14 @@ def list_source_patterns(self, namespace_name, source_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17895,7 +17895,7 @@ def list_sources(self, namespace_name, compartment_id, **kwargs): "is_simplified", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sources got unknown kwargs: {extra_kwargs!r}") @@ -17904,9 +17904,9 @@ def list_sources(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17947,14 +17947,14 @@ def list_sources(self, namespace_name, compartment_id, **kwargs): "isSimplified": kwargs.get("is_simplified", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18062,7 +18062,7 @@ def list_storage_work_request_errors(self, compartment_id, work_request_id, name "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_storage_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -18072,9 +18072,9 @@ def list_storage_work_request_errors(self, compartment_id, work_request_id, name "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18099,14 +18099,14 @@ def list_storage_work_request_errors(self, compartment_id, work_request_id, name "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18238,7 +18238,7 @@ def list_storage_work_requests(self, compartment_id, namespace_name, **kwargs): "policy_name", "policy_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_storage_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -18247,9 +18247,9 @@ def list_storage_work_requests(self, compartment_id, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18294,14 +18294,14 @@ def list_storage_work_requests(self, compartment_id, namespace_name, **kwargs): "policyName": kwargs.get("policy_name", missing), "policyId": kwargs.get("policy_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18389,7 +18389,7 @@ def list_supported_char_encodings(self, namespace_name, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_char_encodings got unknown kwargs: {extra_kwargs!r}") @@ -18398,9 +18398,9 @@ def list_supported_char_encodings(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18408,14 +18408,14 @@ def list_supported_char_encodings(self, namespace_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18503,7 +18503,7 @@ def list_supported_timezones(self, namespace_name, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_timezones got unknown kwargs: {extra_kwargs!r}") @@ -18512,9 +18512,9 @@ def list_supported_timezones(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18522,14 +18522,14 @@ def list_supported_timezones(self, namespace_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18657,7 +18657,7 @@ def list_templates(self, namespace_name, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_templates got unknown kwargs: {extra_kwargs!r}") @@ -18666,9 +18666,9 @@ def list_templates(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18705,14 +18705,14 @@ def list_templates(self, namespace_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18826,7 +18826,7 @@ def list_upload_files(self, namespace_name, upload_reference, **kwargs): "status", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_upload_files got unknown kwargs: {extra_kwargs!r}") @@ -18836,9 +18836,9 @@ def list_upload_files(self, namespace_name, upload_reference, **kwargs): "uploadReference": upload_reference } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18872,14 +18872,14 @@ def list_upload_files(self, namespace_name, upload_reference, **kwargs): "searchStr": kwargs.get("search_str", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18970,7 +18970,7 @@ def list_upload_warnings(self, namespace_name, upload_reference, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_upload_warnings got unknown kwargs: {extra_kwargs!r}") @@ -18980,9 +18980,9 @@ def list_upload_warnings(self, namespace_name, upload_reference, **kwargs): "uploadReference": upload_reference } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18990,14 +18990,14 @@ def list_upload_warnings(self, namespace_name, upload_reference, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19114,7 +19114,7 @@ def list_uploads(self, namespace_name, **kwargs): "opc_request_id", "warnings_filter" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_uploads got unknown kwargs: {extra_kwargs!r}") @@ -19123,9 +19123,9 @@ def list_uploads(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19159,14 +19159,14 @@ def list_uploads(self, namespace_name, **kwargs): "sortBy": kwargs.get("sort_by", missing), "warningsFilter": kwargs.get("warnings_filter", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19319,7 +19319,7 @@ def list_warnings(self, namespace_name, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_warnings got unknown kwargs: {extra_kwargs!r}") @@ -19328,9 +19328,9 @@ def list_warnings(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19372,14 +19372,14 @@ def list_warnings(self, namespace_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19472,7 +19472,7 @@ def list_work_request_errors(self, namespace_name, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -19482,9 +19482,9 @@ def list_work_request_errors(self, namespace_name, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19492,14 +19492,14 @@ def list_work_request_errors(self, namespace_name, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19590,7 +19590,7 @@ def list_work_request_logs(self, namespace_name, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -19600,9 +19600,9 @@ def list_work_request_logs(self, namespace_name, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19610,14 +19610,14 @@ def list_work_request_logs(self, namespace_name, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19706,7 +19706,7 @@ def list_work_requests(self, namespace_name, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -19715,9 +19715,9 @@ def list_work_requests(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19726,14 +19726,14 @@ def list_work_requests(self, namespace_name, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19819,7 +19819,7 @@ def offboard_namespace(self, namespace_name, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"offboard_namespace got unknown kwargs: {extra_kwargs!r}") @@ -19828,9 +19828,9 @@ def offboard_namespace(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19840,7 +19840,7 @@ def offboard_namespace(self, namespace_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19923,7 +19923,7 @@ def onboard_namespace(self, namespace_name, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"onboard_namespace got unknown kwargs: {extra_kwargs!r}") @@ -19932,9 +19932,9 @@ def onboard_namespace(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19944,7 +19944,7 @@ def onboard_namespace(self, namespace_name, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20022,7 +20022,7 @@ def parse_query(self, namespace_name, parse_query_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"parse_query got unknown kwargs: {extra_kwargs!r}") @@ -20031,9 +20031,9 @@ def parse_query(self, namespace_name, parse_query_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20042,7 +20042,7 @@ def parse_query(self, namespace_name, parse_query_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -20138,7 +20138,7 @@ def pause_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"pause_scheduled_task got unknown kwargs: {extra_kwargs!r}") @@ -20148,9 +20148,9 @@ def pause_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20160,7 +20160,7 @@ def pause_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20258,7 +20258,7 @@ def purge_storage_data(self, namespace_name, purge_storage_data_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"purge_storage_data got unknown kwargs: {extra_kwargs!r}") @@ -20267,9 +20267,9 @@ def purge_storage_data(self, namespace_name, purge_storage_data_details, **kwarg "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20280,7 +20280,7 @@ def purge_storage_data(self, namespace_name, purge_storage_data_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -20374,7 +20374,7 @@ def put_query_work_request_background(self, namespace_name, work_request_id, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_query_work_request_background got unknown kwargs: {extra_kwargs!r}") @@ -20384,9 +20384,9 @@ def put_query_work_request_background(self, namespace_name, work_request_id, **k "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20396,7 +20396,7 @@ def put_query_work_request_background(self, namespace_name, work_request_id, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20483,7 +20483,7 @@ def query(self, namespace_name, query_details, **kwargs): "opc_request_id", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"query got unknown kwargs: {extra_kwargs!r}") @@ -20492,9 +20492,9 @@ def query(self, namespace_name, query_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20502,14 +20502,14 @@ def query(self, namespace_name, query_details, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -20614,7 +20614,7 @@ def recall_archived_data(self, namespace_name, recall_archived_data_details, **k "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"recall_archived_data got unknown kwargs: {extra_kwargs!r}") @@ -20623,9 +20623,9 @@ def recall_archived_data(self, namespace_name, recall_archived_data_details, **k "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20636,7 +20636,7 @@ def recall_archived_data(self, namespace_name, recall_archived_data_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -20772,7 +20772,7 @@ def register_lookup(self, namespace_name, type, register_lookup_content_file_bod "expect", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"register_lookup got unknown kwargs: {extra_kwargs!r}") @@ -20781,9 +20781,9 @@ def register_lookup(self, namespace_name, type, register_lookup_content_file_bod "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20801,7 +20801,7 @@ def register_lookup(self, namespace_name, type, register_lookup_content_file_bod "type": type, "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json;charset=UTF-8", @@ -20809,7 +20809,7 @@ def register_lookup(self, namespace_name, type, register_lookup_content_file_bod "opc-request-id": kwargs.get("opc_request_id", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -20936,7 +20936,7 @@ def release_recalled_data(self, namespace_name, release_recalled_data_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"release_recalled_data got unknown kwargs: {extra_kwargs!r}") @@ -20945,9 +20945,9 @@ def release_recalled_data(self, namespace_name, release_recalled_data_details, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -20958,7 +20958,7 @@ def release_recalled_data(self, namespace_name, release_recalled_data_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -21061,7 +21061,7 @@ def remove_entity_associations(self, namespace_name, log_analytics_entity_id, re "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_entity_associations got unknown kwargs: {extra_kwargs!r}") @@ -21071,9 +21071,9 @@ def remove_entity_associations(self, namespace_name, log_analytics_entity_id, re "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21084,7 +21084,7 @@ def remove_entity_associations(self, namespace_name, log_analytics_entity_id, re "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -21178,7 +21178,7 @@ def remove_preferences(self, namespace_name, remove_preferences_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_preferences got unknown kwargs: {extra_kwargs!r}") @@ -21187,9 +21187,9 @@ def remove_preferences(self, namespace_name, remove_preferences_details, **kwarg "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21199,7 +21199,7 @@ def remove_preferences(self, namespace_name, remove_preferences_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -21285,7 +21285,7 @@ def remove_resource_categories(self, namespace_name, remove_resource_categories_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_resource_categories got unknown kwargs: {extra_kwargs!r}") @@ -21294,9 +21294,9 @@ def remove_resource_categories(self, namespace_name, remove_resource_categories_ "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21305,7 +21305,7 @@ def remove_resource_categories(self, namespace_name, remove_resource_categories_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -21401,7 +21401,7 @@ def remove_source_event_types(self, namespace_name, source_name, remove_event_ty "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_source_event_types got unknown kwargs: {extra_kwargs!r}") @@ -21411,9 +21411,9 @@ def remove_source_event_types(self, namespace_name, source_name, remove_event_ty "sourceName": source_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21423,7 +21423,7 @@ def remove_source_event_types(self, namespace_name, source_name, remove_event_ty "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -21518,7 +21518,7 @@ def resume_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_scheduled_task got unknown kwargs: {extra_kwargs!r}") @@ -21528,9 +21528,9 @@ def resume_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21540,7 +21540,7 @@ def resume_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21642,7 +21642,7 @@ def run(self, namespace_name, scheduled_task_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"run got unknown kwargs: {extra_kwargs!r}") @@ -21652,9 +21652,9 @@ def run(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21662,7 +21662,7 @@ def run(self, namespace_name, scheduled_task_id, **kwargs): "timeStart": kwargs.get("time_start", missing), "timeEnd": kwargs.get("time_end", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -21670,7 +21670,7 @@ def run(self, namespace_name, scheduled_task_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21757,7 +21757,7 @@ def set_unprocessed_data_bucket(self, namespace_name, bucket_name, **kwargs): "is_enabled", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_unprocessed_data_bucket got unknown kwargs: {extra_kwargs!r}") @@ -21766,9 +21766,9 @@ def set_unprocessed_data_bucket(self, namespace_name, bucket_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21776,14 +21776,14 @@ def set_unprocessed_data_bucket(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name, "isEnabled": kwargs.get("is_enabled", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21864,7 +21864,7 @@ def suggest(self, namespace_name, suggest_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"suggest got unknown kwargs: {extra_kwargs!r}") @@ -21873,9 +21873,9 @@ def suggest(self, namespace_name, suggest_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -21884,7 +21884,7 @@ def suggest(self, namespace_name, suggest_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -21982,7 +21982,7 @@ def suppress_warning(self, namespace_name, warning_reference_details, compartmen "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"suppress_warning got unknown kwargs: {extra_kwargs!r}") @@ -21991,16 +21991,16 @@ def suppress_warning(self, namespace_name, warning_reference_details, compartmen "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22008,7 +22008,7 @@ def suppress_warning(self, namespace_name, warning_reference_details, compartmen "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22115,7 +22115,7 @@ def test_parser(self, namespace_name, test_parser_payload_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_parser got unknown kwargs: {extra_kwargs!r}") @@ -22124,9 +22124,9 @@ def test_parser(self, namespace_name, test_parser_payload_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22141,7 +22141,7 @@ def test_parser(self, namespace_name, test_parser_payload_details, **kwargs): "scope": kwargs.get("scope", missing), "reqOriginModule": kwargs.get("req_origin_module", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22149,7 +22149,7 @@ def test_parser(self, namespace_name, test_parser_payload_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22250,7 +22250,7 @@ def unsuppress_warning(self, namespace_name, warning_reference_details, compartm "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unsuppress_warning got unknown kwargs: {extra_kwargs!r}") @@ -22259,16 +22259,16 @@ def unsuppress_warning(self, namespace_name, warning_reference_details, compartm "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -22276,7 +22276,7 @@ def unsuppress_warning(self, namespace_name, warning_reference_details, compartm "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22375,7 +22375,7 @@ def update_ingest_time_rule(self, namespace_name, ingest_time_rule_id, update_in "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_ingest_time_rule got unknown kwargs: {extra_kwargs!r}") @@ -22385,9 +22385,9 @@ def update_ingest_time_rule(self, namespace_name, ingest_time_rule_id, update_in "ingestTimeRuleId": ingest_time_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22397,7 +22397,7 @@ def update_ingest_time_rule(self, namespace_name, ingest_time_rule_id, update_in "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22495,7 +22495,7 @@ def update_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_analytics_em_bridge got unknown kwargs: {extra_kwargs!r}") @@ -22505,9 +22505,9 @@ def update_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge "logAnalyticsEmBridgeId": log_analytics_em_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22517,7 +22517,7 @@ def update_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22613,7 +22613,7 @@ def update_log_analytics_entity(self, namespace_name, log_analytics_entity_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_analytics_entity got unknown kwargs: {extra_kwargs!r}") @@ -22623,9 +22623,9 @@ def update_log_analytics_entity(self, namespace_name, log_analytics_entity_id, u "logAnalyticsEntityId": log_analytics_entity_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22635,7 +22635,7 @@ def update_log_analytics_entity(self, namespace_name, log_analytics_entity_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22731,7 +22731,7 @@ def update_log_analytics_entity_type(self, namespace_name, update_log_analytics_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_analytics_entity_type got unknown kwargs: {extra_kwargs!r}") @@ -22741,9 +22741,9 @@ def update_log_analytics_entity_type(self, namespace_name, update_log_analytics_ "entityTypeName": entity_type_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22753,7 +22753,7 @@ def update_log_analytics_entity_type(self, namespace_name, update_log_analytics_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22847,7 +22847,7 @@ def update_log_analytics_log_group(self, namespace_name, log_analytics_log_group "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_analytics_log_group got unknown kwargs: {extra_kwargs!r}") @@ -22857,9 +22857,9 @@ def update_log_analytics_log_group(self, namespace_name, log_analytics_log_group "logAnalyticsLogGroupId": log_analytics_log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22869,7 +22869,7 @@ def update_log_analytics_log_group(self, namespace_name, log_analytics_log_group "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -22969,7 +22969,7 @@ def update_log_analytics_object_collection_rule(self, namespace_name, log_analyt "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_analytics_object_collection_rule got unknown kwargs: {extra_kwargs!r}") @@ -22979,9 +22979,9 @@ def update_log_analytics_object_collection_rule(self, namespace_name, log_analyt "logAnalyticsObjectCollectionRuleId": log_analytics_object_collection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -22991,7 +22991,7 @@ def update_log_analytics_object_collection_rule(self, namespace_name, log_analyt "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23095,7 +23095,7 @@ def update_lookup(self, namespace_name, lookup_name, update_lookup_metadata_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_lookup got unknown kwargs: {extra_kwargs!r}") @@ -23105,9 +23105,9 @@ def update_lookup(self, namespace_name, lookup_name, update_lookup_metadata_deta "lookupName": lookup_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23118,7 +23118,7 @@ def update_lookup(self, namespace_name, lookup_name, update_lookup_metadata_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23247,7 +23247,7 @@ def update_lookup_data(self, namespace_name, lookup_name, update_lookup_file_bod "if_match", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_lookup_data got unknown kwargs: {extra_kwargs!r}") @@ -23257,9 +23257,9 @@ def update_lookup_data(self, namespace_name, lookup_name, update_lookup_file_bod "lookupName": lookup_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23267,7 +23267,7 @@ def update_lookup_data(self, namespace_name, lookup_name, update_lookup_file_bod "isForce": kwargs.get("is_force", missing), "charEncoding": kwargs.get("char_encoding", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -23276,7 +23276,7 @@ def update_lookup_data(self, namespace_name, lookup_name, update_lookup_file_bod "if-match": kwargs.get("if_match", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23393,7 +23393,7 @@ def update_preferences(self, namespace_name, update_preferences_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_preferences got unknown kwargs: {extra_kwargs!r}") @@ -23402,9 +23402,9 @@ def update_preferences(self, namespace_name, update_preferences_details, **kwarg "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23414,7 +23414,7 @@ def update_preferences(self, namespace_name, update_preferences_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23500,7 +23500,7 @@ def update_resource_categories(self, namespace_name, update_resource_categories_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_resource_categories got unknown kwargs: {extra_kwargs!r}") @@ -23509,9 +23509,9 @@ def update_resource_categories(self, namespace_name, update_resource_categories_ "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23520,7 +23520,7 @@ def update_resource_categories(self, namespace_name, update_resource_categories_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23618,7 +23618,7 @@ def update_scheduled_task(self, namespace_name, scheduled_task_id, update_schedu "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduled_task got unknown kwargs: {extra_kwargs!r}") @@ -23628,9 +23628,9 @@ def update_scheduled_task(self, namespace_name, scheduled_task_id, update_schedu "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23640,7 +23640,7 @@ def update_scheduled_task(self, namespace_name, scheduled_task_id, update_schedu "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23735,7 +23735,7 @@ def update_storage(self, namespace_name, update_storage_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_storage got unknown kwargs: {extra_kwargs!r}") @@ -23744,9 +23744,9 @@ def update_storage(self, namespace_name, update_storage_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23756,7 +23756,7 @@ def update_storage(self, namespace_name, update_storage_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -23889,7 +23889,7 @@ def upload_discovery_data(self, namespace_name, upload_discovery_data_details, * "opc_retry_token", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_discovery_data got unknown kwargs: {extra_kwargs!r}") @@ -23898,9 +23898,9 @@ def upload_discovery_data(self, namespace_name, upload_discovery_data_details, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -23923,7 +23923,7 @@ def upload_discovery_data(self, namespace_name, upload_discovery_data_details, * "logGroupId": kwargs.get("log_group_id", missing), "payloadType": kwargs.get("payload_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -23933,7 +23933,7 @@ def upload_discovery_data(self, namespace_name, upload_discovery_data_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -24091,7 +24091,7 @@ def upload_log_events_file(self, namespace_name, log_group_id, upload_log_events "opc_meta_properties", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_log_events_file got unknown kwargs: {extra_kwargs!r}") @@ -24100,9 +24100,9 @@ def upload_log_events_file(self, namespace_name, log_group_id, upload_log_events "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24118,7 +24118,7 @@ def upload_log_events_file(self, namespace_name, log_group_id, upload_log_events "logSet": kwargs.get("log_set", missing), "payloadType": kwargs.get("payload_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24128,7 +24128,7 @@ def upload_log_events_file(self, namespace_name, log_group_id, upload_log_events "opc-meta-properties": kwargs.get("opc_meta_properties", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -24315,7 +24315,7 @@ def upload_log_file(self, namespace_name, log_source_name, filename, opc_meta_lo "log_set", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_log_file got unknown kwargs: {extra_kwargs!r}") @@ -24324,9 +24324,9 @@ def upload_log_file(self, namespace_name, log_source_name, filename, opc_meta_lo "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24342,7 +24342,7 @@ def upload_log_file(self, namespace_name, log_source_name, filename, opc_meta_lo "filename": filename, "logSet": kwargs.get("log_set", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24353,7 +24353,7 @@ def upload_log_file(self, namespace_name, log_source_name, filename, opc_meta_lo "opc-retry-token": kwargs.get("opc_retry_token", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -24504,7 +24504,7 @@ def upload_otlp_logs(self, namespace_name, opc_meta_loggrpid, upload_otlp_logs_d "opc_meta_properties", "expect" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_otlp_logs got unknown kwargs: {extra_kwargs!r}") @@ -24513,9 +24513,9 @@ def upload_otlp_logs(self, namespace_name, opc_meta_loggrpid, upload_otlp_logs_d "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24529,7 +24529,7 @@ def upload_otlp_logs(self, namespace_name, opc_meta_loggrpid, upload_otlp_logs_d "opc-meta-properties": kwargs.get("opc_meta_properties", missing), "expect": kwargs.get("expect", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -24650,7 +24650,7 @@ def upsert_associations(self, namespace_name, upsert_log_analytics_association_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upsert_associations got unknown kwargs: {extra_kwargs!r}") @@ -24659,16 +24659,16 @@ def upsert_associations(self, namespace_name, upsert_log_analytics_association_d "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isFromRepublish": kwargs.get("is_from_republish", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -24676,7 +24676,7 @@ def upsert_associations(self, namespace_name, upsert_log_analytics_association_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -24780,7 +24780,7 @@ def upsert_field(self, namespace_name, upsert_log_analytics_field_details, **kwa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upsert_field got unknown kwargs: {extra_kwargs!r}") @@ -24789,9 +24789,9 @@ def upsert_field(self, namespace_name, upsert_log_analytics_field_details, **kwa "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24802,7 +24802,7 @@ def upsert_field(self, namespace_name, upsert_log_analytics_field_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -24906,7 +24906,7 @@ def upsert_label(self, namespace_name, upsert_log_analytics_label_details, **kwa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upsert_label got unknown kwargs: {extra_kwargs!r}") @@ -24915,9 +24915,9 @@ def upsert_label(self, namespace_name, upsert_log_analytics_label_details, **kwa "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -24928,7 +24928,7 @@ def upsert_label(self, namespace_name, upsert_log_analytics_label_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25032,7 +25032,7 @@ def upsert_parser(self, namespace_name, upsert_log_analytics_parser_details, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upsert_parser got unknown kwargs: {extra_kwargs!r}") @@ -25041,9 +25041,9 @@ def upsert_parser(self, namespace_name, upsert_log_analytics_parser_details, **k "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25054,7 +25054,7 @@ def upsert_parser(self, namespace_name, upsert_log_analytics_parser_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25172,7 +25172,7 @@ def upsert_source(self, namespace_name, upsert_log_analytics_source_details, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upsert_source got unknown kwargs: {extra_kwargs!r}") @@ -25181,9 +25181,9 @@ def upsert_source(self, namespace_name, upsert_log_analytics_source_details, **k "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25192,7 +25192,7 @@ def upsert_source(self, namespace_name, upsert_log_analytics_source_details, **k "isIncremental": kwargs.get("is_incremental", missing), "isIgnoreWarning": kwargs.get("is_ignore_warning", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25201,7 +25201,7 @@ def upsert_source(self, namespace_name, upsert_log_analytics_source_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25319,7 +25319,7 @@ def validate_association_parameters(self, namespace_name, upsert_log_analytics_a "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_association_parameters got unknown kwargs: {extra_kwargs!r}") @@ -25328,9 +25328,9 @@ def validate_association_parameters(self, namespace_name, upsert_log_analytics_a "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25354,7 +25354,7 @@ def validate_association_parameters(self, namespace_name, upsert_log_analytics_a "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25362,7 +25362,7 @@ def validate_association_parameters(self, namespace_name, upsert_log_analytics_a "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25452,7 +25452,7 @@ def validate_endpoint(self, namespace_name, validate_endpoint_details, **kwargs) "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -25461,9 +25461,9 @@ def validate_endpoint(self, namespace_name, validate_endpoint_details, **kwargs) "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25472,7 +25472,7 @@ def validate_endpoint(self, namespace_name, validate_endpoint_details, **kwargs) "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25562,7 +25562,7 @@ def validate_file(self, namespace_name, object_location, filename, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_file got unknown kwargs: {extra_kwargs!r}") @@ -25571,9 +25571,9 @@ def validate_file(self, namespace_name, object_location, filename, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25581,14 +25581,14 @@ def validate_file(self, namespace_name, object_location, filename, **kwargs): "objectLocation": object_location, "filename": filename } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25675,7 +25675,7 @@ def validate_label_condition(self, namespace_name, validate_label_condition_deta "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_label_condition got unknown kwargs: {extra_kwargs!r}") @@ -25684,9 +25684,9 @@ def validate_label_condition(self, namespace_name, validate_label_condition_deta "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25695,7 +25695,7 @@ def validate_label_condition(self, namespace_name, validate_label_condition_deta "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25804,7 +25804,7 @@ def validate_source(self, namespace_name, upsert_log_analytics_source_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_source got unknown kwargs: {extra_kwargs!r}") @@ -25813,9 +25813,9 @@ def validate_source(self, namespace_name, upsert_log_analytics_source_details, * "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25824,7 +25824,7 @@ def validate_source(self, namespace_name, upsert_log_analytics_source_details, * "isIncremental": kwargs.get("is_incremental", missing), "isIgnoreWarning": kwargs.get("is_ignore_warning", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -25832,7 +25832,7 @@ def validate_source(self, namespace_name, upsert_log_analytics_source_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -25930,7 +25930,7 @@ def validate_source_extended_field_details(self, namespace_name, log_analytics_s "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_source_extended_field_details got unknown kwargs: {extra_kwargs!r}") @@ -25939,9 +25939,9 @@ def validate_source_extended_field_details(self, namespace_name, log_analytics_s "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -25951,7 +25951,7 @@ def validate_source_extended_field_details(self, namespace_name, log_analytics_s "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -26045,7 +26045,7 @@ def validate_source_mapping(self, namespace_name, object_location, filename, log "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_source_mapping got unknown kwargs: {extra_kwargs!r}") @@ -26054,9 +26054,9 @@ def validate_source_mapping(self, namespace_name, object_location, filename, log "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26065,14 +26065,14 @@ def validate_source_mapping(self, namespace_name, object_location, filename, log "filename": filename, "logSourceName": log_source_name } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26172,7 +26172,7 @@ def verify(self, namespace_name, scheduled_task_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"verify got unknown kwargs: {extra_kwargs!r}") @@ -26182,16 +26182,16 @@ def verify(self, namespace_name, scheduled_task_id, **kwargs): "scheduledTaskId": scheduled_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "shouldIncludeResults": kwargs.get("should_include_results", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -26199,7 +26199,7 @@ def verify(self, namespace_name, scheduled_task_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/logging/logging_management_client.py b/src/oci/logging/logging_management_client.py index 96c1271c7..d66f2f0a1 100644 --- a/src/oci/logging/logging_management_client.py +++ b/src/oci/logging/logging_management_client.py @@ -178,7 +178,7 @@ def change_log_group_compartment(self, log_group_id, change_log_group_compartmen "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -187,9 +187,9 @@ def change_log_group_compartment(self, log_group_id, change_log_group_compartmen "logGroupId": log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -199,7 +199,7 @@ def change_log_group_compartment(self, log_group_id, change_log_group_compartmen "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -290,7 +290,7 @@ def change_log_log_group(self, log_group_id, log_id, change_log_log_group_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_log_group got unknown kwargs: {extra_kwargs!r}") @@ -300,9 +300,9 @@ def change_log_log_group(self, log_group_id, log_id, change_log_log_group_detail "logId": log_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -312,7 +312,7 @@ def change_log_log_group(self, log_group_id, log_id, change_log_log_group_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -412,7 +412,7 @@ def change_log_saved_search_compartment(self, log_saved_search_id, change_log_sa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_log_saved_search_compartment got unknown kwargs: {extra_kwargs!r}") @@ -421,9 +421,9 @@ def change_log_saved_search_compartment(self, log_saved_search_id, change_log_sa "logSavedSearchId": log_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -434,7 +434,7 @@ def change_log_saved_search_compartment(self, log_saved_search_id, change_log_sa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -535,7 +535,7 @@ def change_unified_agent_configuration_compartment(self, unified_agent_configura "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_unified_agent_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -544,9 +544,9 @@ def change_unified_agent_configuration_compartment(self, unified_agent_configura "unifiedAgentConfigurationId": unified_agent_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -557,7 +557,7 @@ def change_unified_agent_configuration_compartment(self, unified_agent_configura "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -648,7 +648,7 @@ def create_log(self, log_group_id, create_log_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log got unknown kwargs: {extra_kwargs!r}") @@ -657,9 +657,9 @@ def create_log(self, log_group_id, create_log_details, **kwargs): "logGroupId": log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -669,7 +669,7 @@ def create_log(self, log_group_id, create_log_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -757,7 +757,7 @@ def create_log_group(self, create_log_group_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_group got unknown kwargs: {extra_kwargs!r}") @@ -768,7 +768,7 @@ def create_log_group(self, create_log_group_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -853,7 +853,7 @@ def create_log_saved_search(self, create_log_saved_search_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_log_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -864,7 +864,7 @@ def create_log_saved_search(self, create_log_saved_search_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -951,7 +951,7 @@ def create_unified_agent_configuration(self, create_unified_agent_configuration_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_unified_agent_configuration got unknown kwargs: {extra_kwargs!r}") @@ -962,7 +962,7 @@ def create_unified_agent_configuration(self, create_unified_agent_configuration_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1049,7 +1049,7 @@ def delete_log(self, log_group_id, log_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log got unknown kwargs: {extra_kwargs!r}") @@ -1059,9 +1059,9 @@ def delete_log(self, log_group_id, log_id, **kwargs): "logId": log_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1071,7 +1071,7 @@ def delete_log(self, log_group_id, log_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1154,7 +1154,7 @@ def delete_log_group(self, log_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_group got unknown kwargs: {extra_kwargs!r}") @@ -1163,9 +1163,9 @@ def delete_log_group(self, log_group_id, **kwargs): "logGroupId": log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1175,7 +1175,7 @@ def delete_log_group(self, log_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1258,7 +1258,7 @@ def delete_log_saved_search(self, log_saved_search_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_log_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -1267,9 +1267,9 @@ def delete_log_saved_search(self, log_saved_search_id, **kwargs): "logSavedSearchId": log_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1279,7 +1279,7 @@ def delete_log_saved_search(self, log_saved_search_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1362,7 +1362,7 @@ def delete_unified_agent_configuration(self, unified_agent_configuration_id, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_unified_agent_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1371,9 +1371,9 @@ def delete_unified_agent_configuration(self, unified_agent_configuration_id, **k "unifiedAgentConfigurationId": unified_agent_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1383,7 +1383,7 @@ def delete_unified_agent_configuration(self, unified_agent_configuration_id, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1466,7 +1466,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1475,9 +1475,9 @@ def delete_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1487,7 +1487,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1565,7 +1565,7 @@ def get_log(self, log_group_id, log_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log got unknown kwargs: {extra_kwargs!r}") @@ -1575,9 +1575,9 @@ def get_log(self, log_group_id, log_id, **kwargs): "logId": log_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1586,7 +1586,7 @@ def get_log(self, log_group_id, log_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1663,7 +1663,7 @@ def get_log_group(self, log_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_group got unknown kwargs: {extra_kwargs!r}") @@ -1672,9 +1672,9 @@ def get_log_group(self, log_group_id, **kwargs): "logGroupId": log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1683,7 +1683,7 @@ def get_log_group(self, log_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1760,7 +1760,7 @@ def get_log_saved_search(self, log_saved_search_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_log_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -1769,9 +1769,9 @@ def get_log_saved_search(self, log_saved_search_id, **kwargs): "logSavedSearchId": log_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1780,7 +1780,7 @@ def get_log_saved_search(self, log_saved_search_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1857,7 +1857,7 @@ def get_unified_agent_configuration(self, unified_agent_configuration_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_unified_agent_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1866,9 +1866,9 @@ def get_unified_agent_configuration(self, unified_agent_configuration_id, **kwar "unifiedAgentConfigurationId": unified_agent_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1877,7 +1877,7 @@ def get_unified_agent_configuration(self, unified_agent_configuration_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1954,7 +1954,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1963,9 +1963,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1974,7 +1974,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2084,7 +2084,7 @@ def list_log_groups(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_groups got unknown kwargs: {extra_kwargs!r}") @@ -2112,14 +2112,14 @@ def list_log_groups(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2229,7 +2229,7 @@ def list_log_saved_searches(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_log_saved_searches got unknown kwargs: {extra_kwargs!r}") @@ -2257,14 +2257,14 @@ def list_log_saved_searches(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2389,7 +2389,7 @@ def list_logs(self, log_group_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_logs got unknown kwargs: {extra_kwargs!r}") @@ -2398,9 +2398,9 @@ def list_logs(self, log_group_id, **kwargs): "logGroupId": log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2443,14 +2443,14 @@ def list_logs(self, log_group_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2526,7 +2526,7 @@ def list_services(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_services got unknown kwargs: {extra_kwargs!r}") @@ -2536,7 +2536,7 @@ def list_services(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2658,7 +2658,7 @@ def list_unified_agent_configurations(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_unified_agent_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2696,14 +2696,14 @@ def list_unified_agent_configurations(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2791,7 +2791,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2800,9 +2800,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2810,14 +2810,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2907,7 +2907,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2916,9 +2916,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2926,14 +2926,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3048,7 +3048,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3083,14 +3083,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3182,7 +3182,7 @@ def update_log(self, log_group_id, log_id, update_log_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log got unknown kwargs: {extra_kwargs!r}") @@ -3192,9 +3192,9 @@ def update_log(self, log_group_id, log_id, update_log_details, **kwargs): "logId": log_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3204,7 +3204,7 @@ def update_log(self, log_group_id, log_id, update_log_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3293,7 +3293,7 @@ def update_log_group(self, log_group_id, update_log_group_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_group got unknown kwargs: {extra_kwargs!r}") @@ -3302,9 +3302,9 @@ def update_log_group(self, log_group_id, update_log_group_details, **kwargs): "logGroupId": log_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3314,7 +3314,7 @@ def update_log_group(self, log_group_id, update_log_group_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3402,7 +3402,7 @@ def update_log_saved_search(self, log_saved_search_id, update_log_saved_search_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_log_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -3411,9 +3411,9 @@ def update_log_saved_search(self, log_saved_search_id, update_log_saved_search_d "logSavedSearchId": log_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3423,7 +3423,7 @@ def update_log_saved_search(self, log_saved_search_id, update_log_saved_search_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3514,7 +3514,7 @@ def update_unified_agent_configuration(self, unified_agent_configuration_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_unified_agent_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3523,9 +3523,9 @@ def update_unified_agent_configuration(self, unified_agent_configuration_id, upd "unifiedAgentConfigurationId": unified_agent_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3535,7 +3535,7 @@ def update_unified_agent_configuration(self, unified_agent_configuration_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/loggingingestion/logging_client.py b/src/oci/loggingingestion/logging_client.py index 00aa7def6..d3e8dea90 100644 --- a/src/oci/loggingingestion/logging_client.py +++ b/src/oci/loggingingestion/logging_client.py @@ -174,7 +174,7 @@ def put_logs(self, log_id, put_logs_details, **kwargs): "opc_agent_version", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_logs got unknown kwargs: {extra_kwargs!r}") @@ -183,9 +183,9 @@ def put_logs(self, log_id, put_logs_details, **kwargs): "logId": log_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def put_logs(self, log_id, put_logs_details, **kwargs): "opc-agent-version": kwargs.get("opc_agent_version", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/loggingsearch/log_search_client.py b/src/oci/loggingsearch/log_search_client.py index 16b11c4c0..128d7c233 100644 --- a/src/oci/loggingsearch/log_search_client.py +++ b/src/oci/loggingsearch/log_search_client.py @@ -176,7 +176,7 @@ def search_logs(self, search_logs_details, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_logs got unknown kwargs: {extra_kwargs!r}") @@ -185,14 +185,14 @@ def search_logs(self, search_logs_details, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/lustre_file_storage/lustre_file_storage_client.py b/src/oci/lustre_file_storage/lustre_file_storage_client.py index a417a681d..ae3b7af5c 100644 --- a/src/oci/lustre_file_storage/lustre_file_storage_client.py +++ b/src/oci/lustre_file_storage/lustre_file_storage_client.py @@ -172,7 +172,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def change_lustre_file_system_compartment(self, lustre_file_system_id, change_lu "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_lustre_file_system_compartment got unknown kwargs: {extra_kwargs!r}") @@ -296,9 +296,9 @@ def change_lustre_file_system_compartment(self, lustre_file_system_id, change_lu "lustreFileSystemId": lustre_file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def change_lustre_file_system_compartment(self, lustre_file_system_id, change_lu "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -412,7 +412,7 @@ def change_object_storage_link_compartment(self, object_storage_link_id, change_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_object_storage_link_compartment got unknown kwargs: {extra_kwargs!r}") @@ -421,9 +421,9 @@ def change_object_storage_link_compartment(self, object_storage_link_id, change_ "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -434,7 +434,7 @@ def change_object_storage_link_compartment(self, object_storage_link_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -526,7 +526,7 @@ def create_lustre_file_system(self, create_lustre_file_system_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_lustre_file_system got unknown kwargs: {extra_kwargs!r}") @@ -537,7 +537,7 @@ def create_lustre_file_system(self, create_lustre_file_system_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -627,7 +627,7 @@ def create_object_storage_link(self, create_object_storage_link_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_object_storage_link got unknown kwargs: {extra_kwargs!r}") @@ -638,7 +638,7 @@ def create_object_storage_link(self, create_object_storage_link_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -729,7 +729,7 @@ def delete_lustre_file_system(self, lustre_file_system_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_lustre_file_system got unknown kwargs: {extra_kwargs!r}") @@ -738,9 +738,9 @@ def delete_lustre_file_system(self, lustre_file_system_id, **kwargs): "lustreFileSystemId": lustre_file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -750,7 +750,7 @@ def delete_lustre_file_system(self, lustre_file_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -838,7 +838,7 @@ def delete_object_storage_link(self, object_storage_link_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_object_storage_link got unknown kwargs: {extra_kwargs!r}") @@ -847,9 +847,9 @@ def delete_object_storage_link(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -859,7 +859,7 @@ def delete_object_storage_link(self, object_storage_link_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -940,7 +940,7 @@ def get_lustre_file_system(self, lustre_file_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lustre_file_system got unknown kwargs: {extra_kwargs!r}") @@ -949,9 +949,9 @@ def get_lustre_file_system(self, lustre_file_system_id, **kwargs): "lustreFileSystemId": lustre_file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -960,7 +960,7 @@ def get_lustre_file_system(self, lustre_file_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1043,7 +1043,7 @@ def get_object_storage_link(self, object_storage_link_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object_storage_link got unknown kwargs: {extra_kwargs!r}") @@ -1052,9 +1052,9 @@ def get_object_storage_link(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1063,7 +1063,7 @@ def get_object_storage_link(self, object_storage_link_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1158,7 +1158,7 @@ def get_sync_job(self, object_storage_link_id, sync_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sync_job got unknown kwargs: {extra_kwargs!r}") @@ -1168,9 +1168,9 @@ def get_sync_job(self, object_storage_link_id, sync_job_id, **kwargs): "syncJobId": sync_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1180,7 +1180,7 @@ def get_sync_job(self, object_storage_link_id, sync_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1263,7 +1263,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1272,9 +1272,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1283,7 +1283,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1419,7 +1419,7 @@ def list_lustre_file_systems(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_lustre_file_systems got unknown kwargs: {extra_kwargs!r}") @@ -1456,14 +1456,14 @@ def list_lustre_file_systems(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1605,7 +1605,7 @@ def list_object_storage_links(self, **kwargs): "lustre_file_system_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_object_storage_links got unknown kwargs: {extra_kwargs!r}") @@ -1643,14 +1643,14 @@ def list_object_storage_links(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lustreFileSystemId": kwargs.get("lustre_file_system_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1776,7 +1776,7 @@ def list_sync_jobs(self, object_storage_link_id, **kwargs): "lifecycle_state", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sync_jobs got unknown kwargs: {extra_kwargs!r}") @@ -1785,9 +1785,9 @@ def list_sync_jobs(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1819,7 +1819,7 @@ def list_sync_jobs(self, object_storage_link_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1827,7 +1827,7 @@ def list_sync_jobs(self, object_storage_link_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1940,7 +1940,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1949,9 +1949,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1975,14 +1975,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2095,7 +2095,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2104,9 +2104,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2130,14 +2130,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2269,7 +2269,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2305,14 +2305,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2411,7 +2411,7 @@ def start_export_to_object(self, object_storage_link_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_export_to_object got unknown kwargs: {extra_kwargs!r}") @@ -2420,9 +2420,9 @@ def start_export_to_object(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2433,7 +2433,7 @@ def start_export_to_object(self, object_storage_link_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2533,7 +2533,7 @@ def start_import_from_object(self, object_storage_link_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_import_from_object got unknown kwargs: {extra_kwargs!r}") @@ -2542,9 +2542,9 @@ def start_import_from_object(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2555,7 +2555,7 @@ def start_import_from_object(self, object_storage_link_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2655,7 +2655,7 @@ def stop_export_to_object(self, object_storage_link_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_export_to_object got unknown kwargs: {extra_kwargs!r}") @@ -2664,9 +2664,9 @@ def stop_export_to_object(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2677,7 +2677,7 @@ def stop_export_to_object(self, object_storage_link_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2775,7 +2775,7 @@ def stop_import_from_object(self, object_storage_link_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_import_from_object got unknown kwargs: {extra_kwargs!r}") @@ -2784,9 +2784,9 @@ def stop_import_from_object(self, object_storage_link_id, **kwargs): "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2797,7 +2797,7 @@ def stop_import_from_object(self, object_storage_link_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2889,7 +2889,7 @@ def update_lustre_file_system(self, lustre_file_system_id, update_lustre_file_sy "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_lustre_file_system got unknown kwargs: {extra_kwargs!r}") @@ -2898,9 +2898,9 @@ def update_lustre_file_system(self, lustre_file_system_id, update_lustre_file_sy "lustreFileSystemId": lustre_file_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2910,7 +2910,7 @@ def update_lustre_file_system(self, lustre_file_system_id, update_lustre_file_sy "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3003,7 +3003,7 @@ def update_object_storage_link(self, object_storage_link_id, update_object_stora "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_object_storage_link got unknown kwargs: {extra_kwargs!r}") @@ -3012,9 +3012,9 @@ def update_object_storage_link(self, object_storage_link_id, update_object_stora "objectStorageLinkId": object_storage_link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3024,7 +3024,7 @@ def update_object_storage_link(self, object_storage_link_id, update_object_stora "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/managed_kafka/kafka_cluster_client.py b/src/oci/managed_kafka/kafka_cluster_client.py index 13231e940..7735ac474 100644 --- a/src/oci/managed_kafka/kafka_cluster_client.py +++ b/src/oci/managed_kafka/kafka_cluster_client.py @@ -172,7 +172,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def change_kafka_cluster_compartment(self, kafka_cluster_id, change_kafka_cluste "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_kafka_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -296,9 +296,9 @@ def change_kafka_cluster_compartment(self, kafka_cluster_id, change_kafka_cluste "kafkaClusterId": kafka_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def change_kafka_cluster_compartment(self, kafka_cluster_id, change_kafka_cluste "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -404,7 +404,7 @@ def change_kafka_cluster_config_compartment(self, kafka_cluster_config_id, chang "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_kafka_cluster_config_compartment got unknown kwargs: {extra_kwargs!r}") @@ -413,9 +413,9 @@ def change_kafka_cluster_config_compartment(self, kafka_cluster_config_id, chang "kafkaClusterConfigId": kafka_cluster_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -425,7 +425,7 @@ def change_kafka_cluster_config_compartment(self, kafka_cluster_config_id, chang "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -514,7 +514,7 @@ def create_kafka_cluster(self, create_kafka_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_kafka_cluster got unknown kwargs: {extra_kwargs!r}") @@ -525,7 +525,7 @@ def create_kafka_cluster(self, create_kafka_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -615,7 +615,7 @@ def create_kafka_cluster_config(self, create_kafka_cluster_config_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_kafka_cluster_config got unknown kwargs: {extra_kwargs!r}") @@ -626,7 +626,7 @@ def create_kafka_cluster_config(self, create_kafka_cluster_config_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -717,7 +717,7 @@ def delete_kafka_cluster(self, kafka_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_kafka_cluster got unknown kwargs: {extra_kwargs!r}") @@ -726,9 +726,9 @@ def delete_kafka_cluster(self, kafka_cluster_id, **kwargs): "kafkaClusterId": kafka_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -738,7 +738,7 @@ def delete_kafka_cluster(self, kafka_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -826,7 +826,7 @@ def delete_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_kafka_cluster_config got unknown kwargs: {extra_kwargs!r}") @@ -835,9 +835,9 @@ def delete_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): "kafkaClusterConfigId": kafka_cluster_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -847,7 +847,7 @@ def delete_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -938,7 +938,7 @@ def delete_kafka_cluster_config_version(self, kafka_cluster_config_id, version_n "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_kafka_cluster_config_version got unknown kwargs: {extra_kwargs!r}") @@ -948,9 +948,9 @@ def delete_kafka_cluster_config_version(self, kafka_cluster_config_id, version_n "versionNumber": version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -960,7 +960,7 @@ def delete_kafka_cluster_config_version(self, kafka_cluster_config_id, version_n "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1056,7 +1056,7 @@ def disable_superuser(self, kafka_cluster_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_superuser got unknown kwargs: {extra_kwargs!r}") @@ -1065,9 +1065,9 @@ def disable_superuser(self, kafka_cluster_id, **kwargs): "kafkaClusterId": kafka_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1078,7 +1078,7 @@ def disable_superuser(self, kafka_cluster_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1178,7 +1178,7 @@ def enable_superuser(self, kafka_cluster_id, enable_superuser_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_superuser got unknown kwargs: {extra_kwargs!r}") @@ -1187,9 +1187,9 @@ def enable_superuser(self, kafka_cluster_id, enable_superuser_details, **kwargs) "kafkaClusterId": kafka_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1200,7 +1200,7 @@ def enable_superuser(self, kafka_cluster_id, enable_superuser_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1284,7 +1284,7 @@ def get_kafka_cluster(self, kafka_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_kafka_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1293,9 +1293,9 @@ def get_kafka_cluster(self, kafka_cluster_id, **kwargs): "kafkaClusterId": kafka_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1304,7 +1304,7 @@ def get_kafka_cluster(self, kafka_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1387,7 +1387,7 @@ def get_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_kafka_cluster_config got unknown kwargs: {extra_kwargs!r}") @@ -1396,9 +1396,9 @@ def get_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): "kafkaClusterConfigId": kafka_cluster_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1407,7 +1407,7 @@ def get_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1493,7 +1493,7 @@ def get_kafka_cluster_config_version(self, kafka_cluster_config_id, version_numb "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_kafka_cluster_config_version got unknown kwargs: {extra_kwargs!r}") @@ -1503,9 +1503,9 @@ def get_kafka_cluster_config_version(self, kafka_cluster_config_id, version_numb "versionNumber": version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1514,7 +1514,7 @@ def get_kafka_cluster_config_version(self, kafka_cluster_config_id, version_numb "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1597,7 +1597,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1606,9 +1606,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1617,7 +1617,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1729,7 +1729,7 @@ def list_kafka_cluster_config_versions(self, kafka_cluster_config_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_kafka_cluster_config_versions got unknown kwargs: {extra_kwargs!r}") @@ -1738,9 +1738,9 @@ def list_kafka_cluster_config_versions(self, kafka_cluster_config_id, **kwargs): "kafkaClusterConfigId": kafka_cluster_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1764,14 +1764,14 @@ def list_kafka_cluster_config_versions(self, kafka_cluster_config_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1903,7 +1903,7 @@ def list_kafka_cluster_configs(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_kafka_cluster_configs got unknown kwargs: {extra_kwargs!r}") @@ -1939,14 +1939,14 @@ def list_kafka_cluster_configs(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2076,7 +2076,7 @@ def list_kafka_clusters(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_kafka_clusters got unknown kwargs: {extra_kwargs!r}") @@ -2112,14 +2112,14 @@ def list_kafka_clusters(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2230,7 +2230,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2239,9 +2239,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2265,14 +2265,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2385,7 +2385,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2394,9 +2394,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2420,14 +2420,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2559,7 +2559,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2595,14 +2595,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2695,7 +2695,7 @@ def update_kafka_cluster(self, kafka_cluster_id, update_kafka_cluster_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_kafka_cluster got unknown kwargs: {extra_kwargs!r}") @@ -2704,9 +2704,9 @@ def update_kafka_cluster(self, kafka_cluster_id, update_kafka_cluster_details, * "kafkaClusterId": kafka_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2716,7 +2716,7 @@ def update_kafka_cluster(self, kafka_cluster_id, update_kafka_cluster_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2811,7 +2811,7 @@ def update_kafka_cluster_config(self, kafka_cluster_config_id, update_kafka_clus "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_kafka_cluster_config got unknown kwargs: {extra_kwargs!r}") @@ -2820,9 +2820,9 @@ def update_kafka_cluster_config(self, kafka_cluster_config_id, update_kafka_clus "kafkaClusterConfigId": kafka_cluster_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2832,7 +2832,7 @@ def update_kafka_cluster_config(self, kafka_cluster_config_id, update_kafka_clus "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/management_agent/management_agent_client.py b/src/oci/management_agent/management_agent_client.py index 922fbf701..4d6146514 100644 --- a/src/oci/management_agent/management_agent_client.py +++ b/src/oci/management_agent/management_agent_client.py @@ -180,7 +180,7 @@ def create_data_source(self, management_agent_id, create_data_source_details, ** "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_data_source got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def create_data_source(self, management_agent_id, create_data_source_details, ** "managementAgentId": management_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def create_data_source(self, management_agent_id, create_data_source_details, ** "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def create_management_agent_install_key(self, create_management_agent_install_ke "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_management_agent_install_key got unknown kwargs: {extra_kwargs!r}") @@ -298,7 +298,7 @@ def create_management_agent_install_key(self, create_management_agent_install_ke "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -391,7 +391,7 @@ def create_named_credential(self, create_named_credential_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -403,7 +403,7 @@ def create_named_credential(self, create_named_credential_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -491,7 +491,7 @@ def delete_data_source(self, management_agent_id, data_source_key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_data_source got unknown kwargs: {extra_kwargs!r}") @@ -501,9 +501,9 @@ def delete_data_source(self, management_agent_id, data_source_key, **kwargs): "dataSourceKey": data_source_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -513,7 +513,7 @@ def delete_data_source(self, management_agent_id, data_source_key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -595,7 +595,7 @@ def delete_management_agent(self, management_agent_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_management_agent got unknown kwargs: {extra_kwargs!r}") @@ -604,9 +604,9 @@ def delete_management_agent(self, management_agent_id, **kwargs): "managementAgentId": management_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -616,7 +616,7 @@ def delete_management_agent(self, management_agent_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -698,7 +698,7 @@ def delete_management_agent_install_key(self, management_agent_install_key_id, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_management_agent_install_key got unknown kwargs: {extra_kwargs!r}") @@ -707,9 +707,9 @@ def delete_management_agent_install_key(self, management_agent_install_key_id, * "managementAgentInstallKeyId": management_agent_install_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -719,7 +719,7 @@ def delete_management_agent_install_key(self, management_agent_install_key_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -801,7 +801,7 @@ def delete_named_credential(self, named_credential_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -810,9 +810,9 @@ def delete_named_credential(self, named_credential_id, **kwargs): "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -822,7 +822,7 @@ def delete_named_credential(self, named_credential_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -904,7 +904,7 @@ def delete_work_request(self, work_request_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_work_request got unknown kwargs: {extra_kwargs!r}") @@ -913,9 +913,9 @@ def delete_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -925,7 +925,7 @@ def delete_work_request(self, work_request_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1007,7 +1007,7 @@ def deploy_plugins(self, deploy_plugins_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deploy_plugins got unknown kwargs: {extra_kwargs!r}") @@ -1018,7 +1018,7 @@ def deploy_plugins(self, deploy_plugins_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1094,7 +1094,7 @@ def get_auto_upgradable_config(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_auto_upgradable_config got unknown kwargs: {extra_kwargs!r}") @@ -1102,14 +1102,14 @@ def get_auto_upgradable_config(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1196,7 +1196,7 @@ def get_data_source(self, management_agent_id, data_source_key, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_data_source got unknown kwargs: {extra_kwargs!r}") @@ -1206,9 +1206,9 @@ def get_data_source(self, management_agent_id, data_source_key, **kwargs): "dataSourceKey": data_source_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1218,7 +1218,7 @@ def get_data_source(self, management_agent_id, data_source_key, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1295,7 +1295,7 @@ def get_management_agent(self, management_agent_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_management_agent got unknown kwargs: {extra_kwargs!r}") @@ -1304,9 +1304,9 @@ def get_management_agent(self, management_agent_id, **kwargs): "managementAgentId": management_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1315,7 +1315,7 @@ def get_management_agent(self, management_agent_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1391,7 +1391,7 @@ def get_management_agent_install_key(self, management_agent_install_key_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_management_agent_install_key got unknown kwargs: {extra_kwargs!r}") @@ -1400,9 +1400,9 @@ def get_management_agent_install_key(self, management_agent_install_key_id, **kw "managementAgentInstallKeyId": management_agent_install_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1411,7 +1411,7 @@ def get_management_agent_install_key(self, management_agent_install_key_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1491,7 +1491,7 @@ def get_management_agent_install_key_content(self, management_agent_install_key_ "opc_request_id", "plugin_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_management_agent_install_key_content got unknown kwargs: {extra_kwargs!r}") @@ -1500,23 +1500,23 @@ def get_management_agent_install_key_content(self, management_agent_install_key_ "managementAgentInstallKeyId": management_agent_install_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "pluginName": self.base_client.generate_collection_format_param(kwargs.get("plugin_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/octet-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1602,7 +1602,7 @@ def get_named_credential(self, named_credential_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -1611,9 +1611,9 @@ def get_named_credential(self, named_credential_id, **kwargs): "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1623,7 +1623,7 @@ def get_named_credential(self, named_credential_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1704,7 +1704,7 @@ def get_named_credentials_metadatum(self, compartment_id, **kwargs): "opc_request_id", "management_agent_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_named_credentials_metadatum got unknown kwargs: {extra_kwargs!r}") @@ -1713,14 +1713,14 @@ def get_named_credentials_metadatum(self, compartment_id, **kwargs): "compartmentId": compartment_id, "managementAgentId": kwargs.get("management_agent_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1796,7 +1796,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1805,9 +1805,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1816,7 +1816,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1928,7 +1928,7 @@ def list_availability_histories(self, management_agent_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_availability_histories got unknown kwargs: {extra_kwargs!r}") @@ -1937,9 +1937,9 @@ def list_availability_histories(self, management_agent_id, **kwargs): "managementAgentId": management_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1965,14 +1965,14 @@ def list_availability_histories(self, management_agent_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2074,7 +2074,7 @@ def list_data_sources(self, management_agent_id, **kwargs): "sort_by", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_data_sources got unknown kwargs: {extra_kwargs!r}") @@ -2083,9 +2083,9 @@ def list_data_sources(self, management_agent_id, **kwargs): "managementAgentId": management_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2110,14 +2110,14 @@ def list_data_sources(self, management_agent_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": self.base_client.generate_collection_format_param(kwargs.get("name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2239,7 +2239,7 @@ def list_management_agent_images(self, compartment_id, **kwargs): "lifecycle_state", "install_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_agent_images got unknown kwargs: {extra_kwargs!r}") @@ -2282,7 +2282,7 @@ def list_management_agent_images(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "installType": kwargs.get("install_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2290,7 +2290,7 @@ def list_management_agent_images(self, compartment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2401,7 +2401,7 @@ def list_management_agent_install_keys(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_agent_install_keys got unknown kwargs: {extra_kwargs!r}") @@ -2437,14 +2437,14 @@ def list_management_agent_install_keys(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2560,7 +2560,7 @@ def list_management_agent_plugins(self, compartment_id, **kwargs): "platform_type", "agent_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_agent_plugins got unknown kwargs: {extra_kwargs!r}") @@ -2605,14 +2605,14 @@ def list_management_agent_plugins(self, compartment_id, **kwargs): "platformType": self.base_client.generate_collection_format_param(kwargs.get("platform_type", missing), 'multi'), "agentId": kwargs.get("agent_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2776,7 +2776,7 @@ def list_management_agents(self, compartment_id, **kwargs): "data_source_type", "data_source_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_agents got unknown kwargs: {extra_kwargs!r}") @@ -2852,14 +2852,14 @@ def list_management_agents(self, compartment_id, **kwargs): "dataSourceType": kwargs.get("data_source_type", missing), "dataSourceName": self.base_client.generate_collection_format_param(kwargs.get("data_source_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2971,7 +2971,7 @@ def list_named_credentials(self, management_agent_id, **kwargs): "type", "id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_named_credentials got unknown kwargs: {extra_kwargs!r}") @@ -3001,14 +3001,14 @@ def list_named_credentials(self, management_agent_id, **kwargs): "managementAgentId": management_agent_id, "id": self.base_client.generate_collection_format_param(kwargs.get("id", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3104,7 +3104,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3113,9 +3113,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3139,14 +3139,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3244,7 +3244,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3253,9 +3253,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3279,14 +3279,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3406,7 +3406,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3451,14 +3451,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3543,7 +3543,7 @@ def set_auto_upgradable_config(self, set_auto_upgradable_config_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_auto_upgradable_config got unknown kwargs: {extra_kwargs!r}") @@ -3554,7 +3554,7 @@ def set_auto_upgradable_config(self, set_auto_upgradable_config_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3655,7 +3655,7 @@ def summarize_management_agent_counts(self, compartment_id, group_by, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_management_agent_counts got unknown kwargs: {extra_kwargs!r}") @@ -3682,14 +3682,14 @@ def summarize_management_agent_counts(self, compartment_id, group_by, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3779,7 +3779,7 @@ def summarize_management_agent_plugin_counts(self, compartment_id, group_by, **k "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_management_agent_plugin_counts got unknown kwargs: {extra_kwargs!r}") @@ -3796,14 +3796,14 @@ def summarize_management_agent_plugin_counts(self, compartment_id, group_by, **k "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3901,7 +3901,7 @@ def update_data_source(self, management_agent_id, data_source_key, update_data_s "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_data_source got unknown kwargs: {extra_kwargs!r}") @@ -3911,9 +3911,9 @@ def update_data_source(self, management_agent_id, data_source_key, update_data_s "dataSourceKey": data_source_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3924,7 +3924,7 @@ def update_data_source(self, management_agent_id, data_source_key, update_data_s "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4020,7 +4020,7 @@ def update_management_agent(self, management_agent_id, update_management_agent_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_management_agent got unknown kwargs: {extra_kwargs!r}") @@ -4029,9 +4029,9 @@ def update_management_agent(self, management_agent_id, update_management_agent_d "managementAgentId": management_agent_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4042,7 +4042,7 @@ def update_management_agent(self, management_agent_id, update_management_agent_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4140,7 +4140,7 @@ def update_management_agent_install_key(self, management_agent_install_key_id, u "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_management_agent_install_key got unknown kwargs: {extra_kwargs!r}") @@ -4149,9 +4149,9 @@ def update_management_agent_install_key(self, management_agent_install_key_id, u "managementAgentInstallKeyId": management_agent_install_key_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4162,7 +4162,7 @@ def update_management_agent_install_key(self, management_agent_install_key_id, u "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4260,7 +4260,7 @@ def update_named_credential(self, named_credential_id, update_named_credential_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_named_credential got unknown kwargs: {extra_kwargs!r}") @@ -4269,9 +4269,9 @@ def update_named_credential(self, named_credential_id, update_named_credential_d "namedCredentialId": named_credential_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4282,7 +4282,7 @@ def update_named_credential(self, named_credential_id, update_named_credential_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/management_dashboard/dashx_apis_client.py b/src/oci/management_dashboard/dashx_apis_client.py index bfcb3ccad..b3b4ed0f5 100644 --- a/src/oci/management_dashboard/dashx_apis_client.py +++ b/src/oci/management_dashboard/dashx_apis_client.py @@ -179,7 +179,7 @@ def change_management_dashboards_compartment(self, management_dashboard_id, chan "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_management_dashboards_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_management_dashboards_compartment(self, management_dashboard_id, chan "managementDashboardId": management_dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_management_dashboards_compartment(self, management_dashboard_id, chan "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -299,7 +299,7 @@ def change_management_saved_searches_compartment(self, management_saved_search_i "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_management_saved_searches_compartment got unknown kwargs: {extra_kwargs!r}") @@ -308,9 +308,9 @@ def change_management_saved_searches_compartment(self, management_saved_search_i "managementSavedSearchId": management_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -321,7 +321,7 @@ def change_management_saved_searches_compartment(self, management_saved_search_i "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -411,7 +411,7 @@ def create_management_dashboard(self, create_management_dashboard_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_management_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -422,7 +422,7 @@ def create_management_dashboard(self, create_management_dashboard_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -510,7 +510,7 @@ def create_management_saved_search(self, create_management_saved_search_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_management_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -521,7 +521,7 @@ def create_management_saved_search(self, create_management_saved_search_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -606,7 +606,7 @@ def delete_management_dashboard(self, management_dashboard_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_management_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -615,9 +615,9 @@ def delete_management_dashboard(self, management_dashboard_id, **kwargs): "managementDashboardId": management_dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -627,7 +627,7 @@ def delete_management_dashboard(self, management_dashboard_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -709,7 +709,7 @@ def delete_management_saved_search(self, management_saved_search_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_management_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -718,9 +718,9 @@ def delete_management_saved_search(self, management_saved_search_id, **kwargs): "managementSavedSearchId": management_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -730,7 +730,7 @@ def delete_management_saved_search(self, management_saved_search_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -819,7 +819,7 @@ def export_dashboard(self, export_dashboard_id, **kwargs): "opc_request_id", "export_tags" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -828,16 +828,16 @@ def export_dashboard(self, export_dashboard_id, **kwargs): "exportDashboardId": export_dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "exportTags": kwargs.get("export_tags", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -845,7 +845,7 @@ def export_dashboard(self, export_dashboard_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -932,7 +932,7 @@ def get_management_dashboard(self, management_dashboard_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_management_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -941,9 +941,9 @@ def get_management_dashboard(self, management_dashboard_id, **kwargs): "managementDashboardId": management_dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -953,7 +953,7 @@ def get_management_dashboard(self, management_dashboard_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1038,7 +1038,7 @@ def get_management_saved_search(self, management_saved_search_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_management_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -1047,9 +1047,9 @@ def get_management_saved_search(self, management_saved_search_id, **kwargs): "managementSavedSearchId": management_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1059,7 +1059,7 @@ def get_management_saved_search(self, management_saved_search_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1136,7 +1136,7 @@ def get_oob_management_dashboard(self, management_dashboard_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oob_management_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -1145,9 +1145,9 @@ def get_oob_management_dashboard(self, management_dashboard_id, **kwargs): "managementDashboardId": management_dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1156,7 +1156,7 @@ def get_oob_management_dashboard(self, management_dashboard_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1232,7 +1232,7 @@ def get_oob_management_saved_search(self, management_saved_search_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oob_management_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -1241,9 +1241,9 @@ def get_oob_management_saved_search(self, management_saved_search_id, **kwargs): "managementSavedSearchId": management_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1252,7 +1252,7 @@ def get_oob_management_saved_search(self, management_saved_search_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1362,7 +1362,7 @@ def import_dashboard(self, management_dashboard_import_details, **kwargs): "override_dashboard_compartment_ocid", "override_saved_search_compartment_ocid" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -1372,7 +1372,7 @@ def import_dashboard(self, management_dashboard_import_details, **kwargs): "overrideDashboardCompartmentOcid": kwargs.get("override_dashboard_compartment_ocid", missing), "overrideSavedSearchCompartmentOcid": kwargs.get("override_saved_search_compartment_ocid", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1381,7 +1381,7 @@ def import_dashboard(self, management_dashboard_import_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1482,7 +1482,7 @@ def list_management_dashboards(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_dashboards got unknown kwargs: {extra_kwargs!r}") @@ -1509,14 +1509,14 @@ def list_management_dashboards(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1616,7 +1616,7 @@ def list_management_saved_searches(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_saved_searches got unknown kwargs: {extra_kwargs!r}") @@ -1643,14 +1643,14 @@ def list_management_saved_searches(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1750,7 +1750,7 @@ def list_oob_management_dashboards(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oob_management_dashboards got unknown kwargs: {extra_kwargs!r}") @@ -1777,14 +1777,14 @@ def list_oob_management_dashboards(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1884,7 +1884,7 @@ def list_oob_management_saved_searches(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oob_management_saved_searches got unknown kwargs: {extra_kwargs!r}") @@ -1911,14 +1911,14 @@ def list_oob_management_saved_searches(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2013,7 +2013,7 @@ def update_management_dashboard(self, management_dashboard_id, update_management "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_management_dashboard got unknown kwargs: {extra_kwargs!r}") @@ -2022,9 +2022,9 @@ def update_management_dashboard(self, management_dashboard_id, update_management "managementDashboardId": management_dashboard_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2035,7 +2035,7 @@ def update_management_dashboard(self, management_dashboard_id, update_management "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2133,7 +2133,7 @@ def update_management_saved_search(self, management_saved_search_id, update_mana "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_management_saved_search got unknown kwargs: {extra_kwargs!r}") @@ -2142,9 +2142,9 @@ def update_management_saved_search(self, management_saved_search_id, update_mana "managementSavedSearchId": management_saved_search_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2155,7 +2155,7 @@ def update_management_saved_search(self, management_saved_search_id, update_mana "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/marketplace/account_client.py b/src/oci/marketplace/account_client.py index 70f944f97..8657e341d 100644 --- a/src/oci/marketplace/account_client.py +++ b/src/oci/marketplace/account_client.py @@ -164,7 +164,7 @@ def get_launch_eligibility(self, compartment_id, image_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_launch_eligibility got unknown kwargs: {extra_kwargs!r}") @@ -173,14 +173,14 @@ def get_launch_eligibility(self, compartment_id, image_id, **kwargs): "compartmentId": compartment_id, "imageId": image_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -259,7 +259,7 @@ def get_third_party_paid_listing_eligibility(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_third_party_paid_listing_eligibility got unknown kwargs: {extra_kwargs!r}") @@ -267,14 +267,14 @@ def get_third_party_paid_listing_eligibility(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/marketplace/marketplace_client.py b/src/oci/marketplace/marketplace_client.py index 555f3f737..7bbf9bea8 100644 --- a/src/oci/marketplace/marketplace_client.py +++ b/src/oci/marketplace/marketplace_client.py @@ -177,7 +177,7 @@ def change_publication_compartment(self, publication_id, change_publication_comp "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_publication_compartment got unknown kwargs: {extra_kwargs!r}") @@ -186,9 +186,9 @@ def change_publication_compartment(self, publication_id, change_publication_comp "publicationId": publication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -199,7 +199,7 @@ def change_publication_compartment(self, publication_id, change_publication_comp "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def create_accepted_agreement(self, create_accepted_agreement_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_accepted_agreement got unknown kwargs: {extra_kwargs!r}") @@ -298,7 +298,7 @@ def create_accepted_agreement(self, create_accepted_agreement_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -385,7 +385,7 @@ def create_marketplace_external_attested_metadata(self, create_marketplace_exter "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_marketplace_external_attested_metadata got unknown kwargs: {extra_kwargs!r}") @@ -396,7 +396,7 @@ def create_marketplace_external_attested_metadata(self, create_marketplace_exter "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -483,7 +483,7 @@ def create_publication(self, create_publication_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_publication got unknown kwargs: {extra_kwargs!r}") @@ -494,7 +494,7 @@ def create_publication(self, create_publication_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -586,7 +586,7 @@ def delete_accepted_agreement(self, accepted_agreement_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_accepted_agreement got unknown kwargs: {extra_kwargs!r}") @@ -595,16 +595,16 @@ def delete_accepted_agreement(self, accepted_agreement_id, **kwargs): "acceptedAgreementId": accepted_agreement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "signature": kwargs.get("signature", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -612,7 +612,7 @@ def delete_accepted_agreement(self, accepted_agreement_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -697,7 +697,7 @@ def delete_publication(self, publication_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_publication got unknown kwargs: {extra_kwargs!r}") @@ -706,9 +706,9 @@ def delete_publication(self, publication_id, **kwargs): "publicationId": publication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -718,7 +718,7 @@ def delete_publication(self, publication_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -808,7 +808,7 @@ def export_listing(self, listing_id, package_version, export_package_details, ** "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_listing got unknown kwargs: {extra_kwargs!r}") @@ -818,9 +818,9 @@ def export_listing(self, listing_id, package_version, export_package_details, ** "packageVersion": package_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -830,7 +830,7 @@ def export_listing(self, listing_id, package_version, export_package_details, ** "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -912,7 +912,7 @@ def get_accepted_agreement(self, accepted_agreement_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_accepted_agreement got unknown kwargs: {extra_kwargs!r}") @@ -921,9 +921,9 @@ def get_accepted_agreement(self, accepted_agreement_id, **kwargs): "acceptedAgreementId": accepted_agreement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -932,7 +932,7 @@ def get_accepted_agreement(self, accepted_agreement_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1022,7 +1022,7 @@ def get_agreement(self, listing_id, package_version, agreement_id, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_agreement got unknown kwargs: {extra_kwargs!r}") @@ -1033,23 +1033,23 @@ def get_agreement(self, listing_id, package_version, agreement_id, **kwargs): "agreementId": agreement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1154,7 +1154,7 @@ def get_listing(self, listing_id, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing got unknown kwargs: {extra_kwargs!r}") @@ -1163,23 +1163,23 @@ def get_listing(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1286,7 +1286,7 @@ def get_package(self, listing_id, package_version, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_package got unknown kwargs: {extra_kwargs!r}") @@ -1296,23 +1296,23 @@ def get_package(self, listing_id, package_version, **kwargs): "packageVersion": package_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1393,7 +1393,7 @@ def get_publication(self, publication_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_publication got unknown kwargs: {extra_kwargs!r}") @@ -1402,9 +1402,9 @@ def get_publication(self, publication_id, **kwargs): "publicationId": publication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1413,7 +1413,7 @@ def get_publication(self, publication_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1495,7 +1495,7 @@ def get_publication_package(self, publication_id, package_version, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_publication_package got unknown kwargs: {extra_kwargs!r}") @@ -1505,9 +1505,9 @@ def get_publication_package(self, publication_id, package_version, **kwargs): "packageVersion": package_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1516,7 +1516,7 @@ def get_publication_package(self, publication_id, package_version, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1595,7 +1595,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1604,9 +1604,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1615,7 +1615,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1733,7 +1733,7 @@ def list_accepted_agreements(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_accepted_agreements got unknown kwargs: {extra_kwargs!r}") @@ -1763,14 +1763,14 @@ def list_accepted_agreements(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1864,7 +1864,7 @@ def list_agreements(self, listing_id, package_version, **kwargs): "page", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agreements got unknown kwargs: {extra_kwargs!r}") @@ -1874,9 +1874,9 @@ def list_agreements(self, listing_id, package_version, **kwargs): "packageVersion": package_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1885,14 +1885,14 @@ def list_agreements(self, listing_id, package_version, **kwargs): "page": kwargs.get("page", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1983,7 +1983,7 @@ def list_categories(self, **kwargs): "page", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_categories got unknown kwargs: {extra_kwargs!r}") @@ -1993,14 +1993,14 @@ def list_categories(self, **kwargs): "page": kwargs.get("page", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2168,7 +2168,7 @@ def list_listings(self, **kwargs): "operating_systems", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listings got unknown kwargs: {extra_kwargs!r}") @@ -2220,14 +2220,14 @@ def list_listings(self, **kwargs): "operatingSystems": self.base_client.generate_collection_format_param(kwargs.get("operating_systems", missing), 'multi'), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2327,7 +2327,7 @@ def list_marketplace_metadata_public_keys(self, **kwargs): "sort_by", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_marketplace_metadata_public_keys got unknown kwargs: {extra_kwargs!r}") @@ -2353,14 +2353,14 @@ def list_marketplace_metadata_public_keys(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2492,7 +2492,7 @@ def list_packages(self, listing_id, **kwargs): "sort_order", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_packages got unknown kwargs: {extra_kwargs!r}") @@ -2501,9 +2501,9 @@ def list_packages(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2530,14 +2530,14 @@ def list_packages(self, listing_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2648,7 +2648,7 @@ def list_publication_packages(self, publication_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_publication_packages got unknown kwargs: {extra_kwargs!r}") @@ -2657,9 +2657,9 @@ def list_publication_packages(self, publication_id, **kwargs): "publicationId": publication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2685,14 +2685,14 @@ def list_publication_packages(self, publication_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2812,7 +2812,7 @@ def list_publications(self, compartment_id, listing_type, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_publications got unknown kwargs: {extra_kwargs!r}") @@ -2848,14 +2848,14 @@ def list_publications(self, compartment_id, listing_type, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2947,7 +2947,7 @@ def list_publishers(self, **kwargs): "page", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_publishers got unknown kwargs: {extra_kwargs!r}") @@ -2958,14 +2958,14 @@ def list_publishers(self, **kwargs): "page": kwargs.get("page", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3048,7 +3048,7 @@ def list_report_types(self, compartment_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_report_types got unknown kwargs: {extra_kwargs!r}") @@ -3057,14 +3057,14 @@ def list_report_types(self, compartment_id, **kwargs): "compartmentId": compartment_id, "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3155,7 +3155,7 @@ def list_reports(self, report_type, date, compartment_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_reports got unknown kwargs: {extra_kwargs!r}") @@ -3166,14 +3166,14 @@ def list_reports(self, report_type, date, compartment_id, **kwargs): "compartmentId": compartment_id, "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3256,7 +3256,7 @@ def list_taxes(self, listing_id, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_taxes got unknown kwargs: {extra_kwargs!r}") @@ -3265,23 +3265,23 @@ def list_taxes(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3382,7 +3382,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3391,9 +3391,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3417,14 +3417,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3525,7 +3525,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3534,9 +3534,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3560,14 +3560,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3678,7 +3678,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3713,14 +3713,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3808,7 +3808,7 @@ def search_listings(self, search_listings_details, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_listings got unknown kwargs: {extra_kwargs!r}") @@ -3817,14 +3817,14 @@ def search_listings(self, search_listings_details, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3921,7 +3921,7 @@ def update_accepted_agreement(self, accepted_agreement_id, update_accepted_agree "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_accepted_agreement got unknown kwargs: {extra_kwargs!r}") @@ -3930,9 +3930,9 @@ def update_accepted_agreement(self, accepted_agreement_id, update_accepted_agree "acceptedAgreementId": accepted_agreement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3943,7 +3943,7 @@ def update_accepted_agreement(self, accepted_agreement_id, update_accepted_agree "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4041,7 +4041,7 @@ def update_publication(self, publication_id, update_publication_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_publication got unknown kwargs: {extra_kwargs!r}") @@ -4050,9 +4050,9 @@ def update_publication(self, publication_id, update_publication_details, **kwarg "publicationId": publication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4063,7 +4063,7 @@ def update_publication(self, publication_id, update_publication_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/marketplace_private_offer/attachment_client.py b/src/oci/marketplace_private_offer/attachment_client.py index 3cb6de179..b38189dd8 100644 --- a/src/oci/marketplace_private_offer/attachment_client.py +++ b/src/oci/marketplace_private_offer/attachment_client.py @@ -171,7 +171,7 @@ def create_attachment(self, create_attachment_details, offer_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_attachment got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def create_attachment(self, create_attachment_details, offer_id, **kwargs): "offerId": offer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def create_attachment(self, create_attachment_details, offer_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -284,7 +284,7 @@ def delete_attachment(self, offer_id, attachment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_attachment got unknown kwargs: {extra_kwargs!r}") @@ -294,9 +294,9 @@ def delete_attachment(self, offer_id, attachment_id, **kwargs): "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -306,7 +306,7 @@ def delete_attachment(self, offer_id, attachment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -385,7 +385,7 @@ def get_attachment(self, offer_id, attachment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_attachment got unknown kwargs: {extra_kwargs!r}") @@ -395,9 +395,9 @@ def get_attachment(self, offer_id, attachment_id, **kwargs): "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -406,7 +406,7 @@ def get_attachment(self, offer_id, attachment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -487,7 +487,7 @@ def get_attachment_content(self, offer_id, attachment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_attachment_content got unknown kwargs: {extra_kwargs!r}") @@ -497,9 +497,9 @@ def get_attachment_content(self, offer_id, attachment_id, **kwargs): "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -508,7 +508,7 @@ def get_attachment_content(self, offer_id, attachment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -628,7 +628,7 @@ def list_attachments(self, offer_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attachments got unknown kwargs: {extra_kwargs!r}") @@ -637,9 +637,9 @@ def list_attachments(self, offer_id, **kwargs): "offerId": offer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -675,14 +675,14 @@ def list_attachments(self, offer_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/marketplace_private_offer/offer_client.py b/src/oci/marketplace_private_offer/offer_client.py index 34631d8c5..a5e8d5650 100644 --- a/src/oci/marketplace_private_offer/offer_client.py +++ b/src/oci/marketplace_private_offer/offer_client.py @@ -168,7 +168,7 @@ def create_offer(self, create_offer_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_offer got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_offer(self, create_offer_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -266,7 +266,7 @@ def delete_offer(self, offer_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_offer got unknown kwargs: {extra_kwargs!r}") @@ -275,9 +275,9 @@ def delete_offer(self, offer_id, **kwargs): "offerId": offer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -287,7 +287,7 @@ def delete_offer(self, offer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -363,7 +363,7 @@ def get_offer(self, offer_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_offer got unknown kwargs: {extra_kwargs!r}") @@ -372,9 +372,9 @@ def get_offer(self, offer_id, **kwargs): "offerId": offer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -383,7 +383,7 @@ def get_offer(self, offer_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -461,7 +461,7 @@ def get_offer_internal_detail(self, offer_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_offer_internal_detail got unknown kwargs: {extra_kwargs!r}") @@ -470,9 +470,9 @@ def get_offer_internal_detail(self, offer_id, **kwargs): "offerId": offer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -481,7 +481,7 @@ def get_offer_internal_detail(self, offer_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -598,7 +598,7 @@ def list_offers(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_offers got unknown kwargs: {extra_kwargs!r}") @@ -635,14 +635,14 @@ def list_offers(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -731,7 +731,7 @@ def update_offer(self, offer_id, update_offer_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_offer got unknown kwargs: {extra_kwargs!r}") @@ -740,9 +740,9 @@ def update_offer(self, offer_id, update_offer_details, **kwargs): "offerId": offer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -752,7 +752,7 @@ def update_offer(self, offer_id, update_offer_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/marketplace_publisher/marketplace_publisher_client.py b/src/oci/marketplace_publisher/marketplace_publisher_client.py index 36763e2e2..409db292d 100644 --- a/src/oci/marketplace_publisher/marketplace_publisher_client.py +++ b/src/oci/marketplace_publisher/marketplace_publisher_client.py @@ -169,7 +169,7 @@ def activate_term_version(self, term_version_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_term_version got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def activate_term_version(self, term_version_id, **kwargs): "termVersionId": term_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -190,7 +190,7 @@ def activate_term_version(self, term_version_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -276,7 +276,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -285,9 +285,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -297,7 +297,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -389,7 +389,7 @@ def cascading_delete_listing(self, listing_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_listing got unknown kwargs: {extra_kwargs!r}") @@ -398,9 +398,9 @@ def cascading_delete_listing(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -411,7 +411,7 @@ def cascading_delete_listing(self, listing_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -504,7 +504,7 @@ def cascading_delete_listing_revision(self, listing_revision_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -513,9 +513,9 @@ def cascading_delete_listing_revision(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -526,7 +526,7 @@ def cascading_delete_listing_revision(self, listing_revision_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -622,7 +622,7 @@ def change_artifact_compartment(self, artifact_id, change_artifact_compartment_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_artifact_compartment got unknown kwargs: {extra_kwargs!r}") @@ -631,9 +631,9 @@ def change_artifact_compartment(self, artifact_id, change_artifact_compartment_d "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -644,7 +644,7 @@ def change_artifact_compartment(self, artifact_id, change_artifact_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -742,7 +742,7 @@ def change_listing_compartment(self, listing_id, change_listing_compartment_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_listing_compartment got unknown kwargs: {extra_kwargs!r}") @@ -751,9 +751,9 @@ def change_listing_compartment(self, listing_id, change_listing_compartment_deta "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -764,7 +764,7 @@ def change_listing_compartment(self, listing_id, change_listing_compartment_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -851,7 +851,7 @@ def change_listing_revision_to_new_status(self, listing_revision_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_listing_revision_to_new_status got unknown kwargs: {extra_kwargs!r}") @@ -860,9 +860,9 @@ def change_listing_revision_to_new_status(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -872,7 +872,7 @@ def change_listing_revision_to_new_status(self, listing_revision_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -969,7 +969,7 @@ def change_term_compartment(self, term_id, change_term_compartment_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_term_compartment got unknown kwargs: {extra_kwargs!r}") @@ -978,9 +978,9 @@ def change_term_compartment(self, term_id, change_term_compartment_details, **kw "termId": term_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -991,7 +991,7 @@ def change_term_compartment(self, term_id, change_term_compartment_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1086,7 +1086,7 @@ def clone_listing_revision(self, listing_revision_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clone_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -1095,9 +1095,9 @@ def clone_listing_revision(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1108,7 +1108,7 @@ def clone_listing_revision(self, listing_revision_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1205,7 +1205,7 @@ def create_artifact(self, create_artifact_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_artifact got unknown kwargs: {extra_kwargs!r}") @@ -1216,7 +1216,7 @@ def create_artifact(self, create_artifact_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1309,7 +1309,7 @@ def create_listing(self, create_listing_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listing got unknown kwargs: {extra_kwargs!r}") @@ -1320,7 +1320,7 @@ def create_listing(self, create_listing_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1407,7 +1407,7 @@ def create_listing_revision(self, create_listing_revision_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -1418,7 +1418,7 @@ def create_listing_revision(self, create_listing_revision_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1505,7 +1505,7 @@ def create_listing_revision_attachment(self, create_listing_revision_attachment_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listing_revision_attachment got unknown kwargs: {extra_kwargs!r}") @@ -1516,7 +1516,7 @@ def create_listing_revision_attachment(self, create_listing_revision_attachment_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1603,7 +1603,7 @@ def create_listing_revision_note(self, create_listing_revision_note_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listing_revision_note got unknown kwargs: {extra_kwargs!r}") @@ -1614,7 +1614,7 @@ def create_listing_revision_note(self, create_listing_revision_note_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1701,7 +1701,7 @@ def create_listing_revision_package(self, create_listing_revision_package_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listing_revision_package got unknown kwargs: {extra_kwargs!r}") @@ -1712,7 +1712,7 @@ def create_listing_revision_package(self, create_listing_revision_package_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1799,7 +1799,7 @@ def create_term(self, create_term_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_term got unknown kwargs: {extra_kwargs!r}") @@ -1810,7 +1810,7 @@ def create_term(self, create_term_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1912,7 +1912,7 @@ def create_term_version(self, create_term_version_content, term_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_term_version got unknown kwargs: {extra_kwargs!r}") @@ -1924,7 +1924,7 @@ def create_term_version(self, create_term_version_content, term_id, **kwargs): "display-name": kwargs.get("display_name", missing), "term-id": term_id } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -2040,7 +2040,7 @@ def delete_artifact(self, artifact_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_artifact got unknown kwargs: {extra_kwargs!r}") @@ -2049,9 +2049,9 @@ def delete_artifact(self, artifact_id, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2062,7 +2062,7 @@ def delete_artifact(self, artifact_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2147,7 +2147,7 @@ def delete_listing(self, listing_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listing got unknown kwargs: {extra_kwargs!r}") @@ -2156,9 +2156,9 @@ def delete_listing(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2168,7 +2168,7 @@ def delete_listing(self, listing_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2252,7 +2252,7 @@ def delete_listing_revision(self, listing_revision_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -2261,9 +2261,9 @@ def delete_listing_revision(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2273,7 +2273,7 @@ def delete_listing_revision(self, listing_revision_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2357,7 +2357,7 @@ def delete_listing_revision_attachment(self, listing_revision_attachment_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listing_revision_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2366,9 +2366,9 @@ def delete_listing_revision_attachment(self, listing_revision_attachment_id, **k "listingRevisionAttachmentId": listing_revision_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2378,7 +2378,7 @@ def delete_listing_revision_attachment(self, listing_revision_attachment_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2462,7 +2462,7 @@ def delete_listing_revision_note(self, listing_revision_note_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listing_revision_note got unknown kwargs: {extra_kwargs!r}") @@ -2471,9 +2471,9 @@ def delete_listing_revision_note(self, listing_revision_note_id, **kwargs): "listingRevisionNoteId": listing_revision_note_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2483,7 +2483,7 @@ def delete_listing_revision_note(self, listing_revision_note_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2567,7 +2567,7 @@ def delete_listing_revision_package(self, listing_revision_package_id, **kwargs) "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listing_revision_package got unknown kwargs: {extra_kwargs!r}") @@ -2576,9 +2576,9 @@ def delete_listing_revision_package(self, listing_revision_package_id, **kwargs) "listingRevisionPackageId": listing_revision_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2588,7 +2588,7 @@ def delete_listing_revision_package(self, listing_revision_package_id, **kwargs) "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2672,7 +2672,7 @@ def delete_term(self, term_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_term got unknown kwargs: {extra_kwargs!r}") @@ -2681,9 +2681,9 @@ def delete_term(self, term_id, **kwargs): "termId": term_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2693,7 +2693,7 @@ def delete_term(self, term_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2777,7 +2777,7 @@ def delete_term_version(self, term_version_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_term_version got unknown kwargs: {extra_kwargs!r}") @@ -2786,9 +2786,9 @@ def delete_term_version(self, term_version_id, **kwargs): "termVersionId": term_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2798,7 +2798,7 @@ def delete_term_version(self, term_version_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2874,7 +2874,7 @@ def get_artifact(self, artifact_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_artifact got unknown kwargs: {extra_kwargs!r}") @@ -2883,9 +2883,9 @@ def get_artifact(self, artifact_id, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2894,7 +2894,7 @@ def get_artifact(self, artifact_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2975,7 +2975,7 @@ def get_category(self, category_code, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_category got unknown kwargs: {extra_kwargs!r}") @@ -2984,23 +2984,23 @@ def get_category(self, category_code, compartment_id, **kwargs): "categoryCode": category_code } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3080,7 +3080,7 @@ def get_lead(self, lead_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lead got unknown kwargs: {extra_kwargs!r}") @@ -3089,9 +3089,9 @@ def get_lead(self, lead_id, **kwargs): "leadId": lead_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3100,7 +3100,7 @@ def get_lead(self, lead_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3178,7 +3178,7 @@ def get_listing(self, listing_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing got unknown kwargs: {extra_kwargs!r}") @@ -3187,9 +3187,9 @@ def get_listing(self, listing_id, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3198,7 +3198,7 @@ def get_listing(self, listing_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3276,7 +3276,7 @@ def get_listing_revision(self, listing_revision_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -3285,9 +3285,9 @@ def get_listing_revision(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3296,7 +3296,7 @@ def get_listing_revision(self, listing_revision_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3374,7 +3374,7 @@ def get_listing_revision_attachment(self, listing_revision_attachment_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing_revision_attachment got unknown kwargs: {extra_kwargs!r}") @@ -3383,9 +3383,9 @@ def get_listing_revision_attachment(self, listing_revision_attachment_id, **kwar "listingRevisionAttachmentId": listing_revision_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3394,7 +3394,7 @@ def get_listing_revision_attachment(self, listing_revision_attachment_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3472,7 +3472,7 @@ def get_listing_revision_attachment_content(self, listing_revision_attachment_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing_revision_attachment_content got unknown kwargs: {extra_kwargs!r}") @@ -3481,9 +3481,9 @@ def get_listing_revision_attachment_content(self, listing_revision_attachment_id "listingRevisionAttachmentId": listing_revision_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3492,7 +3492,7 @@ def get_listing_revision_attachment_content(self, listing_revision_attachment_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3570,7 +3570,7 @@ def get_listing_revision_icon_content(self, listing_revision_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing_revision_icon_content got unknown kwargs: {extra_kwargs!r}") @@ -3579,9 +3579,9 @@ def get_listing_revision_icon_content(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3590,7 +3590,7 @@ def get_listing_revision_icon_content(self, listing_revision_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3668,7 +3668,7 @@ def get_listing_revision_note(self, listing_revision_note_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing_revision_note got unknown kwargs: {extra_kwargs!r}") @@ -3677,9 +3677,9 @@ def get_listing_revision_note(self, listing_revision_note_id, **kwargs): "listingRevisionNoteId": listing_revision_note_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3688,7 +3688,7 @@ def get_listing_revision_note(self, listing_revision_note_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3766,7 +3766,7 @@ def get_listing_revision_package(self, listing_revision_package_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listing_revision_package got unknown kwargs: {extra_kwargs!r}") @@ -3775,9 +3775,9 @@ def get_listing_revision_package(self, listing_revision_package_id, **kwargs): "listingRevisionPackageId": listing_revision_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3786,7 +3786,7 @@ def get_listing_revision_package(self, listing_revision_package_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3864,7 +3864,7 @@ def get_market(self, market_code, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_market got unknown kwargs: {extra_kwargs!r}") @@ -3873,9 +3873,9 @@ def get_market(self, market_code, **kwargs): "marketCode": market_code } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3884,7 +3884,7 @@ def get_market(self, market_code, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3962,7 +3962,7 @@ def get_product(self, product_code, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_product got unknown kwargs: {extra_kwargs!r}") @@ -3971,9 +3971,9 @@ def get_product(self, product_code, **kwargs): "productCode": product_code } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3982,7 +3982,7 @@ def get_product(self, product_code, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4060,7 +4060,7 @@ def get_publisher(self, publisher_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_publisher got unknown kwargs: {extra_kwargs!r}") @@ -4069,9 +4069,9 @@ def get_publisher(self, publisher_id, **kwargs): "publisherId": publisher_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4080,7 +4080,7 @@ def get_publisher(self, publisher_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4158,7 +4158,7 @@ def get_support_doc(self, support_doc_code, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_support_doc got unknown kwargs: {extra_kwargs!r}") @@ -4167,9 +4167,9 @@ def get_support_doc(self, support_doc_code, **kwargs): "supportDocCode": support_doc_code } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4178,7 +4178,7 @@ def get_support_doc(self, support_doc_code, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4256,7 +4256,7 @@ def get_support_doc_content(self, support_doc_code, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_support_doc_content got unknown kwargs: {extra_kwargs!r}") @@ -4265,9 +4265,9 @@ def get_support_doc_content(self, support_doc_code, **kwargs): "supportDocCode": support_doc_code } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4276,7 +4276,7 @@ def get_support_doc_content(self, support_doc_code, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4354,7 +4354,7 @@ def get_term(self, term_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_term got unknown kwargs: {extra_kwargs!r}") @@ -4363,9 +4363,9 @@ def get_term(self, term_id, **kwargs): "termId": term_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4374,7 +4374,7 @@ def get_term(self, term_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4452,7 +4452,7 @@ def get_term_version(self, term_version_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_term_version got unknown kwargs: {extra_kwargs!r}") @@ -4461,9 +4461,9 @@ def get_term_version(self, term_version_id, **kwargs): "termVersionId": term_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4472,7 +4472,7 @@ def get_term_version(self, term_version_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4550,7 +4550,7 @@ def get_term_version_content(self, term_version_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_term_version_content got unknown kwargs: {extra_kwargs!r}") @@ -4559,9 +4559,9 @@ def get_term_version_content(self, term_version_id, **kwargs): "termVersionId": term_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4570,7 +4570,7 @@ def get_term_version_content(self, term_version_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4648,7 +4648,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -4657,9 +4657,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4668,7 +4668,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4784,7 +4784,7 @@ def list_artifacts(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_artifacts got unknown kwargs: {extra_kwargs!r}") @@ -4827,14 +4827,14 @@ def list_artifacts(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4936,7 +4936,7 @@ def list_available_services(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_available_services got unknown kwargs: {extra_kwargs!r}") @@ -4963,14 +4963,14 @@ def list_available_services(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5078,7 +5078,7 @@ def list_categories(self, compartment_id, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_categories got unknown kwargs: {extra_kwargs!r}") @@ -5106,14 +5106,14 @@ def list_categories(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5220,7 +5220,7 @@ def list_customer_instance_report_records(self, compartment_id, date_range, **kw "sort_by", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_customer_instance_report_records got unknown kwargs: {extra_kwargs!r}") @@ -5254,14 +5254,14 @@ def list_customer_instance_report_records(self, compartment_id, date_range, **kw "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5368,7 +5368,7 @@ def list_disbursement_report_records(self, compartment_id, date_range, **kwargs) "sort_by", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_disbursement_report_records got unknown kwargs: {extra_kwargs!r}") @@ -5402,14 +5402,14 @@ def list_disbursement_report_records(self, compartment_id, date_range, **kwargs) "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5513,7 +5513,7 @@ def list_leads(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_leads got unknown kwargs: {extra_kwargs!r}") @@ -5540,14 +5540,14 @@ def list_leads(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5659,7 +5659,7 @@ def list_listing_revision_attachments(self, listing_revision_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listing_revision_attachments got unknown kwargs: {extra_kwargs!r}") @@ -5695,14 +5695,14 @@ def list_listing_revision_attachments(self, listing_revision_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5804,7 +5804,7 @@ def list_listing_revision_notes(self, listing_revision_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listing_revision_notes got unknown kwargs: {extra_kwargs!r}") @@ -5831,14 +5831,14 @@ def list_listing_revision_notes(self, listing_revision_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5950,7 +5950,7 @@ def list_listing_revision_packages(self, listing_revision_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listing_revision_packages got unknown kwargs: {extra_kwargs!r}") @@ -5986,14 +5986,14 @@ def list_listing_revision_packages(self, listing_revision_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6114,7 +6114,7 @@ def list_listing_revisions(self, listing_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listing_revisions got unknown kwargs: {extra_kwargs!r}") @@ -6158,14 +6158,14 @@ def list_listing_revisions(self, listing_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6281,7 +6281,7 @@ def list_listings(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listings got unknown kwargs: {extra_kwargs!r}") @@ -6324,14 +6324,14 @@ def list_listings(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6439,7 +6439,7 @@ def list_markets(self, compartment_id, **kwargs): "name", "listing_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_markets got unknown kwargs: {extra_kwargs!r}") @@ -6467,14 +6467,14 @@ def list_markets(self, compartment_id, **kwargs): "name": kwargs.get("name", missing), "listingId": kwargs.get("listing_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6582,7 +6582,7 @@ def list_products(self, compartment_id, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_products got unknown kwargs: {extra_kwargs!r}") @@ -6610,14 +6610,14 @@ def list_products(self, compartment_id, **kwargs): "productGroup": kwargs.get("product_group", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6719,7 +6719,7 @@ def list_publishers(self, compartment_id, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_publishers got unknown kwargs: {extra_kwargs!r}") @@ -6746,14 +6746,14 @@ def list_publishers(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6861,7 +6861,7 @@ def list_support_docs(self, compartment_id, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_support_docs got unknown kwargs: {extra_kwargs!r}") @@ -6889,14 +6889,14 @@ def list_support_docs(self, compartment_id, **kwargs): "supportDocGroup": kwargs.get("support_doc_group", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6996,7 +6996,7 @@ def list_supported_currencies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_currencies got unknown kwargs: {extra_kwargs!r}") @@ -7022,14 +7022,14 @@ def list_supported_currencies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7131,7 +7131,7 @@ def list_supported_shapes(self, compartment_id, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_shapes got unknown kwargs: {extra_kwargs!r}") @@ -7158,14 +7158,14 @@ def list_supported_shapes(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7271,7 +7271,7 @@ def list_term_versions(self, term_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_term_versions got unknown kwargs: {extra_kwargs!r}") @@ -7299,14 +7299,14 @@ def list_term_versions(self, term_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7408,7 +7408,7 @@ def list_terms(self, compartment_id, **kwargs): "opc_request_id", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_terms got unknown kwargs: {extra_kwargs!r}") @@ -7435,14 +7435,14 @@ def list_terms(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7540,7 +7540,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -7549,9 +7549,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7575,14 +7575,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7682,7 +7682,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -7691,9 +7691,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7717,14 +7717,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7838,7 +7838,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -7874,14 +7874,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7975,7 +7975,7 @@ def mark_listing_revision_package_as_default(self, listing_revision_package_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"mark_listing_revision_package_as_default got unknown kwargs: {extra_kwargs!r}") @@ -7984,9 +7984,9 @@ def mark_listing_revision_package_as_default(self, listing_revision_package_id, "listingRevisionPackageId": listing_revision_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7997,7 +7997,7 @@ def mark_listing_revision_package_as_default(self, listing_revision_package_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8090,7 +8090,7 @@ def publish_listing_revision(self, listing_revision_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -8099,9 +8099,9 @@ def publish_listing_revision(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8112,7 +8112,7 @@ def publish_listing_revision(self, listing_revision_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8208,7 +8208,7 @@ def publish_listing_revision_as_private(self, publish_listing_revision_as_privat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_listing_revision_as_private got unknown kwargs: {extra_kwargs!r}") @@ -8217,9 +8217,9 @@ def publish_listing_revision_as_private(self, publish_listing_revision_as_privat "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8230,7 +8230,7 @@ def publish_listing_revision_as_private(self, publish_listing_revision_as_privat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8325,7 +8325,7 @@ def publish_listing_revision_package(self, listing_revision_package_id, **kwargs "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_listing_revision_package got unknown kwargs: {extra_kwargs!r}") @@ -8334,9 +8334,9 @@ def publish_listing_revision_package(self, listing_revision_package_id, **kwargs "listingRevisionPackageId": listing_revision_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8347,7 +8347,7 @@ def publish_listing_revision_package(self, listing_revision_package_id, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8443,7 +8443,7 @@ def submit_listing_revision_for_review(self, submit_listing_revision_for_review_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"submit_listing_revision_for_review got unknown kwargs: {extra_kwargs!r}") @@ -8452,9 +8452,9 @@ def submit_listing_revision_for_review(self, submit_listing_revision_for_review_ "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8465,7 +8465,7 @@ def submit_listing_revision_for_review(self, submit_listing_revision_for_review_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8562,7 +8562,7 @@ def un_publish_listing_revision_package(self, listing_revision_package_id, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"un_publish_listing_revision_package got unknown kwargs: {extra_kwargs!r}") @@ -8571,9 +8571,9 @@ def un_publish_listing_revision_package(self, listing_revision_package_id, **kwa "listingRevisionPackageId": listing_revision_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8584,7 +8584,7 @@ def un_publish_listing_revision_package(self, listing_revision_package_id, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8672,7 +8672,7 @@ def update_artifact(self, artifact_id, update_artifact_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_artifact got unknown kwargs: {extra_kwargs!r}") @@ -8681,9 +8681,9 @@ def update_artifact(self, artifact_id, update_artifact_details, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8693,7 +8693,7 @@ def update_artifact(self, artifact_id, update_artifact_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8782,7 +8782,7 @@ def update_listing(self, listing_id, update_listing_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing got unknown kwargs: {extra_kwargs!r}") @@ -8791,9 +8791,9 @@ def update_listing(self, listing_id, update_listing_details, **kwargs): "listingId": listing_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8803,7 +8803,7 @@ def update_listing(self, listing_id, update_listing_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8894,7 +8894,7 @@ def update_listing_revision(self, listing_revision_id, update_listing_revision_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -8903,9 +8903,9 @@ def update_listing_revision(self, listing_revision_id, update_listing_revision_d "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8915,7 +8915,7 @@ def update_listing_revision(self, listing_revision_id, update_listing_revision_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9006,7 +9006,7 @@ def update_listing_revision_attachment(self, listing_revision_attachment_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing_revision_attachment got unknown kwargs: {extra_kwargs!r}") @@ -9015,9 +9015,9 @@ def update_listing_revision_attachment(self, listing_revision_attachment_id, upd "listingRevisionAttachmentId": listing_revision_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9027,7 +9027,7 @@ def update_listing_revision_attachment(self, listing_revision_attachment_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9126,7 +9126,7 @@ def update_listing_revision_attachment_content(self, listing_revision_attachment "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing_revision_attachment_content got unknown kwargs: {extra_kwargs!r}") @@ -9135,9 +9135,9 @@ def update_listing_revision_attachment_content(self, listing_revision_attachment "listingRevisionAttachmentId": listing_revision_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9146,7 +9146,7 @@ def update_listing_revision_attachment_content(self, listing_revision_attachment "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -9266,7 +9266,7 @@ def update_listing_revision_icon_content(self, listing_revision_id, update_listi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing_revision_icon_content got unknown kwargs: {extra_kwargs!r}") @@ -9275,9 +9275,9 @@ def update_listing_revision_icon_content(self, listing_revision_id, update_listi "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9286,7 +9286,7 @@ def update_listing_revision_icon_content(self, listing_revision_id, update_listi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -9398,7 +9398,7 @@ def update_listing_revision_note(self, listing_revision_note_id, update_listing_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing_revision_note got unknown kwargs: {extra_kwargs!r}") @@ -9407,9 +9407,9 @@ def update_listing_revision_note(self, listing_revision_note_id, update_listing_ "listingRevisionNoteId": listing_revision_note_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9419,7 +9419,7 @@ def update_listing_revision_note(self, listing_revision_note_id, update_listing_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9510,7 +9510,7 @@ def update_listing_revision_package(self, listing_revision_package_id, update_li "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listing_revision_package got unknown kwargs: {extra_kwargs!r}") @@ -9519,9 +9519,9 @@ def update_listing_revision_package(self, listing_revision_package_id, update_li "listingRevisionPackageId": listing_revision_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9531,7 +9531,7 @@ def update_listing_revision_package(self, listing_revision_package_id, update_li "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9622,7 +9622,7 @@ def update_term(self, term_id, update_term_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_term got unknown kwargs: {extra_kwargs!r}") @@ -9631,9 +9631,9 @@ def update_term(self, term_id, update_term_details, **kwargs): "termId": term_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9643,7 +9643,7 @@ def update_term(self, term_id, update_term_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9734,7 +9734,7 @@ def update_term_version(self, term_version_id, update_term_version_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_term_version got unknown kwargs: {extra_kwargs!r}") @@ -9743,9 +9743,9 @@ def update_term_version(self, term_version_id, update_term_version_details, **kw "termVersionId": term_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9755,7 +9755,7 @@ def update_term_version(self, term_version_id, update_term_version_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9858,7 +9858,7 @@ def update_term_version_content(self, term_version_id, update_term_version_conte "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_term_version_content got unknown kwargs: {extra_kwargs!r}") @@ -9867,9 +9867,9 @@ def update_term_version_content(self, term_version_id, update_term_version_conte "termVersionId": term_version_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9879,7 +9879,7 @@ def update_term_version_content(self, term_version_id, update_term_version_conte "opc-request-id": kwargs.get("opc_request_id", missing), "display-name": kwargs.get("display_name", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -9996,7 +9996,7 @@ def validate_and_publish_artifact(self, artifact_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_and_publish_artifact got unknown kwargs: {extra_kwargs!r}") @@ -10005,9 +10005,9 @@ def validate_and_publish_artifact(self, artifact_id, **kwargs): "artifactId": artifact_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10018,7 +10018,7 @@ def validate_and_publish_artifact(self, artifact_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10111,7 +10111,7 @@ def withdraw_listing_revision(self, listing_revision_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"withdraw_listing_revision got unknown kwargs: {extra_kwargs!r}") @@ -10120,9 +10120,9 @@ def withdraw_listing_revision(self, listing_revision_id, **kwargs): "listingRevisionId": listing_revision_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10133,7 +10133,7 @@ def withdraw_listing_revision(self, listing_revision_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/media_services/media_services_client.py b/src/oci/media_services/media_services_client.py index 785343936..5b5776c5b 100644 --- a/src/oci/media_services/media_services_client.py +++ b/src/oci/media_services/media_services_client.py @@ -181,7 +181,7 @@ def add_media_asset_lock(self, add_lock_details, media_asset_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_media_asset_lock got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def add_media_asset_lock(self, add_lock_details, media_asset_id, **kwargs): "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def add_media_asset_lock(self, add_lock_details, media_asset_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def add_media_workflow_configuration_lock(self, add_resource_lock_details, media "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_media_workflow_configuration_lock got unknown kwargs: {extra_kwargs!r}") @@ -312,9 +312,9 @@ def add_media_workflow_configuration_lock(self, add_resource_lock_details, media "mediaWorkflowConfigurationId": media_workflow_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -325,7 +325,7 @@ def add_media_workflow_configuration_lock(self, add_resource_lock_details, media "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -425,7 +425,7 @@ def add_media_workflow_job_lock(self, add_lock_details, media_workflow_job_id, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_media_workflow_job_lock got unknown kwargs: {extra_kwargs!r}") @@ -434,9 +434,9 @@ def add_media_workflow_job_lock(self, add_lock_details, media_workflow_job_id, * "mediaWorkflowJobId": media_workflow_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -447,7 +447,7 @@ def add_media_workflow_job_lock(self, add_lock_details, media_workflow_job_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -547,7 +547,7 @@ def add_media_workflow_lock(self, add_resource_lock_details, media_workflow_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_media_workflow_lock got unknown kwargs: {extra_kwargs!r}") @@ -556,9 +556,9 @@ def add_media_workflow_lock(self, add_resource_lock_details, media_workflow_id, "mediaWorkflowId": media_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -569,7 +569,7 @@ def add_media_workflow_lock(self, add_resource_lock_details, media_workflow_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -669,7 +669,7 @@ def add_stream_cdn_config_lock(self, add_resource_lock_details, stream_cdn_confi "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_stream_cdn_config_lock got unknown kwargs: {extra_kwargs!r}") @@ -678,9 +678,9 @@ def add_stream_cdn_config_lock(self, add_resource_lock_details, stream_cdn_confi "streamCdnConfigId": stream_cdn_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -691,7 +691,7 @@ def add_stream_cdn_config_lock(self, add_resource_lock_details, stream_cdn_confi "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -791,7 +791,7 @@ def add_stream_distribution_channel_lock(self, add_resource_lock_details, stream "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_stream_distribution_channel_lock got unknown kwargs: {extra_kwargs!r}") @@ -800,9 +800,9 @@ def add_stream_distribution_channel_lock(self, add_resource_lock_details, stream "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -813,7 +813,7 @@ def add_stream_distribution_channel_lock(self, add_resource_lock_details, stream "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -913,7 +913,7 @@ def add_stream_packaging_config_lock(self, add_resource_lock_details, stream_pac "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_stream_packaging_config_lock got unknown kwargs: {extra_kwargs!r}") @@ -922,9 +922,9 @@ def add_stream_packaging_config_lock(self, add_resource_lock_details, stream_pac "streamPackagingConfigId": stream_packaging_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -935,7 +935,7 @@ def add_stream_packaging_config_lock(self, add_resource_lock_details, stream_pac "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1039,7 +1039,7 @@ def change_media_asset_compartment(self, media_asset_id, change_media_asset_comp "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_media_asset_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1048,16 +1048,16 @@ def change_media_asset_compartment(self, media_asset_id, change_media_asset_comp "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1066,7 +1066,7 @@ def change_media_asset_compartment(self, media_asset_id, change_media_asset_comp "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1170,7 +1170,7 @@ def change_media_workflow_compartment(self, media_workflow_id, change_media_work "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_media_workflow_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1179,16 +1179,16 @@ def change_media_workflow_compartment(self, media_workflow_id, change_media_work "mediaWorkflowId": media_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1197,7 +1197,7 @@ def change_media_workflow_compartment(self, media_workflow_id, change_media_work "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1301,7 +1301,7 @@ def change_media_workflow_configuration_compartment(self, media_workflow_configu "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_media_workflow_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1310,16 +1310,16 @@ def change_media_workflow_configuration_compartment(self, media_workflow_configu "mediaWorkflowConfigurationId": media_workflow_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1328,7 +1328,7 @@ def change_media_workflow_configuration_compartment(self, media_workflow_configu "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1432,7 +1432,7 @@ def change_media_workflow_job_compartment(self, media_workflow_job_id, change_me "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_media_workflow_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1441,16 +1441,16 @@ def change_media_workflow_job_compartment(self, media_workflow_job_id, change_me "mediaWorkflowJobId": media_workflow_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1459,7 +1459,7 @@ def change_media_workflow_job_compartment(self, media_workflow_job_id, change_me "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1563,7 +1563,7 @@ def change_stream_distribution_channel_compartment(self, stream_distribution_cha "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stream_distribution_channel_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1572,16 +1572,16 @@ def change_stream_distribution_channel_compartment(self, stream_distribution_cha "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1590,7 +1590,7 @@ def change_stream_distribution_channel_compartment(self, stream_distribution_cha "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1679,7 +1679,7 @@ def create_media_asset(self, create_media_asset_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_media_asset got unknown kwargs: {extra_kwargs!r}") @@ -1690,7 +1690,7 @@ def create_media_asset(self, create_media_asset_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1777,7 +1777,7 @@ def create_media_workflow(self, create_media_workflow_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_media_workflow got unknown kwargs: {extra_kwargs!r}") @@ -1788,7 +1788,7 @@ def create_media_workflow(self, create_media_workflow_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1875,7 +1875,7 @@ def create_media_workflow_configuration(self, create_media_workflow_configuratio "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_media_workflow_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1886,7 +1886,7 @@ def create_media_workflow_configuration(self, create_media_workflow_configuratio "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1973,7 +1973,7 @@ def create_media_workflow_job(self, create_media_workflow_job_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_media_workflow_job got unknown kwargs: {extra_kwargs!r}") @@ -1984,7 +1984,7 @@ def create_media_workflow_job(self, create_media_workflow_job_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2071,7 +2071,7 @@ def create_stream_cdn_config(self, create_stream_cdn_config_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_cdn_config got unknown kwargs: {extra_kwargs!r}") @@ -2082,7 +2082,7 @@ def create_stream_cdn_config(self, create_stream_cdn_config_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2169,7 +2169,7 @@ def create_stream_distribution_channel(self, create_stream_distribution_channel_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_distribution_channel got unknown kwargs: {extra_kwargs!r}") @@ -2180,7 +2180,7 @@ def create_stream_distribution_channel(self, create_stream_distribution_channel_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2267,7 +2267,7 @@ def create_stream_packaging_config(self, create_stream_packaging_config_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_packaging_config got unknown kwargs: {extra_kwargs!r}") @@ -2278,7 +2278,7 @@ def create_stream_packaging_config(self, create_stream_packaging_config_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2375,7 +2375,7 @@ def delete_media_asset(self, media_asset_id, **kwargs): "opc_request_id", "delete_mode" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_media_asset got unknown kwargs: {extra_kwargs!r}") @@ -2384,9 +2384,9 @@ def delete_media_asset(self, media_asset_id, **kwargs): "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2401,7 +2401,7 @@ def delete_media_asset(self, media_asset_id, **kwargs): "isLockOverride": kwargs.get("is_lock_override", missing), "deleteMode": kwargs.get("delete_mode", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2409,7 +2409,7 @@ def delete_media_asset(self, media_asset_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2506,7 +2506,7 @@ def delete_media_asset_distribution_channel_attachment(self, media_asset_id, dis "opc_request_id", "version" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_media_asset_distribution_channel_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2516,9 +2516,9 @@ def delete_media_asset_distribution_channel_attachment(self, media_asset_id, dis "distributionChannelId": distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2526,7 +2526,7 @@ def delete_media_asset_distribution_channel_attachment(self, media_asset_id, dis "isLockOverride": kwargs.get("is_lock_override", missing), "version": kwargs.get("version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2534,7 +2534,7 @@ def delete_media_asset_distribution_channel_attachment(self, media_asset_id, dis "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2624,7 +2624,7 @@ def delete_media_workflow(self, media_workflow_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_media_workflow got unknown kwargs: {extra_kwargs!r}") @@ -2633,16 +2633,16 @@ def delete_media_workflow(self, media_workflow_id, **kwargs): "mediaWorkflowId": media_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2650,7 +2650,7 @@ def delete_media_workflow(self, media_workflow_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2740,7 +2740,7 @@ def delete_media_workflow_configuration(self, media_workflow_configuration_id, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_media_workflow_configuration got unknown kwargs: {extra_kwargs!r}") @@ -2749,16 +2749,16 @@ def delete_media_workflow_configuration(self, media_workflow_configuration_id, * "mediaWorkflowConfigurationId": media_workflow_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2766,7 +2766,7 @@ def delete_media_workflow_configuration(self, media_workflow_configuration_id, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2856,7 +2856,7 @@ def delete_media_workflow_job(self, media_workflow_job_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_media_workflow_job got unknown kwargs: {extra_kwargs!r}") @@ -2865,16 +2865,16 @@ def delete_media_workflow_job(self, media_workflow_job_id, **kwargs): "mediaWorkflowJobId": media_workflow_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2882,7 +2882,7 @@ def delete_media_workflow_job(self, media_workflow_job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2972,7 +2972,7 @@ def delete_stream_cdn_config(self, stream_cdn_config_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_cdn_config got unknown kwargs: {extra_kwargs!r}") @@ -2981,16 +2981,16 @@ def delete_stream_cdn_config(self, stream_cdn_config_id, **kwargs): "streamCdnConfigId": stream_cdn_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2998,7 +2998,7 @@ def delete_stream_cdn_config(self, stream_cdn_config_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3088,7 +3088,7 @@ def delete_stream_distribution_channel(self, stream_distribution_channel_id, **k "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_distribution_channel got unknown kwargs: {extra_kwargs!r}") @@ -3097,16 +3097,16 @@ def delete_stream_distribution_channel(self, stream_distribution_channel_id, **k "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3114,7 +3114,7 @@ def delete_stream_distribution_channel(self, stream_distribution_channel_id, **k "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3204,7 +3204,7 @@ def delete_stream_packaging_config(self, stream_packaging_config_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_packaging_config got unknown kwargs: {extra_kwargs!r}") @@ -3213,16 +3213,16 @@ def delete_stream_packaging_config(self, stream_packaging_config_id, **kwargs): "streamPackagingConfigId": stream_packaging_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3230,7 +3230,7 @@ def delete_stream_packaging_config(self, stream_packaging_config_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3308,7 +3308,7 @@ def get_media_asset(self, media_asset_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_media_asset got unknown kwargs: {extra_kwargs!r}") @@ -3317,9 +3317,9 @@ def get_media_asset(self, media_asset_id, **kwargs): "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3328,7 +3328,7 @@ def get_media_asset(self, media_asset_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3413,7 +3413,7 @@ def get_media_asset_distribution_channel_attachment(self, media_asset_id, distri "opc_request_id", "version" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_media_asset_distribution_channel_attachment got unknown kwargs: {extra_kwargs!r}") @@ -3423,23 +3423,23 @@ def get_media_asset_distribution_channel_attachment(self, media_asset_id, distri "distributionChannelId": distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "version": kwargs.get("version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3519,7 +3519,7 @@ def get_media_workflow(self, media_workflow_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_media_workflow got unknown kwargs: {extra_kwargs!r}") @@ -3528,9 +3528,9 @@ def get_media_workflow(self, media_workflow_id, **kwargs): "mediaWorkflowId": media_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3539,7 +3539,7 @@ def get_media_workflow(self, media_workflow_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3617,7 +3617,7 @@ def get_media_workflow_configuration(self, media_workflow_configuration_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_media_workflow_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3626,9 +3626,9 @@ def get_media_workflow_configuration(self, media_workflow_configuration_id, **kw "mediaWorkflowConfigurationId": media_workflow_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3637,7 +3637,7 @@ def get_media_workflow_configuration(self, media_workflow_configuration_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3715,7 +3715,7 @@ def get_media_workflow_job(self, media_workflow_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_media_workflow_job got unknown kwargs: {extra_kwargs!r}") @@ -3724,9 +3724,9 @@ def get_media_workflow_job(self, media_workflow_job_id, **kwargs): "mediaWorkflowJobId": media_workflow_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3735,7 +3735,7 @@ def get_media_workflow_job(self, media_workflow_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3813,7 +3813,7 @@ def get_stream_cdn_config(self, stream_cdn_config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_cdn_config got unknown kwargs: {extra_kwargs!r}") @@ -3822,9 +3822,9 @@ def get_stream_cdn_config(self, stream_cdn_config_id, **kwargs): "streamCdnConfigId": stream_cdn_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3833,7 +3833,7 @@ def get_stream_cdn_config(self, stream_cdn_config_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3911,7 +3911,7 @@ def get_stream_distribution_channel(self, stream_distribution_channel_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_distribution_channel got unknown kwargs: {extra_kwargs!r}") @@ -3920,9 +3920,9 @@ def get_stream_distribution_channel(self, stream_distribution_channel_id, **kwar "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3931,7 +3931,7 @@ def get_stream_distribution_channel(self, stream_distribution_channel_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4009,7 +4009,7 @@ def get_stream_packaging_config(self, stream_packaging_config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_packaging_config got unknown kwargs: {extra_kwargs!r}") @@ -4018,9 +4018,9 @@ def get_stream_packaging_config(self, stream_packaging_config_id, **kwargs): "streamPackagingConfigId": stream_packaging_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4029,7 +4029,7 @@ def get_stream_packaging_config(self, stream_packaging_config_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4118,7 +4118,7 @@ def ingest_stream_distribution_channel(self, stream_distribution_channel_id, ing "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_stream_distribution_channel got unknown kwargs: {extra_kwargs!r}") @@ -4127,9 +4127,9 @@ def ingest_stream_distribution_channel(self, stream_distribution_channel_id, ing "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4139,7 +4139,7 @@ def ingest_stream_distribution_channel(self, stream_distribution_channel_id, ing "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4249,7 +4249,7 @@ def list_media_asset_distribution_channel_attachments(self, media_asset_id, **kw "sort_by", "distribution_channel_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_media_asset_distribution_channel_attachments got unknown kwargs: {extra_kwargs!r}") @@ -4258,9 +4258,9 @@ def list_media_asset_distribution_channel_attachments(self, media_asset_id, **kw "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4286,14 +4286,14 @@ def list_media_asset_distribution_channel_attachments(self, media_asset_id, **kw "sortBy": kwargs.get("sort_by", missing), "distributionChannelId": kwargs.get("distribution_channel_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4443,7 +4443,7 @@ def list_media_assets(self, **kwargs): "source_media_workflow_id", "source_media_workflow_version" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_media_assets got unknown kwargs: {extra_kwargs!r}") @@ -4494,14 +4494,14 @@ def list_media_assets(self, **kwargs): "sourceMediaWorkflowId": kwargs.get("source_media_workflow_id", missing), "sourceMediaWorkflowVersion": kwargs.get("source_media_workflow_version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4616,7 +4616,7 @@ def list_media_workflow_configurations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_media_workflow_configurations got unknown kwargs: {extra_kwargs!r}") @@ -4652,14 +4652,14 @@ def list_media_workflow_configurations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4777,7 +4777,7 @@ def list_media_workflow_jobs(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_media_workflow_jobs got unknown kwargs: {extra_kwargs!r}") @@ -4814,14 +4814,14 @@ def list_media_workflow_jobs(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4933,7 +4933,7 @@ def list_media_workflow_task_declarations(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_media_workflow_task_declarations got unknown kwargs: {extra_kwargs!r}") @@ -4962,14 +4962,14 @@ def list_media_workflow_task_declarations(self, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5084,7 +5084,7 @@ def list_media_workflows(self, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_media_workflows got unknown kwargs: {extra_kwargs!r}") @@ -5120,14 +5120,14 @@ def list_media_workflows(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5241,7 +5241,7 @@ def list_stream_cdn_configs(self, distribution_channel_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_cdn_configs got unknown kwargs: {extra_kwargs!r}") @@ -5277,14 +5277,14 @@ def list_stream_cdn_configs(self, distribution_channel_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5399,7 +5399,7 @@ def list_stream_distribution_channels(self, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_distribution_channels got unknown kwargs: {extra_kwargs!r}") @@ -5435,14 +5435,14 @@ def list_stream_distribution_channels(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5556,7 +5556,7 @@ def list_stream_packaging_configs(self, distribution_channel_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_packaging_configs got unknown kwargs: {extra_kwargs!r}") @@ -5592,14 +5592,14 @@ def list_stream_packaging_configs(self, distribution_channel_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5697,7 +5697,7 @@ def list_system_media_workflows(self, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_system_media_workflows got unknown kwargs: {extra_kwargs!r}") @@ -5716,14 +5716,14 @@ def list_system_media_workflows(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5820,7 +5820,7 @@ def remove_media_asset_lock(self, remove_lock_details, media_asset_id, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_media_asset_lock got unknown kwargs: {extra_kwargs!r}") @@ -5829,9 +5829,9 @@ def remove_media_asset_lock(self, remove_lock_details, media_asset_id, **kwargs) "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5842,7 +5842,7 @@ def remove_media_asset_lock(self, remove_lock_details, media_asset_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5942,7 +5942,7 @@ def remove_media_workflow_configuration_lock(self, remove_resource_lock_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_media_workflow_configuration_lock got unknown kwargs: {extra_kwargs!r}") @@ -5951,9 +5951,9 @@ def remove_media_workflow_configuration_lock(self, remove_resource_lock_details, "mediaWorkflowConfigurationId": media_workflow_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5964,7 +5964,7 @@ def remove_media_workflow_configuration_lock(self, remove_resource_lock_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6064,7 +6064,7 @@ def remove_media_workflow_job_lock(self, remove_lock_details, media_workflow_job "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_media_workflow_job_lock got unknown kwargs: {extra_kwargs!r}") @@ -6073,9 +6073,9 @@ def remove_media_workflow_job_lock(self, remove_lock_details, media_workflow_job "mediaWorkflowJobId": media_workflow_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6086,7 +6086,7 @@ def remove_media_workflow_job_lock(self, remove_lock_details, media_workflow_job "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6186,7 +6186,7 @@ def remove_media_workflow_lock(self, remove_resource_lock_details, media_workflo "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_media_workflow_lock got unknown kwargs: {extra_kwargs!r}") @@ -6195,9 +6195,9 @@ def remove_media_workflow_lock(self, remove_resource_lock_details, media_workflo "mediaWorkflowId": media_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6208,7 +6208,7 @@ def remove_media_workflow_lock(self, remove_resource_lock_details, media_workflo "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6308,7 +6308,7 @@ def remove_stream_cdn_config_lock(self, remove_resource_lock_details, stream_cdn "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_stream_cdn_config_lock got unknown kwargs: {extra_kwargs!r}") @@ -6317,9 +6317,9 @@ def remove_stream_cdn_config_lock(self, remove_resource_lock_details, stream_cdn "streamCdnConfigId": stream_cdn_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6330,7 +6330,7 @@ def remove_stream_cdn_config_lock(self, remove_resource_lock_details, stream_cdn "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6430,7 +6430,7 @@ def remove_stream_distribution_channel_lock(self, remove_resource_lock_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_stream_distribution_channel_lock got unknown kwargs: {extra_kwargs!r}") @@ -6439,9 +6439,9 @@ def remove_stream_distribution_channel_lock(self, remove_resource_lock_details, "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6452,7 +6452,7 @@ def remove_stream_distribution_channel_lock(self, remove_resource_lock_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6552,7 +6552,7 @@ def remove_stream_packaging_config_lock(self, remove_resource_lock_details, stre "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_stream_packaging_config_lock got unknown kwargs: {extra_kwargs!r}") @@ -6561,9 +6561,9 @@ def remove_stream_packaging_config_lock(self, remove_resource_lock_details, stre "streamPackagingConfigId": stream_packaging_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6574,7 +6574,7 @@ def remove_stream_packaging_config_lock(self, remove_resource_lock_details, stre "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6670,7 +6670,7 @@ def update_media_asset(self, media_asset_id, update_media_asset_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_media_asset got unknown kwargs: {extra_kwargs!r}") @@ -6679,16 +6679,16 @@ def update_media_asset(self, media_asset_id, update_media_asset_details, **kwarg "mediaAssetId": media_asset_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6696,7 +6696,7 @@ def update_media_asset(self, media_asset_id, update_media_asset_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6793,7 +6793,7 @@ def update_media_workflow(self, media_workflow_id, update_media_workflow_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_media_workflow got unknown kwargs: {extra_kwargs!r}") @@ -6802,16 +6802,16 @@ def update_media_workflow(self, media_workflow_id, update_media_workflow_details "mediaWorkflowId": media_workflow_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6819,7 +6819,7 @@ def update_media_workflow(self, media_workflow_id, update_media_workflow_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6916,7 +6916,7 @@ def update_media_workflow_configuration(self, media_workflow_configuration_id, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_media_workflow_configuration got unknown kwargs: {extra_kwargs!r}") @@ -6925,16 +6925,16 @@ def update_media_workflow_configuration(self, media_workflow_configuration_id, u "mediaWorkflowConfigurationId": media_workflow_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -6942,7 +6942,7 @@ def update_media_workflow_configuration(self, media_workflow_configuration_id, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7039,7 +7039,7 @@ def update_media_workflow_job(self, media_workflow_job_id, update_media_workflow "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_media_workflow_job got unknown kwargs: {extra_kwargs!r}") @@ -7048,16 +7048,16 @@ def update_media_workflow_job(self, media_workflow_job_id, update_media_workflow "mediaWorkflowJobId": media_workflow_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7065,7 +7065,7 @@ def update_media_workflow_job(self, media_workflow_job_id, update_media_workflow "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7162,7 +7162,7 @@ def update_stream_cdn_config(self, stream_cdn_config_id, update_stream_cdn_confi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_cdn_config got unknown kwargs: {extra_kwargs!r}") @@ -7171,16 +7171,16 @@ def update_stream_cdn_config(self, stream_cdn_config_id, update_stream_cdn_confi "streamCdnConfigId": stream_cdn_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7188,7 +7188,7 @@ def update_stream_cdn_config(self, stream_cdn_config_id, update_stream_cdn_confi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7285,7 +7285,7 @@ def update_stream_distribution_channel(self, stream_distribution_channel_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_distribution_channel got unknown kwargs: {extra_kwargs!r}") @@ -7294,16 +7294,16 @@ def update_stream_distribution_channel(self, stream_distribution_channel_id, upd "streamDistributionChannelId": stream_distribution_channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7311,7 +7311,7 @@ def update_stream_distribution_channel(self, stream_distribution_channel_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7408,7 +7408,7 @@ def update_stream_packaging_config(self, stream_packaging_config_id, update_stre "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_packaging_config got unknown kwargs: {extra_kwargs!r}") @@ -7417,16 +7417,16 @@ def update_stream_packaging_config(self, stream_packaging_config_id, update_stre "streamPackagingConfigId": stream_packaging_config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isLockOverride": kwargs.get("is_lock_override", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7434,7 +7434,7 @@ def update_stream_packaging_config(self, stream_packaging_config_id, update_stre "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/media_services/media_stream_client.py b/src/oci/media_services/media_stream_client.py index f3dabd1f6..97a46fc11 100644 --- a/src/oci/media_services/media_stream_client.py +++ b/src/oci/media_services/media_stream_client.py @@ -169,7 +169,7 @@ def generate_playlist(self, stream_packaging_config_id, media_asset_id, **kwargs "opc_request_id", "token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_playlist got unknown kwargs: {extra_kwargs!r}") @@ -179,14 +179,14 @@ def generate_playlist(self, stream_packaging_config_id, media_asset_id, **kwargs "mediaAssetId": media_asset_id, "token": kwargs.get("token", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/x-mpegurl, application/dash+xml", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -264,7 +264,7 @@ def generate_session_token(self, generate_session_token_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_session_token got unknown kwargs: {extra_kwargs!r}") @@ -274,7 +274,7 @@ def generate_session_token(self, generate_session_token_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mngdmac/mac_device_client.py b/src/oci/mngdmac/mac_device_client.py index 93661abe0..56cbee8d4 100644 --- a/src/oci/mngdmac/mac_device_client.py +++ b/src/oci/mngdmac/mac_device_client.py @@ -168,7 +168,7 @@ def get_mac_device(self, mac_device_id, mac_order_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_mac_device got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def get_mac_device(self, mac_device_id, mac_order_id, **kwargs): "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def get_mac_device(self, mac_device_id, mac_order_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -322,7 +322,7 @@ def list_mac_devices(self, mac_order_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mac_devices got unknown kwargs: {extra_kwargs!r}") @@ -331,9 +331,9 @@ def list_mac_devices(self, mac_order_id, **kwargs): "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -368,14 +368,14 @@ def list_mac_devices(self, mac_order_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -478,7 +478,7 @@ def terminate_mac_device(self, mac_device_id, mac_order_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"terminate_mac_device got unknown kwargs: {extra_kwargs!r}") @@ -488,9 +488,9 @@ def terminate_mac_device(self, mac_device_id, mac_order_id, **kwargs): "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -501,7 +501,7 @@ def terminate_mac_device(self, mac_device_id, mac_order_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mngdmac/mac_order_client.py b/src/oci/mngdmac/mac_order_client.py index b516331c2..9c4c06536 100644 --- a/src/oci/mngdmac/mac_order_client.py +++ b/src/oci/mngdmac/mac_order_client.py @@ -184,7 +184,7 @@ def cancel_mac_order(self, mac_order_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_mac_order got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def cancel_mac_order(self, mac_order_id, **kwargs): "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def cancel_mac_order(self, mac_order_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -306,9 +306,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -318,7 +318,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -412,7 +412,7 @@ def change_mac_order_compartment(self, mac_order_id, change_mac_order_compartmen "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_mac_order_compartment got unknown kwargs: {extra_kwargs!r}") @@ -421,9 +421,9 @@ def change_mac_order_compartment(self, mac_order_id, change_mac_order_compartmen "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -433,7 +433,7 @@ def change_mac_order_compartment(self, mac_order_id, change_mac_order_compartmen "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -522,7 +522,7 @@ def create_mac_order(self, create_mac_order_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_mac_order got unknown kwargs: {extra_kwargs!r}") @@ -533,7 +533,7 @@ def create_mac_order(self, create_mac_order_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -617,7 +617,7 @@ def get_mac_order(self, mac_order_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_mac_order got unknown kwargs: {extra_kwargs!r}") @@ -626,9 +626,9 @@ def get_mac_order(self, mac_order_id, **kwargs): "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -637,7 +637,7 @@ def get_mac_order(self, mac_order_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -720,7 +720,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -729,9 +729,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -740,7 +740,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -870,7 +870,7 @@ def list_mac_orders(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mac_orders got unknown kwargs: {extra_kwargs!r}") @@ -906,14 +906,14 @@ def list_mac_orders(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1024,7 +1024,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1033,9 +1033,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1059,14 +1059,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1179,7 +1179,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1188,9 +1188,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1214,14 +1214,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1353,7 +1353,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1389,14 +1389,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1489,7 +1489,7 @@ def update_mac_order(self, mac_order_id, update_mac_order_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_mac_order got unknown kwargs: {extra_kwargs!r}") @@ -1498,9 +1498,9 @@ def update_mac_order(self, mac_order_id, update_mac_order_details, **kwargs): "macOrderId": mac_order_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1510,7 +1510,7 @@ def update_mac_order(self, mac_order_id, update_mac_order_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/model_deployment/model_deployment_client.py b/src/oci/model_deployment/model_deployment_client.py index ac5eb2dd9..e687e37b1 100644 --- a/src/oci/model_deployment/model_deployment_client.py +++ b/src/oci/model_deployment/model_deployment_client.py @@ -168,7 +168,7 @@ def predict(self, model_deployment_id, request_body, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"predict got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def predict(self, model_deployment_id, request_body, **kwargs): "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,7 +188,7 @@ def predict(self, model_deployment_id, request_body, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -274,7 +274,7 @@ def predict_with_response_stream(self, model_deployment_id, request_body, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"predict_with_response_stream got unknown kwargs: {extra_kwargs!r}") @@ -283,9 +283,9 @@ def predict_with_response_stream(self, model_deployment_id, request_body, **kwar "modelDeploymentId": model_deployment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def predict_with_response_stream(self, model_deployment_id, request_body, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/monitoring/monitoring_client.py b/src/oci/monitoring/monitoring_client.py index 030b06354..27f97e408 100644 --- a/src/oci/monitoring/monitoring_client.py +++ b/src/oci/monitoring/monitoring_client.py @@ -187,7 +187,7 @@ def change_alarm_compartment(self, alarm_id, change_alarm_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_alarm_compartment got unknown kwargs: {extra_kwargs!r}") @@ -196,9 +196,9 @@ def change_alarm_compartment(self, alarm_id, change_alarm_compartment_details, * "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -209,7 +209,7 @@ def change_alarm_compartment(self, alarm_id, change_alarm_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -306,7 +306,7 @@ def create_alarm(self, create_alarm_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_alarm got unknown kwargs: {extra_kwargs!r}") @@ -317,7 +317,7 @@ def create_alarm(self, create_alarm_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -417,7 +417,7 @@ def create_alarm_suppression(self, create_alarm_suppression_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_alarm_suppression got unknown kwargs: {extra_kwargs!r}") @@ -428,7 +428,7 @@ def create_alarm_suppression(self, create_alarm_suppression_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -525,7 +525,7 @@ def delete_alarm(self, alarm_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_alarm got unknown kwargs: {extra_kwargs!r}") @@ -534,9 +534,9 @@ def delete_alarm(self, alarm_id, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -546,7 +546,7 @@ def delete_alarm(self, alarm_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -642,7 +642,7 @@ def delete_alarm_suppression(self, alarm_suppression_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_alarm_suppression got unknown kwargs: {extra_kwargs!r}") @@ -651,9 +651,9 @@ def delete_alarm_suppression(self, alarm_suppression_id, **kwargs): "alarmSuppressionId": alarm_suppression_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -663,7 +663,7 @@ def delete_alarm_suppression(self, alarm_suppression_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -751,7 +751,7 @@ def get_alarm(self, alarm_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alarm got unknown kwargs: {extra_kwargs!r}") @@ -760,9 +760,9 @@ def get_alarm(self, alarm_id, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -771,7 +771,7 @@ def get_alarm(self, alarm_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -903,7 +903,7 @@ def get_alarm_history(self, alarm_id, **kwargs): "timestamp_greater_than_or_equal_to", "timestamp_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alarm_history got unknown kwargs: {extra_kwargs!r}") @@ -912,9 +912,9 @@ def get_alarm_history(self, alarm_id, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -932,14 +932,14 @@ def get_alarm_history(self, alarm_id, **kwargs): "timestampGreaterThanOrEqualTo": kwargs.get("timestamp_greater_than_or_equal_to", missing), "timestampLessThan": kwargs.get("timestamp_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1031,7 +1031,7 @@ def get_alarm_suppression(self, alarm_suppression_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alarm_suppression got unknown kwargs: {extra_kwargs!r}") @@ -1040,9 +1040,9 @@ def get_alarm_suppression(self, alarm_suppression_id, **kwargs): "alarmSuppressionId": alarm_suppression_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1051,7 +1051,7 @@ def get_alarm_suppression(self, alarm_suppression_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1236,7 +1236,7 @@ def list_alarm_suppressions(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alarm_suppressions got unknown kwargs: {extra_kwargs!r}") @@ -1290,14 +1290,14 @@ def list_alarm_suppressions(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1446,7 +1446,7 @@ def list_alarms(self, compartment_id, **kwargs): "sort_order", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alarms got unknown kwargs: {extra_kwargs!r}") @@ -1482,14 +1482,14 @@ def list_alarms(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1670,7 +1670,7 @@ def list_alarms_status(self, compartment_id, **kwargs): "entity_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alarms_status got unknown kwargs: {extra_kwargs!r}") @@ -1709,14 +1709,14 @@ def list_alarms_status(self, compartment_id, **kwargs): "entityId": kwargs.get("entity_id", missing), "status": kwargs.get("status", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1844,7 +1844,7 @@ def list_metrics(self, compartment_id, list_metrics_details, **kwargs): "limit", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_metrics got unknown kwargs: {extra_kwargs!r}") @@ -1855,14 +1855,14 @@ def list_metrics(self, compartment_id, list_metrics_details, **kwargs): "limit": kwargs.get("limit", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1980,7 +1980,7 @@ def post_metric_data(self, post_metric_data_details, **kwargs): "opc_request_id", "content_encoding" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"post_metric_data got unknown kwargs: {extra_kwargs!r}") @@ -1991,7 +1991,7 @@ def post_metric_data(self, post_metric_data_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "content-encoding": kwargs.get("content_encoding", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2087,7 +2087,7 @@ def remove_alarm_suppression(self, alarm_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_alarm_suppression got unknown kwargs: {extra_kwargs!r}") @@ -2096,9 +2096,9 @@ def remove_alarm_suppression(self, alarm_id, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2108,7 +2108,7 @@ def remove_alarm_suppression(self, alarm_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2223,7 +2223,7 @@ def retrieve_dimension_states(self, alarm_id, **kwargs): "limit", "retrieve_dimension_states_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_dimension_states got unknown kwargs: {extra_kwargs!r}") @@ -2232,9 +2232,9 @@ def retrieve_dimension_states(self, alarm_id, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2242,14 +2242,14 @@ def retrieve_dimension_states(self, alarm_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2367,7 +2367,7 @@ def summarize_alarm_suppression_history(self, alarm_id, **kwargs): "limit", "summarize_alarm_suppression_history_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_alarm_suppression_history got unknown kwargs: {extra_kwargs!r}") @@ -2376,9 +2376,9 @@ def summarize_alarm_suppression_history(self, alarm_id, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2386,14 +2386,14 @@ def summarize_alarm_suppression_history(self, alarm_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2503,7 +2503,7 @@ def summarize_metrics_data(self, compartment_id, summarize_metrics_data_details, "opc_request_id", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_metrics_data got unknown kwargs: {extra_kwargs!r}") @@ -2512,14 +2512,14 @@ def summarize_metrics_data(self, compartment_id, summarize_metrics_data_details, "compartmentId": compartment_id, "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2620,7 +2620,7 @@ def update_alarm(self, alarm_id, update_alarm_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_alarm got unknown kwargs: {extra_kwargs!r}") @@ -2629,9 +2629,9 @@ def update_alarm(self, alarm_id, update_alarm_details, **kwargs): "alarmId": alarm_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2641,7 +2641,7 @@ def update_alarm(self, alarm_id, update_alarm_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/multicloud/metadata_client.py b/src/oci/multicloud/metadata_client.py index cc669231f..5edcc60b6 100644 --- a/src/oci/multicloud/metadata_client.py +++ b/src/oci/multicloud/metadata_client.py @@ -232,7 +232,7 @@ def list_external_location_details_metadata(self, subscription_id, subscription_ "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_location_details_metadata got unknown kwargs: {extra_kwargs!r}") @@ -278,14 +278,14 @@ def list_external_location_details_metadata(self, subscription_id, subscription_ "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def list_external_location_mapping_metadata(self, subscription_service_name, com "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_location_mapping_metadata got unknown kwargs: {extra_kwargs!r}") @@ -444,14 +444,14 @@ def list_external_location_mapping_metadata(self, subscription_service_name, com "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -581,7 +581,7 @@ def list_external_location_summaries_metadata(self, subscription_service_name, c "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_external_location_summaries_metadata got unknown kwargs: {extra_kwargs!r}") @@ -623,14 +623,14 @@ def list_external_location_summaries_metadata(self, subscription_service_name, c "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/multicloud/multi_clouds_metadata_client.py b/src/oci/multicloud/multi_clouds_metadata_client.py index 960655516..40673be58 100644 --- a/src/oci/multicloud/multi_clouds_metadata_client.py +++ b/src/oci/multicloud/multi_clouds_metadata_client.py @@ -171,7 +171,7 @@ def get_multi_cloud_metadata(self, compartment_id, subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_multi_cloud_metadata got unknown kwargs: {extra_kwargs!r}") @@ -180,23 +180,23 @@ def get_multi_cloud_metadata(self, compartment_id, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -311,7 +311,7 @@ def list_multi_cloud_metadata(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_multi_cloud_metadata got unknown kwargs: {extra_kwargs!r}") @@ -337,14 +337,14 @@ def list_multi_cloud_metadata(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/multicloud/multicloud_resources_client.py b/src/oci/multicloud/multicloud_resources_client.py index 53e9a6641..cd681e52c 100644 --- a/src/oci/multicloud/multicloud_resources_client.py +++ b/src/oci/multicloud/multicloud_resources_client.py @@ -215,7 +215,7 @@ def list_multicloud_resources(self, subscription_service_name, subscription_id, "external_location", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_multicloud_resources got unknown kwargs: {extra_kwargs!r}") @@ -251,14 +251,14 @@ def list_multicloud_resources(self, subscription_service_name, subscription_id, "subscriptionId": subscription_id, "externalLocation": kwargs.get("external_location", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/multicloud/multicloudsubscriptions_client.py b/src/oci/multicloud/multicloudsubscriptions_client.py index 0ca251bfb..5f45fc164 100644 --- a/src/oci/multicloud/multicloudsubscriptions_client.py +++ b/src/oci/multicloud/multicloudsubscriptions_client.py @@ -198,7 +198,7 @@ def list_multicloud_subscriptions(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_multicloud_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -225,14 +225,14 @@ def list_multicloud_subscriptions(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/multicloud/omhub_network_anchor_client.py b/src/oci/multicloud/omhub_network_anchor_client.py index 570381495..a9d749735 100644 --- a/src/oci/multicloud/omhub_network_anchor_client.py +++ b/src/oci/multicloud/omhub_network_anchor_client.py @@ -183,7 +183,7 @@ def get_network_anchor(self, network_anchor_id, subscription_service_name, subsc "external_location", "should_fetch_vcn_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_anchor got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def get_network_anchor(self, network_anchor_id, subscription_service_name, subsc "networkAnchorId": network_anchor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -210,14 +210,14 @@ def get_network_anchor(self, network_anchor_id, subscription_service_name, subsc "externalLocation": kwargs.get("external_location", missing), "shouldFetchVcnName": kwargs.get("should_fetch_vcn_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -382,7 +382,7 @@ def list_network_anchors(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_anchors got unknown kwargs: {extra_kwargs!r}") @@ -432,14 +432,14 @@ def list_network_anchors(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/multicloud/omhub_resource_anchor_client.py b/src/oci/multicloud/omhub_resource_anchor_client.py index df28406ac..45167b41b 100644 --- a/src/oci/multicloud/omhub_resource_anchor_client.py +++ b/src/oci/multicloud/omhub_resource_anchor_client.py @@ -179,7 +179,7 @@ def get_resource_anchor(self, resource_anchor_id, subscription_service_name, sub "opc_request_id", "should_fetch_compartment_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_anchor got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def get_resource_anchor(self, resource_anchor_id, subscription_service_name, sub "resourceAnchorId": resource_anchor_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,14 +205,14 @@ def get_resource_anchor(self, resource_anchor_id, subscription_service_name, sub "subscriptionId": subscription_id, "shouldFetchCompartmentName": kwargs.get("should_fetch_compartment_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -371,7 +371,7 @@ def list_resource_anchors(self, **kwargs): "subscription_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_anchors got unknown kwargs: {extra_kwargs!r}") @@ -419,14 +419,14 @@ def list_resource_anchors(self, **kwargs): "subscriptionServiceName": kwargs.get("subscription_service_name", missing), "subscriptionId": kwargs.get("subscription_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mysql/channels_client.py b/src/oci/mysql/channels_client.py index a05ae602c..0bc545874 100644 --- a/src/oci/mysql/channels_client.py +++ b/src/oci/mysql/channels_client.py @@ -171,7 +171,7 @@ def create_channel(self, create_channel_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_channel got unknown kwargs: {extra_kwargs!r}") @@ -182,7 +182,7 @@ def create_channel(self, create_channel_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def delete_channel(self, channel_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_channel got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def delete_channel(self, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def delete_channel(self, channel_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -384,7 +384,7 @@ def get_channel(self, channel_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_channel got unknown kwargs: {extra_kwargs!r}") @@ -393,9 +393,9 @@ def get_channel(self, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -405,7 +405,7 @@ def get_channel(self, channel_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -539,7 +539,7 @@ def list_channels(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_channels got unknown kwargs: {extra_kwargs!r}") @@ -577,14 +577,14 @@ def list_channels(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -684,7 +684,7 @@ def reset_channel(self, channel_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reset_channel got unknown kwargs: {extra_kwargs!r}") @@ -693,9 +693,9 @@ def reset_channel(self, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -706,7 +706,7 @@ def reset_channel(self, channel_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -806,7 +806,7 @@ def resume_channel(self, channel_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resume_channel got unknown kwargs: {extra_kwargs!r}") @@ -815,9 +815,9 @@ def resume_channel(self, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -828,7 +828,7 @@ def resume_channel(self, channel_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -932,7 +932,7 @@ def update_channel(self, channel_id, update_channel_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_channel got unknown kwargs: {extra_kwargs!r}") @@ -941,9 +941,9 @@ def update_channel(self, channel_id, update_channel_details, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -954,7 +954,7 @@ def update_channel(self, channel_id, update_channel_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mysql/db_backups_client.py b/src/oci/mysql/db_backups_client.py index 4b6ac3288..f1ae06352 100644 --- a/src/oci/mysql/db_backups_client.py +++ b/src/oci/mysql/db_backups_client.py @@ -179,7 +179,7 @@ def cancel_backup_deletion(self, backup_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_backup_deletion got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def cancel_backup_deletion(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def cancel_backup_deletion(self, backup_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_backup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -310,9 +310,9 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -323,7 +323,7 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -419,7 +419,7 @@ def copy_backup(self, copy_backup_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_backup got unknown kwargs: {extra_kwargs!r}") @@ -431,7 +431,7 @@ def copy_backup(self, copy_backup_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -521,7 +521,7 @@ def create_backup(self, create_backup_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backup got unknown kwargs: {extra_kwargs!r}") @@ -532,7 +532,7 @@ def create_backup(self, create_backup_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -621,7 +621,7 @@ def delete_backup(self, backup_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backup got unknown kwargs: {extra_kwargs!r}") @@ -630,9 +630,9 @@ def delete_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -642,7 +642,7 @@ def delete_backup(self, backup_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -728,7 +728,7 @@ def get_backup(self, backup_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backup got unknown kwargs: {extra_kwargs!r}") @@ -737,9 +737,9 @@ def get_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -749,7 +749,7 @@ def get_backup(self, backup_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -902,7 +902,7 @@ def list_backups(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backups got unknown kwargs: {extra_kwargs!r}") @@ -971,14 +971,14 @@ def list_backups(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1069,7 +1069,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backup got unknown kwargs: {extra_kwargs!r}") @@ -1078,9 +1078,9 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1090,7 +1090,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1193,7 +1193,7 @@ def validate_backup(self, backup_id, **kwargs): "opc_retry_token", "validate_backup_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_backup got unknown kwargs: {extra_kwargs!r}") @@ -1202,9 +1202,9 @@ def validate_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1215,7 +1215,7 @@ def validate_backup(self, backup_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mysql/db_system_client.py b/src/oci/mysql/db_system_client.py index 641c6cf61..3dbed9ac6 100644 --- a/src/oci/mysql/db_system_client.py +++ b/src/oci/mysql/db_system_client.py @@ -184,7 +184,7 @@ def add_heat_wave_cluster(self, db_system_id, add_heat_wave_cluster_details, **k "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def add_heat_wave_cluster(self, db_system_id, add_heat_wave_cluster_details, **k "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def add_heat_wave_cluster(self, db_system_id, add_heat_wave_cluster_details, **k "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -298,7 +298,7 @@ def create_db_system(self, create_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_db_system got unknown kwargs: {extra_kwargs!r}") @@ -309,7 +309,7 @@ def create_db_system(self, create_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -401,7 +401,7 @@ def delete_db_system(self, db_system_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_db_system got unknown kwargs: {extra_kwargs!r}") @@ -410,9 +410,9 @@ def delete_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -422,7 +422,7 @@ def delete_db_system(self, db_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def delete_heat_wave_cluster(self, db_system_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -520,9 +520,9 @@ def delete_heat_wave_cluster(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -532,7 +532,7 @@ def delete_heat_wave_cluster(self, db_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -621,7 +621,7 @@ def generate_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"generate_heat_wave_cluster_memory_estimate got unknown kwargs: {extra_kwargs!r}") @@ -630,9 +630,9 @@ def generate_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -642,7 +642,7 @@ def generate_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -733,7 +733,7 @@ def get_db_system(self, db_system_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_system got unknown kwargs: {extra_kwargs!r}") @@ -742,9 +742,9 @@ def get_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -754,7 +754,7 @@ def get_db_system(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -844,7 +844,7 @@ def get_heat_wave_cluster(self, db_system_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -853,9 +853,9 @@ def get_heat_wave_cluster(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -865,7 +865,7 @@ def get_heat_wave_cluster(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -948,7 +948,7 @@ def get_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_heat_wave_cluster_memory_estimate got unknown kwargs: {extra_kwargs!r}") @@ -957,9 +957,9 @@ def get_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -968,7 +968,7 @@ def get_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1115,7 +1115,7 @@ def list_db_systems(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_systems got unknown kwargs: {extra_kwargs!r}") @@ -1163,14 +1163,14 @@ def list_db_systems(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1272,7 +1272,7 @@ def restart_db_system(self, db_system_id, restart_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_db_system got unknown kwargs: {extra_kwargs!r}") @@ -1281,9 +1281,9 @@ def restart_db_system(self, db_system_id, restart_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1294,7 +1294,7 @@ def restart_db_system(self, db_system_id, restart_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1394,7 +1394,7 @@ def restart_heat_wave_cluster(self, db_system_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1403,9 +1403,9 @@ def restart_heat_wave_cluster(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1416,7 +1416,7 @@ def restart_heat_wave_cluster(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1514,7 +1514,7 @@ def start_db_system(self, db_system_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_db_system got unknown kwargs: {extra_kwargs!r}") @@ -1523,9 +1523,9 @@ def start_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1536,7 +1536,7 @@ def start_db_system(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1634,7 +1634,7 @@ def start_heat_wave_cluster(self, db_system_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1643,9 +1643,9 @@ def start_heat_wave_cluster(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1656,7 +1656,7 @@ def start_heat_wave_cluster(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1759,7 +1759,7 @@ def stop_db_system(self, db_system_id, stop_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_db_system got unknown kwargs: {extra_kwargs!r}") @@ -1768,9 +1768,9 @@ def stop_db_system(self, db_system_id, stop_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1781,7 +1781,7 @@ def stop_db_system(self, db_system_id, stop_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1881,7 +1881,7 @@ def stop_heat_wave_cluster(self, db_system_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1890,9 +1890,9 @@ def stop_heat_wave_cluster(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1903,7 +1903,7 @@ def stop_heat_wave_cluster(self, db_system_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2002,7 +2002,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_system got unknown kwargs: {extra_kwargs!r}") @@ -2011,9 +2011,9 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2023,7 +2023,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2116,7 +2116,7 @@ def update_heat_wave_cluster(self, db_system_id, update_heat_wave_cluster_detail "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_heat_wave_cluster got unknown kwargs: {extra_kwargs!r}") @@ -2125,9 +2125,9 @@ def update_heat_wave_cluster(self, db_system_id, update_heat_wave_cluster_detail "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2137,7 +2137,7 @@ def update_heat_wave_cluster(self, db_system_id, update_heat_wave_cluster_detail "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mysql/mysqlaas_client.py b/src/oci/mysql/mysqlaas_client.py index f38e563ed..227f4eb25 100644 --- a/src/oci/mysql/mysqlaas_client.py +++ b/src/oci/mysql/mysqlaas_client.py @@ -171,7 +171,7 @@ def create_configuration(self, create_configuration_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_configuration got unknown kwargs: {extra_kwargs!r}") @@ -182,7 +182,7 @@ def create_configuration(self, create_configuration_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -270,7 +270,7 @@ def delete_configuration(self, configuration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_configuration got unknown kwargs: {extra_kwargs!r}") @@ -279,9 +279,9 @@ def delete_configuration(self, configuration_id, **kwargs): "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -291,7 +291,7 @@ def delete_configuration(self, configuration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -377,7 +377,7 @@ def get_configuration(self, configuration_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -386,9 +386,9 @@ def get_configuration(self, configuration_id, **kwargs): "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -398,7 +398,7 @@ def get_configuration(self, configuration_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -538,7 +538,7 @@ def list_configurations(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_configurations got unknown kwargs: {extra_kwargs!r}") @@ -584,14 +584,14 @@ def list_configurations(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -690,7 +690,7 @@ def list_shapes(self, compartment_id, **kwargs): "availability_domain", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_shapes got unknown kwargs: {extra_kwargs!r}") @@ -709,14 +709,14 @@ def list_shapes(self, compartment_id, **kwargs): "compartmentId": compartment_id, "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -800,7 +800,7 @@ def list_versions(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_versions got unknown kwargs: {extra_kwargs!r}") @@ -808,14 +808,14 @@ def list_versions(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -906,7 +906,7 @@ def update_configuration(self, configuration_id, update_configuration_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -915,9 +915,9 @@ def update_configuration(self, configuration_id, update_configuration_details, * "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -927,7 +927,7 @@ def update_configuration(self, configuration_id, update_configuration_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mysql/replicas_client.py b/src/oci/mysql/replicas_client.py index 665926113..25d3fbe51 100644 --- a/src/oci/mysql/replicas_client.py +++ b/src/oci/mysql/replicas_client.py @@ -171,7 +171,7 @@ def create_replica(self, create_replica_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_replica got unknown kwargs: {extra_kwargs!r}") @@ -182,7 +182,7 @@ def create_replica(self, create_replica_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def delete_replica(self, replica_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_replica got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def delete_replica(self, replica_id, **kwargs): "replicaId": replica_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def delete_replica(self, replica_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -382,7 +382,7 @@ def get_replica(self, replica_id, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replica got unknown kwargs: {extra_kwargs!r}") @@ -391,9 +391,9 @@ def get_replica(self, replica_id, **kwargs): "replicaId": replica_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -403,7 +403,7 @@ def get_replica(self, replica_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -543,7 +543,7 @@ def list_replicas(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_replicas got unknown kwargs: {extra_kwargs!r}") @@ -582,14 +582,14 @@ def list_replicas(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -682,7 +682,7 @@ def update_replica(self, replica_id, update_replica_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_replica got unknown kwargs: {extra_kwargs!r}") @@ -691,9 +691,9 @@ def update_replica(self, replica_id, update_replica_details, **kwargs): "replicaId": replica_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -703,7 +703,7 @@ def update_replica(self, replica_id, update_replica_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/mysql/work_requests_client.py b/src/oci/mysql/work_requests_client.py index 945c370d4..8b5372414 100644 --- a/src/oci/mysql/work_requests_client.py +++ b/src/oci/mysql/work_requests_client.py @@ -170,7 +170,7 @@ def get_work_request(self, work_request_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def get_work_request(self, work_request_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -286,7 +286,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -295,9 +295,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -305,14 +305,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -418,9 +418,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -428,14 +428,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -546,7 +546,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -572,14 +572,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/network_firewall/network_firewall_client.py b/src/oci/network_firewall/network_firewall_client.py index 68a467faa..df2fe0944 100644 --- a/src/oci/network_firewall/network_firewall_client.py +++ b/src/oci/network_firewall/network_firewall_client.py @@ -180,7 +180,7 @@ def apply_network_firewall_policy(self, network_firewall_policy_id, apply_networ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"apply_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def apply_network_firewall_policy(self, network_firewall_policy_id, apply_networ "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def apply_network_firewall_policy(self, network_firewall_policy_id, apply_networ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -310,7 +310,7 @@ def bulk_upload_address_lists(self, network_firewall_policy_id, bulk_upload_addr "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_address_lists got unknown kwargs: {extra_kwargs!r}") @@ -319,9 +319,9 @@ def bulk_upload_address_lists(self, network_firewall_policy_id, bulk_upload_addr "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -331,7 +331,7 @@ def bulk_upload_address_lists(self, network_firewall_policy_id, bulk_upload_addr "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -458,7 +458,7 @@ def bulk_upload_application_groups(self, network_firewall_policy_id, bulk_upload "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_application_groups got unknown kwargs: {extra_kwargs!r}") @@ -467,9 +467,9 @@ def bulk_upload_application_groups(self, network_firewall_policy_id, bulk_upload "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -479,7 +479,7 @@ def bulk_upload_application_groups(self, network_firewall_policy_id, bulk_upload "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -606,7 +606,7 @@ def bulk_upload_applications(self, network_firewall_policy_id, bulk_upload_appli "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_applications got unknown kwargs: {extra_kwargs!r}") @@ -615,9 +615,9 @@ def bulk_upload_applications(self, network_firewall_policy_id, bulk_upload_appli "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -627,7 +627,7 @@ def bulk_upload_applications(self, network_firewall_policy_id, bulk_upload_appli "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -754,7 +754,7 @@ def bulk_upload_decryption_profiles(self, network_firewall_policy_id, bulk_uploa "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_decryption_profiles got unknown kwargs: {extra_kwargs!r}") @@ -763,9 +763,9 @@ def bulk_upload_decryption_profiles(self, network_firewall_policy_id, bulk_uploa "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -775,7 +775,7 @@ def bulk_upload_decryption_profiles(self, network_firewall_policy_id, bulk_uploa "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -902,7 +902,7 @@ def bulk_upload_decryption_rules(self, network_firewall_policy_id, bulk_upload_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_decryption_rules got unknown kwargs: {extra_kwargs!r}") @@ -911,9 +911,9 @@ def bulk_upload_decryption_rules(self, network_firewall_policy_id, bulk_upload_d "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -923,7 +923,7 @@ def bulk_upload_decryption_rules(self, network_firewall_policy_id, bulk_upload_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1050,7 +1050,7 @@ def bulk_upload_mapped_secrets(self, network_firewall_policy_id, bulk_upload_map "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_mapped_secrets got unknown kwargs: {extra_kwargs!r}") @@ -1059,9 +1059,9 @@ def bulk_upload_mapped_secrets(self, network_firewall_policy_id, bulk_upload_map "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1071,7 +1071,7 @@ def bulk_upload_mapped_secrets(self, network_firewall_policy_id, bulk_upload_map "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1198,7 +1198,7 @@ def bulk_upload_nat_rules(self, network_firewall_policy_id, bulk_upload_nat_rule "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_nat_rules got unknown kwargs: {extra_kwargs!r}") @@ -1207,9 +1207,9 @@ def bulk_upload_nat_rules(self, network_firewall_policy_id, bulk_upload_nat_rule "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1219,7 +1219,7 @@ def bulk_upload_nat_rules(self, network_firewall_policy_id, bulk_upload_nat_rule "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1346,7 +1346,7 @@ def bulk_upload_security_rules(self, network_firewall_policy_id, bulk_upload_sec "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_security_rules got unknown kwargs: {extra_kwargs!r}") @@ -1355,9 +1355,9 @@ def bulk_upload_security_rules(self, network_firewall_policy_id, bulk_upload_sec "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1367,7 +1367,7 @@ def bulk_upload_security_rules(self, network_firewall_policy_id, bulk_upload_sec "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1494,7 +1494,7 @@ def bulk_upload_service_lists(self, network_firewall_policy_id, bulk_upload_serv "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_service_lists got unknown kwargs: {extra_kwargs!r}") @@ -1503,9 +1503,9 @@ def bulk_upload_service_lists(self, network_firewall_policy_id, bulk_upload_serv "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1515,7 +1515,7 @@ def bulk_upload_service_lists(self, network_firewall_policy_id, bulk_upload_serv "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1642,7 +1642,7 @@ def bulk_upload_services(self, network_firewall_policy_id, bulk_upload_services_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_services got unknown kwargs: {extra_kwargs!r}") @@ -1651,9 +1651,9 @@ def bulk_upload_services(self, network_firewall_policy_id, bulk_upload_services_ "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1663,7 +1663,7 @@ def bulk_upload_services(self, network_firewall_policy_id, bulk_upload_services_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1790,7 +1790,7 @@ def bulk_upload_tunnel_inspection_rules(self, network_firewall_policy_id, bulk_u "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_tunnel_inspection_rules got unknown kwargs: {extra_kwargs!r}") @@ -1799,9 +1799,9 @@ def bulk_upload_tunnel_inspection_rules(self, network_firewall_policy_id, bulk_u "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1811,7 +1811,7 @@ def bulk_upload_tunnel_inspection_rules(self, network_firewall_policy_id, bulk_u "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -1938,7 +1938,7 @@ def bulk_upload_url_lists(self, network_firewall_policy_id, bulk_upload_url_list "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_upload_url_lists got unknown kwargs: {extra_kwargs!r}") @@ -1947,9 +1947,9 @@ def bulk_upload_url_lists(self, network_firewall_policy_id, bulk_upload_url_list "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1959,7 +1959,7 @@ def bulk_upload_url_lists(self, network_firewall_policy_id, bulk_upload_url_list "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -2067,7 +2067,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2076,9 +2076,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2088,7 +2088,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2185,7 +2185,7 @@ def change_network_firewall_compartment(self, network_firewall_id, change_networ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_network_firewall_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2194,9 +2194,9 @@ def change_network_firewall_compartment(self, network_firewall_id, change_networ "networkFirewallId": network_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2207,7 +2207,7 @@ def change_network_firewall_compartment(self, network_firewall_id, change_networ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2305,7 +2305,7 @@ def change_network_firewall_policy_compartment(self, network_firewall_policy_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_network_firewall_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -2314,9 +2314,9 @@ def change_network_firewall_policy_compartment(self, network_firewall_policy_id, "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2327,7 +2327,7 @@ def change_network_firewall_policy_compartment(self, network_firewall_policy_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2425,7 +2425,7 @@ def clone_network_firewall_policy(self, network_firewall_policy_id, clone_networ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"clone_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -2434,9 +2434,9 @@ def clone_network_firewall_policy(self, network_firewall_policy_id, clone_networ "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2447,7 +2447,7 @@ def clone_network_firewall_policy(self, network_firewall_policy_id, clone_networ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2539,7 +2539,7 @@ def create_address_list(self, network_firewall_policy_id, create_address_list_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_address_list got unknown kwargs: {extra_kwargs!r}") @@ -2548,9 +2548,9 @@ def create_address_list(self, network_firewall_policy_id, create_address_list_de "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2560,7 +2560,7 @@ def create_address_list(self, network_firewall_policy_id, create_address_list_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2652,7 +2652,7 @@ def create_application(self, network_firewall_policy_id, create_application_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application got unknown kwargs: {extra_kwargs!r}") @@ -2661,9 +2661,9 @@ def create_application(self, network_firewall_policy_id, create_application_deta "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2673,7 +2673,7 @@ def create_application(self, network_firewall_policy_id, create_application_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2765,7 +2765,7 @@ def create_application_group(self, network_firewall_policy_id, create_applicatio "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_application_group got unknown kwargs: {extra_kwargs!r}") @@ -2774,9 +2774,9 @@ def create_application_group(self, network_firewall_policy_id, create_applicatio "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2786,7 +2786,7 @@ def create_application_group(self, network_firewall_policy_id, create_applicatio "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2878,7 +2878,7 @@ def create_decryption_profile(self, network_firewall_policy_id, create_decryptio "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_decryption_profile got unknown kwargs: {extra_kwargs!r}") @@ -2887,9 +2887,9 @@ def create_decryption_profile(self, network_firewall_policy_id, create_decryptio "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2899,7 +2899,7 @@ def create_decryption_profile(self, network_firewall_policy_id, create_decryptio "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2991,7 +2991,7 @@ def create_decryption_rule(self, network_firewall_policy_id, create_decryption_r "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_decryption_rule got unknown kwargs: {extra_kwargs!r}") @@ -3000,9 +3000,9 @@ def create_decryption_rule(self, network_firewall_policy_id, create_decryption_r "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3012,7 +3012,7 @@ def create_decryption_rule(self, network_firewall_policy_id, create_decryption_r "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3104,7 +3104,7 @@ def create_mapped_secret(self, network_firewall_policy_id, create_mapped_secret_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_mapped_secret got unknown kwargs: {extra_kwargs!r}") @@ -3113,9 +3113,9 @@ def create_mapped_secret(self, network_firewall_policy_id, create_mapped_secret_ "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3125,7 +3125,7 @@ def create_mapped_secret(self, network_firewall_policy_id, create_mapped_secret_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3217,7 +3217,7 @@ def create_nat_rule(self, network_firewall_policy_id, create_nat_rule_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_nat_rule got unknown kwargs: {extra_kwargs!r}") @@ -3226,9 +3226,9 @@ def create_nat_rule(self, network_firewall_policy_id, create_nat_rule_details, * "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3238,7 +3238,7 @@ def create_nat_rule(self, network_firewall_policy_id, create_nat_rule_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3327,7 +3327,7 @@ def create_network_firewall(self, create_network_firewall_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_firewall got unknown kwargs: {extra_kwargs!r}") @@ -3338,7 +3338,7 @@ def create_network_firewall(self, create_network_firewall_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3425,7 +3425,7 @@ def create_network_firewall_policy(self, create_network_firewall_policy_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -3436,7 +3436,7 @@ def create_network_firewall_policy(self, create_network_firewall_policy_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3526,7 +3526,7 @@ def create_security_rule(self, network_firewall_policy_id, create_security_rule_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_rule got unknown kwargs: {extra_kwargs!r}") @@ -3535,9 +3535,9 @@ def create_security_rule(self, network_firewall_policy_id, create_security_rule_ "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3547,7 +3547,7 @@ def create_security_rule(self, network_firewall_policy_id, create_security_rule_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3639,7 +3639,7 @@ def create_service(self, network_firewall_policy_id, create_service_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service got unknown kwargs: {extra_kwargs!r}") @@ -3648,9 +3648,9 @@ def create_service(self, network_firewall_policy_id, create_service_details, **k "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3660,7 +3660,7 @@ def create_service(self, network_firewall_policy_id, create_service_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3752,7 +3752,7 @@ def create_service_list(self, network_firewall_policy_id, create_service_list_de "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service_list got unknown kwargs: {extra_kwargs!r}") @@ -3761,9 +3761,9 @@ def create_service_list(self, network_firewall_policy_id, create_service_list_de "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3773,7 +3773,7 @@ def create_service_list(self, network_firewall_policy_id, create_service_list_de "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3865,7 +3865,7 @@ def create_tunnel_inspection_rule(self, network_firewall_policy_id, create_tunne "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tunnel_inspection_rule got unknown kwargs: {extra_kwargs!r}") @@ -3874,9 +3874,9 @@ def create_tunnel_inspection_rule(self, network_firewall_policy_id, create_tunne "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3886,7 +3886,7 @@ def create_tunnel_inspection_rule(self, network_firewall_policy_id, create_tunne "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3978,7 +3978,7 @@ def create_url_list(self, network_firewall_policy_id, create_url_list_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_url_list got unknown kwargs: {extra_kwargs!r}") @@ -3987,9 +3987,9 @@ def create_url_list(self, network_firewall_policy_id, create_url_list_details, * "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3999,7 +3999,7 @@ def create_url_list(self, network_firewall_policy_id, create_url_list_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4091,7 +4091,7 @@ def delete_address_list(self, network_firewall_policy_id, address_list_name, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_address_list got unknown kwargs: {extra_kwargs!r}") @@ -4101,9 +4101,9 @@ def delete_address_list(self, network_firewall_policy_id, address_list_name, **k "addressListName": address_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4113,7 +4113,7 @@ def delete_address_list(self, network_firewall_policy_id, address_list_name, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4200,7 +4200,7 @@ def delete_application(self, network_firewall_policy_id, application_name, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application got unknown kwargs: {extra_kwargs!r}") @@ -4210,9 +4210,9 @@ def delete_application(self, network_firewall_policy_id, application_name, **kwa "applicationName": application_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4222,7 +4222,7 @@ def delete_application(self, network_firewall_policy_id, application_name, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4309,7 +4309,7 @@ def delete_application_group(self, network_firewall_policy_id, application_group "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_application_group got unknown kwargs: {extra_kwargs!r}") @@ -4319,9 +4319,9 @@ def delete_application_group(self, network_firewall_policy_id, application_group "applicationGroupName": application_group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4331,7 +4331,7 @@ def delete_application_group(self, network_firewall_policy_id, application_group "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4418,7 +4418,7 @@ def delete_decryption_profile(self, network_firewall_policy_id, decryption_profi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_decryption_profile got unknown kwargs: {extra_kwargs!r}") @@ -4428,9 +4428,9 @@ def delete_decryption_profile(self, network_firewall_policy_id, decryption_profi "decryptionProfileName": decryption_profile_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4440,7 +4440,7 @@ def delete_decryption_profile(self, network_firewall_policy_id, decryption_profi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4527,7 +4527,7 @@ def delete_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_decryption_rule got unknown kwargs: {extra_kwargs!r}") @@ -4537,9 +4537,9 @@ def delete_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam "decryptionRuleName": decryption_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4549,7 +4549,7 @@ def delete_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4636,7 +4636,7 @@ def delete_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_mapped_secret got unknown kwargs: {extra_kwargs!r}") @@ -4646,9 +4646,9 @@ def delete_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, * "mappedSecretName": mapped_secret_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4658,7 +4658,7 @@ def delete_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4745,7 +4745,7 @@ def delete_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_nat_rule got unknown kwargs: {extra_kwargs!r}") @@ -4755,9 +4755,9 @@ def delete_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): "natRuleName": nat_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4767,7 +4767,7 @@ def delete_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4853,7 +4853,7 @@ def delete_network_firewall(self, network_firewall_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_firewall got unknown kwargs: {extra_kwargs!r}") @@ -4862,9 +4862,9 @@ def delete_network_firewall(self, network_firewall_id, **kwargs): "networkFirewallId": network_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4874,7 +4874,7 @@ def delete_network_firewall(self, network_firewall_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4958,7 +4958,7 @@ def delete_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -4967,9 +4967,9 @@ def delete_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4979,7 +4979,7 @@ def delete_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5066,7 +5066,7 @@ def delete_security_rule(self, network_firewall_policy_id, security_rule_name, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_rule got unknown kwargs: {extra_kwargs!r}") @@ -5076,9 +5076,9 @@ def delete_security_rule(self, network_firewall_policy_id, security_rule_name, * "securityRuleName": security_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5088,7 +5088,7 @@ def delete_security_rule(self, network_firewall_policy_id, security_rule_name, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5175,7 +5175,7 @@ def delete_service(self, network_firewall_policy_id, service_name, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service got unknown kwargs: {extra_kwargs!r}") @@ -5185,9 +5185,9 @@ def delete_service(self, network_firewall_policy_id, service_name, **kwargs): "serviceName": service_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5197,7 +5197,7 @@ def delete_service(self, network_firewall_policy_id, service_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5284,7 +5284,7 @@ def delete_service_list(self, network_firewall_policy_id, service_list_name, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service_list got unknown kwargs: {extra_kwargs!r}") @@ -5294,9 +5294,9 @@ def delete_service_list(self, network_firewall_policy_id, service_list_name, **k "serviceListName": service_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5306,7 +5306,7 @@ def delete_service_list(self, network_firewall_policy_id, service_list_name, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5393,7 +5393,7 @@ def delete_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tunnel_inspection_rule got unknown kwargs: {extra_kwargs!r}") @@ -5403,9 +5403,9 @@ def delete_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe "tunnelInspectionRuleName": tunnel_inspection_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5415,7 +5415,7 @@ def delete_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5502,7 +5502,7 @@ def delete_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_url_list got unknown kwargs: {extra_kwargs!r}") @@ -5512,9 +5512,9 @@ def delete_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): "urlListName": url_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5524,7 +5524,7 @@ def delete_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5603,7 +5603,7 @@ def get_address_list(self, network_firewall_policy_id, address_list_name, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_address_list got unknown kwargs: {extra_kwargs!r}") @@ -5613,9 +5613,9 @@ def get_address_list(self, network_firewall_policy_id, address_list_name, **kwar "addressListName": address_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5624,7 +5624,7 @@ def get_address_list(self, network_firewall_policy_id, address_list_name, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5713,7 +5713,7 @@ def get_application(self, network_firewall_policy_id, application_name, **kwargs "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application got unknown kwargs: {extra_kwargs!r}") @@ -5723,9 +5723,9 @@ def get_application(self, network_firewall_policy_id, application_name, **kwargs "applicationName": application_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5733,14 +5733,14 @@ def get_application(self, network_firewall_policy_id, application_name, **kwargs "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5823,7 +5823,7 @@ def get_application_group(self, network_firewall_policy_id, application_group_na "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_application_group got unknown kwargs: {extra_kwargs!r}") @@ -5833,9 +5833,9 @@ def get_application_group(self, network_firewall_policy_id, application_group_na "applicationGroupName": application_group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5844,7 +5844,7 @@ def get_application_group(self, network_firewall_policy_id, application_group_na "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5925,7 +5925,7 @@ def get_decryption_profile(self, network_firewall_policy_id, decryption_profile_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_decryption_profile got unknown kwargs: {extra_kwargs!r}") @@ -5935,9 +5935,9 @@ def get_decryption_profile(self, network_firewall_policy_id, decryption_profile_ "decryptionProfileName": decryption_profile_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5946,7 +5946,7 @@ def get_decryption_profile(self, network_firewall_policy_id, decryption_profile_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6035,7 +6035,7 @@ def get_decryption_rule(self, network_firewall_policy_id, decryption_rule_name, "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_decryption_rule got unknown kwargs: {extra_kwargs!r}") @@ -6045,9 +6045,9 @@ def get_decryption_rule(self, network_firewall_policy_id, decryption_rule_name, "decryptionRuleName": decryption_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6055,14 +6055,14 @@ def get_decryption_rule(self, network_firewall_policy_id, decryption_rule_name, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6153,7 +6153,7 @@ def get_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, **kw "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_mapped_secret got unknown kwargs: {extra_kwargs!r}") @@ -6163,9 +6163,9 @@ def get_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, **kw "mappedSecretName": mapped_secret_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6173,14 +6173,14 @@ def get_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, **kw "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6263,7 +6263,7 @@ def get_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_nat_rule got unknown kwargs: {extra_kwargs!r}") @@ -6273,9 +6273,9 @@ def get_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): "natRuleName": nat_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6284,7 +6284,7 @@ def get_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6364,7 +6364,7 @@ def get_network_firewall(self, network_firewall_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_firewall got unknown kwargs: {extra_kwargs!r}") @@ -6373,9 +6373,9 @@ def get_network_firewall(self, network_firewall_id, **kwargs): "networkFirewallId": network_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6384,7 +6384,7 @@ def get_network_firewall(self, network_firewall_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6462,7 +6462,7 @@ def get_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -6471,9 +6471,9 @@ def get_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6482,7 +6482,7 @@ def get_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6563,7 +6563,7 @@ def get_security_rule(self, network_firewall_policy_id, security_rule_name, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_rule got unknown kwargs: {extra_kwargs!r}") @@ -6573,9 +6573,9 @@ def get_security_rule(self, network_firewall_policy_id, security_rule_name, **kw "securityRuleName": security_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6584,7 +6584,7 @@ def get_security_rule(self, network_firewall_policy_id, security_rule_name, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6673,7 +6673,7 @@ def get_service(self, network_firewall_policy_id, service_name, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service got unknown kwargs: {extra_kwargs!r}") @@ -6683,9 +6683,9 @@ def get_service(self, network_firewall_policy_id, service_name, **kwargs): "serviceName": service_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6693,14 +6693,14 @@ def get_service(self, network_firewall_policy_id, service_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6783,7 +6783,7 @@ def get_service_list(self, network_firewall_policy_id, service_list_name, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_list got unknown kwargs: {extra_kwargs!r}") @@ -6793,9 +6793,9 @@ def get_service_list(self, network_firewall_policy_id, service_list_name, **kwar "serviceListName": service_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6804,7 +6804,7 @@ def get_service_list(self, network_firewall_policy_id, service_list_name, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6885,7 +6885,7 @@ def get_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspecti "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tunnel_inspection_rule got unknown kwargs: {extra_kwargs!r}") @@ -6895,9 +6895,9 @@ def get_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspecti "tunnelInspectionRuleName": tunnel_inspection_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6906,7 +6906,7 @@ def get_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspecti "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6987,7 +6987,7 @@ def get_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_url_list got unknown kwargs: {extra_kwargs!r}") @@ -6997,9 +6997,9 @@ def get_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): "urlListName": url_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7008,7 +7008,7 @@ def get_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7086,7 +7086,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -7095,9 +7095,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7106,7 +7106,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7208,7 +7208,7 @@ def list_address_lists(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_address_lists got unknown kwargs: {extra_kwargs!r}") @@ -7217,9 +7217,9 @@ def list_address_lists(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7244,14 +7244,14 @@ def list_address_lists(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7355,7 +7355,7 @@ def list_application_groups(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_application_groups got unknown kwargs: {extra_kwargs!r}") @@ -7364,9 +7364,9 @@ def list_application_groups(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7391,14 +7391,14 @@ def list_application_groups(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7502,7 +7502,7 @@ def list_applications(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_applications got unknown kwargs: {extra_kwargs!r}") @@ -7511,9 +7511,9 @@ def list_applications(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7538,14 +7538,14 @@ def list_applications(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7649,7 +7649,7 @@ def list_decryption_profiles(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_decryption_profiles got unknown kwargs: {extra_kwargs!r}") @@ -7658,9 +7658,9 @@ def list_decryption_profiles(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7685,14 +7685,14 @@ def list_decryption_profiles(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7800,7 +7800,7 @@ def list_decryption_rules(self, network_firewall_policy_id, **kwargs): "display_name", "decryption_rule_priority_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_decryption_rules got unknown kwargs: {extra_kwargs!r}") @@ -7809,9 +7809,9 @@ def list_decryption_rules(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7837,14 +7837,14 @@ def list_decryption_rules(self, network_firewall_policy_id, **kwargs): "displayName": kwargs.get("display_name", missing), "decryptionRulePriorityOrder": kwargs.get("decryption_rule_priority_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7948,7 +7948,7 @@ def list_mapped_secrets(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mapped_secrets got unknown kwargs: {extra_kwargs!r}") @@ -7957,9 +7957,9 @@ def list_mapped_secrets(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7984,14 +7984,14 @@ def list_mapped_secrets(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8099,7 +8099,7 @@ def list_nat_rules(self, network_firewall_policy_id, **kwargs): "display_name", "nat_rule_priority_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_nat_rules got unknown kwargs: {extra_kwargs!r}") @@ -8108,9 +8108,9 @@ def list_nat_rules(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8136,14 +8136,14 @@ def list_nat_rules(self, network_firewall_policy_id, **kwargs): "displayName": kwargs.get("display_name", missing), "natRulePriorityOrder": kwargs.get("nat_rule_priority_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8257,7 +8257,7 @@ def list_network_firewall_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_firewall_policies got unknown kwargs: {extra_kwargs!r}") @@ -8293,14 +8293,14 @@ def list_network_firewall_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8424,7 +8424,7 @@ def list_network_firewalls(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_firewalls got unknown kwargs: {extra_kwargs!r}") @@ -8462,14 +8462,14 @@ def list_network_firewalls(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8575,7 +8575,7 @@ def list_security_rules(self, network_firewall_policy_id, **kwargs): "display_name", "security_rule_priority_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_rules got unknown kwargs: {extra_kwargs!r}") @@ -8584,9 +8584,9 @@ def list_security_rules(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8612,14 +8612,14 @@ def list_security_rules(self, network_firewall_policy_id, **kwargs): "displayName": kwargs.get("display_name", missing), "securityRulePriorityOrder": kwargs.get("security_rule_priority_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8723,7 +8723,7 @@ def list_service_lists(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_lists got unknown kwargs: {extra_kwargs!r}") @@ -8732,9 +8732,9 @@ def list_service_lists(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8759,14 +8759,14 @@ def list_service_lists(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8870,7 +8870,7 @@ def list_services(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_services got unknown kwargs: {extra_kwargs!r}") @@ -8879,9 +8879,9 @@ def list_services(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8906,14 +8906,14 @@ def list_services(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9021,7 +9021,7 @@ def list_tunnel_inspection_rules(self, network_firewall_policy_id, **kwargs): "display_name", "tunnel_inspection_rule_priority_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tunnel_inspection_rules got unknown kwargs: {extra_kwargs!r}") @@ -9030,9 +9030,9 @@ def list_tunnel_inspection_rules(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9058,14 +9058,14 @@ def list_tunnel_inspection_rules(self, network_firewall_policy_id, **kwargs): "displayName": kwargs.get("display_name", missing), "tunnelInspectionRulePriorityOrder": kwargs.get("tunnel_inspection_rule_priority_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9169,7 +9169,7 @@ def list_url_lists(self, network_firewall_policy_id, **kwargs): "opc_request_id", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_url_lists got unknown kwargs: {extra_kwargs!r}") @@ -9178,9 +9178,9 @@ def list_url_lists(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9205,14 +9205,14 @@ def list_url_lists(self, network_firewall_policy_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9312,7 +9312,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -9321,9 +9321,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9347,14 +9347,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9454,7 +9454,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -9463,9 +9463,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9489,14 +9489,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9610,7 +9610,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -9646,14 +9646,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9747,7 +9747,7 @@ def migrate_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"migrate_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -9756,9 +9756,9 @@ def migrate_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9769,7 +9769,7 @@ def migrate_network_firewall_policy(self, network_firewall_policy_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9860,7 +9860,7 @@ def update_address_list(self, network_firewall_policy_id, address_list_name, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_address_list got unknown kwargs: {extra_kwargs!r}") @@ -9870,9 +9870,9 @@ def update_address_list(self, network_firewall_policy_id, address_list_name, upd "addressListName": address_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9882,7 +9882,7 @@ def update_address_list(self, network_firewall_policy_id, address_list_name, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9976,7 +9976,7 @@ def update_application(self, network_firewall_policy_id, application_name, updat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_application got unknown kwargs: {extra_kwargs!r}") @@ -9986,9 +9986,9 @@ def update_application(self, network_firewall_policy_id, application_name, updat "applicationName": application_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9998,7 +9998,7 @@ def update_application(self, network_firewall_policy_id, application_name, updat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10092,7 +10092,7 @@ def update_application_group(self, network_firewall_policy_id, application_group "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_application_group got unknown kwargs: {extra_kwargs!r}") @@ -10102,9 +10102,9 @@ def update_application_group(self, network_firewall_policy_id, application_group "applicationGroupName": application_group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10114,7 +10114,7 @@ def update_application_group(self, network_firewall_policy_id, application_group "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10208,7 +10208,7 @@ def update_decryption_profile(self, network_firewall_policy_id, decryption_profi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_decryption_profile got unknown kwargs: {extra_kwargs!r}") @@ -10218,9 +10218,9 @@ def update_decryption_profile(self, network_firewall_policy_id, decryption_profi "decryptionProfileName": decryption_profile_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10230,7 +10230,7 @@ def update_decryption_profile(self, network_firewall_policy_id, decryption_profi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10324,7 +10324,7 @@ def update_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_decryption_rule got unknown kwargs: {extra_kwargs!r}") @@ -10334,9 +10334,9 @@ def update_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam "decryptionRuleName": decryption_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10346,7 +10346,7 @@ def update_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10440,7 +10440,7 @@ def update_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_mapped_secret got unknown kwargs: {extra_kwargs!r}") @@ -10450,9 +10450,9 @@ def update_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, u "mappedSecretName": mapped_secret_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10462,7 +10462,7 @@ def update_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10556,7 +10556,7 @@ def update_nat_rule(self, network_firewall_policy_id, nat_rule_name, update_nat_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_nat_rule got unknown kwargs: {extra_kwargs!r}") @@ -10566,9 +10566,9 @@ def update_nat_rule(self, network_firewall_policy_id, nat_rule_name, update_nat_ "natRuleName": nat_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10578,7 +10578,7 @@ def update_nat_rule(self, network_firewall_policy_id, nat_rule_name, update_nat_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10671,7 +10671,7 @@ def update_network_firewall(self, network_firewall_id, update_network_firewall_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_firewall got unknown kwargs: {extra_kwargs!r}") @@ -10680,9 +10680,9 @@ def update_network_firewall(self, network_firewall_id, update_network_firewall_d "networkFirewallId": network_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10692,7 +10692,7 @@ def update_network_firewall(self, network_firewall_id, update_network_firewall_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10781,7 +10781,7 @@ def update_network_firewall_policy(self, network_firewall_policy_id, update_netw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -10790,9 +10790,9 @@ def update_network_firewall_policy(self, network_firewall_policy_id, update_netw "networkFirewallPolicyId": network_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10802,7 +10802,7 @@ def update_network_firewall_policy(self, network_firewall_policy_id, update_netw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10894,7 +10894,7 @@ def update_security_rule(self, network_firewall_policy_id, security_rule_name, u "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_rule got unknown kwargs: {extra_kwargs!r}") @@ -10904,9 +10904,9 @@ def update_security_rule(self, network_firewall_policy_id, security_rule_name, u "securityRuleName": security_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10916,7 +10916,7 @@ def update_security_rule(self, network_firewall_policy_id, security_rule_name, u "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11010,7 +11010,7 @@ def update_service(self, network_firewall_policy_id, service_name, update_servic "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_service got unknown kwargs: {extra_kwargs!r}") @@ -11020,9 +11020,9 @@ def update_service(self, network_firewall_policy_id, service_name, update_servic "serviceName": service_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11032,7 +11032,7 @@ def update_service(self, network_firewall_policy_id, service_name, update_servic "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11126,7 +11126,7 @@ def update_service_list(self, network_firewall_policy_id, service_list_name, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_service_list got unknown kwargs: {extra_kwargs!r}") @@ -11136,9 +11136,9 @@ def update_service_list(self, network_firewall_policy_id, service_list_name, upd "serviceListName": service_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11148,7 +11148,7 @@ def update_service_list(self, network_firewall_policy_id, service_list_name, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11242,7 +11242,7 @@ def update_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tunnel_inspection_rule got unknown kwargs: {extra_kwargs!r}") @@ -11252,9 +11252,9 @@ def update_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe "tunnelInspectionRuleName": tunnel_inspection_rule_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11264,7 +11264,7 @@ def update_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11358,7 +11358,7 @@ def update_url_list(self, network_firewall_policy_id, url_list_name, update_url_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_url_list got unknown kwargs: {extra_kwargs!r}") @@ -11368,9 +11368,9 @@ def update_url_list(self, network_firewall_policy_id, url_list_name, update_url_ "urlListName": url_list_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11380,7 +11380,7 @@ def update_url_list(self, network_firewall_policy_id, url_list_name, update_url_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/network_load_balancer/network_load_balancer_client.py b/src/oci/network_load_balancer/network_load_balancer_client.py index 4d49b1373..ef9df91f3 100644 --- a/src/oci/network_load_balancer/network_load_balancer_client.py +++ b/src/oci/network_load_balancer/network_load_balancer_client.py @@ -185,7 +185,7 @@ def change_network_load_balancer_compartment(self, network_load_balancer_id, cha "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_network_load_balancer_compartment got unknown kwargs: {extra_kwargs!r}") @@ -194,9 +194,9 @@ def change_network_load_balancer_compartment(self, network_load_balancer_id, cha "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -207,7 +207,7 @@ def change_network_load_balancer_compartment(self, network_load_balancer_id, cha "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -313,7 +313,7 @@ def create_backend(self, network_load_balancer_id, create_backend_details, backe "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backend got unknown kwargs: {extra_kwargs!r}") @@ -323,9 +323,9 @@ def create_backend(self, network_load_balancer_id, create_backend_details, backe "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -336,7 +336,7 @@ def create_backend(self, network_load_balancer_id, create_backend_details, backe "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -437,7 +437,7 @@ def create_backend_set(self, network_load_balancer_id, create_backend_set_detail "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -446,9 +446,9 @@ def create_backend_set(self, network_load_balancer_id, create_backend_set_detail "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -459,7 +459,7 @@ def create_backend_set(self, network_load_balancer_id, create_backend_set_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -560,7 +560,7 @@ def create_listener(self, network_load_balancer_id, create_listener_details, **k "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_listener got unknown kwargs: {extra_kwargs!r}") @@ -569,9 +569,9 @@ def create_listener(self, network_load_balancer_id, create_listener_details, **k "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -582,7 +582,7 @@ def create_listener(self, network_load_balancer_id, create_listener_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -670,7 +670,7 @@ def create_network_load_balancer(self, create_network_load_balancer_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -681,7 +681,7 @@ def create_network_load_balancer(self, create_network_load_balancer_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -784,7 +784,7 @@ def delete_backend(self, network_load_balancer_id, backend_set_name, backend_nam "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backend got unknown kwargs: {extra_kwargs!r}") @@ -795,9 +795,9 @@ def delete_backend(self, network_load_balancer_id, backend_set_name, backend_nam "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -807,7 +807,7 @@ def delete_backend(self, network_load_balancer_id, backend_set_name, backend_nam "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -901,7 +901,7 @@ def delete_backend_set(self, network_load_balancer_id, backend_set_name, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -911,9 +911,9 @@ def delete_backend_set(self, network_load_balancer_id, backend_set_name, **kwarg "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -923,7 +923,7 @@ def delete_backend_set(self, network_load_balancer_id, backend_set_name, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1015,7 +1015,7 @@ def delete_listener(self, network_load_balancer_id, listener_name, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_listener got unknown kwargs: {extra_kwargs!r}") @@ -1025,9 +1025,9 @@ def delete_listener(self, network_load_balancer_id, listener_name, **kwargs): "listenerName": listener_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1037,7 +1037,7 @@ def delete_listener(self, network_load_balancer_id, listener_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1124,7 +1124,7 @@ def delete_network_load_balancer(self, network_load_balancer_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -1133,9 +1133,9 @@ def delete_network_load_balancer(self, network_load_balancer_id, **kwargs): "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1145,7 +1145,7 @@ def delete_network_load_balancer(self, network_load_balancer_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1245,7 +1245,7 @@ def get_backend(self, network_load_balancer_id, backend_set_name, backend_name, "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend got unknown kwargs: {extra_kwargs!r}") @@ -1256,9 +1256,9 @@ def get_backend(self, network_load_balancer_id, backend_set_name, backend_name, "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1268,7 +1268,7 @@ def get_backend(self, network_load_balancer_id, backend_set_name, backend_name, "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1362,7 +1362,7 @@ def get_backend_health(self, network_load_balancer_id, backend_set_name, backend "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_health got unknown kwargs: {extra_kwargs!r}") @@ -1373,9 +1373,9 @@ def get_backend_health(self, network_load_balancer_id, backend_set_name, backend "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1384,7 +1384,7 @@ def get_backend_health(self, network_load_balancer_id, backend_set_name, backend "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1478,7 +1478,7 @@ def get_backend_operational_status(self, network_load_balancer_id, backend_set_n "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_operational_status got unknown kwargs: {extra_kwargs!r}") @@ -1489,9 +1489,9 @@ def get_backend_operational_status(self, network_load_balancer_id, backend_set_n "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1500,7 +1500,7 @@ def get_backend_operational_status(self, network_load_balancer_id, backend_set_n "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1594,7 +1594,7 @@ def get_backend_set(self, network_load_balancer_id, backend_set_name, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -1604,9 +1604,9 @@ def get_backend_set(self, network_load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1616,7 +1616,7 @@ def get_backend_set(self, network_load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1702,7 +1702,7 @@ def get_backend_set_health(self, network_load_balancer_id, backend_set_name, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backend_set_health got unknown kwargs: {extra_kwargs!r}") @@ -1712,9 +1712,9 @@ def get_backend_set_health(self, network_load_balancer_id, backend_set_name, **k "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1723,7 +1723,7 @@ def get_backend_set_health(self, network_load_balancer_id, backend_set_name, **k "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1825,7 +1825,7 @@ def get_health_checker(self, network_load_balancer_id, backend_set_name, **kwarg "opc_retry_token", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_health_checker got unknown kwargs: {extra_kwargs!r}") @@ -1835,9 +1835,9 @@ def get_health_checker(self, network_load_balancer_id, backend_set_name, **kwarg "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1848,7 +1848,7 @@ def get_health_checker(self, network_load_balancer_id, backend_set_name, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1943,7 +1943,7 @@ def get_listener(self, network_load_balancer_id, listener_name, **kwargs): "opc_request_id", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_listener got unknown kwargs: {extra_kwargs!r}") @@ -1953,9 +1953,9 @@ def get_listener(self, network_load_balancer_id, listener_name, **kwargs): "listenerName": listener_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1965,7 +1965,7 @@ def get_listener(self, network_load_balancer_id, listener_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2054,7 +2054,7 @@ def get_network_load_balancer(self, network_load_balancer_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -2063,9 +2063,9 @@ def get_network_load_balancer(self, network_load_balancer_id, **kwargs): "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2075,7 +2075,7 @@ def get_network_load_balancer(self, network_load_balancer_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2156,7 +2156,7 @@ def get_network_load_balancer_health(self, network_load_balancer_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_load_balancer_health got unknown kwargs: {extra_kwargs!r}") @@ -2165,9 +2165,9 @@ def get_network_load_balancer_health(self, network_load_balancer_id, **kwargs): "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2176,7 +2176,7 @@ def get_network_load_balancer_health(self, network_load_balancer_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2255,7 +2255,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2264,9 +2264,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2275,7 +2275,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2392,7 +2392,7 @@ def list_backend_sets(self, network_load_balancer_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backend_sets got unknown kwargs: {extra_kwargs!r}") @@ -2401,9 +2401,9 @@ def list_backend_sets(self, network_load_balancer_id, **kwargs): "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2427,7 +2427,7 @@ def list_backend_sets(self, network_load_balancer_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2435,7 +2435,7 @@ def list_backend_sets(self, network_load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2559,7 +2559,7 @@ def list_backends(self, network_load_balancer_id, backend_set_name, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backends got unknown kwargs: {extra_kwargs!r}") @@ -2569,9 +2569,9 @@ def list_backends(self, network_load_balancer_id, backend_set_name, **kwargs): "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2595,7 +2595,7 @@ def list_backends(self, network_load_balancer_id, backend_set_name, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2603,7 +2603,7 @@ def list_backends(self, network_load_balancer_id, backend_set_name, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2722,7 +2722,7 @@ def list_listeners(self, network_load_balancer_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_listeners got unknown kwargs: {extra_kwargs!r}") @@ -2731,9 +2731,9 @@ def list_listeners(self, network_load_balancer_id, **kwargs): "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2757,7 +2757,7 @@ def list_listeners(self, network_load_balancer_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2765,7 +2765,7 @@ def list_listeners(self, network_load_balancer_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2876,7 +2876,7 @@ def list_network_load_balancer_healths(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_load_balancer_healths got unknown kwargs: {extra_kwargs!r}") @@ -2902,14 +2902,14 @@ def list_network_load_balancer_healths(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3028,7 +3028,7 @@ def list_network_load_balancers(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_load_balancers got unknown kwargs: {extra_kwargs!r}") @@ -3063,14 +3063,14 @@ def list_network_load_balancers(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3174,7 +3174,7 @@ def list_network_load_balancers_policies(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_load_balancers_policies got unknown kwargs: {extra_kwargs!r}") @@ -3199,14 +3199,14 @@ def list_network_load_balancers_policies(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3311,7 +3311,7 @@ def list_network_load_balancers_protocols(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_load_balancers_protocols got unknown kwargs: {extra_kwargs!r}") @@ -3336,14 +3336,14 @@ def list_network_load_balancers_protocols(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3442,7 +3442,7 @@ def list_work_request_errors(self, work_request_id, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3451,9 +3451,9 @@ def list_work_request_errors(self, work_request_id, compartment_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3462,14 +3462,14 @@ def list_work_request_errors(self, work_request_id, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3570,7 +3570,7 @@ def list_work_request_logs(self, work_request_id, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3579,9 +3579,9 @@ def list_work_request_logs(self, work_request_id, compartment_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3590,14 +3590,14 @@ def list_work_request_logs(self, work_request_id, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3695,7 +3695,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3705,14 +3705,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3825,7 +3825,7 @@ def update_backend(self, network_load_balancer_id, update_backend_details, backe "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backend got unknown kwargs: {extra_kwargs!r}") @@ -3836,9 +3836,9 @@ def update_backend(self, network_load_balancer_id, update_backend_details, backe "backendName": backend_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3849,7 +3849,7 @@ def update_backend(self, network_load_balancer_id, update_backend_details, backe "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3955,7 +3955,7 @@ def update_backend_set(self, network_load_balancer_id, update_backend_set_detail "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backend_set got unknown kwargs: {extra_kwargs!r}") @@ -3965,9 +3965,9 @@ def update_backend_set(self, network_load_balancer_id, update_backend_set_detail "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3978,7 +3978,7 @@ def update_backend_set(self, network_load_balancer_id, update_backend_set_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4084,7 +4084,7 @@ def update_health_checker(self, network_load_balancer_id, update_health_checker_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_health_checker got unknown kwargs: {extra_kwargs!r}") @@ -4094,9 +4094,9 @@ def update_health_checker(self, network_load_balancer_id, update_health_checker_ "backendSetName": backend_set_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4107,7 +4107,7 @@ def update_health_checker(self, network_load_balancer_id, update_health_checker_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4213,7 +4213,7 @@ def update_listener(self, network_load_balancer_id, update_listener_details, lis "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_listener got unknown kwargs: {extra_kwargs!r}") @@ -4223,9 +4223,9 @@ def update_listener(self, network_load_balancer_id, update_listener_details, lis "listenerName": listener_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4236,7 +4236,7 @@ def update_listener(self, network_load_balancer_id, update_listener_details, lis "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4329,7 +4329,7 @@ def update_network_load_balancer(self, network_load_balancer_id, update_network_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_load_balancer got unknown kwargs: {extra_kwargs!r}") @@ -4338,9 +4338,9 @@ def update_network_load_balancer(self, network_load_balancer_id, update_network_ "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4350,7 +4350,7 @@ def update_network_load_balancer(self, network_load_balancer_id, update_network_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4450,7 +4450,7 @@ def update_network_security_groups(self, network_load_balancer_id, update_networ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_security_groups got unknown kwargs: {extra_kwargs!r}") @@ -4459,9 +4459,9 @@ def update_network_security_groups(self, network_load_balancer_id, update_networ "networkLoadBalancerId": network_load_balancer_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4472,7 +4472,7 @@ def update_network_security_groups(self, network_load_balancer_id, update_networ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/nosql/nosql_client.py b/src/oci/nosql/nosql_client.py index e9b9298c6..e0622f55f 100644 --- a/src/oci/nosql/nosql_client.py +++ b/src/oci/nosql/nosql_client.py @@ -184,7 +184,7 @@ def change_table_compartment(self, table_name_or_id, change_table_compartment_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_table_compartment got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def change_table_compartment(self, table_name_or_id, change_table_compartment_de "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def change_table_compartment(self, table_name_or_id, change_table_compartment_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -298,7 +298,7 @@ def create_index(self, table_name_or_id, create_index_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_index got unknown kwargs: {extra_kwargs!r}") @@ -307,9 +307,9 @@ def create_index(self, table_name_or_id, create_index_details, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -319,7 +319,7 @@ def create_index(self, table_name_or_id, create_index_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -419,7 +419,7 @@ def create_replica(self, table_name_or_id, create_replica_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_replica got unknown kwargs: {extra_kwargs!r}") @@ -428,9 +428,9 @@ def create_replica(self, table_name_or_id, create_replica_details, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -441,7 +441,7 @@ def create_replica(self, table_name_or_id, create_replica_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -530,7 +530,7 @@ def create_table(self, create_table_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_table got unknown kwargs: {extra_kwargs!r}") @@ -541,7 +541,7 @@ def create_table(self, create_table_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -639,7 +639,7 @@ def delete_index(self, table_name_or_id, index_name, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_index got unknown kwargs: {extra_kwargs!r}") @@ -649,9 +649,9 @@ def delete_index(self, table_name_or_id, index_name, **kwargs): "indexName": index_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -659,7 +659,7 @@ def delete_index(self, table_name_or_id, index_name, **kwargs): "compartmentId": kwargs.get("compartment_id", missing), "isIfExists": kwargs.get("is_if_exists", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -667,7 +667,7 @@ def delete_index(self, table_name_or_id, index_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -760,7 +760,7 @@ def delete_replica(self, table_name_or_id, region, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_replica got unknown kwargs: {extra_kwargs!r}") @@ -770,16 +770,16 @@ def delete_replica(self, table_name_or_id, region, **kwargs): "region": region } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -787,7 +787,7 @@ def delete_replica(self, table_name_or_id, region, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -890,7 +890,7 @@ def delete_row(self, table_name_or_id, key, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_row got unknown kwargs: {extra_kwargs!r}") @@ -899,9 +899,9 @@ def delete_row(self, table_name_or_id, key, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -911,7 +911,7 @@ def delete_row(self, table_name_or_id, key, **kwargs): "isGetReturnRow": kwargs.get("is_get_return_row", missing), "timeoutInMs": kwargs.get("timeout_in_ms", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -919,7 +919,7 @@ def delete_row(self, table_name_or_id, key, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1015,7 +1015,7 @@ def delete_table(self, table_name_or_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_table got unknown kwargs: {extra_kwargs!r}") @@ -1024,9 +1024,9 @@ def delete_table(self, table_name_or_id, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1034,7 +1034,7 @@ def delete_table(self, table_name_or_id, **kwargs): "compartmentId": kwargs.get("compartment_id", missing), "isIfExists": kwargs.get("is_if_exists", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1042,7 +1042,7 @@ def delete_table(self, table_name_or_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1126,7 +1126,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1135,9 +1135,9 @@ def delete_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1147,7 +1147,7 @@ def delete_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1225,7 +1225,7 @@ def get_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1233,14 +1233,14 @@ def get_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1327,7 +1327,7 @@ def get_index(self, table_name_or_id, index_name, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_index got unknown kwargs: {extra_kwargs!r}") @@ -1337,23 +1337,23 @@ def get_index(self, table_name_or_id, index_name, **kwargs): "indexName": index_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1453,7 +1453,7 @@ def get_row(self, table_name_or_id, key, **kwargs): "timeout_in_ms", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_row got unknown kwargs: {extra_kwargs!r}") @@ -1462,9 +1462,9 @@ def get_row(self, table_name_or_id, key, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1481,14 +1481,14 @@ def get_row(self, table_name_or_id, key, **kwargs): "consistency": kwargs.get("consistency", missing), "timeoutInMs": kwargs.get("timeout_in_ms", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1574,7 +1574,7 @@ def get_table(self, table_name_or_id, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_table got unknown kwargs: {extra_kwargs!r}") @@ -1583,23 +1583,23 @@ def get_table(self, table_name_or_id, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1679,7 +1679,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1688,9 +1688,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1699,7 +1699,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1818,7 +1818,7 @@ def list_indexes(self, table_name_or_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_indexes got unknown kwargs: {extra_kwargs!r}") @@ -1827,9 +1827,9 @@ def list_indexes(self, table_name_or_id, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1863,14 +1863,14 @@ def list_indexes(self, table_name_or_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1976,7 +1976,7 @@ def list_table_usage(self, table_name_or_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_table_usage got unknown kwargs: {extra_kwargs!r}") @@ -1985,9 +1985,9 @@ def list_table_usage(self, table_name_or_id, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1998,14 +1998,14 @@ def list_table_usage(self, table_name_or_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2120,7 +2120,7 @@ def list_tables(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tables got unknown kwargs: {extra_kwargs!r}") @@ -2155,14 +2155,14 @@ def list_tables(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2250,7 +2250,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2259,9 +2259,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2269,14 +2269,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2366,7 +2366,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2375,9 +2375,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2385,14 +2385,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2482,7 +2482,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2492,14 +2492,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2584,7 +2584,7 @@ def prepare_statement(self, compartment_id, statement, **kwargs): "is_get_query_plan", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"prepare_statement got unknown kwargs: {extra_kwargs!r}") @@ -2594,14 +2594,14 @@ def prepare_statement(self, compartment_id, statement, **kwargs): "statement": statement, "isGetQueryPlan": kwargs.get("is_get_query_plan", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2689,7 +2689,7 @@ def query(self, query_details, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"query got unknown kwargs: {extra_kwargs!r}") @@ -2698,14 +2698,14 @@ def query(self, query_details, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2786,7 +2786,7 @@ def summarize_statement(self, compartment_id, statement, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_statement got unknown kwargs: {extra_kwargs!r}") @@ -2795,14 +2795,14 @@ def summarize_statement(self, compartment_id, statement, **kwargs): "compartmentId": compartment_id, "statement": statement } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2895,7 +2895,7 @@ def unassign_kms_key(self, compartment_id, **kwargs): "if_match", "is_opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unassign_kms_key got unknown kwargs: {extra_kwargs!r}") @@ -2903,7 +2903,7 @@ def unassign_kms_key(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2912,7 +2912,7 @@ def unassign_kms_key(self, compartment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "is-opc-dry-run": kwargs.get("is_opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3005,7 +3005,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k "if_match", "is_opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3013,7 +3013,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3022,7 +3022,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k "if-match": kwargs.get("if_match", missing), "is-opc-dry-run": kwargs.get("is_opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3109,7 +3109,7 @@ def update_row(self, table_name_or_id, update_row_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_row got unknown kwargs: {extra_kwargs!r}") @@ -3118,9 +3118,9 @@ def update_row(self, table_name_or_id, update_row_details, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3130,7 +3130,7 @@ def update_row(self, table_name_or_id, update_row_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3220,7 +3220,7 @@ def update_table(self, table_name_or_id, update_table_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_table got unknown kwargs: {extra_kwargs!r}") @@ -3229,9 +3229,9 @@ def update_table(self, table_name_or_id, update_table_details, **kwargs): "tableNameOrId": table_name_or_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3241,7 +3241,7 @@ def update_table(self, table_name_or_id, update_table_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/object_storage/object_storage_client.py b/src/oci/object_storage/object_storage_client.py index 310eee633..3817cc03b 100644 --- a/src/oci/object_storage/object_storage_client.py +++ b/src/oci/object_storage/object_storage_client.py @@ -175,7 +175,7 @@ def abort_multipart_upload(self, namespace_name, bucket_name, object_name, uploa "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"abort_multipart_upload got unknown kwargs: {extra_kwargs!r}") @@ -186,23 +186,23 @@ def abort_multipart_upload(self, namespace_name, bucket_name, object_name, uploa "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "uploadId": upload_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def batch_delete_objects(self, namespace_name, bucket_name, batch_delete_objects "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"batch_delete_objects got unknown kwargs: {extra_kwargs!r}") @@ -297,9 +297,9 @@ def batch_delete_objects(self, namespace_name, bucket_name, batch_delete_objects "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def batch_delete_objects(self, namespace_name, bucket_name, batch_delete_objects "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -388,7 +388,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -397,9 +397,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -408,7 +408,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -509,7 +509,7 @@ def commit_multipart_upload(self, namespace_name, bucket_name, object_name, uplo "if_none_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"commit_multipart_upload got unknown kwargs: {extra_kwargs!r}") @@ -520,16 +520,16 @@ def commit_multipart_upload(self, namespace_name, bucket_name, object_name, uplo "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "uploadId": upload_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -538,7 +538,7 @@ def commit_multipart_upload(self, namespace_name, bucket_name, object_name, uplo "if-none-match": kwargs.get("if_none_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -685,7 +685,7 @@ def copy_object(self, namespace_name, bucket_name, copy_object_details, **kwargs "opc_source_sse_customer_key_sha256", "opc_sse_kms_key_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"copy_object got unknown kwargs: {extra_kwargs!r}") @@ -695,9 +695,9 @@ def copy_object(self, namespace_name, bucket_name, copy_object_details, **kwargs "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -713,7 +713,7 @@ def copy_object(self, namespace_name, bucket_name, copy_object_details, **kwargs "opc-source-sse-customer-key-sha256": kwargs.get("opc_source_sse_customer_key_sha256", missing), "opc-sse-kms-key-id": kwargs.get("opc_sse_kms_key_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -795,7 +795,7 @@ def create_bucket(self, namespace_name, create_bucket_details, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_bucket got unknown kwargs: {extra_kwargs!r}") @@ -804,9 +804,9 @@ def create_bucket(self, namespace_name, create_bucket_details, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -815,7 +815,7 @@ def create_bucket(self, namespace_name, create_bucket_details, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -955,7 +955,7 @@ def create_multipart_upload(self, namespace_name, bucket_name, create_multipart_ "opc_sse_kms_key_id", "opc_checksum_algorithm" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_multipart_upload got unknown kwargs: {extra_kwargs!r}") @@ -965,9 +965,9 @@ def create_multipart_upload(self, namespace_name, bucket_name, create_multipart_ "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -983,7 +983,7 @@ def create_multipart_upload(self, namespace_name, bucket_name, create_multipart_ "opc-sse-kms-key-id": kwargs.get("opc_sse_kms_key_id", missing), "opc-checksum-algorithm": kwargs.get("opc_checksum_algorithm", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1070,7 +1070,7 @@ def create_preauthenticated_request(self, namespace_name, bucket_name, create_pr "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_preauthenticated_request got unknown kwargs: {extra_kwargs!r}") @@ -1080,9 +1080,9 @@ def create_preauthenticated_request(self, namespace_name, bucket_name, create_pr "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1091,7 +1091,7 @@ def create_preauthenticated_request(self, namespace_name, bucket_name, create_pr "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1174,7 +1174,7 @@ def create_private_endpoint(self, namespace_name, create_private_endpoint_detail "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1183,9 +1183,9 @@ def create_private_endpoint(self, namespace_name, create_private_endpoint_detail "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1194,7 +1194,7 @@ def create_private_endpoint(self, namespace_name, create_private_endpoint_detail "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1279,7 +1279,7 @@ def create_replication_policy(self, namespace_name, bucket_name, create_replicat "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_replication_policy got unknown kwargs: {extra_kwargs!r}") @@ -1289,9 +1289,9 @@ def create_replication_policy(self, namespace_name, bucket_name, create_replicat "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1300,7 +1300,7 @@ def create_replication_policy(self, namespace_name, bucket_name, create_replicat "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1388,7 +1388,7 @@ def create_retention_rule(self, namespace_name, bucket_name, create_retention_ru "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_retention_rule got unknown kwargs: {extra_kwargs!r}") @@ -1398,9 +1398,9 @@ def create_retention_rule(self, namespace_name, bucket_name, create_retention_ru "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1409,7 +1409,7 @@ def create_retention_rule(self, namespace_name, bucket_name, create_retention_ru "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1502,7 +1502,7 @@ def delete_bucket(self, namespace_name, bucket_name, **kwargs): "if_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_bucket got unknown kwargs: {extra_kwargs!r}") @@ -1512,9 +1512,9 @@ def delete_bucket(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1524,7 +1524,7 @@ def delete_bucket(self, namespace_name, bucket_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1618,7 +1618,7 @@ def delete_object(self, namespace_name, bucket_name, object_name, **kwargs): "opc_client_request_id", "version_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_object got unknown kwargs: {extra_kwargs!r}") @@ -1629,16 +1629,16 @@ def delete_object(self, namespace_name, bucket_name, object_name, **kwargs): "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "versionId": kwargs.get("version_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1646,7 +1646,7 @@ def delete_object(self, namespace_name, bucket_name, object_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1734,7 +1734,7 @@ def delete_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): "opc_client_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_object_lifecycle_policy got unknown kwargs: {extra_kwargs!r}") @@ -1744,9 +1744,9 @@ def delete_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1756,7 +1756,7 @@ def delete_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): "opc-client-request-id": kwargs.get("opc_client_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1840,7 +1840,7 @@ def delete_preauthenticated_request(self, namespace_name, bucket_name, par_id, * "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_preauthenticated_request got unknown kwargs: {extra_kwargs!r}") @@ -1851,9 +1851,9 @@ def delete_preauthenticated_request(self, namespace_name, bucket_name, par_id, * "parId": par_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1862,7 +1862,7 @@ def delete_preauthenticated_request(self, namespace_name, bucket_name, par_id, * "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1948,7 +1948,7 @@ def delete_private_endpoint(self, namespace_name, pe_name, **kwargs): "if_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1958,9 +1958,9 @@ def delete_private_endpoint(self, namespace_name, pe_name, **kwargs): "peName": pe_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1970,7 +1970,7 @@ def delete_private_endpoint(self, namespace_name, pe_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2053,7 +2053,7 @@ def delete_replication_policy(self, namespace_name, bucket_name, replication_id, "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_replication_policy got unknown kwargs: {extra_kwargs!r}") @@ -2064,9 +2064,9 @@ def delete_replication_policy(self, namespace_name, bucket_name, replication_id, "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2075,7 +2075,7 @@ def delete_replication_policy(self, namespace_name, bucket_name, replication_id, "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2164,7 +2164,7 @@ def delete_retention_rule(self, namespace_name, bucket_name, retention_rule_id, "if_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_retention_rule got unknown kwargs: {extra_kwargs!r}") @@ -2175,9 +2175,9 @@ def delete_retention_rule(self, namespace_name, bucket_name, retention_rule_id, "retentionRuleId": retention_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2187,7 +2187,7 @@ def delete_retention_rule(self, namespace_name, bucket_name, retention_rule_id, "if-match": kwargs.get("if_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2288,7 +2288,7 @@ def get_bucket(self, namespace_name, bucket_name, **kwargs): "opc_client_request_id", "fields" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_bucket got unknown kwargs: {extra_kwargs!r}") @@ -2298,9 +2298,9 @@ def get_bucket(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2315,7 +2315,7 @@ def get_bucket(self, namespace_name, bucket_name, **kwargs): query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'csv') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2324,7 +2324,7 @@ def get_bucket(self, namespace_name, bucket_name, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2415,7 +2415,7 @@ def get_namespace(self, **kwargs): "opc_client_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_namespace got unknown kwargs: {extra_kwargs!r}") @@ -2423,14 +2423,14 @@ def get_namespace(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2516,7 +2516,7 @@ def get_namespace_metadata(self, namespace_name, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_namespace_metadata got unknown kwargs: {extra_kwargs!r}") @@ -2525,9 +2525,9 @@ def get_namespace_metadata(self, namespace_name, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2536,7 +2536,7 @@ def get_namespace_metadata(self, namespace_name, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2692,7 +2692,7 @@ def get_object(self, namespace_name, bucket_name, object_name, **kwargs): "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -2703,9 +2703,9 @@ def get_object(self, namespace_name, bucket_name, object_name, **kwargs): "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2718,7 +2718,7 @@ def get_object(self, namespace_name, bucket_name, object_name, **kwargs): "httpResponseContentEncoding": kwargs.get("http_response_content_encoding", missing), "httpResponseExpires": kwargs.get("http_response_expires", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2731,7 +2731,7 @@ def get_object(self, namespace_name, bucket_name, object_name, **kwargs): "opc-sse-customer-key": kwargs.get("opc_sse_customer_key", missing), "opc-sse-customer-key-sha256": kwargs.get("opc_sse_customer_key_sha256", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2815,7 +2815,7 @@ def get_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object_lifecycle_policy got unknown kwargs: {extra_kwargs!r}") @@ -2825,9 +2825,9 @@ def get_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2836,7 +2836,7 @@ def get_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2922,7 +2922,7 @@ def get_preauthenticated_request(self, namespace_name, bucket_name, par_id, **kw "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_preauthenticated_request got unknown kwargs: {extra_kwargs!r}") @@ -2933,9 +2933,9 @@ def get_preauthenticated_request(self, namespace_name, bucket_name, par_id, **kw "parId": par_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2944,7 +2944,7 @@ def get_preauthenticated_request(self, namespace_name, bucket_name, par_id, **kw "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3038,7 +3038,7 @@ def get_private_endpoint(self, namespace_name, pe_name, **kwargs): "if_none_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3048,9 +3048,9 @@ def get_private_endpoint(self, namespace_name, pe_name, **kwargs): "peName": pe_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3061,7 +3061,7 @@ def get_private_endpoint(self, namespace_name, pe_name, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3146,7 +3146,7 @@ def get_replication_policy(self, namespace_name, bucket_name, replication_id, ** "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_replication_policy got unknown kwargs: {extra_kwargs!r}") @@ -3157,9 +3157,9 @@ def get_replication_policy(self, namespace_name, bucket_name, replication_id, ** "replicationId": replication_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3168,7 +3168,7 @@ def get_replication_policy(self, namespace_name, bucket_name, replication_id, ** "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3253,7 +3253,7 @@ def get_retention_rule(self, namespace_name, bucket_name, retention_rule_id, **k "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_retention_rule got unknown kwargs: {extra_kwargs!r}") @@ -3264,9 +3264,9 @@ def get_retention_rule(self, namespace_name, bucket_name, retention_rule_id, **k "retentionRuleId": retention_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3275,7 +3275,7 @@ def get_retention_rule(self, namespace_name, bucket_name, retention_rule_id, **k "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3353,7 +3353,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3362,9 +3362,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3373,7 +3373,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3467,7 +3467,7 @@ def head_bucket(self, namespace_name, bucket_name, **kwargs): "if_none_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_bucket got unknown kwargs: {extra_kwargs!r}") @@ -3477,9 +3477,9 @@ def head_bucket(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3490,7 +3490,7 @@ def head_bucket(self, namespace_name, bucket_name, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3613,7 +3613,7 @@ def head_object(self, namespace_name, bucket_name, object_name, **kwargs): "opc_sse_customer_key", "opc_sse_customer_key_sha256" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_object got unknown kwargs: {extra_kwargs!r}") @@ -3624,16 +3624,16 @@ def head_object(self, namespace_name, bucket_name, object_name, **kwargs): "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "versionId": kwargs.get("version_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3645,7 +3645,7 @@ def head_object(self, namespace_name, bucket_name, object_name, **kwargs): "opc-sse-customer-key": kwargs.get("opc_sse_customer_key", missing), "opc-sse-customer-key-sha256": kwargs.get("opc_sse_customer_key_sha256", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3758,7 +3758,7 @@ def list_buckets(self, namespace_name, compartment_id, **kwargs): "fields", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_buckets got unknown kwargs: {extra_kwargs!r}") @@ -3767,9 +3767,9 @@ def list_buckets(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3787,14 +3787,14 @@ def list_buckets(self, namespace_name, compartment_id, **kwargs): "page": kwargs.get("page", missing), "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'csv') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3900,7 +3900,7 @@ def list_multipart_upload_parts(self, namespace_name, bucket_name, object_name, "page", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_multipart_upload_parts got unknown kwargs: {extra_kwargs!r}") @@ -3911,9 +3911,9 @@ def list_multipart_upload_parts(self, namespace_name, bucket_name, object_name, "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3922,14 +3922,14 @@ def list_multipart_upload_parts(self, namespace_name, bucket_name, object_name, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4028,7 +4028,7 @@ def list_multipart_uploads(self, namespace_name, bucket_name, **kwargs): "page", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_multipart_uploads got unknown kwargs: {extra_kwargs!r}") @@ -4038,9 +4038,9 @@ def list_multipart_uploads(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4048,14 +4048,14 @@ def list_multipart_uploads(self, namespace_name, bucket_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4197,7 +4197,7 @@ def list_object_versions(self, namespace_name, bucket_name, **kwargs): "start_after", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_object_versions got unknown kwargs: {extra_kwargs!r}") @@ -4207,9 +4207,9 @@ def list_object_versions(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4223,14 +4223,14 @@ def list_object_versions(self, namespace_name, bucket_name, **kwargs): "startAfter": kwargs.get("start_after", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4367,7 +4367,7 @@ def list_objects(self, namespace_name, bucket_name, **kwargs): "opc_client_request_id", "start_after" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_objects got unknown kwargs: {extra_kwargs!r}") @@ -4377,9 +4377,9 @@ def list_objects(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4392,14 +4392,14 @@ def list_objects(self, namespace_name, bucket_name, **kwargs): "fields": kwargs.get("fields", missing), "startAfter": kwargs.get("start_after", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4502,7 +4502,7 @@ def list_preauthenticated_requests(self, namespace_name, bucket_name, **kwargs): "page", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_preauthenticated_requests got unknown kwargs: {extra_kwargs!r}") @@ -4512,9 +4512,9 @@ def list_preauthenticated_requests(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4523,14 +4523,14 @@ def list_preauthenticated_requests(self, namespace_name, bucket_name, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4648,7 +4648,7 @@ def list_private_endpoints(self, namespace_name, compartment_id, **kwargs): "opc_client_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -4657,9 +4657,9 @@ def list_private_endpoints(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4685,14 +4685,14 @@ def list_private_endpoints(self, namespace_name, compartment_id, **kwargs): "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'csv'), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4791,7 +4791,7 @@ def list_replication_policies(self, namespace_name, bucket_name, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_replication_policies got unknown kwargs: {extra_kwargs!r}") @@ -4801,9 +4801,9 @@ def list_replication_policies(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4811,14 +4811,14 @@ def list_replication_policies(self, namespace_name, bucket_name, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4917,7 +4917,7 @@ def list_replication_sources(self, namespace_name, bucket_name, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_replication_sources got unknown kwargs: {extra_kwargs!r}") @@ -4927,9 +4927,9 @@ def list_replication_sources(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4937,14 +4937,14 @@ def list_replication_sources(self, namespace_name, bucket_name, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5032,7 +5032,7 @@ def list_retention_rules(self, namespace_name, bucket_name, **kwargs): "retry_strategy", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_retention_rules got unknown kwargs: {extra_kwargs!r}") @@ -5042,16 +5042,16 @@ def list_retention_rules(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -5151,7 +5151,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -5160,9 +5160,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5170,14 +5170,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5272,7 +5272,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -5281,9 +5281,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5291,14 +5291,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5397,7 +5397,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -5408,14 +5408,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5500,7 +5500,7 @@ def make_bucket_writable(self, namespace_name, bucket_name, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"make_bucket_writable got unknown kwargs: {extra_kwargs!r}") @@ -5510,9 +5510,9 @@ def make_bucket_writable(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5521,7 +5521,7 @@ def make_bucket_writable(self, namespace_name, bucket_name, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5775,7 +5775,7 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, "storage_tier", "opc_meta" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_object got unknown kwargs: {extra_kwargs!r}") @@ -5786,9 +5786,9 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5818,7 +5818,7 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, } for key, value in six.iteritems(kwargs.get("opc_meta", {})): header_params[f"opc-meta-{key}"] = value - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: @@ -5941,7 +5941,7 @@ def put_object_lifecycle_policy(self, namespace_name, bucket_name, put_object_li "if_match", "if_none_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_object_lifecycle_policy got unknown kwargs: {extra_kwargs!r}") @@ -5951,9 +5951,9 @@ def put_object_lifecycle_policy(self, namespace_name, bucket_name, put_object_li "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5964,7 +5964,7 @@ def put_object_lifecycle_policy(self, namespace_name, bucket_name, put_object_li "if-match": kwargs.get("if_match", missing), "if-none-match": kwargs.get("if_none_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6062,7 +6062,7 @@ def reencrypt_bucket(self, namespace_name, bucket_name, **kwargs): "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reencrypt_bucket got unknown kwargs: {extra_kwargs!r}") @@ -6072,9 +6072,9 @@ def reencrypt_bucket(self, namespace_name, bucket_name, **kwargs): "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6083,7 +6083,7 @@ def reencrypt_bucket(self, namespace_name, bucket_name, **kwargs): "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6182,7 +6182,7 @@ def reencrypt_object(self, namespace_name, bucket_name, object_name, reencrypt_o "version_id", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reencrypt_object got unknown kwargs: {extra_kwargs!r}") @@ -6193,23 +6193,23 @@ def reencrypt_object(self, namespace_name, bucket_name, object_name, reencrypt_o "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "versionId": kwargs.get("version_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6301,7 +6301,7 @@ def rename_object(self, namespace_name, bucket_name, rename_object_details, **kw "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rename_object got unknown kwargs: {extra_kwargs!r}") @@ -6311,9 +6311,9 @@ def rename_object(self, namespace_name, bucket_name, rename_object_details, **kw "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6322,7 +6322,7 @@ def rename_object(self, namespace_name, bucket_name, rename_object_details, **kw "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6408,7 +6408,7 @@ def restore_objects(self, namespace_name, bucket_name, restore_objects_details, "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_objects got unknown kwargs: {extra_kwargs!r}") @@ -6418,9 +6418,9 @@ def restore_objects(self, namespace_name, bucket_name, restore_objects_details, "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6429,7 +6429,7 @@ def restore_objects(self, namespace_name, bucket_name, restore_objects_details, "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6526,7 +6526,7 @@ def update_bucket(self, namespace_name, bucket_name, update_bucket_details, **kw "if_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_bucket got unknown kwargs: {extra_kwargs!r}") @@ -6536,9 +6536,9 @@ def update_bucket(self, namespace_name, bucket_name, update_bucket_details, **kw "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6548,7 +6548,7 @@ def update_bucket(self, namespace_name, bucket_name, update_bucket_details, **kw "if-match": kwargs.get("if_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6637,7 +6637,7 @@ def update_namespace_metadata(self, namespace_name, update_namespace_metadata_de "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_namespace_metadata got unknown kwargs: {extra_kwargs!r}") @@ -6646,9 +6646,9 @@ def update_namespace_metadata(self, namespace_name, update_namespace_metadata_de "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6657,7 +6657,7 @@ def update_namespace_metadata(self, namespace_name, update_namespace_metadata_de "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6744,7 +6744,7 @@ def update_object_storage_tier(self, namespace_name, bucket_name, update_object_ "retry_strategy", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_object_storage_tier got unknown kwargs: {extra_kwargs!r}") @@ -6754,9 +6754,9 @@ def update_object_storage_tier(self, namespace_name, bucket_name, update_object_ "bucketName": bucket_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6765,7 +6765,7 @@ def update_object_storage_tier(self, namespace_name, bucket_name, update_object_ "content-type": "application/json", "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6865,7 +6865,7 @@ def update_private_endpoint(self, namespace_name, pe_name, update_private_endpoi "opc_client_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6875,9 +6875,9 @@ def update_private_endpoint(self, namespace_name, pe_name, update_private_endpoi "peName": pe_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6887,7 +6887,7 @@ def update_private_endpoint(self, namespace_name, pe_name, update_private_endpoi "opc-client-request-id": kwargs.get("opc_client_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6981,7 +6981,7 @@ def update_retention_rule(self, namespace_name, bucket_name, retention_rule_id, "if_match", "opc_client_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_retention_rule got unknown kwargs: {extra_kwargs!r}") @@ -6992,9 +6992,9 @@ def update_retention_rule(self, namespace_name, bucket_name, retention_rule_id, "retentionRuleId": retention_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7004,7 +7004,7 @@ def update_retention_rule(self, namespace_name, bucket_name, retention_rule_id, "if-match": kwargs.get("if_match", missing), "opc-client-request-id": kwargs.get("opc_client_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7209,7 +7209,7 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa "opc_sse_customer_key_sha256", "opc_sse_kms_key_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upload_part got unknown kwargs: {extra_kwargs!r}") @@ -7220,9 +7220,9 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7230,7 +7230,7 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa "uploadId": upload_id, "uploadPartNum": upload_part_num } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7249,7 +7249,7 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa "opc-sse-customer-key-sha256": kwargs.get("opc_sse_customer_key_sha256", missing), "opc-sse-kms-key-id": kwargs.get("opc_sse_kms_key_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it lowercase_header_params_keys = [k.lower() for k in header_params] if "expect" not in lowercase_header_params_keys: diff --git a/src/oci/object_storage/transfer/internal/download/DownloadManager.py b/src/oci/object_storage/transfer/internal/download/DownloadManager.py index 7fa3e2075..5d2f3fb2a 100644 --- a/src/oci/object_storage/transfer/internal/download/DownloadManager.py +++ b/src/oci/object_storage/transfer/internal/download/DownloadManager.py @@ -163,7 +163,7 @@ def get_object(self, "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -255,7 +255,7 @@ def get_object_to_bytes(self, "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -325,7 +325,7 @@ def get_object_to_text(self, "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -485,7 +485,7 @@ def get_object_to_path(self, "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -533,7 +533,7 @@ def get_object_to_stream(self, "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -705,7 +705,7 @@ def __get_in_parts_to_stream(self, "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -803,7 +803,7 @@ def resume_parts_to_path_multithread(self, namespace_name, bucket_name, object_n "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") @@ -857,7 +857,7 @@ def resume_parts_to_stream_multithread(self, namespace_name, bucket_name, object "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") diff --git a/src/oci/object_storage/transfer/internal/download/DownloadThread.py b/src/oci/object_storage/transfer/internal/download/DownloadThread.py index 7662eb7d5..76b46ae5d 100644 --- a/src/oci/object_storage/transfer/internal/download/DownloadThread.py +++ b/src/oci/object_storage/transfer/internal/download/DownloadThread.py @@ -180,7 +180,7 @@ def __init__(self, "http_response_content_encoding", "http_response_expires" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_object got unknown kwargs: {extra_kwargs!r}") diff --git a/src/oci/oce/oce_instance_client.py b/src/oci/oce/oce_instance_client.py index 2b826faee..1f6242ac1 100644 --- a/src/oci/oce/oce_instance_client.py +++ b/src/oci/oce/oce_instance_client.py @@ -179,7 +179,7 @@ def change_oce_instance_compartment(self, oce_instance_id, change_oce_instance_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oce_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_oce_instance_compartment(self, oce_instance_id, change_oce_instance_c "oceInstanceId": oce_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_oce_instance_compartment(self, oce_instance_id, change_oce_instance_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_oce_instance(self, create_oce_instance_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oce_instance got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_oce_instance(self, create_oce_instance_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -384,7 +384,7 @@ def delete_oce_instance(self, oce_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oce_instance got unknown kwargs: {extra_kwargs!r}") @@ -393,9 +393,9 @@ def delete_oce_instance(self, oce_instance_id, **kwargs): "oceInstanceId": oce_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -405,7 +405,7 @@ def delete_oce_instance(self, oce_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -481,7 +481,7 @@ def get_oce_instance(self, oce_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oce_instance got unknown kwargs: {extra_kwargs!r}") @@ -490,9 +490,9 @@ def get_oce_instance(self, oce_instance_id, **kwargs): "oceInstanceId": oce_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -501,7 +501,7 @@ def get_oce_instance(self, oce_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -579,7 +579,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -588,9 +588,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -599,7 +599,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -713,7 +713,7 @@ def list_oce_instances(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oce_instances got unknown kwargs: {extra_kwargs!r}") @@ -749,14 +749,14 @@ def list_oce_instances(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -842,7 +842,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -851,9 +851,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -861,14 +861,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -956,7 +956,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -965,9 +965,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -975,14 +975,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1074,7 +1074,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1085,14 +1085,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1181,7 +1181,7 @@ def update_oce_instance(self, oce_instance_id, update_oce_instance_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oce_instance got unknown kwargs: {extra_kwargs!r}") @@ -1190,9 +1190,9 @@ def update_oce_instance(self, oce_instance_id, update_oce_instance_details, **kw "oceInstanceId": oce_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1202,7 +1202,7 @@ def update_oce_instance(self, oce_instance_id, update_oce_instance_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/oci_control_center/occ_metrics_client.py b/src/oci/oci_control_center/occ_metrics_client.py index 1014a6e00..22bceded5 100644 --- a/src/oci/oci_control_center/occ_metrics_client.py +++ b/src/oci/oci_control_center/occ_metrics_client.py @@ -172,7 +172,7 @@ def list_metric_properties(self, namespace_name, compartment_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_metric_properties got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def list_metric_properties(self, namespace_name, compartment_id, **kwargs): "namespaceName": namespace_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,14 +192,14 @@ def list_metric_properties(self, namespace_name, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def list_namespaces(self, compartment_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -298,14 +298,14 @@ def list_namespaces(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def request_summarized_metric_data(self, request_summarized_metric_data_details, "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_metric_data got unknown kwargs: {extra_kwargs!r}") @@ -403,14 +403,14 @@ def request_summarized_metric_data(self, request_summarized_metric_data_details, "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ocvp/cluster_client.py b/src/oci/ocvp/cluster_client.py index 7336affa3..10e0bfab2 100644 --- a/src/oci/ocvp/cluster_client.py +++ b/src/oci/ocvp/cluster_client.py @@ -177,7 +177,7 @@ def create_cluster(self, create_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cluster got unknown kwargs: {extra_kwargs!r}") @@ -188,7 +188,7 @@ def create_cluster(self, create_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def delete_cluster(self, cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_cluster got unknown kwargs: {extra_kwargs!r}") @@ -290,9 +290,9 @@ def delete_cluster(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -302,7 +302,7 @@ def delete_cluster(self, cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -381,7 +381,7 @@ def get_cluster(self, cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_cluster got unknown kwargs: {extra_kwargs!r}") @@ -390,9 +390,9 @@ def get_cluster(self, cluster_id, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -401,7 +401,7 @@ def get_cluster(self, cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -535,7 +535,7 @@ def list_clusters(self, **kwargs): "lifecycle_state", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_clusters got unknown kwargs: {extra_kwargs!r}") @@ -571,14 +571,14 @@ def list_clusters(self, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -674,7 +674,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_cluster got unknown kwargs: {extra_kwargs!r}") @@ -683,9 +683,9 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): "clusterId": cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -695,7 +695,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ocvp/datastore_client.py b/src/oci/ocvp/datastore_client.py index b230648fa..ff2af2836 100644 --- a/src/oci/ocvp/datastore_client.py +++ b/src/oci/ocvp/datastore_client.py @@ -186,7 +186,7 @@ def add_block_volume_to_datastore(self, datastore_id, add_block_volume_to_datast "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_block_volume_to_datastore got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def add_block_volume_to_datastore(self, datastore_id, add_block_volume_to_datast "datastoreId": datastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -208,7 +208,7 @@ def add_block_volume_to_datastore(self, datastore_id, add_block_volume_to_datast "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -313,7 +313,7 @@ def change_datastore_compartment(self, datastore_id, change_datastore_compartmen "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_datastore_compartment got unknown kwargs: {extra_kwargs!r}") @@ -322,9 +322,9 @@ def change_datastore_compartment(self, datastore_id, change_datastore_compartmen "datastoreId": datastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -335,7 +335,7 @@ def change_datastore_compartment(self, datastore_id, change_datastore_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -426,7 +426,7 @@ def create_datastore(self, create_datastore_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_datastore got unknown kwargs: {extra_kwargs!r}") @@ -437,7 +437,7 @@ def create_datastore(self, create_datastore_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -528,7 +528,7 @@ def delete_datastore(self, datastore_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_datastore got unknown kwargs: {extra_kwargs!r}") @@ -537,9 +537,9 @@ def delete_datastore(self, datastore_id, **kwargs): "datastoreId": datastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -549,7 +549,7 @@ def delete_datastore(self, datastore_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -628,7 +628,7 @@ def get_datastore(self, datastore_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_datastore got unknown kwargs: {extra_kwargs!r}") @@ -637,9 +637,9 @@ def get_datastore(self, datastore_id, **kwargs): "datastoreId": datastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -648,7 +648,7 @@ def get_datastore(self, datastore_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -788,7 +788,7 @@ def list_datastores(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_datastores got unknown kwargs: {extra_kwargs!r}") @@ -825,14 +825,14 @@ def list_datastores(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -927,7 +927,7 @@ def update_datastore(self, datastore_id, update_datastore_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_datastore got unknown kwargs: {extra_kwargs!r}") @@ -936,9 +936,9 @@ def update_datastore(self, datastore_id, update_datastore_details, **kwargs): "datastoreId": datastore_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -948,7 +948,7 @@ def update_datastore(self, datastore_id, update_datastore_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ocvp/datastore_cluster_client.py b/src/oci/ocvp/datastore_cluster_client.py index 92534698c..1d62e35ce 100644 --- a/src/oci/ocvp/datastore_cluster_client.py +++ b/src/oci/ocvp/datastore_cluster_client.py @@ -183,7 +183,7 @@ def add_datastore_to_datastore_cluster(self, datastore_cluster_id, add_datastore "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_datastore_to_datastore_cluster got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def add_datastore_to_datastore_cluster(self, datastore_cluster_id, add_datastore "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def add_datastore_to_datastore_cluster(self, datastore_cluster_id, add_datastore "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -309,7 +309,7 @@ def attach_datastore_cluster_to_cluster(self, datastore_cluster_id, attach_datas "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_datastore_cluster_to_cluster got unknown kwargs: {extra_kwargs!r}") @@ -318,9 +318,9 @@ def attach_datastore_cluster_to_cluster(self, datastore_cluster_id, attach_datas "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -331,7 +331,7 @@ def attach_datastore_cluster_to_cluster(self, datastore_cluster_id, attach_datas "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -435,7 +435,7 @@ def attach_datastore_cluster_to_esxi_host(self, datastore_cluster_id, attach_dat "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_datastore_cluster_to_esxi_host got unknown kwargs: {extra_kwargs!r}") @@ -444,9 +444,9 @@ def attach_datastore_cluster_to_esxi_host(self, datastore_cluster_id, attach_dat "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -457,7 +457,7 @@ def attach_datastore_cluster_to_esxi_host(self, datastore_cluster_id, attach_dat "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -562,7 +562,7 @@ def change_datastore_cluster_compartment(self, datastore_cluster_id, change_data "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_datastore_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -571,9 +571,9 @@ def change_datastore_cluster_compartment(self, datastore_cluster_id, change_data "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -584,7 +584,7 @@ def change_datastore_cluster_compartment(self, datastore_cluster_id, change_data "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -672,7 +672,7 @@ def create_datastore_cluster(self, create_datastore_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_datastore_cluster got unknown kwargs: {extra_kwargs!r}") @@ -683,7 +683,7 @@ def create_datastore_cluster(self, create_datastore_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -771,7 +771,7 @@ def delete_datastore_cluster(self, datastore_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_datastore_cluster got unknown kwargs: {extra_kwargs!r}") @@ -780,9 +780,9 @@ def delete_datastore_cluster(self, datastore_cluster_id, **kwargs): "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -792,7 +792,7 @@ def delete_datastore_cluster(self, datastore_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -890,7 +890,7 @@ def detach_datastore_cluster_from_cluster(self, datastore_cluster_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_datastore_cluster_from_cluster got unknown kwargs: {extra_kwargs!r}") @@ -899,9 +899,9 @@ def detach_datastore_cluster_from_cluster(self, datastore_cluster_id, **kwargs): "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -912,7 +912,7 @@ def detach_datastore_cluster_from_cluster(self, datastore_cluster_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1014,7 +1014,7 @@ def detach_datastore_cluster_from_esxi_host(self, datastore_cluster_id, detach_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_datastore_cluster_from_esxi_host got unknown kwargs: {extra_kwargs!r}") @@ -1023,9 +1023,9 @@ def detach_datastore_cluster_from_esxi_host(self, datastore_cluster_id, detach_d "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1036,7 +1036,7 @@ def detach_datastore_cluster_from_esxi_host(self, datastore_cluster_id, detach_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1118,7 +1118,7 @@ def get_datastore_cluster(self, datastore_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_datastore_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1127,9 +1127,9 @@ def get_datastore_cluster(self, datastore_cluster_id, **kwargs): "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1138,7 +1138,7 @@ def get_datastore_cluster(self, datastore_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1278,7 +1278,7 @@ def list_datastore_clusters(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_datastore_clusters got unknown kwargs: {extra_kwargs!r}") @@ -1315,14 +1315,14 @@ def list_datastore_clusters(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1422,7 +1422,7 @@ def remove_datastore_from_datastore_cluster(self, datastore_cluster_id, remove_d "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_datastore_from_datastore_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1431,9 +1431,9 @@ def remove_datastore_from_datastore_cluster(self, datastore_cluster_id, remove_d "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1444,7 +1444,7 @@ def remove_datastore_from_datastore_cluster(self, datastore_cluster_id, remove_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1540,7 +1540,7 @@ def update_datastore_cluster(self, datastore_cluster_id, update_datastore_cluste "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_datastore_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1549,9 +1549,9 @@ def update_datastore_cluster(self, datastore_cluster_id, update_datastore_cluste "datastoreClusterId": datastore_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1561,7 +1561,7 @@ def update_datastore_cluster(self, datastore_cluster_id, update_datastore_cluste "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ocvp/esxi_host_client.py b/src/oci/ocvp/esxi_host_client.py index 0d14848d0..412e9ee64 100644 --- a/src/oci/ocvp/esxi_host_client.py +++ b/src/oci/ocvp/esxi_host_client.py @@ -175,7 +175,7 @@ def create_esxi_host(self, create_esxi_host_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_esxi_host got unknown kwargs: {extra_kwargs!r}") @@ -186,7 +186,7 @@ def create_esxi_host(self, create_esxi_host_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def delete_esxi_host(self, esxi_host_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_esxi_host got unknown kwargs: {extra_kwargs!r}") @@ -296,9 +296,9 @@ def delete_esxi_host(self, esxi_host_id, **kwargs): "esxiHostId": esxi_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def delete_esxi_host(self, esxi_host_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -387,7 +387,7 @@ def get_esxi_host(self, esxi_host_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_esxi_host got unknown kwargs: {extra_kwargs!r}") @@ -396,9 +396,9 @@ def get_esxi_host(self, esxi_host_id, **kwargs): "esxiHostId": esxi_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -407,7 +407,7 @@ def get_esxi_host(self, esxi_host_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -504,7 +504,7 @@ def inplace_upgrade(self, esxi_host_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"inplace_upgrade got unknown kwargs: {extra_kwargs!r}") @@ -513,9 +513,9 @@ def inplace_upgrade(self, esxi_host_id, **kwargs): "esxiHostId": esxi_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -526,7 +526,7 @@ def inplace_upgrade(self, esxi_host_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -687,7 +687,7 @@ def list_esxi_hosts(self, **kwargs): "is_swap_billing_only", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_esxi_hosts got unknown kwargs: {extra_kwargs!r}") @@ -727,14 +727,14 @@ def list_esxi_hosts(self, **kwargs): "isSwapBillingOnly": kwargs.get("is_swap_billing_only", missing), "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -834,7 +834,7 @@ def replace_host(self, esxi_host_id, replace_host_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"replace_host got unknown kwargs: {extra_kwargs!r}") @@ -843,9 +843,9 @@ def replace_host(self, esxi_host_id, replace_host_details, **kwargs): "esxiHostId": esxi_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -856,7 +856,7 @@ def replace_host(self, esxi_host_id, replace_host_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -959,7 +959,7 @@ def swap_billing(self, esxi_host_id, swap_billing_host_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"swap_billing got unknown kwargs: {extra_kwargs!r}") @@ -968,16 +968,16 @@ def swap_billing(self, esxi_host_id, swap_billing_host_id, **kwargs): "esxiHostId": esxi_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "swapBillingHostId": swap_billing_host_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -986,7 +986,7 @@ def swap_billing(self, esxi_host_id, swap_billing_host_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1079,7 +1079,7 @@ def update_esxi_host(self, esxi_host_id, update_esxi_host_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_esxi_host got unknown kwargs: {extra_kwargs!r}") @@ -1088,9 +1088,9 @@ def update_esxi_host(self, esxi_host_id, update_esxi_host_details, **kwargs): "esxiHostId": esxi_host_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1100,7 +1100,7 @@ def update_esxi_host(self, esxi_host_id, update_esxi_host_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ocvp/sddc_client.py b/src/oci/ocvp/sddc_client.py index 59dfcabed..4c75ead64 100644 --- a/src/oci/ocvp/sddc_client.py +++ b/src/oci/ocvp/sddc_client.py @@ -180,7 +180,7 @@ def cancel_downgrade_hcx(self, sddc_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_downgrade_hcx got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def cancel_downgrade_hcx(self, sddc_id, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def cancel_downgrade_hcx(self, sddc_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -305,7 +305,7 @@ def change_sddc_compartment(self, sddc_id, change_sddc_compartment_details, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_sddc_compartment got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def change_sddc_compartment(self, sddc_id, change_sddc_compartment_details, **kw "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -327,7 +327,7 @@ def change_sddc_compartment(self, sddc_id, change_sddc_compartment_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -422,7 +422,7 @@ def create_sddc(self, create_sddc_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sddc got unknown kwargs: {extra_kwargs!r}") @@ -433,7 +433,7 @@ def create_sddc(self, create_sddc_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -526,7 +526,7 @@ def delete_sddc(self, sddc_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_sddc got unknown kwargs: {extra_kwargs!r}") @@ -535,9 +535,9 @@ def delete_sddc(self, sddc_id, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -547,7 +547,7 @@ def delete_sddc(self, sddc_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -649,7 +649,7 @@ def downgrade_hcx(self, downgrade_hcx_details, sddc_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"downgrade_hcx got unknown kwargs: {extra_kwargs!r}") @@ -658,9 +658,9 @@ def downgrade_hcx(self, downgrade_hcx_details, sddc_id, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -671,7 +671,7 @@ def downgrade_hcx(self, downgrade_hcx_details, sddc_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -753,7 +753,7 @@ def get_sddc(self, sddc_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sddc got unknown kwargs: {extra_kwargs!r}") @@ -762,9 +762,9 @@ def get_sddc(self, sddc_id, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -773,7 +773,7 @@ def get_sddc(self, sddc_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -907,7 +907,7 @@ def list_sddcs(self, compartment_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sddcs got unknown kwargs: {extra_kwargs!r}") @@ -943,14 +943,14 @@ def list_sddcs(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1051,7 +1051,7 @@ def list_supported_commitments(self, compartment_id, **kwargs): "opc_request_id", "host_shape_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_commitments got unknown kwargs: {extra_kwargs!r}") @@ -1062,14 +1062,14 @@ def list_supported_commitments(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "hostShapeName": kwargs.get("host_shape_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1178,7 +1178,7 @@ def list_supported_host_shapes(self, compartment_id, **kwargs): "is_single_host_sddc_supported", "initial_host_shape_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_host_shapes got unknown kwargs: {extra_kwargs!r}") @@ -1191,14 +1191,14 @@ def list_supported_host_shapes(self, compartment_id, **kwargs): "isSingleHostSddcSupported": kwargs.get("is_single_host_sddc_supported", missing), "initialHostShapeName": kwargs.get("initial_host_shape_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1308,7 +1308,7 @@ def list_supported_vmware_software_versions(self, compartment_id, **kwargs): "host_shape_name", "version_to_upgrade" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_supported_vmware_software_versions got unknown kwargs: {extra_kwargs!r}") @@ -1321,14 +1321,14 @@ def list_supported_vmware_software_versions(self, compartment_id, **kwargs): "hostShapeName": kwargs.get("host_shape_name", missing), "versionToUpgrade": kwargs.get("version_to_upgrade", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1425,7 +1425,7 @@ def refresh_hcx_license_status(self, sddc_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_hcx_license_status got unknown kwargs: {extra_kwargs!r}") @@ -1434,9 +1434,9 @@ def refresh_hcx_license_status(self, sddc_id, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1447,7 +1447,7 @@ def refresh_hcx_license_status(self, sddc_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1548,7 +1548,7 @@ def retrieve_password(self, sddc_id, type, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_password got unknown kwargs: {extra_kwargs!r}") @@ -1557,9 +1557,9 @@ def retrieve_password(self, sddc_id, type, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1572,7 +1572,7 @@ def retrieve_password(self, sddc_id, type, **kwargs): query_params = { "type": type } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1581,7 +1581,7 @@ def retrieve_password(self, sddc_id, type, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1681,7 +1681,7 @@ def update_sddc(self, sddc_id, update_sddc_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sddc got unknown kwargs: {extra_kwargs!r}") @@ -1690,9 +1690,9 @@ def update_sddc(self, sddc_id, update_sddc_details, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1702,7 +1702,7 @@ def update_sddc(self, sddc_id, update_sddc_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1801,7 +1801,7 @@ def upgrade_hcx(self, sddc_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_hcx got unknown kwargs: {extra_kwargs!r}") @@ -1810,9 +1810,9 @@ def upgrade_hcx(self, sddc_id, **kwargs): "sddcId": sddc_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1823,7 +1823,7 @@ def upgrade_hcx(self, sddc_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ocvp/work_request_client.py b/src/oci/ocvp/work_request_client.py index 236e468b1..e241c4a18 100644 --- a/src/oci/ocvp/work_request_client.py +++ b/src/oci/ocvp/work_request_client.py @@ -164,7 +164,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -173,9 +173,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -184,7 +184,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -290,9 +290,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -300,14 +300,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -406,7 +406,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -415,9 +415,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -425,14 +425,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -537,7 +537,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -548,14 +548,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/oda/management_client.py b/src/oci/oda/management_client.py index 8acb8f62f..307fd97b4 100644 --- a/src/oci/oda/management_client.py +++ b/src/oci/oda/management_client.py @@ -175,7 +175,7 @@ def bulk_create_skill_entities(self, oda_instance_id, skill_id, bulk_create_skil "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_create_skill_entities got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def bulk_create_skill_entities(self, oda_instance_id, skill_id, bulk_create_skil "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -197,7 +197,7 @@ def bulk_create_skill_entities(self, oda_instance_id, skill_id, bulk_create_skil "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def cascading_delete_skill_custom_entities(self, oda_instance_id, skill_id, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_skill_custom_entities got unknown kwargs: {extra_kwargs!r}") @@ -307,9 +307,9 @@ def cascading_delete_skill_custom_entities(self, oda_instance_id, skill_id, **kw "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -320,7 +320,7 @@ def cascading_delete_skill_custom_entities(self, oda_instance_id, skill_id, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -424,7 +424,7 @@ def change_oda_private_endpoint_compartment(self, oda_private_endpoint_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oda_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -433,9 +433,9 @@ def change_oda_private_endpoint_compartment(self, oda_private_endpoint_id, chang "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -446,7 +446,7 @@ def change_oda_private_endpoint_compartment(self, oda_private_endpoint_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -528,7 +528,7 @@ def configure_digital_assistant_parameters(self, oda_instance_id, configure_digi "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_digital_assistant_parameters got unknown kwargs: {extra_kwargs!r}") @@ -537,9 +537,9 @@ def configure_digital_assistant_parameters(self, oda_instance_id, configure_digi "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -548,7 +548,7 @@ def configure_digital_assistant_parameters(self, oda_instance_id, configure_digi "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -638,7 +638,7 @@ def create_authentication_provider(self, oda_instance_id, create_authentication_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_authentication_provider got unknown kwargs: {extra_kwargs!r}") @@ -647,9 +647,9 @@ def create_authentication_provider(self, oda_instance_id, create_authentication_ "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -659,7 +659,7 @@ def create_authentication_provider(self, oda_instance_id, create_authentication_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -752,7 +752,7 @@ def create_channel(self, oda_instance_id, create_channel_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_channel got unknown kwargs: {extra_kwargs!r}") @@ -761,9 +761,9 @@ def create_channel(self, oda_instance_id, create_channel_details, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -773,7 +773,7 @@ def create_channel(self, oda_instance_id, create_channel_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -866,7 +866,7 @@ def create_digital_assistant(self, oda_instance_id, create_digital_assistant_det "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_digital_assistant got unknown kwargs: {extra_kwargs!r}") @@ -875,9 +875,9 @@ def create_digital_assistant(self, oda_instance_id, create_digital_assistant_det "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -887,7 +887,7 @@ def create_digital_assistant(self, oda_instance_id, create_digital_assistant_det "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -978,7 +978,7 @@ def create_oda_private_endpoint(self, create_oda_private_endpoint_details, **kwa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oda_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -989,7 +989,7 @@ def create_oda_private_endpoint(self, create_oda_private_endpoint_details, **kwa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1080,7 +1080,7 @@ def create_oda_private_endpoint_attachment(self, create_oda_private_endpoint_att "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oda_private_endpoint_attachment got unknown kwargs: {extra_kwargs!r}") @@ -1091,7 +1091,7 @@ def create_oda_private_endpoint_attachment(self, create_oda_private_endpoint_att "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1187,7 +1187,7 @@ def create_oda_private_endpoint_scan_proxy(self, create_oda_private_endpoint_sca "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oda_private_endpoint_scan_proxy got unknown kwargs: {extra_kwargs!r}") @@ -1196,9 +1196,9 @@ def create_oda_private_endpoint_scan_proxy(self, create_oda_private_endpoint_sca "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1208,7 +1208,7 @@ def create_oda_private_endpoint_scan_proxy(self, create_oda_private_endpoint_sca "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1301,7 +1301,7 @@ def create_skill(self, oda_instance_id, create_skill_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_skill got unknown kwargs: {extra_kwargs!r}") @@ -1310,9 +1310,9 @@ def create_skill(self, oda_instance_id, create_skill_details, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1322,7 +1322,7 @@ def create_skill(self, oda_instance_id, create_skill_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1416,7 +1416,7 @@ def create_skill_parameter(self, oda_instance_id, skill_id, create_skill_paramet "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_skill_parameter got unknown kwargs: {extra_kwargs!r}") @@ -1426,9 +1426,9 @@ def create_skill_parameter(self, oda_instance_id, skill_id, create_skill_paramet "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1438,7 +1438,7 @@ def create_skill_parameter(self, oda_instance_id, skill_id, create_skill_paramet "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1531,7 +1531,7 @@ def create_translator(self, oda_instance_id, create_translator_details, **kwargs "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_translator got unknown kwargs: {extra_kwargs!r}") @@ -1540,9 +1540,9 @@ def create_translator(self, oda_instance_id, create_translator_details, **kwargs "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1552,7 +1552,7 @@ def create_translator(self, oda_instance_id, create_translator_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1645,7 +1645,7 @@ def delete_authentication_provider(self, oda_instance_id, authentication_provide "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_authentication_provider got unknown kwargs: {extra_kwargs!r}") @@ -1655,9 +1655,9 @@ def delete_authentication_provider(self, oda_instance_id, authentication_provide "authenticationProviderId": authentication_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1667,7 +1667,7 @@ def delete_authentication_provider(self, oda_instance_id, authentication_provide "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1755,7 +1755,7 @@ def delete_channel(self, oda_instance_id, channel_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_channel got unknown kwargs: {extra_kwargs!r}") @@ -1765,9 +1765,9 @@ def delete_channel(self, oda_instance_id, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1777,7 +1777,7 @@ def delete_channel(self, oda_instance_id, channel_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1865,7 +1865,7 @@ def delete_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwar "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_digital_assistant got unknown kwargs: {extra_kwargs!r}") @@ -1875,9 +1875,9 @@ def delete_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwar "digitalAssistantId": digital_assistant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1887,7 +1887,7 @@ def delete_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwar "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1975,7 +1975,7 @@ def delete_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oda_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1984,9 +1984,9 @@ def delete_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1996,7 +1996,7 @@ def delete_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2084,7 +2084,7 @@ def delete_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oda_private_endpoint_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2093,9 +2093,9 @@ def delete_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment "odaPrivateEndpointAttachmentId": oda_private_endpoint_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2105,7 +2105,7 @@ def delete_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2196,7 +2196,7 @@ def delete_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oda_private_endpoint_scan_proxy got unknown kwargs: {extra_kwargs!r}") @@ -2206,9 +2206,9 @@ def delete_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2218,7 +2218,7 @@ def delete_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2306,7 +2306,7 @@ def delete_skill(self, oda_instance_id, skill_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_skill got unknown kwargs: {extra_kwargs!r}") @@ -2316,9 +2316,9 @@ def delete_skill(self, oda_instance_id, skill_id, **kwargs): "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2328,7 +2328,7 @@ def delete_skill(self, oda_instance_id, skill_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2419,7 +2419,7 @@ def delete_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_skill_parameter got unknown kwargs: {extra_kwargs!r}") @@ -2430,9 +2430,9 @@ def delete_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kw "parameterName": parameter_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2442,7 +2442,7 @@ def delete_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2530,7 +2530,7 @@ def delete_translator(self, oda_instance_id, translator_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_translator got unknown kwargs: {extra_kwargs!r}") @@ -2540,9 +2540,9 @@ def delete_translator(self, oda_instance_id, translator_id, **kwargs): "translatorId": translator_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2552,7 +2552,7 @@ def delete_translator(self, oda_instance_id, translator_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2634,7 +2634,7 @@ def export_digital_assistant(self, oda_instance_id, digital_assistant_id, export "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_digital_assistant got unknown kwargs: {extra_kwargs!r}") @@ -2644,9 +2644,9 @@ def export_digital_assistant(self, oda_instance_id, digital_assistant_id, export "digitalAssistantId": digital_assistant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2655,7 +2655,7 @@ def export_digital_assistant(self, oda_instance_id, digital_assistant_id, export "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2739,7 +2739,7 @@ def export_skill(self, oda_instance_id, skill_id, export_skill_details, **kwargs "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_skill got unknown kwargs: {extra_kwargs!r}") @@ -2749,9 +2749,9 @@ def export_skill(self, oda_instance_id, skill_id, export_skill_details, **kwargs "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2760,7 +2760,7 @@ def export_skill(self, oda_instance_id, skill_id, export_skill_details, **kwargs "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2847,7 +2847,7 @@ def get_authentication_provider(self, oda_instance_id, authentication_provider_i "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_authentication_provider got unknown kwargs: {extra_kwargs!r}") @@ -2857,9 +2857,9 @@ def get_authentication_provider(self, oda_instance_id, authentication_provider_i "authenticationProviderId": authentication_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2869,7 +2869,7 @@ def get_authentication_provider(self, oda_instance_id, authentication_provider_i "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2956,7 +2956,7 @@ def get_channel(self, oda_instance_id, channel_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_channel got unknown kwargs: {extra_kwargs!r}") @@ -2966,9 +2966,9 @@ def get_channel(self, oda_instance_id, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2978,7 +2978,7 @@ def get_channel(self, oda_instance_id, channel_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3065,7 +3065,7 @@ def get_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwargs) "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_assistant got unknown kwargs: {extra_kwargs!r}") @@ -3075,9 +3075,9 @@ def get_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwargs) "digitalAssistantId": digital_assistant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3087,7 +3087,7 @@ def get_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwargs) "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3177,7 +3177,7 @@ def get_digital_assistant_parameter(self, oda_instance_id, digital_assistant_id, "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_digital_assistant_parameter got unknown kwargs: {extra_kwargs!r}") @@ -3188,9 +3188,9 @@ def get_digital_assistant_parameter(self, oda_instance_id, digital_assistant_id, "parameterName": parameter_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3200,7 +3200,7 @@ def get_digital_assistant_parameter(self, oda_instance_id, digital_assistant_id, "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3280,7 +3280,7 @@ def get_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oda_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3289,9 +3289,9 @@ def get_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3300,7 +3300,7 @@ def get_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3380,7 +3380,7 @@ def get_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oda_private_endpoint_attachment got unknown kwargs: {extra_kwargs!r}") @@ -3389,9 +3389,9 @@ def get_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment_id "odaPrivateEndpointAttachmentId": oda_private_endpoint_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3400,7 +3400,7 @@ def get_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3483,7 +3483,7 @@ def get_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy_id "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oda_private_endpoint_scan_proxy got unknown kwargs: {extra_kwargs!r}") @@ -3493,9 +3493,9 @@ def get_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy_id "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3504,7 +3504,7 @@ def get_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy_id "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3591,7 +3591,7 @@ def get_skill(self, oda_instance_id, skill_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_skill got unknown kwargs: {extra_kwargs!r}") @@ -3601,9 +3601,9 @@ def get_skill(self, oda_instance_id, skill_id, **kwargs): "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3613,7 +3613,7 @@ def get_skill(self, oda_instance_id, skill_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3703,7 +3703,7 @@ def get_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kwarg "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_skill_parameter got unknown kwargs: {extra_kwargs!r}") @@ -3714,9 +3714,9 @@ def get_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kwarg "parameterName": parameter_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3726,7 +3726,7 @@ def get_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kwarg "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3813,7 +3813,7 @@ def get_translator(self, oda_instance_id, translator_id, **kwargs): "if_none_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_translator got unknown kwargs: {extra_kwargs!r}") @@ -3823,9 +3823,9 @@ def get_translator(self, oda_instance_id, translator_id, **kwargs): "translatorId": translator_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3835,7 +3835,7 @@ def get_translator(self, oda_instance_id, translator_id, **kwargs): "if-none-match": kwargs.get("if_none_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3925,7 +3925,7 @@ def import_bot(self, oda_instance_id, import_bot_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_bot got unknown kwargs: {extra_kwargs!r}") @@ -3934,9 +3934,9 @@ def import_bot(self, oda_instance_id, import_bot_details, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3946,7 +3946,7 @@ def import_bot(self, oda_instance_id, import_bot_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4079,7 +4079,7 @@ def list_authentication_providers(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_authentication_providers got unknown kwargs: {extra_kwargs!r}") @@ -4088,9 +4088,9 @@ def list_authentication_providers(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4132,14 +4132,14 @@ def list_authentication_providers(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4278,7 +4278,7 @@ def list_channels(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_channels got unknown kwargs: {extra_kwargs!r}") @@ -4287,9 +4287,9 @@ def list_channels(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4339,14 +4339,14 @@ def list_channels(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4470,7 +4470,7 @@ def list_digital_assistant_parameters(self, oda_instance_id, digital_assistant_i "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_digital_assistant_parameters got unknown kwargs: {extra_kwargs!r}") @@ -4480,9 +4480,9 @@ def list_digital_assistant_parameters(self, oda_instance_id, digital_assistant_i "digitalAssistantId": digital_assistant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4515,14 +4515,14 @@ def list_digital_assistant_parameters(self, oda_instance_id, digital_assistant_i "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4674,7 +4674,7 @@ def list_digital_assistants(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_digital_assistants got unknown kwargs: {extra_kwargs!r}") @@ -4683,9 +4683,9 @@ def list_digital_assistants(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4724,14 +4724,14 @@ def list_digital_assistants(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4853,7 +4853,7 @@ def list_oda_private_endpoint_attachments(self, oda_private_endpoint_id, compart "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oda_private_endpoint_attachments got unknown kwargs: {extra_kwargs!r}") @@ -4888,14 +4888,14 @@ def list_oda_private_endpoint_attachments(self, oda_private_endpoint_id, compart "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5013,7 +5013,7 @@ def list_oda_private_endpoint_scan_proxies(self, oda_private_endpoint_id, **kwar "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oda_private_endpoint_scan_proxies got unknown kwargs: {extra_kwargs!r}") @@ -5022,9 +5022,9 @@ def list_oda_private_endpoint_scan_proxies(self, oda_private_endpoint_id, **kwar "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5056,14 +5056,14 @@ def list_oda_private_endpoint_scan_proxies(self, oda_private_endpoint_id, **kwar "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5187,7 +5187,7 @@ def list_oda_private_endpoints(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oda_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -5222,14 +5222,14 @@ def list_oda_private_endpoints(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5351,7 +5351,7 @@ def list_skill_parameters(self, oda_instance_id, skill_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_skill_parameters got unknown kwargs: {extra_kwargs!r}") @@ -5361,9 +5361,9 @@ def list_skill_parameters(self, oda_instance_id, skill_id, **kwargs): "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5396,14 +5396,14 @@ def list_skill_parameters(self, oda_instance_id, skill_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5555,7 +5555,7 @@ def list_skills(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_skills got unknown kwargs: {extra_kwargs!r}") @@ -5564,9 +5564,9 @@ def list_skills(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5605,14 +5605,14 @@ def list_skills(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5746,7 +5746,7 @@ def list_translators(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_translators got unknown kwargs: {extra_kwargs!r}") @@ -5755,9 +5755,9 @@ def list_translators(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5799,14 +5799,14 @@ def list_translators(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5899,7 +5899,7 @@ def publish_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_digital_assistant got unknown kwargs: {extra_kwargs!r}") @@ -5909,9 +5909,9 @@ def publish_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwa "digitalAssistantId": digital_assistant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5921,7 +5921,7 @@ def publish_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6012,7 +6012,7 @@ def publish_skill(self, oda_instance_id, skill_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_skill got unknown kwargs: {extra_kwargs!r}") @@ -6022,9 +6022,9 @@ def publish_skill(self, oda_instance_id, skill_id, **kwargs): "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6034,7 +6034,7 @@ def publish_skill(self, oda_instance_id, skill_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6126,7 +6126,7 @@ def rotate_channel_keys(self, oda_instance_id, channel_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_channel_keys got unknown kwargs: {extra_kwargs!r}") @@ -6136,9 +6136,9 @@ def rotate_channel_keys(self, oda_instance_id, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6148,7 +6148,7 @@ def rotate_channel_keys(self, oda_instance_id, channel_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6238,7 +6238,7 @@ def start_channel(self, oda_instance_id, channel_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_channel got unknown kwargs: {extra_kwargs!r}") @@ -6248,9 +6248,9 @@ def start_channel(self, oda_instance_id, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6260,7 +6260,7 @@ def start_channel(self, oda_instance_id, channel_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6350,7 +6350,7 @@ def stop_channel(self, oda_instance_id, channel_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_channel got unknown kwargs: {extra_kwargs!r}") @@ -6360,9 +6360,9 @@ def stop_channel(self, oda_instance_id, channel_id, **kwargs): "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6372,7 +6372,7 @@ def stop_channel(self, oda_instance_id, channel_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6474,7 +6474,7 @@ def train_skill(self, oda_instance_id, skill_id, train_skill_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"train_skill got unknown kwargs: {extra_kwargs!r}") @@ -6484,9 +6484,9 @@ def train_skill(self, oda_instance_id, skill_id, train_skill_details, **kwargs): "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6497,7 +6497,7 @@ def train_skill(self, oda_instance_id, skill_id, train_skill_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6591,7 +6591,7 @@ def update_authentication_provider(self, oda_instance_id, authentication_provide "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_authentication_provider got unknown kwargs: {extra_kwargs!r}") @@ -6601,9 +6601,9 @@ def update_authentication_provider(self, oda_instance_id, authentication_provide "authenticationProviderId": authentication_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6613,7 +6613,7 @@ def update_authentication_provider(self, oda_instance_id, authentication_provide "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6708,7 +6708,7 @@ def update_channel(self, oda_instance_id, channel_id, update_channel_details, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_channel got unknown kwargs: {extra_kwargs!r}") @@ -6718,9 +6718,9 @@ def update_channel(self, oda_instance_id, channel_id, update_channel_details, ** "channelId": channel_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6730,7 +6730,7 @@ def update_channel(self, oda_instance_id, channel_id, update_channel_details, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6825,7 +6825,7 @@ def update_digital_assistant(self, oda_instance_id, digital_assistant_id, update "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_digital_assistant got unknown kwargs: {extra_kwargs!r}") @@ -6835,9 +6835,9 @@ def update_digital_assistant(self, oda_instance_id, digital_assistant_id, update "digitalAssistantId": digital_assistant_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6847,7 +6847,7 @@ def update_digital_assistant(self, oda_instance_id, digital_assistant_id, update "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6945,7 +6945,7 @@ def update_digital_assistant_parameter(self, oda_instance_id, digital_assistant_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_digital_assistant_parameter got unknown kwargs: {extra_kwargs!r}") @@ -6956,9 +6956,9 @@ def update_digital_assistant_parameter(self, oda_instance_id, digital_assistant_ "parameterName": parameter_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6968,7 +6968,7 @@ def update_digital_assistant_parameter(self, oda_instance_id, digital_assistant_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7062,7 +7062,7 @@ def update_oda_private_endpoint(self, oda_private_endpoint_id, update_oda_privat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oda_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -7071,9 +7071,9 @@ def update_oda_private_endpoint(self, oda_private_endpoint_id, update_oda_privat "odaPrivateEndpointId": oda_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7083,7 +7083,7 @@ def update_oda_private_endpoint(self, oda_private_endpoint_id, update_oda_privat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7176,7 +7176,7 @@ def update_skill(self, oda_instance_id, skill_id, update_skill_details, **kwargs "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_skill got unknown kwargs: {extra_kwargs!r}") @@ -7186,9 +7186,9 @@ def update_skill(self, oda_instance_id, skill_id, update_skill_details, **kwargs "skillId": skill_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7198,7 +7198,7 @@ def update_skill(self, oda_instance_id, skill_id, update_skill_details, **kwargs "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7296,7 +7296,7 @@ def update_skill_parameter(self, oda_instance_id, skill_id, parameter_name, upda "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_skill_parameter got unknown kwargs: {extra_kwargs!r}") @@ -7307,9 +7307,9 @@ def update_skill_parameter(self, oda_instance_id, skill_id, parameter_name, upda "parameterName": parameter_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7319,7 +7319,7 @@ def update_skill_parameter(self, oda_instance_id, skill_id, parameter_name, upda "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7414,7 +7414,7 @@ def update_translator(self, oda_instance_id, translator_id, update_translator_de "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_translator got unknown kwargs: {extra_kwargs!r}") @@ -7424,9 +7424,9 @@ def update_translator(self, oda_instance_id, translator_id, update_translator_de "translatorId": translator_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7436,7 +7436,7 @@ def update_translator(self, oda_instance_id, translator_id, update_translator_de "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/oda/oda_client.py b/src/oci/oda/oda_client.py index 3957a3613..d37d0a766 100644 --- a/src/oci/oda/oda_client.py +++ b/src/oci/oda/oda_client.py @@ -182,7 +182,7 @@ def change_oda_instance_compartment(self, oda_instance_id, change_oda_instance_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oda_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_oda_instance_compartment(self, oda_instance_id, change_oda_instance_c "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_oda_instance_compartment(self, oda_instance_id, change_oda_instance_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -295,7 +295,7 @@ def create_oda_instance(self, create_oda_instance_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oda_instance got unknown kwargs: {extra_kwargs!r}") @@ -306,7 +306,7 @@ def create_oda_instance(self, create_oda_instance_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -400,7 +400,7 @@ def create_oda_instance_attachment(self, oda_instance_id, create_oda_instance_at "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oda_instance_attachment got unknown kwargs: {extra_kwargs!r}") @@ -409,9 +409,9 @@ def create_oda_instance_attachment(self, oda_instance_id, create_oda_instance_at "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -421,7 +421,7 @@ def create_oda_instance_attachment(self, oda_instance_id, create_oda_instance_at "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -514,7 +514,7 @@ def delete_oda_instance(self, oda_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oda_instance got unknown kwargs: {extra_kwargs!r}") @@ -523,16 +523,16 @@ def delete_oda_instance(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "retentionTime": kwargs.get("retention_time", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -540,7 +540,7 @@ def delete_oda_instance(self, oda_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -630,7 +630,7 @@ def delete_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oda_instance_attachment got unknown kwargs: {extra_kwargs!r}") @@ -640,9 +640,9 @@ def delete_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwarg "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -652,7 +652,7 @@ def delete_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -728,7 +728,7 @@ def get_oda_instance(self, oda_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oda_instance got unknown kwargs: {extra_kwargs!r}") @@ -737,9 +737,9 @@ def get_oda_instance(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -748,7 +748,7 @@ def get_oda_instance(self, oda_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -833,7 +833,7 @@ def get_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwargs): "include_owner_metadata", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oda_instance_attachment got unknown kwargs: {extra_kwargs!r}") @@ -843,23 +843,23 @@ def get_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwargs): "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "includeOwnerMetadata": kwargs.get("include_owner_metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -942,7 +942,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -951,9 +951,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -962,7 +962,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1076,7 +1076,7 @@ def list_oda_instance_attachments(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oda_instance_attachments got unknown kwargs: {extra_kwargs!r}") @@ -1085,9 +1085,9 @@ def list_oda_instance_attachments(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1120,14 +1120,14 @@ def list_oda_instance_attachments(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1251,7 +1251,7 @@ def list_oda_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oda_instances got unknown kwargs: {extra_kwargs!r}") @@ -1286,14 +1286,14 @@ def list_oda_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1402,7 +1402,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1411,9 +1411,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1437,14 +1437,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1555,7 +1555,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1564,9 +1564,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1590,14 +1590,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1716,7 +1716,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1744,14 +1744,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1848,7 +1848,7 @@ def start_oda_instance(self, oda_instance_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_oda_instance got unknown kwargs: {extra_kwargs!r}") @@ -1857,9 +1857,9 @@ def start_oda_instance(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1870,7 +1870,7 @@ def start_oda_instance(self, oda_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1967,7 +1967,7 @@ def stop_oda_instance(self, oda_instance_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_oda_instance got unknown kwargs: {extra_kwargs!r}") @@ -1976,9 +1976,9 @@ def stop_oda_instance(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1989,7 +1989,7 @@ def stop_oda_instance(self, oda_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2078,7 +2078,7 @@ def update_oda_instance(self, oda_instance_id, update_oda_instance_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oda_instance got unknown kwargs: {extra_kwargs!r}") @@ -2087,9 +2087,9 @@ def update_oda_instance(self, oda_instance_id, update_oda_instance_details, **kw "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2099,7 +2099,7 @@ def update_oda_instance(self, oda_instance_id, update_oda_instance_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2194,7 +2194,7 @@ def update_oda_instance_attachment(self, oda_instance_id, attachment_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oda_instance_attachment got unknown kwargs: {extra_kwargs!r}") @@ -2204,9 +2204,9 @@ def update_oda_instance_attachment(self, oda_instance_id, attachment_id, update_ "attachmentId": attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2216,7 +2216,7 @@ def update_oda_instance_attachment(self, oda_instance_id, attachment_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/oda/odapackage_client.py b/src/oci/oda/odapackage_client.py index 99c28f3ed..929d1d6eb 100644 --- a/src/oci/oda/odapackage_client.py +++ b/src/oci/oda/odapackage_client.py @@ -175,7 +175,7 @@ def create_imported_package(self, create_imported_package_details, oda_instance_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_imported_package got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def create_imported_package(self, create_imported_package_details, oda_instance_ "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -196,7 +196,7 @@ def create_imported_package(self, create_imported_package_details, oda_instance_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def delete_imported_package(self, oda_instance_id, package_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_imported_package got unknown kwargs: {extra_kwargs!r}") @@ -311,9 +311,9 @@ def delete_imported_package(self, oda_instance_id, package_id, **kwargs): "packageId": package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -324,7 +324,7 @@ def delete_imported_package(self, oda_instance_id, package_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -404,7 +404,7 @@ def get_imported_package(self, oda_instance_id, package_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_imported_package got unknown kwargs: {extra_kwargs!r}") @@ -414,9 +414,9 @@ def get_imported_package(self, oda_instance_id, package_id, **kwargs): "packageId": package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -425,7 +425,7 @@ def get_imported_package(self, oda_instance_id, package_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -506,7 +506,7 @@ def get_package(self, oda_instance_id, package_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_package got unknown kwargs: {extra_kwargs!r}") @@ -516,9 +516,9 @@ def get_package(self, oda_instance_id, package_id, **kwargs): "packageId": package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -527,7 +527,7 @@ def get_package(self, oda_instance_id, package_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -638,7 +638,7 @@ def list_imported_packages(self, oda_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_imported_packages got unknown kwargs: {extra_kwargs!r}") @@ -647,9 +647,9 @@ def list_imported_packages(self, oda_instance_id, **kwargs): "odaInstanceId": oda_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -674,14 +674,14 @@ def list_imported_packages(self, oda_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -826,7 +826,7 @@ def list_packages(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_packages got unknown kwargs: {extra_kwargs!r}") @@ -857,14 +857,14 @@ def list_packages(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -973,7 +973,7 @@ def update_imported_package(self, update_imported_package_details, oda_instance_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_imported_package got unknown kwargs: {extra_kwargs!r}") @@ -983,16 +983,16 @@ def update_imported_package(self, update_imported_package_details, oda_instance_ "packageId": package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isReplaceSkills": kwargs.get("is_replace_skills", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1001,7 +1001,7 @@ def update_imported_package(self, update_imported_package_details, oda_instance_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/billing_schedule_client.py b/src/oci/onesubscription/billing_schedule_client.py index 895eb4c3d..9a266dba3 100644 --- a/src/oci/onesubscription/billing_schedule_client.py +++ b/src/oci/onesubscription/billing_schedule_client.py @@ -190,7 +190,7 @@ def list_billing_schedules(self, compartment_id, subscription_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_billing_schedules got unknown kwargs: {extra_kwargs!r}") @@ -218,14 +218,14 @@ def list_billing_schedules(self, compartment_id, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/commitment_client.py b/src/oci/onesubscription/commitment_client.py index ad17f9ed7..5a893d37f 100644 --- a/src/oci/onesubscription/commitment_client.py +++ b/src/oci/onesubscription/commitment_client.py @@ -160,7 +160,7 @@ def get_commitment(self, commitment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_commitment got unknown kwargs: {extra_kwargs!r}") @@ -169,9 +169,9 @@ def get_commitment(self, commitment_id, **kwargs): "commitmentId": commitment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -180,7 +180,7 @@ def get_commitment(self, commitment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def list_commitments(self, subscribed_service_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_commitments got unknown kwargs: {extra_kwargs!r}") @@ -308,14 +308,14 @@ def list_commitments(self, subscribed_service_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/computed_usage_client.py b/src/oci/onesubscription/computed_usage_client.py index e1566b7ba..d1467e3dc 100644 --- a/src/oci/onesubscription/computed_usage_client.py +++ b/src/oci/onesubscription/computed_usage_client.py @@ -170,7 +170,7 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_computed_usage got unknown kwargs: {extra_kwargs!r}") @@ -179,9 +179,9 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "computedUsageId": computed_usage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,14 +189,14 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "compartmentId": compartment_id, "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -303,7 +303,7 @@ def list_aggregated_computed_usages(self, compartment_id, subscription_id, time_ "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_aggregated_computed_usages got unknown kwargs: {extra_kwargs!r}") @@ -325,14 +325,14 @@ def list_aggregated_computed_usages(self, compartment_id, subscription_id, time_ "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -447,7 +447,7 @@ def list_computed_usages(self, compartment_id, subscription_id, time_from, time_ "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_computed_usages got unknown kwargs: {extra_kwargs!r}") @@ -478,14 +478,14 @@ def list_computed_usages(self, compartment_id, subscription_id, time_from, time_ "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/invoice_summary_client.py b/src/oci/onesubscription/invoice_summary_client.py index 5fcea928d..ba790433a 100644 --- a/src/oci/onesubscription/invoice_summary_client.py +++ b/src/oci/onesubscription/invoice_summary_client.py @@ -192,7 +192,7 @@ def list_invoiceline_computed_usages(self, compartment_id, invoice_line_id, **kw "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_invoiceline_computed_usages got unknown kwargs: {extra_kwargs!r}") @@ -220,14 +220,14 @@ def list_invoiceline_computed_usages(self, compartment_id, invoice_line_id, **kw "page": kwargs.get("page", missing), "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -343,7 +343,7 @@ def list_invoices(self, compartment_id, ar_customer_transaction_id, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_invoices got unknown kwargs: {extra_kwargs!r}") @@ -373,14 +373,14 @@ def list_invoices(self, compartment_id, ar_customer_transaction_id, **kwargs): "page": kwargs.get("page", missing), "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/organization_subscription_client.py b/src/oci/onesubscription/organization_subscription_client.py index f740a61c5..936165b76 100644 --- a/src/oci/onesubscription/organization_subscription_client.py +++ b/src/oci/onesubscription/organization_subscription_client.py @@ -182,7 +182,7 @@ def list_organization_subscriptions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_organization_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -208,14 +208,14 @@ def list_organization_subscriptions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/ratecard_client.py b/src/oci/onesubscription/ratecard_client.py index d70ab953d..015379e51 100644 --- a/src/oci/onesubscription/ratecard_client.py +++ b/src/oci/onesubscription/ratecard_client.py @@ -198,7 +198,7 @@ def list_rate_cards(self, subscription_id, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rate_cards got unknown kwargs: {extra_kwargs!r}") @@ -228,14 +228,14 @@ def list_rate_cards(self, subscription_id, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/subscribed_service_client.py b/src/oci/onesubscription/subscribed_service_client.py index a556bcae5..6371ebe11 100644 --- a/src/oci/onesubscription/subscribed_service_client.py +++ b/src/oci/onesubscription/subscribed_service_client.py @@ -172,7 +172,7 @@ def get_subscribed_service(self, subscribed_service_id, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscribed_service got unknown kwargs: {extra_kwargs!r}") @@ -181,23 +181,23 @@ def get_subscribed_service(self, subscribed_service_id, **kwargs): "subscribedServiceId": subscribed_service_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -308,7 +308,7 @@ def list_subscribed_services(self, compartment_id, subscription_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscribed_services got unknown kwargs: {extra_kwargs!r}") @@ -337,14 +337,14 @@ def list_subscribed_services(self, compartment_id, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/onesubscription/subscription_client.py b/src/oci/onesubscription/subscription_client.py index e71a3e8d3..d07487abf 100644 --- a/src/oci/onesubscription/subscription_client.py +++ b/src/oci/onesubscription/subscription_client.py @@ -201,7 +201,7 @@ def list_subscriptions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -231,14 +231,14 @@ def list_subscriptions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ons/notification_control_plane_client.py b/src/oci/ons/notification_control_plane_client.py index 675a4adf3..e22347de9 100644 --- a/src/oci/ons/notification_control_plane_client.py +++ b/src/oci/ons/notification_control_plane_client.py @@ -187,7 +187,7 @@ def change_topic_compartment(self, topic_id, change_topic_compartment_details, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_topic_compartment got unknown kwargs: {extra_kwargs!r}") @@ -196,9 +196,9 @@ def change_topic_compartment(self, topic_id, change_topic_compartment_details, * "topicId": topic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -209,7 +209,7 @@ def change_topic_compartment(self, topic_id, change_topic_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -312,7 +312,7 @@ def create_topic(self, create_topic_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_topic got unknown kwargs: {extra_kwargs!r}") @@ -323,7 +323,7 @@ def create_topic(self, create_topic_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -411,7 +411,7 @@ def delete_topic(self, topic_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_topic got unknown kwargs: {extra_kwargs!r}") @@ -420,9 +420,9 @@ def delete_topic(self, topic_id, **kwargs): "topicId": topic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -432,7 +432,7 @@ def delete_topic(self, topic_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def get_topic(self, topic_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_topic got unknown kwargs: {extra_kwargs!r}") @@ -520,9 +520,9 @@ def get_topic(self, topic_id, **kwargs): "topicId": topic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -531,7 +531,7 @@ def get_topic(self, topic_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -652,7 +652,7 @@ def list_topics(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_topics got unknown kwargs: {extra_kwargs!r}") @@ -688,14 +688,14 @@ def list_topics(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -785,7 +785,7 @@ def update_topic(self, topic_id, topic_attributes_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_topic got unknown kwargs: {extra_kwargs!r}") @@ -794,9 +794,9 @@ def update_topic(self, topic_id, topic_attributes_details, **kwargs): "topicId": topic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -806,7 +806,7 @@ def update_topic(self, topic_id, topic_attributes_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/ons/notification_data_plane_client.py b/src/oci/ons/notification_data_plane_client.py index e42ba92c0..4176cde31 100644 --- a/src/oci/ons/notification_data_plane_client.py +++ b/src/oci/ons/notification_data_plane_client.py @@ -187,7 +187,7 @@ def change_subscription_compartment(self, subscription_id, change_subscription_c "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_subscription_compartment got unknown kwargs: {extra_kwargs!r}") @@ -196,9 +196,9 @@ def change_subscription_compartment(self, subscription_id, change_subscription_c "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -209,7 +209,7 @@ def change_subscription_compartment(self, subscription_id, change_subscription_c "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def create_subscription(self, create_subscription_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_subscription got unknown kwargs: {extra_kwargs!r}") @@ -312,7 +312,7 @@ def create_subscription(self, create_subscription_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -400,7 +400,7 @@ def delete_subscription(self, subscription_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_subscription got unknown kwargs: {extra_kwargs!r}") @@ -409,9 +409,9 @@ def delete_subscription(self, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -421,7 +421,7 @@ def delete_subscription(self, subscription_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -520,7 +520,7 @@ def get_confirm_subscription(self, id, token, protocol, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_confirm_subscription got unknown kwargs: {extra_kwargs!r}") @@ -529,9 +529,9 @@ def get_confirm_subscription(self, id, token, protocol, **kwargs): "id": id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -539,14 +539,14 @@ def get_confirm_subscription(self, id, token, protocol, **kwargs): "token": token, "protocol": protocol } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -629,7 +629,7 @@ def get_subscription(self, subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscription got unknown kwargs: {extra_kwargs!r}") @@ -638,9 +638,9 @@ def get_subscription(self, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -649,7 +649,7 @@ def get_subscription(self, subscription_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -750,7 +750,7 @@ def get_unsubscription(self, id, token, protocol, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_unsubscription got unknown kwargs: {extra_kwargs!r}") @@ -759,9 +759,9 @@ def get_unsubscription(self, id, token, protocol, **kwargs): "id": id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -769,14 +769,14 @@ def get_unsubscription(self, id, token, protocol, **kwargs): "token": token, "protocol": protocol } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -877,7 +877,7 @@ def list_subscriptions(self, compartment_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -888,14 +888,14 @@ def list_subscriptions(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1008,7 +1008,7 @@ def publish_message(self, topic_id, message_details, **kwargs): "opc_request_id", "message_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_message got unknown kwargs: {extra_kwargs!r}") @@ -1017,9 +1017,9 @@ def publish_message(self, topic_id, message_details, **kwargs): "topicId": topic_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1029,7 +1029,7 @@ def publish_message(self, topic_id, message_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "messageType": kwargs.get("message_type", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1112,7 +1112,7 @@ def resend_subscription_confirmation(self, id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resend_subscription_confirmation got unknown kwargs: {extra_kwargs!r}") @@ -1121,9 +1121,9 @@ def resend_subscription_confirmation(self, id, **kwargs): "id": id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1132,7 +1132,7 @@ def resend_subscription_confirmation(self, id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1222,7 +1222,7 @@ def update_subscription(self, subscription_id, update_subscription_details, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_subscription got unknown kwargs: {extra_kwargs!r}") @@ -1231,9 +1231,9 @@ def update_subscription(self, subscription_id, update_subscription_details, **kw "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1243,7 +1243,7 @@ def update_subscription(self, subscription_id, update_subscription_details, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/opa/opa_instance_client.py b/src/oci/opa/opa_instance_client.py index 1efffd123..11046fa0e 100644 --- a/src/oci/opa/opa_instance_client.py +++ b/src/oci/opa/opa_instance_client.py @@ -168,7 +168,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -276,7 +276,7 @@ def change_opa_instance_compartment(self, opa_instance_id, change_opa_instance_c "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_opa_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -285,9 +285,9 @@ def change_opa_instance_compartment(self, opa_instance_id, change_opa_instance_c "opaInstanceId": opa_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -297,7 +297,7 @@ def change_opa_instance_compartment(self, opa_instance_id, change_opa_instance_c "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -383,7 +383,7 @@ def create_opa_instance(self, create_opa_instance_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_opa_instance got unknown kwargs: {extra_kwargs!r}") @@ -394,7 +394,7 @@ def create_opa_instance(self, create_opa_instance_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -479,7 +479,7 @@ def delete_opa_instance(self, opa_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_opa_instance got unknown kwargs: {extra_kwargs!r}") @@ -488,9 +488,9 @@ def delete_opa_instance(self, opa_instance_id, **kwargs): "opaInstanceId": opa_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -500,7 +500,7 @@ def delete_opa_instance(self, opa_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -576,7 +576,7 @@ def get_opa_instance(self, opa_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_opa_instance got unknown kwargs: {extra_kwargs!r}") @@ -585,9 +585,9 @@ def get_opa_instance(self, opa_instance_id, **kwargs): "opaInstanceId": opa_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -596,7 +596,7 @@ def get_opa_instance(self, opa_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -674,7 +674,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -683,9 +683,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -694,7 +694,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -807,7 +807,7 @@ def list_opa_instances(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opa_instances got unknown kwargs: {extra_kwargs!r}") @@ -843,14 +843,14 @@ def list_opa_instances(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -948,7 +948,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -957,9 +957,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -983,14 +983,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1090,7 +1090,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1099,9 +1099,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1125,14 +1125,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1247,7 +1247,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1283,14 +1283,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1376,7 +1376,7 @@ def start_opa_instance(self, opa_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_opa_instance got unknown kwargs: {extra_kwargs!r}") @@ -1385,9 +1385,9 @@ def start_opa_instance(self, opa_instance_id, **kwargs): "opaInstanceId": opa_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1397,7 +1397,7 @@ def start_opa_instance(self, opa_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1481,7 +1481,7 @@ def stop_opa_instance(self, opa_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_opa_instance got unknown kwargs: {extra_kwargs!r}") @@ -1490,9 +1490,9 @@ def stop_opa_instance(self, opa_instance_id, **kwargs): "opaInstanceId": opa_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1502,7 +1502,7 @@ def stop_opa_instance(self, opa_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1589,7 +1589,7 @@ def update_opa_instance(self, opa_instance_id, update_opa_instance_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_opa_instance got unknown kwargs: {extra_kwargs!r}") @@ -1598,9 +1598,9 @@ def update_opa_instance(self, opa_instance_id, update_opa_instance_details, **kw "opaInstanceId": opa_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1610,7 +1610,7 @@ def update_opa_instance(self, opa_instance_id, update_opa_instance_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/opensearch/opensearch_cluster_backup_client.py b/src/oci/opensearch/opensearch_cluster_backup_client.py index ac6bb9f97..0d4648959 100644 --- a/src/oci/opensearch/opensearch_cluster_backup_client.py +++ b/src/oci/opensearch/opensearch_cluster_backup_client.py @@ -168,7 +168,7 @@ def delete_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_opensearch_cluster_backup got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def delete_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwarg "opensearchClusterBackupId": opensearch_cluster_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def delete_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -263,7 +263,7 @@ def get_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_opensearch_cluster_backup got unknown kwargs: {extra_kwargs!r}") @@ -272,9 +272,9 @@ def get_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwargs): "opensearchClusterBackupId": opensearch_cluster_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -283,7 +283,7 @@ def get_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -397,7 +397,7 @@ def list_opensearch_cluster_backups(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opensearch_cluster_backups got unknown kwargs: {extra_kwargs!r}") @@ -434,14 +434,14 @@ def list_opensearch_cluster_backups(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -528,7 +528,7 @@ def update_opensearch_cluster_backup(self, opensearch_cluster_backup_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_opensearch_cluster_backup got unknown kwargs: {extra_kwargs!r}") @@ -537,9 +537,9 @@ def update_opensearch_cluster_backup(self, opensearch_cluster_backup_id, update_ "opensearchClusterBackupId": opensearch_cluster_backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -549,7 +549,7 @@ def update_opensearch_cluster_backup(self, opensearch_cluster_backup_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/opensearch/opensearch_cluster_client.py b/src/oci/opensearch/opensearch_cluster_client.py index 50b97ee22..1d4417258 100644 --- a/src/oci/opensearch/opensearch_cluster_client.py +++ b/src/oci/opensearch/opensearch_cluster_client.py @@ -179,7 +179,7 @@ def backup_opensearch_cluster(self, opensearch_cluster_id, backup_opensearch_clu "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"backup_opensearch_cluster got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def backup_opensearch_cluster(self, opensearch_cluster_id, backup_opensearch_clu "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def backup_opensearch_cluster(self, opensearch_cluster_id, backup_opensearch_clu "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def configure_outbound_cluster(self, opensearch_cluster_id, configure_outbound_c "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"configure_outbound_cluster got unknown kwargs: {extra_kwargs!r}") @@ -306,9 +306,9 @@ def configure_outbound_cluster(self, opensearch_cluster_id, configure_outbound_c "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -319,7 +319,7 @@ def configure_outbound_cluster(self, opensearch_cluster_id, configure_outbound_c "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -404,7 +404,7 @@ def create_opensearch_cluster(self, create_opensearch_cluster_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_opensearch_cluster got unknown kwargs: {extra_kwargs!r}") @@ -415,7 +415,7 @@ def create_opensearch_cluster(self, create_opensearch_cluster_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -498,7 +498,7 @@ def delete_opensearch_cluster(self, opensearch_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_opensearch_cluster got unknown kwargs: {extra_kwargs!r}") @@ -507,9 +507,9 @@ def delete_opensearch_cluster(self, opensearch_cluster_id, **kwargs): "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -519,7 +519,7 @@ def delete_opensearch_cluster(self, opensearch_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -593,7 +593,7 @@ def get_opensearch_cluster(self, opensearch_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_opensearch_cluster got unknown kwargs: {extra_kwargs!r}") @@ -602,9 +602,9 @@ def get_opensearch_cluster(self, opensearch_cluster_id, **kwargs): "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -613,7 +613,7 @@ def get_opensearch_cluster(self, opensearch_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -689,7 +689,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -698,9 +698,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -709,7 +709,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -777,7 +777,7 @@ def list_opensearch_cluster_shapes(self, compartment_id, **kwargs): api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opensearch/20180828/ShapesDetails/ListOpensearchClusterShapes" expected_kwargs = ["retry_strategy"] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opensearch_cluster_shapes got unknown kwargs: {extra_kwargs!r}") @@ -785,7 +785,7 @@ def list_opensearch_cluster_shapes(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -900,7 +900,7 @@ def list_opensearch_clusters(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opensearch_clusters got unknown kwargs: {extra_kwargs!r}") @@ -936,14 +936,14 @@ def list_opensearch_clusters(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1023,7 +1023,7 @@ def list_opensearch_versions(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opensearch_versions got unknown kwargs: {extra_kwargs!r}") @@ -1033,7 +1033,7 @@ def list_opensearch_versions(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1122,7 +1122,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1131,9 +1131,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1141,14 +1141,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1234,7 +1234,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1243,9 +1243,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1253,14 +1253,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1354,7 +1354,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1366,14 +1366,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1468,7 +1468,7 @@ def opensearch_cluster_restore(self, opensearch_cluster_id, restore_opensearch_c "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"opensearch_cluster_restore got unknown kwargs: {extra_kwargs!r}") @@ -1477,9 +1477,9 @@ def opensearch_cluster_restore(self, opensearch_cluster_id, restore_opensearch_c "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1490,7 +1490,7 @@ def opensearch_cluster_restore(self, opensearch_cluster_id, restore_opensearch_c "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1586,7 +1586,7 @@ def resize_opensearch_cluster_horizontal(self, opensearch_cluster_id, resize_ope "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resize_opensearch_cluster_horizontal got unknown kwargs: {extra_kwargs!r}") @@ -1595,9 +1595,9 @@ def resize_opensearch_cluster_horizontal(self, opensearch_cluster_id, resize_ope "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1608,7 +1608,7 @@ def resize_opensearch_cluster_horizontal(self, opensearch_cluster_id, resize_ope "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1704,7 +1704,7 @@ def resize_opensearch_cluster_vertical(self, opensearch_cluster_id, resize_opens "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resize_opensearch_cluster_vertical got unknown kwargs: {extra_kwargs!r}") @@ -1713,9 +1713,9 @@ def resize_opensearch_cluster_vertical(self, opensearch_cluster_id, resize_opens "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1726,7 +1726,7 @@ def resize_opensearch_cluster_vertical(self, opensearch_cluster_id, resize_opens "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1814,7 +1814,7 @@ def update_opensearch_cluster(self, opensearch_cluster_id, update_opensearch_clu "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_opensearch_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1823,9 +1823,9 @@ def update_opensearch_cluster(self, opensearch_cluster_id, update_opensearch_clu "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1835,7 +1835,7 @@ def update_opensearch_cluster(self, opensearch_cluster_id, update_opensearch_clu "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1930,7 +1930,7 @@ def upgrade_open_search_cluster(self, opensearch_cluster_id, upgrade_open_search "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"upgrade_open_search_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1939,9 +1939,9 @@ def upgrade_open_search_cluster(self, opensearch_cluster_id, upgrade_open_search "opensearchClusterId": opensearch_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1952,7 +1952,7 @@ def upgrade_open_search_cluster(self, opensearch_cluster_id, upgrade_open_search "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/opensearch/opensearch_cluster_pipeline_client.py b/src/oci/opensearch/opensearch_cluster_pipeline_client.py index 1804ee6a1..830d032aa 100644 --- a/src/oci/opensearch/opensearch_cluster_pipeline_client.py +++ b/src/oci/opensearch/opensearch_cluster_pipeline_client.py @@ -173,7 +173,7 @@ def create_opensearch_cluster_pipeline(self, create_opensearch_cluster_pipeline_ "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -185,7 +185,7 @@ def create_opensearch_cluster_pipeline(self, create_opensearch_cluster_pipeline_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -268,7 +268,7 @@ def delete_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -277,9 +277,9 @@ def delete_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **k "opensearchClusterPipelineId": opensearch_cluster_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -289,7 +289,7 @@ def delete_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -363,7 +363,7 @@ def get_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -372,9 +372,9 @@ def get_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **kwar "opensearchClusterPipelineId": opensearch_cluster_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -383,7 +383,7 @@ def get_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -497,7 +497,7 @@ def list_opensearch_cluster_pipelines(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opensearch_cluster_pipelines got unknown kwargs: {extra_kwargs!r}") @@ -534,14 +534,14 @@ def list_opensearch_cluster_pipelines(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -633,7 +633,7 @@ def update_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, upd "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_opensearch_cluster_pipeline got unknown kwargs: {extra_kwargs!r}") @@ -642,9 +642,9 @@ def update_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, upd "opensearchClusterPipelineId": opensearch_cluster_pipeline_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -655,7 +655,7 @@ def update_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, upd "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/operator_access_control/access_requests_client.py b/src/oci/operator_access_control/access_requests_client.py index b93d4fdec..b8580ba59 100644 --- a/src/oci/operator_access_control/access_requests_client.py +++ b/src/oci/operator_access_control/access_requests_client.py @@ -182,7 +182,7 @@ def approve_access_request(self, access_request_id, approve_access_request_detai "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"approve_access_request got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def approve_access_request(self, access_request_id, approve_access_request_detai "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def approve_access_request(self, access_request_id, approve_access_request_detai "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def get_access_request(self, access_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_access_request got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def get_access_request(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -303,7 +303,7 @@ def get_access_request(self, access_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -385,7 +385,7 @@ def get_audit_log_report(self, access_request_id, **kwargs): "enable_process_tree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_audit_log_report got unknown kwargs: {extra_kwargs!r}") @@ -394,23 +394,23 @@ def get_audit_log_report(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "enableProcessTree": kwargs.get("enable_process_tree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -509,7 +509,7 @@ def interaction_request(self, access_request_id, interaction_request_details, ** "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"interaction_request got unknown kwargs: {extra_kwargs!r}") @@ -518,9 +518,9 @@ def interaction_request(self, access_request_id, interaction_request_details, ** "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -531,7 +531,7 @@ def interaction_request(self, access_request_id, interaction_request_details, ** "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -620,7 +620,7 @@ def list_access_request_histories(self, access_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_access_request_histories got unknown kwargs: {extra_kwargs!r}") @@ -629,9 +629,9 @@ def list_access_request_histories(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -639,14 +639,14 @@ def list_access_request_histories(self, access_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -772,7 +772,7 @@ def list_access_requests(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_access_requests got unknown kwargs: {extra_kwargs!r}") @@ -810,14 +810,14 @@ def list_access_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -903,7 +903,7 @@ def list_interactions(self, access_request_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_interactions got unknown kwargs: {extra_kwargs!r}") @@ -912,9 +912,9 @@ def list_interactions(self, access_request_id, **kwargs): "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -922,14 +922,14 @@ def list_interactions(self, access_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1028,7 +1028,7 @@ def reject_access_request(self, access_request_id, reject_access_request_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reject_access_request got unknown kwargs: {extra_kwargs!r}") @@ -1037,9 +1037,9 @@ def reject_access_request(self, access_request_id, reject_access_request_details "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1050,7 +1050,7 @@ def reject_access_request(self, access_request_id, reject_access_request_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1148,7 +1148,7 @@ def review_access_request(self, access_request_id, review_access_request_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"review_access_request got unknown kwargs: {extra_kwargs!r}") @@ -1157,9 +1157,9 @@ def review_access_request(self, access_request_id, review_access_request_details "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1170,7 +1170,7 @@ def review_access_request(self, access_request_id, review_access_request_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1270,7 +1270,7 @@ def revoke_access_request(self, access_request_id, revoke_access_request_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"revoke_access_request got unknown kwargs: {extra_kwargs!r}") @@ -1279,9 +1279,9 @@ def revoke_access_request(self, access_request_id, revoke_access_request_details "accessRequestId": access_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1292,7 +1292,7 @@ def revoke_access_request(self, access_request_id, revoke_access_request_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/operator_access_control/operator_actions_client.py b/src/oci/operator_access_control/operator_actions_client.py index 06289c25e..bec9f80eb 100644 --- a/src/oci/operator_access_control/operator_actions_client.py +++ b/src/oci/operator_access_control/operator_actions_client.py @@ -163,7 +163,7 @@ def get_operator_action(self, operator_action_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_operator_action got unknown kwargs: {extra_kwargs!r}") @@ -172,9 +172,9 @@ def get_operator_action(self, operator_action_id, **kwargs): "operatorActionId": operator_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -183,7 +183,7 @@ def get_operator_action(self, operator_action_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -295,7 +295,7 @@ def list_operator_actions(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_operator_actions got unknown kwargs: {extra_kwargs!r}") @@ -331,14 +331,14 @@ def list_operator_actions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/operator_access_control/operator_control_assignment_client.py b/src/oci/operator_access_control/operator_control_assignment_client.py index 5f7191e9d..ed765a953 100644 --- a/src/oci/operator_access_control/operator_control_assignment_client.py +++ b/src/oci/operator_access_control/operator_control_assignment_client.py @@ -182,7 +182,7 @@ def change_operator_control_assignment_compartment(self, operator_control_assign "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_operator_control_assignment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_operator_control_assignment_compartment(self, operator_control_assign "operatorControlAssignmentId": operator_control_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_operator_control_assignment_compartment(self, operator_control_assign "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def create_operator_control_assignment(self, create_operator_control_assignment_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_operator_control_assignment got unknown kwargs: {extra_kwargs!r}") @@ -302,7 +302,7 @@ def create_operator_control_assignment(self, create_operator_control_assignment_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -393,7 +393,7 @@ def delete_operator_control_assignment(self, operator_control_assignment_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_operator_control_assignment got unknown kwargs: {extra_kwargs!r}") @@ -402,16 +402,16 @@ def delete_operator_control_assignment(self, operator_control_assignment_id, **k "operatorControlAssignmentId": operator_control_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "description": kwargs.get("description", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -419,7 +419,7 @@ def delete_operator_control_assignment(self, operator_control_assignment_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -497,7 +497,7 @@ def get_assignment_validation_status(self, operator_control_assignment_id, **kwa "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_assignment_validation_status got unknown kwargs: {extra_kwargs!r}") @@ -506,9 +506,9 @@ def get_assignment_validation_status(self, operator_control_assignment_id, **kwa "operatorControlAssignmentId": operator_control_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -517,7 +517,7 @@ def get_assignment_validation_status(self, operator_control_assignment_id, **kwa "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -595,7 +595,7 @@ def get_operator_control_assignment(self, operator_control_assignment_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_operator_control_assignment got unknown kwargs: {extra_kwargs!r}") @@ -604,9 +604,9 @@ def get_operator_control_assignment(self, operator_control_assignment_id, **kwar "operatorControlAssignmentId": operator_control_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -615,7 +615,7 @@ def get_operator_control_assignment(self, operator_control_assignment_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -731,7 +731,7 @@ def list_operator_control_assignments(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_operator_control_assignments got unknown kwargs: {extra_kwargs!r}") @@ -768,14 +768,14 @@ def list_operator_control_assignments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -864,7 +864,7 @@ def update_operator_control_assignment(self, operator_control_assignment_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_operator_control_assignment got unknown kwargs: {extra_kwargs!r}") @@ -873,9 +873,9 @@ def update_operator_control_assignment(self, operator_control_assignment_id, upd "operatorControlAssignmentId": operator_control_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -885,7 +885,7 @@ def update_operator_control_assignment(self, operator_control_assignment_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -984,7 +984,7 @@ def validate_operator_assignment(self, operator_control_assignment_id, validate_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"validate_operator_assignment got unknown kwargs: {extra_kwargs!r}") @@ -993,9 +993,9 @@ def validate_operator_assignment(self, operator_control_assignment_id, validate_ "operatorControlAssignmentId": operator_control_assignment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1006,7 +1006,7 @@ def validate_operator_assignment(self, operator_control_assignment_id, validate_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/operator_access_control/operator_control_client.py b/src/oci/operator_access_control/operator_control_client.py index 67e29c19e..51770c016 100644 --- a/src/oci/operator_access_control/operator_control_client.py +++ b/src/oci/operator_access_control/operator_control_client.py @@ -182,7 +182,7 @@ def change_operator_control_compartment(self, operator_control_id, change_operat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_operator_control_compartment got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def change_operator_control_compartment(self, operator_control_id, change_operat "operatorControlId": operator_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def change_operator_control_compartment(self, operator_control_id, change_operat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -291,7 +291,7 @@ def create_operator_control(self, create_operator_control_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_operator_control got unknown kwargs: {extra_kwargs!r}") @@ -302,7 +302,7 @@ def create_operator_control(self, create_operator_control_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -397,7 +397,7 @@ def delete_operator_control(self, operator_control_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_operator_control got unknown kwargs: {extra_kwargs!r}") @@ -406,16 +406,16 @@ def delete_operator_control(self, operator_control_id, **kwargs): "operatorControlId": operator_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "description": kwargs.get("description", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -423,7 +423,7 @@ def delete_operator_control(self, operator_control_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -501,7 +501,7 @@ def get_operator_control(self, operator_control_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_operator_control got unknown kwargs: {extra_kwargs!r}") @@ -510,9 +510,9 @@ def get_operator_control(self, operator_control_id, **kwargs): "operatorControlId": operator_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -521,7 +521,7 @@ def get_operator_control(self, operator_control_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -633,7 +633,7 @@ def list_operator_controls(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_operator_controls got unknown kwargs: {extra_kwargs!r}") @@ -669,14 +669,14 @@ def list_operator_controls(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -765,7 +765,7 @@ def update_operator_control(self, operator_control_id, update_operator_control_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_operator_control got unknown kwargs: {extra_kwargs!r}") @@ -774,9 +774,9 @@ def update_operator_control(self, operator_control_id, update_operator_control_d "operatorControlId": operator_control_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -786,7 +786,7 @@ def update_operator_control(self, operator_control_id, update_operator_control_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/opsi/operations_insights_client.py b/src/oci/opsi/operations_insights_client.py index 5dc964826..ea62fcbb1 100644 --- a/src/oci/opsi/operations_insights_client.py +++ b/src/oci/opsi/operations_insights_client.py @@ -182,7 +182,7 @@ def add_exadata_insight_members(self, add_exadata_insight_members_details, exada "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_exadata_insight_members got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def add_exadata_insight_members(self, add_exadata_insight_members_details, exada "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def add_exadata_insight_members(self, add_exadata_insight_members_details, exada "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -302,7 +302,7 @@ def change_autonomous_database_insight_advanced_features(self, change_autonomous "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_autonomous_database_insight_advanced_features got unknown kwargs: {extra_kwargs!r}") @@ -311,9 +311,9 @@ def change_autonomous_database_insight_advanced_features(self, change_autonomous "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -324,7 +324,7 @@ def change_autonomous_database_insight_advanced_features(self, change_autonomous "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -422,7 +422,7 @@ def change_awr_hub_source_compartment(self, awr_hub_source_id, change_awr_hub_so "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_awr_hub_source_compartment got unknown kwargs: {extra_kwargs!r}") @@ -431,9 +431,9 @@ def change_awr_hub_source_compartment(self, awr_hub_source_id, change_awr_hub_so "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -444,7 +444,7 @@ def change_awr_hub_source_compartment(self, awr_hub_source_id, change_awr_hub_so "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -542,7 +542,7 @@ def change_database_insight_compartment(self, database_insight_id, change_databa "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_database_insight_compartment got unknown kwargs: {extra_kwargs!r}") @@ -551,9 +551,9 @@ def change_database_insight_compartment(self, database_insight_id, change_databa "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -564,7 +564,7 @@ def change_database_insight_compartment(self, database_insight_id, change_databa "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -653,7 +653,7 @@ def change_enterprise_manager_bridge_compartment(self, enterprise_manager_bridge "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_enterprise_manager_bridge_compartment got unknown kwargs: {extra_kwargs!r}") @@ -662,9 +662,9 @@ def change_enterprise_manager_bridge_compartment(self, enterprise_manager_bridge "enterpriseManagerBridgeId": enterprise_manager_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -674,7 +674,7 @@ def change_enterprise_manager_bridge_compartment(self, enterprise_manager_bridge "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -771,7 +771,7 @@ def change_exadata_insight_compartment(self, exadata_insight_id, change_exadata_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_exadata_insight_compartment got unknown kwargs: {extra_kwargs!r}") @@ -780,9 +780,9 @@ def change_exadata_insight_compartment(self, exadata_insight_id, change_exadata_ "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -793,7 +793,7 @@ def change_exadata_insight_compartment(self, exadata_insight_id, change_exadata_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -891,7 +891,7 @@ def change_external_mysql_database_insight_connection(self, database_insight_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_external_mysql_database_insight_connection got unknown kwargs: {extra_kwargs!r}") @@ -900,9 +900,9 @@ def change_external_mysql_database_insight_connection(self, database_insight_id, "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -913,7 +913,7 @@ def change_external_mysql_database_insight_connection(self, database_insight_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1011,7 +1011,7 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_insight_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1020,9 +1020,9 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c "hostInsightId": host_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1033,7 +1033,7 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1131,7 +1131,7 @@ def change_macs_managed_autonomous_database_insight_connection(self, database_in "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_macs_managed_autonomous_database_insight_connection got unknown kwargs: {extra_kwargs!r}") @@ -1140,9 +1140,9 @@ def change_macs_managed_autonomous_database_insight_connection(self, database_in "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1153,7 +1153,7 @@ def change_macs_managed_autonomous_database_insight_connection(self, database_in "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1251,7 +1251,7 @@ def change_macs_managed_cloud_database_insight_connection(self, database_insight "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_macs_managed_cloud_database_insight_connection got unknown kwargs: {extra_kwargs!r}") @@ -1260,9 +1260,9 @@ def change_macs_managed_cloud_database_insight_connection(self, database_insight "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1273,7 +1273,7 @@ def change_macs_managed_cloud_database_insight_connection(self, database_insight "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1371,7 +1371,7 @@ def change_news_report_compartment(self, news_report_id, change_news_report_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_news_report_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1380,9 +1380,9 @@ def change_news_report_compartment(self, news_report_id, change_news_report_comp "newsReportId": news_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1393,7 +1393,7 @@ def change_news_report_compartment(self, news_report_id, change_news_report_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1493,7 +1493,7 @@ def change_operations_insights_private_endpoint_compartment(self, operations_ins "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_operations_insights_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1502,9 +1502,9 @@ def change_operations_insights_private_endpoint_compartment(self, operations_ins "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1515,7 +1515,7 @@ def change_operations_insights_private_endpoint_compartment(self, operations_ins "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1613,7 +1613,7 @@ def change_operations_insights_warehouse_compartment(self, operations_insights_w "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_operations_insights_warehouse_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1622,9 +1622,9 @@ def change_operations_insights_warehouse_compartment(self, operations_insights_w "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1635,7 +1635,7 @@ def change_operations_insights_warehouse_compartment(self, operations_insights_w "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1735,7 +1735,7 @@ def change_opsi_configuration_compartment(self, opsi_configuration_id, change_op "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_opsi_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1744,9 +1744,9 @@ def change_opsi_configuration_compartment(self, opsi_configuration_id, change_op "opsiConfigurationId": opsi_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1757,7 +1757,7 @@ def change_opsi_configuration_compartment(self, opsi_configuration_id, change_op "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1855,7 +1855,7 @@ def change_pe_comanaged_database_insight(self, database_insight_id, change_pe_co "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_pe_comanaged_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -1864,9 +1864,9 @@ def change_pe_comanaged_database_insight(self, database_insight_id, change_pe_co "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1877,7 +1877,7 @@ def change_pe_comanaged_database_insight(self, database_insight_id, change_pe_co "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1967,7 +1967,7 @@ def create_awr_hub(self, create_awr_hub_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_awr_hub got unknown kwargs: {extra_kwargs!r}") @@ -1978,7 +1978,7 @@ def create_awr_hub(self, create_awr_hub_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2067,7 +2067,7 @@ def create_awr_hub_source(self, create_awr_hub_source_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_awr_hub_source got unknown kwargs: {extra_kwargs!r}") @@ -2078,7 +2078,7 @@ def create_awr_hub_source(self, create_awr_hub_source_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2167,7 +2167,7 @@ def create_database_insight(self, create_database_insight_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -2178,7 +2178,7 @@ def create_database_insight(self, create_database_insight_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2267,7 +2267,7 @@ def create_enterprise_manager_bridge(self, create_enterprise_manager_bridge_deta "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_enterprise_manager_bridge got unknown kwargs: {extra_kwargs!r}") @@ -2278,7 +2278,7 @@ def create_enterprise_manager_bridge(self, create_enterprise_manager_bridge_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2367,7 +2367,7 @@ def create_exadata_insight(self, create_exadata_insight_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_exadata_insight got unknown kwargs: {extra_kwargs!r}") @@ -2378,7 +2378,7 @@ def create_exadata_insight(self, create_exadata_insight_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2467,7 +2467,7 @@ def create_host_insight(self, create_host_insight_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_host_insight got unknown kwargs: {extra_kwargs!r}") @@ -2478,7 +2478,7 @@ def create_host_insight(self, create_host_insight_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2567,7 +2567,7 @@ def create_news_report(self, create_news_report_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_news_report got unknown kwargs: {extra_kwargs!r}") @@ -2578,7 +2578,7 @@ def create_news_report(self, create_news_report_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2668,7 +2668,7 @@ def create_operations_insights_private_endpoint(self, create_operations_insights "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_operations_insights_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2679,7 +2679,7 @@ def create_operations_insights_private_endpoint(self, create_operations_insights "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2770,7 +2770,7 @@ def create_operations_insights_warehouse(self, create_operations_insights_wareho "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_operations_insights_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -2781,7 +2781,7 @@ def create_operations_insights_warehouse(self, create_operations_insights_wareho "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2871,7 +2871,7 @@ def create_operations_insights_warehouse_user(self, create_operations_insights_w "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_operations_insights_warehouse_user got unknown kwargs: {extra_kwargs!r}") @@ -2882,7 +2882,7 @@ def create_operations_insights_warehouse_user(self, create_operations_insights_w "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2994,7 +2994,7 @@ def create_opsi_configuration(self, create_opsi_configuration_details, **kwargs) "config_items_applicable_context", "config_item_field" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_opsi_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3029,7 +3029,7 @@ def create_opsi_configuration(self, create_opsi_configuration_details, **kwargs) "configItemsApplicableContext": self.base_client.generate_collection_format_param(kwargs.get("config_items_applicable_context", missing), 'multi'), "configItemField": self.base_client.generate_collection_format_param(kwargs.get("config_item_field", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3037,7 +3037,7 @@ def create_opsi_configuration(self, create_opsi_configuration_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3125,7 +3125,7 @@ def delete_awr_hub(self, awr_hub_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_awr_hub got unknown kwargs: {extra_kwargs!r}") @@ -3134,9 +3134,9 @@ def delete_awr_hub(self, awr_hub_id, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3146,7 +3146,7 @@ def delete_awr_hub(self, awr_hub_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3232,7 +3232,7 @@ def delete_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_awr_hub_object got unknown kwargs: {extra_kwargs!r}") @@ -3242,9 +3242,9 @@ def delete_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3254,7 +3254,7 @@ def delete_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3337,7 +3337,7 @@ def delete_awr_hub_source(self, awr_hub_source_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_awr_hub_source got unknown kwargs: {extra_kwargs!r}") @@ -3346,9 +3346,9 @@ def delete_awr_hub_source(self, awr_hub_source_id, **kwargs): "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3358,7 +3358,7 @@ def delete_awr_hub_source(self, awr_hub_source_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3441,7 +3441,7 @@ def delete_database_insight(self, database_insight_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -3450,9 +3450,9 @@ def delete_database_insight(self, database_insight_id, **kwargs): "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3462,7 +3462,7 @@ def delete_database_insight(self, database_insight_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3545,7 +3545,7 @@ def delete_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_enterprise_manager_bridge got unknown kwargs: {extra_kwargs!r}") @@ -3554,9 +3554,9 @@ def delete_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwarg "enterpriseManagerBridgeId": enterprise_manager_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3566,7 +3566,7 @@ def delete_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3649,7 +3649,7 @@ def delete_exadata_insight(self, exadata_insight_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_exadata_insight got unknown kwargs: {extra_kwargs!r}") @@ -3658,9 +3658,9 @@ def delete_exadata_insight(self, exadata_insight_id, **kwargs): "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3670,7 +3670,7 @@ def delete_exadata_insight(self, exadata_insight_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3753,7 +3753,7 @@ def delete_host_insight(self, host_insight_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_insight got unknown kwargs: {extra_kwargs!r}") @@ -3762,9 +3762,9 @@ def delete_host_insight(self, host_insight_id, **kwargs): "hostInsightId": host_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3774,7 +3774,7 @@ def delete_host_insight(self, host_insight_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3857,7 +3857,7 @@ def delete_news_report(self, news_report_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_news_report got unknown kwargs: {extra_kwargs!r}") @@ -3866,9 +3866,9 @@ def delete_news_report(self, news_report_id, **kwargs): "newsReportId": news_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3878,7 +3878,7 @@ def delete_news_report(self, news_report_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3963,7 +3963,7 @@ def delete_operations_insights_private_endpoint(self, operations_insights_privat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_operations_insights_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -3972,9 +3972,9 @@ def delete_operations_insights_private_endpoint(self, operations_insights_privat "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3984,7 +3984,7 @@ def delete_operations_insights_private_endpoint(self, operations_insights_privat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4070,7 +4070,7 @@ def delete_operations_insights_warehouse(self, operations_insights_warehouse_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_operations_insights_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -4079,9 +4079,9 @@ def delete_operations_insights_warehouse(self, operations_insights_warehouse_id, "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4091,7 +4091,7 @@ def delete_operations_insights_warehouse(self, operations_insights_warehouse_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4174,7 +4174,7 @@ def delete_operations_insights_warehouse_user(self, operations_insights_warehous "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_operations_insights_warehouse_user got unknown kwargs: {extra_kwargs!r}") @@ -4183,9 +4183,9 @@ def delete_operations_insights_warehouse_user(self, operations_insights_warehous "operationsInsightsWarehouseUserId": operations_insights_warehouse_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4195,7 +4195,7 @@ def delete_operations_insights_warehouse_user(self, operations_insights_warehous "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4280,7 +4280,7 @@ def delete_opsi_configuration(self, opsi_configuration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_opsi_configuration got unknown kwargs: {extra_kwargs!r}") @@ -4289,9 +4289,9 @@ def delete_opsi_configuration(self, opsi_configuration_id, **kwargs): "opsiConfigurationId": opsi_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4301,7 +4301,7 @@ def delete_opsi_configuration(self, opsi_configuration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4393,7 +4393,7 @@ def disable_autonomous_database_insight_advanced_features(self, database_insight "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_autonomous_database_insight_advanced_features got unknown kwargs: {extra_kwargs!r}") @@ -4402,9 +4402,9 @@ def disable_autonomous_database_insight_advanced_features(self, database_insight "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4415,7 +4415,7 @@ def disable_autonomous_database_insight_advanced_features(self, database_insight "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4508,7 +4508,7 @@ def disable_awr_hub_source(self, awr_hub_source_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_awr_hub_source got unknown kwargs: {extra_kwargs!r}") @@ -4517,9 +4517,9 @@ def disable_awr_hub_source(self, awr_hub_source_id, **kwargs): "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4530,7 +4530,7 @@ def disable_awr_hub_source(self, awr_hub_source_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4623,7 +4623,7 @@ def disable_database_insight(self, database_insight_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -4632,9 +4632,9 @@ def disable_database_insight(self, database_insight_id, **kwargs): "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4645,7 +4645,7 @@ def disable_database_insight(self, database_insight_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4738,7 +4738,7 @@ def disable_exadata_insight(self, exadata_insight_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_exadata_insight got unknown kwargs: {extra_kwargs!r}") @@ -4747,9 +4747,9 @@ def disable_exadata_insight(self, exadata_insight_id, **kwargs): "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4760,7 +4760,7 @@ def disable_exadata_insight(self, exadata_insight_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4853,7 +4853,7 @@ def disable_host_insight(self, host_insight_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_host_insight got unknown kwargs: {extra_kwargs!r}") @@ -4862,9 +4862,9 @@ def disable_host_insight(self, host_insight_id, **kwargs): "hostInsightId": host_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4875,7 +4875,7 @@ def disable_host_insight(self, host_insight_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4965,7 +4965,7 @@ def download_operations_insights_warehouse_wallet(self, operations_insights_ware "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_operations_insights_warehouse_wallet got unknown kwargs: {extra_kwargs!r}") @@ -4974,9 +4974,9 @@ def download_operations_insights_warehouse_wallet(self, operations_insights_ware "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4986,7 +4986,7 @@ def download_operations_insights_warehouse_wallet(self, operations_insights_ware "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5086,7 +5086,7 @@ def enable_autonomous_database_insight_advanced_features(self, enable_autonomous "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_autonomous_database_insight_advanced_features got unknown kwargs: {extra_kwargs!r}") @@ -5095,9 +5095,9 @@ def enable_autonomous_database_insight_advanced_features(self, enable_autonomous "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5108,7 +5108,7 @@ def enable_autonomous_database_insight_advanced_features(self, enable_autonomous "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5203,7 +5203,7 @@ def enable_awr_hub_source(self, awr_hub_source_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_awr_hub_source got unknown kwargs: {extra_kwargs!r}") @@ -5212,9 +5212,9 @@ def enable_awr_hub_source(self, awr_hub_source_id, **kwargs): "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5225,7 +5225,7 @@ def enable_awr_hub_source(self, awr_hub_source_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5321,7 +5321,7 @@ def enable_database_insight(self, enable_database_insight_details, database_insi "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -5330,9 +5330,9 @@ def enable_database_insight(self, enable_database_insight_details, database_insi "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5343,7 +5343,7 @@ def enable_database_insight(self, enable_database_insight_details, database_insi "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5441,7 +5441,7 @@ def enable_exadata_insight(self, enable_exadata_insight_details, exadata_insight "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_exadata_insight got unknown kwargs: {extra_kwargs!r}") @@ -5450,9 +5450,9 @@ def enable_exadata_insight(self, enable_exadata_insight_details, exadata_insight "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5463,7 +5463,7 @@ def enable_exadata_insight(self, enable_exadata_insight_details, exadata_insight "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5561,7 +5561,7 @@ def enable_host_insight(self, enable_host_insight_details, host_insight_id, **kw "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_host_insight got unknown kwargs: {extra_kwargs!r}") @@ -5570,9 +5570,9 @@ def enable_host_insight(self, enable_host_insight_details, host_insight_id, **kw "hostInsightId": host_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5583,7 +5583,7 @@ def enable_host_insight(self, enable_host_insight_details, host_insight_id, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5702,7 +5702,7 @@ def get_awr_database_report(self, awr_hub_id, awr_source_database_identifier, ** "report_format", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_database_report got unknown kwargs: {extra_kwargs!r}") @@ -5711,9 +5711,9 @@ def get_awr_database_report(self, awr_hub_id, awr_source_database_identifier, ** "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5741,14 +5741,14 @@ def get_awr_database_report(self, awr_hub_id, awr_source_database_identifier, ** "reportType": kwargs.get("report_type", missing), "reportFormat": kwargs.get("report_format", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5865,7 +5865,7 @@ def get_awr_database_sql_report(self, awr_hub_id, awr_source_database_identifier "report_format", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_database_sql_report got unknown kwargs: {extra_kwargs!r}") @@ -5874,9 +5874,9 @@ def get_awr_database_sql_report(self, awr_hub_id, awr_source_database_identifier "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5897,14 +5897,14 @@ def get_awr_database_sql_report(self, awr_hub_id, awr_source_database_identifier "sqlId": sql_id, "reportFormat": kwargs.get("report_format", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5985,7 +5985,7 @@ def get_awr_hub(self, awr_hub_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_hub got unknown kwargs: {extra_kwargs!r}") @@ -5994,9 +5994,9 @@ def get_awr_hub(self, awr_hub_id, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6005,7 +6005,7 @@ def get_awr_hub(self, awr_hub_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6087,7 +6087,7 @@ def get_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_hub_object got unknown kwargs: {extra_kwargs!r}") @@ -6097,9 +6097,9 @@ def get_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6108,7 +6108,7 @@ def get_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6187,7 +6187,7 @@ def get_awr_hub_source(self, awr_hub_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_hub_source got unknown kwargs: {extra_kwargs!r}") @@ -6196,9 +6196,9 @@ def get_awr_hub_source(self, awr_hub_source_id, **kwargs): "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6207,7 +6207,7 @@ def get_awr_hub_source(self, awr_hub_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6316,7 +6316,7 @@ def get_awr_report(self, awr_hub_id, awr_source_database_identifier, **kwargs): "time_less_than_or_equal_to", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_awr_report got unknown kwargs: {extra_kwargs!r}") @@ -6325,9 +6325,9 @@ def get_awr_report(self, awr_hub_id, awr_source_database_identifier, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6347,14 +6347,14 @@ def get_awr_report(self, awr_hub_id, awr_source_database_identifier, **kwargs): "timeGreaterThanOrEqualTo": kwargs.get("time_greater_than_or_equal_to", missing), "timeLessThanOrEqualTo": kwargs.get("time_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6435,7 +6435,7 @@ def get_database_insight(self, database_insight_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -6444,9 +6444,9 @@ def get_database_insight(self, database_insight_id, **kwargs): "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6455,7 +6455,7 @@ def get_database_insight(self, database_insight_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6534,7 +6534,7 @@ def get_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_enterprise_manager_bridge got unknown kwargs: {extra_kwargs!r}") @@ -6543,9 +6543,9 @@ def get_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwargs): "enterpriseManagerBridgeId": enterprise_manager_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6554,7 +6554,7 @@ def get_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6633,7 +6633,7 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_exadata_insight got unknown kwargs: {extra_kwargs!r}") @@ -6642,9 +6642,9 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs): "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6653,7 +6653,7 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6732,7 +6732,7 @@ def get_host_insight(self, host_insight_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_insight got unknown kwargs: {extra_kwargs!r}") @@ -6741,9 +6741,9 @@ def get_host_insight(self, host_insight_id, **kwargs): "hostInsightId": host_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6752,7 +6752,7 @@ def get_host_insight(self, host_insight_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6831,7 +6831,7 @@ def get_news_report(self, news_report_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_news_report got unknown kwargs: {extra_kwargs!r}") @@ -6840,9 +6840,9 @@ def get_news_report(self, news_report_id, **kwargs): "newsReportId": news_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6851,7 +6851,7 @@ def get_news_report(self, news_report_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6932,7 +6932,7 @@ def get_operations_insights_private_endpoint(self, operations_insights_private_e "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_operations_insights_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6941,9 +6941,9 @@ def get_operations_insights_private_endpoint(self, operations_insights_private_e "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6952,7 +6952,7 @@ def get_operations_insights_private_endpoint(self, operations_insights_private_e "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7032,7 +7032,7 @@ def get_operations_insights_warehouse(self, operations_insights_warehouse_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_operations_insights_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -7041,9 +7041,9 @@ def get_operations_insights_warehouse(self, operations_insights_warehouse_id, ** "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7052,7 +7052,7 @@ def get_operations_insights_warehouse(self, operations_insights_warehouse_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7131,7 +7131,7 @@ def get_operations_insights_warehouse_user(self, operations_insights_warehouse_u "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_operations_insights_warehouse_user got unknown kwargs: {extra_kwargs!r}") @@ -7140,9 +7140,9 @@ def get_operations_insights_warehouse_user(self, operations_insights_warehouse_u "operationsInsightsWarehouseUserId": operations_insights_warehouse_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7151,7 +7151,7 @@ def get_operations_insights_warehouse_user(self, operations_insights_warehouse_u "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7257,7 +7257,7 @@ def get_opsi_configuration(self, opsi_configuration_id, **kwargs): "config_item_field", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_opsi_configuration got unknown kwargs: {extra_kwargs!r}") @@ -7266,9 +7266,9 @@ def get_opsi_configuration(self, opsi_configuration_id, **kwargs): "opsiConfigurationId": opsi_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7302,14 +7302,14 @@ def get_opsi_configuration(self, opsi_configuration_id, **kwargs): "configItemsApplicableContext": self.base_client.generate_collection_format_param(kwargs.get("config_items_applicable_context", missing), 'multi'), "configItemField": self.base_client.generate_collection_format_param(kwargs.get("config_item_field", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7395,7 +7395,7 @@ def get_opsi_data_object(self, compartment_id, opsi_data_object_identifier, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_opsi_data_object got unknown kwargs: {extra_kwargs!r}") @@ -7404,23 +7404,23 @@ def get_opsi_data_object(self, compartment_id, opsi_data_object_identifier, **kw "opsiDataObjectIdentifier": opsi_data_object_identifier } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7501,7 +7501,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -7510,9 +7510,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7521,7 +7521,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7603,7 +7603,7 @@ def head_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"head_awr_hub_object got unknown kwargs: {extra_kwargs!r}") @@ -7613,9 +7613,9 @@ def head_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7624,7 +7624,7 @@ def head_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7729,7 +7729,7 @@ def ingest_addm_reports(self, ingest_addm_reports_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_addm_reports got unknown kwargs: {extra_kwargs!r}") @@ -7738,7 +7738,7 @@ def ingest_addm_reports(self, ingest_addm_reports_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7747,7 +7747,7 @@ def ingest_addm_reports(self, ingest_addm_reports_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7856,7 +7856,7 @@ def ingest_database_configuration(self, ingest_database_configuration_details, * "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_database_configuration got unknown kwargs: {extra_kwargs!r}") @@ -7865,7 +7865,7 @@ def ingest_database_configuration(self, ingest_database_configuration_details, * "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7874,7 +7874,7 @@ def ingest_database_configuration(self, ingest_database_configuration_details, * "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7976,7 +7976,7 @@ def ingest_host_configuration(self, id, ingest_host_configuration_details, **kwa "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_host_configuration got unknown kwargs: {extra_kwargs!r}") @@ -7984,7 +7984,7 @@ def ingest_host_configuration(self, id, ingest_host_configuration_details, **kwa query_params = { "id": id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -7993,7 +7993,7 @@ def ingest_host_configuration(self, id, ingest_host_configuration_details, **kwa "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8095,7 +8095,7 @@ def ingest_host_metrics(self, id, ingest_host_metrics_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_host_metrics got unknown kwargs: {extra_kwargs!r}") @@ -8103,7 +8103,7 @@ def ingest_host_metrics(self, id, ingest_host_metrics_details, **kwargs): query_params = { "id": id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8112,7 +8112,7 @@ def ingest_host_metrics(self, id, ingest_host_metrics_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8222,7 +8222,7 @@ def ingest_my_sql_sql_stats(self, ingest_my_sql_sql_stats_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_my_sql_sql_stats got unknown kwargs: {extra_kwargs!r}") @@ -8231,7 +8231,7 @@ def ingest_my_sql_sql_stats(self, ingest_my_sql_sql_stats_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8240,7 +8240,7 @@ def ingest_my_sql_sql_stats(self, ingest_my_sql_sql_stats_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8357,7 +8357,7 @@ def ingest_my_sql_sql_text(self, ingest_my_sql_sql_text_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_my_sql_sql_text got unknown kwargs: {extra_kwargs!r}") @@ -8367,7 +8367,7 @@ def ingest_my_sql_sql_text(self, ingest_my_sql_sql_text_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8376,7 +8376,7 @@ def ingest_my_sql_sql_text(self, ingest_my_sql_sql_text_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8492,7 +8492,7 @@ def ingest_sql_bucket(self, ingest_sql_bucket_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_sql_bucket got unknown kwargs: {extra_kwargs!r}") @@ -8502,7 +8502,7 @@ def ingest_sql_bucket(self, ingest_sql_bucket_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8511,7 +8511,7 @@ def ingest_sql_bucket(self, ingest_sql_bucket_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8627,7 +8627,7 @@ def ingest_sql_plan_lines(self, ingest_sql_plan_lines_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_sql_plan_lines got unknown kwargs: {extra_kwargs!r}") @@ -8637,7 +8637,7 @@ def ingest_sql_plan_lines(self, ingest_sql_plan_lines_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8646,7 +8646,7 @@ def ingest_sql_plan_lines(self, ingest_sql_plan_lines_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8756,7 +8756,7 @@ def ingest_sql_stats(self, ingest_sql_stats_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_sql_stats got unknown kwargs: {extra_kwargs!r}") @@ -8765,7 +8765,7 @@ def ingest_sql_stats(self, ingest_sql_stats_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8774,7 +8774,7 @@ def ingest_sql_stats(self, ingest_sql_stats_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8891,7 +8891,7 @@ def ingest_sql_text(self, ingest_sql_text_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ingest_sql_text got unknown kwargs: {extra_kwargs!r}") @@ -8901,7 +8901,7 @@ def ingest_sql_text(self, ingest_sql_text_details, **kwargs): "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8910,7 +8910,7 @@ def ingest_sql_text(self, ingest_sql_text_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9069,7 +9069,7 @@ def list_addm_db_finding_categories(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addm_db_finding_categories got unknown kwargs: {extra_kwargs!r}") @@ -9102,14 +9102,14 @@ def list_addm_db_finding_categories(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9288,7 +9288,7 @@ def list_addm_db_findings_time_series(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addm_db_findings_time_series got unknown kwargs: {extra_kwargs!r}") @@ -9325,14 +9325,14 @@ def list_addm_db_findings_time_series(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9488,7 +9488,7 @@ def list_addm_db_parameter_categories(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addm_db_parameter_categories got unknown kwargs: {extra_kwargs!r}") @@ -9521,14 +9521,14 @@ def list_addm_db_parameter_categories(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9684,7 +9684,7 @@ def list_addm_db_recommendation_categories(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addm_db_recommendation_categories got unknown kwargs: {extra_kwargs!r}") @@ -9717,14 +9717,14 @@ def list_addm_db_recommendation_categories(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9923,7 +9923,7 @@ def list_addm_db_recommendations_time_series(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addm_db_recommendations_time_series got unknown kwargs: {extra_kwargs!r}") @@ -9964,14 +9964,14 @@ def list_addm_db_recommendations_time_series(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10142,7 +10142,7 @@ def list_addm_dbs(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_addm_dbs got unknown kwargs: {extra_kwargs!r}") @@ -10177,14 +10177,14 @@ def list_addm_dbs(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10320,7 +10320,7 @@ def list_awr_database_snapshots(self, awr_hub_id, awr_source_database_identifier "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_database_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -10329,9 +10329,9 @@ def list_awr_database_snapshots(self, awr_hub_id, awr_source_database_identifier "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10361,14 +10361,14 @@ def list_awr_database_snapshots(self, awr_hub_id, awr_source_database_identifier "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10491,7 +10491,7 @@ def list_awr_databases(self, awr_hub_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_databases got unknown kwargs: {extra_kwargs!r}") @@ -10500,9 +10500,9 @@ def list_awr_databases(self, awr_hub_id, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10529,14 +10529,14 @@ def list_awr_databases(self, awr_hub_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10668,7 +10668,7 @@ def list_awr_hub_objects(self, awr_hub_source_id, **kwargs): "fields", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_hub_objects got unknown kwargs: {extra_kwargs!r}") @@ -10677,9 +10677,9 @@ def list_awr_hub_objects(self, awr_hub_source_id, **kwargs): "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10700,14 +10700,14 @@ def list_awr_hub_objects(self, awr_hub_source_id, **kwargs): "limit": kwargs.get("limit", missing), "fields": kwargs.get("fields", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10851,7 +10851,7 @@ def list_awr_hub_sources(self, awr_hub_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_hub_sources got unknown kwargs: {extra_kwargs!r}") @@ -10907,14 +10907,14 @@ def list_awr_hub_sources(self, awr_hub_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11043,7 +11043,7 @@ def list_awr_hubs(self, operations_insights_warehouse_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_hubs got unknown kwargs: {extra_kwargs!r}") @@ -11081,14 +11081,14 @@ def list_awr_hubs(self, operations_insights_warehouse_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11209,7 +11209,7 @@ def list_awr_snapshots(self, awr_hub_id, awr_source_database_identifier, **kwarg "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_awr_snapshots got unknown kwargs: {extra_kwargs!r}") @@ -11218,9 +11218,9 @@ def list_awr_snapshots(self, awr_hub_id, awr_source_database_identifier, **kwarg "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -11247,14 +11247,14 @@ def list_awr_snapshots(self, awr_hub_id, awr_source_database_identifier, **kwarg "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11443,7 +11443,7 @@ def list_database_configurations(self, **kwargs): "compartment_id_in_subtree", "vmcluster_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_configurations got unknown kwargs: {extra_kwargs!r}") @@ -11490,14 +11490,14 @@ def list_database_configurations(self, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11665,7 +11665,7 @@ def list_database_insights(self, **kwargs): "opsi_private_endpoint_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_database_insights got unknown kwargs: {extra_kwargs!r}") @@ -11733,14 +11733,14 @@ def list_database_insights(self, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "opsiPrivateEndpointId": kwargs.get("opsi_private_endpoint_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -11871,7 +11871,7 @@ def list_enterprise_manager_bridges(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_enterprise_manager_bridges got unknown kwargs: {extra_kwargs!r}") @@ -11909,14 +11909,14 @@ def list_enterprise_manager_bridges(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12072,7 +12072,7 @@ def list_exadata_configurations(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exadata_configurations got unknown kwargs: {extra_kwargs!r}") @@ -12105,14 +12105,14 @@ def list_exadata_configurations(self, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12256,7 +12256,7 @@ def list_exadata_insights(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_exadata_insights got unknown kwargs: {extra_kwargs!r}") @@ -12304,14 +12304,14 @@ def list_exadata_insights(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12503,7 +12503,7 @@ def list_host_configurations(self, **kwargs): "vmcluster_name", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_configurations got unknown kwargs: {extra_kwargs!r}") @@ -12558,14 +12558,14 @@ def list_host_configurations(self, **kwargs): "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi'), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12724,7 +12724,7 @@ def list_host_insights(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_insights got unknown kwargs: {extra_kwargs!r}") @@ -12782,14 +12782,14 @@ def list_host_insights(self, **kwargs): "exadataInsightId": kwargs.get("exadata_insight_id", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -12959,7 +12959,7 @@ def list_hosted_entities(self, compartment_id, id, **kwargs): "host_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_hosted_entities got unknown kwargs: {extra_kwargs!r}") @@ -13010,14 +13010,14 @@ def list_hosted_entities(self, compartment_id, id, **kwargs): "hostId": kwargs.get("host_id", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13132,7 +13132,7 @@ def list_importable_agent_entities(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_importable_agent_entities got unknown kwargs: {extra_kwargs!r}") @@ -13158,14 +13158,14 @@ def list_importable_agent_entities(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13282,7 +13282,7 @@ def list_importable_compute_entities(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_importable_compute_entities got unknown kwargs: {extra_kwargs!r}") @@ -13308,14 +13308,14 @@ def list_importable_compute_entities(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13424,7 +13424,7 @@ def list_importable_enterprise_manager_entities(self, enterprise_manager_bridge_ "enterprise_manager_parent_entity_identifier", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_importable_enterprise_manager_entities got unknown kwargs: {extra_kwargs!r}") @@ -13433,9 +13433,9 @@ def list_importable_enterprise_manager_entities(self, enterprise_manager_bridge_ "enterpriseManagerBridgeId": enterprise_manager_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -13446,14 +13446,14 @@ def list_importable_enterprise_manager_entities(self, enterprise_manager_bridge_ "enterpriseManagerIdentifier": kwargs.get("enterprise_manager_identifier", missing), "enterpriseManagerParentEntityIdentifier": kwargs.get("enterprise_manager_parent_entity_identifier", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13587,7 +13587,7 @@ def list_news_reports(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_news_reports got unknown kwargs: {extra_kwargs!r}") @@ -13633,14 +13633,14 @@ def list_news_reports(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13780,7 +13780,7 @@ def list_operations_insights_private_endpoints(self, **kwargs): "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_operations_insights_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -13820,14 +13820,14 @@ def list_operations_insights_private_endpoints(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -13956,7 +13956,7 @@ def list_operations_insights_warehouse_users(self, operations_insights_warehouse "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_operations_insights_warehouse_users got unknown kwargs: {extra_kwargs!r}") @@ -13994,14 +13994,14 @@ def list_operations_insights_warehouse_users(self, operations_insights_warehouse "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14128,7 +14128,7 @@ def list_operations_insights_warehouses(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_operations_insights_warehouses got unknown kwargs: {extra_kwargs!r}") @@ -14165,14 +14165,14 @@ def list_operations_insights_warehouses(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14299,7 +14299,7 @@ def list_opsi_configurations(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opsi_configurations got unknown kwargs: {extra_kwargs!r}") @@ -14344,14 +14344,14 @@ def list_opsi_configurations(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14480,7 +14480,7 @@ def list_opsi_data_objects(self, compartment_id, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_opsi_data_objects got unknown kwargs: {extra_kwargs!r}") @@ -14518,14 +14518,14 @@ def list_opsi_data_objects(self, compartment_id, **kwargs): "groupName": kwargs.get("group_name", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14635,7 +14635,7 @@ def list_sql_plans(self, compartment_id, sql_identifier, plan_hash, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_plans got unknown kwargs: {extra_kwargs!r}") @@ -14648,14 +14648,14 @@ def list_sql_plans(self, compartment_id, sql_identifier, plan_hash, **kwargs): "planHash": self.base_client.generate_collection_format_param(plan_hash, 'multi'), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14804,7 +14804,7 @@ def list_sql_searches(self, compartment_id, sql_identifier, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_searches got unknown kwargs: {extra_kwargs!r}") @@ -14822,14 +14822,14 @@ def list_sql_searches(self, compartment_id, sql_identifier, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -14967,7 +14967,7 @@ def list_sql_texts(self, compartment_id, sql_identifier, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sql_texts got unknown kwargs: {extra_kwargs!r}") @@ -14984,14 +14984,14 @@ def list_sql_texts(self, compartment_id, sql_identifier, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15127,7 +15127,7 @@ def list_warehouse_data_objects(self, warehouse_type, warehouse_id, **kwargs): "summary_field", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_warehouse_data_objects got unknown kwargs: {extra_kwargs!r}") @@ -15137,9 +15137,9 @@ def list_warehouse_data_objects(self, warehouse_type, warehouse_id, **kwargs): "warehouseId": warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15183,14 +15183,14 @@ def list_warehouse_data_objects(self, warehouse_type, warehouse_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "summaryField": self.base_client.generate_collection_format_param(kwargs.get("summary_field", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15301,7 +15301,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -15310,9 +15310,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15336,14 +15336,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15454,7 +15454,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -15463,9 +15463,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15489,14 +15489,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15628,7 +15628,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -15665,14 +15665,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -15771,7 +15771,7 @@ def put_awr_hub_object(self, put_awr_hub_object_body, awr_hub_source_id, object_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_awr_hub_object got unknown kwargs: {extra_kwargs!r}") @@ -15781,9 +15781,9 @@ def put_awr_hub_object(self, put_awr_hub_object_body, awr_hub_source_id, object_ "objectName": object_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -15792,7 +15792,7 @@ def put_awr_hub_object(self, put_awr_hub_object_body, awr_hub_source_id, object_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: @@ -15918,7 +15918,7 @@ def query_opsi_data_object_data(self, compartment_id, query_opsi_data_object_dat "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"query_opsi_data_object_data got unknown kwargs: {extra_kwargs!r}") @@ -15928,14 +15928,14 @@ def query_opsi_data_object_data(self, compartment_id, query_opsi_data_object_dat "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16045,7 +16045,7 @@ def query_warehouse_data_object_data(self, warehouse_type, warehouse_id, query_w "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"query_warehouse_data_object_data got unknown kwargs: {extra_kwargs!r}") @@ -16055,9 +16055,9 @@ def query_warehouse_data_object_data(self, warehouse_type, warehouse_id, query_w "warehouseId": warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16065,14 +16065,14 @@ def query_warehouse_data_object_data(self, warehouse_type, warehouse_id, query_w "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16161,7 +16161,7 @@ def rotate_operations_insights_warehouse_wallet(self, operations_insights_wareho "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_operations_insights_warehouse_wallet got unknown kwargs: {extra_kwargs!r}") @@ -16170,9 +16170,9 @@ def rotate_operations_insights_warehouse_wallet(self, operations_insights_wareho "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -16182,7 +16182,7 @@ def rotate_operations_insights_warehouse_wallet(self, operations_insights_wareho "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16359,7 +16359,7 @@ def summarize_addm_db_findings(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_addm_db_findings got unknown kwargs: {extra_kwargs!r}") @@ -16396,14 +16396,14 @@ def summarize_addm_db_findings(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16589,7 +16589,7 @@ def summarize_addm_db_parameter_changes(self, compartment_id, name, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_addm_db_parameter_changes got unknown kwargs: {extra_kwargs!r}") @@ -16627,14 +16627,14 @@ def summarize_addm_db_parameter_changes(self, compartment_id, name, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -16844,7 +16844,7 @@ def summarize_addm_db_parameters(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_addm_db_parameters got unknown kwargs: {extra_kwargs!r}") @@ -16906,14 +16906,14 @@ def summarize_addm_db_parameters(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17116,7 +17116,7 @@ def summarize_addm_db_recommendations(self, compartment_id, **kwargs): "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_addm_db_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -17158,14 +17158,14 @@ def summarize_addm_db_recommendations(self, compartment_id, **kwargs): "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17327,7 +17327,7 @@ def summarize_addm_db_schema_objects(self, compartment_id, object_identifier, ** "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_addm_db_schema_objects got unknown kwargs: {extra_kwargs!r}") @@ -17347,14 +17347,14 @@ def summarize_addm_db_schema_objects(self, compartment_id, object_identifier, ** "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17517,7 +17517,7 @@ def summarize_addm_db_sql_statements(self, compartment_id, sql_identifier, **kwa "freeform_tag_exists", "compartment_id_in_subtree" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_addm_db_sql_statements got unknown kwargs: {extra_kwargs!r}") @@ -17537,14 +17537,14 @@ def summarize_addm_db_sql_statements(self, compartment_id, sql_identifier, **kwa "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17690,7 +17690,7 @@ def summarize_awr_database_cpu_usages(self, awr_hub_id, awr_source_database_iden "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_cpu_usages got unknown kwargs: {extra_kwargs!r}") @@ -17699,9 +17699,9 @@ def summarize_awr_database_cpu_usages(self, awr_hub_id, awr_source_database_iden "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17739,14 +17739,14 @@ def summarize_awr_database_cpu_usages(self, awr_hub_id, awr_source_database_iden "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -17887,7 +17887,7 @@ def summarize_awr_database_metrics(self, awr_hub_id, awr_source_database_identif "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_metrics got unknown kwargs: {extra_kwargs!r}") @@ -17896,9 +17896,9 @@ def summarize_awr_database_metrics(self, awr_hub_id, awr_source_database_identif "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -17929,14 +17929,14 @@ def summarize_awr_database_metrics(self, awr_hub_id, awr_source_database_identif "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18081,7 +18081,7 @@ def summarize_awr_database_parameter_changes(self, awr_hub_id, awr_source_databa "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_parameter_changes got unknown kwargs: {extra_kwargs!r}") @@ -18090,9 +18090,9 @@ def summarize_awr_database_parameter_changes(self, awr_hub_id, awr_source_databa "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18123,14 +18123,14 @@ def summarize_awr_database_parameter_changes(self, awr_hub_id, awr_source_databa "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18304,7 +18304,7 @@ def summarize_awr_database_parameters(self, awr_hub_id, awr_source_database_iden "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_parameters got unknown kwargs: {extra_kwargs!r}") @@ -18313,9 +18313,9 @@ def summarize_awr_database_parameters(self, awr_hub_id, awr_source_database_iden "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18371,14 +18371,14 @@ def summarize_awr_database_parameters(self, awr_hub_id, awr_source_database_iden "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18501,7 +18501,7 @@ def summarize_awr_database_snapshot_ranges(self, awr_hub_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_snapshot_ranges got unknown kwargs: {extra_kwargs!r}") @@ -18510,9 +18510,9 @@ def summarize_awr_database_snapshot_ranges(self, awr_hub_id, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18539,14 +18539,14 @@ def summarize_awr_database_snapshot_ranges(self, awr_hub_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18687,7 +18687,7 @@ def summarize_awr_database_sysstats(self, awr_hub_id, awr_source_database_identi "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_sysstats got unknown kwargs: {extra_kwargs!r}") @@ -18696,9 +18696,9 @@ def summarize_awr_database_sysstats(self, awr_hub_id, awr_source_database_identi "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18729,14 +18729,14 @@ def summarize_awr_database_sysstats(self, awr_hub_id, awr_source_database_identi "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -18866,7 +18866,7 @@ def summarize_awr_database_top_wait_events(self, awr_hub_id, awr_source_database "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_top_wait_events got unknown kwargs: {extra_kwargs!r}") @@ -18875,9 +18875,9 @@ def summarize_awr_database_top_wait_events(self, awr_hub_id, awr_source_database "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -18914,14 +18914,14 @@ def summarize_awr_database_top_wait_events(self, awr_hub_id, awr_source_database "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19074,7 +19074,7 @@ def summarize_awr_database_wait_event_buckets(self, awr_hub_id, awr_source_datab "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_wait_event_buckets got unknown kwargs: {extra_kwargs!r}") @@ -19083,9 +19083,9 @@ def summarize_awr_database_wait_event_buckets(self, awr_hub_id, awr_source_datab "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19119,14 +19119,14 @@ def summarize_awr_database_wait_event_buckets(self, awr_hub_id, awr_source_datab "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19274,7 +19274,7 @@ def summarize_awr_database_wait_events(self, awr_hub_id, awr_source_database_ide "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_database_wait_events got unknown kwargs: {extra_kwargs!r}") @@ -19283,9 +19283,9 @@ def summarize_awr_database_wait_events(self, awr_hub_id, awr_source_database_ide "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19324,14 +19324,14 @@ def summarize_awr_database_wait_events(self, awr_hub_id, awr_source_database_ide "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19452,7 +19452,7 @@ def summarize_awr_sources_summaries(self, awr_hub_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_awr_sources_summaries got unknown kwargs: {extra_kwargs!r}") @@ -19461,9 +19461,9 @@ def summarize_awr_sources_summaries(self, awr_hub_id, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -19489,14 +19489,14 @@ def summarize_awr_sources_summaries(self, awr_hub_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19619,7 +19619,7 @@ def summarize_configuration_items(self, **kwargs): "name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_configuration_items got unknown kwargs: {extra_kwargs!r}") @@ -19648,14 +19648,14 @@ def summarize_configuration_items(self, **kwargs): "configItemField": self.base_client.generate_collection_format_param(kwargs.get("config_item_field", missing), 'multi'), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -19882,7 +19882,7 @@ def summarize_database_insight_resource_capacity_trend(self, compartment_id, res "high_utilization_threshold", "low_utilization_threshold" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_resource_capacity_trend got unknown kwargs: {extra_kwargs!r}") @@ -19943,14 +19943,14 @@ def summarize_database_insight_resource_capacity_trend(self, compartment_id, res "highUtilizationThreshold": kwargs.get("high_utilization_threshold", missing), "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20192,7 +20192,7 @@ def summarize_database_insight_resource_forecast_trend(self, compartment_id, res "high_utilization_threshold", "low_utilization_threshold" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_resource_forecast_trend got unknown kwargs: {extra_kwargs!r}") @@ -20255,14 +20255,14 @@ def summarize_database_insight_resource_forecast_trend(self, compartment_id, res "highUtilizationThreshold": kwargs.get("high_utilization_threshold", missing), "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20498,7 +20498,7 @@ def summarize_database_insight_resource_statistics(self, compartment_id, resourc "high_utilization_threshold", "low_utilization_threshold" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_resource_statistics got unknown kwargs: {extra_kwargs!r}") @@ -20554,14 +20554,14 @@ def summarize_database_insight_resource_statistics(self, compartment_id, resourc "highUtilizationThreshold": kwargs.get("high_utilization_threshold", missing), "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -20759,7 +20759,7 @@ def summarize_database_insight_resource_usage(self, compartment_id, resource_met "vmcluster_name", "cdb_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -20794,14 +20794,14 @@ def summarize_database_insight_resource_usage(self, compartment_id, resource_met "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi'), "cdbName": self.base_client.generate_collection_format_param(kwargs.get("cdb_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21006,7 +21006,7 @@ def summarize_database_insight_resource_usage_trend(self, compartment_id, resour "vmcluster_name", "cdb_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_resource_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -21056,14 +21056,14 @@ def summarize_database_insight_resource_usage_trend(self, compartment_id, resour "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi'), "cdbName": self.base_client.generate_collection_format_param(kwargs.get("cdb_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21267,7 +21267,7 @@ def summarize_database_insight_resource_utilization_insight(self, compartment_id "high_utilization_threshold", "low_utilization_threshold" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_resource_utilization_insight got unknown kwargs: {extra_kwargs!r}") @@ -21304,14 +21304,14 @@ def summarize_database_insight_resource_utilization_insight(self, compartment_id "highUtilizationThreshold": kwargs.get("high_utilization_threshold", missing), "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21446,7 +21446,7 @@ def summarize_database_insight_tablespace_usage_trend(self, compartment_id, **kw "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_database_insight_tablespace_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -21461,14 +21461,14 @@ def summarize_database_insight_tablespace_usage_trend(self, compartment_id, **kw "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21651,7 +21651,7 @@ def summarize_exadata_insight_resource_capacity_trend(self, resource_type, resou "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_capacity_trend got unknown kwargs: {extra_kwargs!r}") @@ -21689,14 +21689,14 @@ def summarize_exadata_insight_resource_capacity_trend(self, resource_type, resou "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -21884,7 +21884,7 @@ def summarize_exadata_insight_resource_capacity_trend_aggregated(self, resource_ "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_capacity_trend_aggregated got unknown kwargs: {extra_kwargs!r}") @@ -21923,14 +21923,14 @@ def summarize_exadata_insight_resource_capacity_trend_aggregated(self, resource_ "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22139,7 +22139,7 @@ def summarize_exadata_insight_resource_forecast_trend(self, resource_type, resou "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_forecast_trend got unknown kwargs: {extra_kwargs!r}") @@ -22195,14 +22195,14 @@ def summarize_exadata_insight_resource_forecast_trend(self, resource_type, resou "sortBy": kwargs.get("sort_by", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22409,7 +22409,7 @@ def summarize_exadata_insight_resource_forecast_trend_aggregated(self, resource_ "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_forecast_trend_aggregated got unknown kwargs: {extra_kwargs!r}") @@ -22451,14 +22451,14 @@ def summarize_exadata_insight_resource_forecast_trend_aggregated(self, resource_ "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22620,7 +22620,7 @@ def summarize_exadata_insight_resource_statistics(self, exadata_insight_id, reso "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_statistics got unknown kwargs: {extra_kwargs!r}") @@ -22655,14 +22655,14 @@ def summarize_exadata_insight_resource_statistics(self, exadata_insight_id, reso "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -22864,7 +22864,7 @@ def summarize_exadata_insight_resource_usage(self, compartment_id, resource_type "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -22905,14 +22905,14 @@ def summarize_exadata_insight_resource_usage(self, compartment_id, resource_type "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23092,7 +23092,7 @@ def summarize_exadata_insight_resource_usage_aggregated(self, compartment_id, re "compartment_id_in_subtree", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_usage_aggregated got unknown kwargs: {extra_kwargs!r}") @@ -23116,14 +23116,14 @@ def summarize_exadata_insight_resource_usage_aggregated(self, compartment_id, re "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23320,7 +23320,7 @@ def summarize_exadata_insight_resource_utilization_insight(self, compartment_id, "high_utilization_threshold", "low_utilization_threshold" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_insight_resource_utilization_insight got unknown kwargs: {extra_kwargs!r}") @@ -23348,14 +23348,14 @@ def summarize_exadata_insight_resource_utilization_insight(self, compartment_id, "highUtilizationThreshold": kwargs.get("high_utilization_threshold", missing), "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23471,7 +23471,7 @@ def summarize_exadata_members(self, exadata_insight_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_exadata_members got unknown kwargs: {extra_kwargs!r}") @@ -23498,14 +23498,14 @@ def summarize_exadata_members(self, exadata_insight_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23631,7 +23631,7 @@ def summarize_host_insight_disk_statistics(self, compartment_id, id, **kwargs): "opc_request_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_disk_statistics got unknown kwargs: {extra_kwargs!r}") @@ -23661,14 +23661,14 @@ def summarize_host_insight_disk_statistics(self, compartment_id, id, **kwargs): "statistic": kwargs.get("statistic", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23802,7 +23802,7 @@ def summarize_host_insight_host_recommendation(self, compartment_id, id, resourc "statistic", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_host_recommendation got unknown kwargs: {extra_kwargs!r}") @@ -23825,14 +23825,14 @@ def summarize_host_insight_host_recommendation(self, compartment_id, id, resourc "limit": kwargs.get("limit", missing), "statistic": kwargs.get("statistic", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -23976,7 +23976,7 @@ def summarize_host_insight_io_usage_trend(self, compartment_id, id, **kwargs): "opc_request_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_io_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -24008,14 +24008,14 @@ def summarize_host_insight_io_usage_trend(self, compartment_id, id, **kwargs): "statistic": kwargs.get("statistic", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24159,7 +24159,7 @@ def summarize_host_insight_network_usage_trend(self, compartment_id, id, **kwarg "opc_request_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_network_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -24191,14 +24191,14 @@ def summarize_host_insight_network_usage_trend(self, compartment_id, id, **kwarg "statistic": kwargs.get("statistic", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24420,7 +24420,7 @@ def summarize_host_insight_resource_capacity_trend(self, compartment_id, resourc "low_utilization_threshold", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_resource_capacity_trend got unknown kwargs: {extra_kwargs!r}") @@ -24487,14 +24487,14 @@ def summarize_host_insight_resource_capacity_trend(self, compartment_id, resourc "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -24743,7 +24743,7 @@ def summarize_host_insight_resource_forecast_trend(self, compartment_id, resourc "gpu_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_resource_forecast_trend got unknown kwargs: {extra_kwargs!r}") @@ -24815,14 +24815,14 @@ def summarize_host_insight_resource_forecast_trend(self, compartment_id, resourc "gpuId": kwargs.get("gpu_id", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25057,7 +25057,7 @@ def summarize_host_insight_resource_statistics(self, compartment_id, resource_me "low_utilization_threshold", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_resource_statistics got unknown kwargs: {extra_kwargs!r}") @@ -25120,14 +25120,14 @@ def summarize_host_insight_resource_statistics(self, compartment_id, resource_me "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25324,7 +25324,7 @@ def summarize_host_insight_resource_usage(self, compartment_id, resource_metric, "vmcluster_name", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -25366,14 +25366,14 @@ def summarize_host_insight_resource_usage(self, compartment_id, resource_metric, "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi'), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25577,7 +25577,7 @@ def summarize_host_insight_resource_usage_trend(self, compartment_id, resource_m "vmcluster_name", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_resource_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -25634,14 +25634,14 @@ def summarize_host_insight_resource_usage_trend(self, compartment_id, resource_m "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi'), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -25844,7 +25844,7 @@ def summarize_host_insight_resource_utilization_insight(self, compartment_id, re "low_utilization_threshold", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_resource_utilization_insight got unknown kwargs: {extra_kwargs!r}") @@ -25888,14 +25888,14 @@ def summarize_host_insight_resource_utilization_insight(self, compartment_id, re "lowUtilizationThreshold": kwargs.get("low_utilization_threshold", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26039,7 +26039,7 @@ def summarize_host_insight_storage_usage_trend(self, compartment_id, id, **kwarg "opc_request_id", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_storage_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -26071,14 +26071,14 @@ def summarize_host_insight_storage_usage_trend(self, compartment_id, id, **kwarg "statistic": kwargs.get("statistic", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26237,7 +26237,7 @@ def summarize_host_insight_top_processes_usage(self, compartment_id, id, resourc "statistic", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_top_processes_usage got unknown kwargs: {extra_kwargs!r}") @@ -26272,14 +26272,14 @@ def summarize_host_insight_top_processes_usage(self, compartment_id, id, resourc "statistic": kwargs.get("statistic", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26438,7 +26438,7 @@ def summarize_host_insight_top_processes_usage_trend(self, compartment_id, id, r "statistic", "status" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_host_insight_top_processes_usage_trend got unknown kwargs: {extra_kwargs!r}") @@ -26473,14 +26473,14 @@ def summarize_host_insight_top_processes_usage_trend(self, compartment_id, id, r "statistic": kwargs.get("statistic", missing), "status": self.base_client.generate_collection_format_param(kwargs.get("status", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26560,7 +26560,7 @@ def summarize_operations_insights_warehouse_resource_usage(self, operations_insi "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_operations_insights_warehouse_resource_usage got unknown kwargs: {extra_kwargs!r}") @@ -26569,9 +26569,9 @@ def summarize_operations_insights_warehouse_resource_usage(self, operations_insi "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -26580,7 +26580,7 @@ def summarize_operations_insights_warehouse_resource_usage(self, operations_insi "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26766,7 +26766,7 @@ def summarize_sql_insights(self, compartment_id, **kwargs): "compartment_id_in_subtree", "vmcluster_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_insights got unknown kwargs: {extra_kwargs!r}") @@ -26799,14 +26799,14 @@ def summarize_sql_insights(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -26934,7 +26934,7 @@ def summarize_sql_plan_insights(self, compartment_id, sql_identifier, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_plan_insights got unknown kwargs: {extra_kwargs!r}") @@ -26949,14 +26949,14 @@ def summarize_sql_plan_insights(self, compartment_id, sql_identifier, **kwargs): "timeIntervalEnd": kwargs.get("time_interval_end", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27084,7 +27084,7 @@ def summarize_sql_response_time_distributions(self, compartment_id, sql_identifi "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_response_time_distributions got unknown kwargs: {extra_kwargs!r}") @@ -27099,14 +27099,14 @@ def summarize_sql_response_time_distributions(self, compartment_id, sql_identifi "timeIntervalEnd": kwargs.get("time_interval_end", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27326,7 +27326,7 @@ def summarize_sql_statistics(self, compartment_id, **kwargs): "compartment_id_in_subtree", "vmcluster_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_statistics got unknown kwargs: {extra_kwargs!r}") @@ -27386,14 +27386,14 @@ def summarize_sql_statistics(self, compartment_id, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27572,7 +27572,7 @@ def summarize_sql_statistics_time_series(self, compartment_id, sql_identifier, * "compartment_id_in_subtree", "vmcluster_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_statistics_time_series got unknown kwargs: {extra_kwargs!r}") @@ -27596,14 +27596,14 @@ def summarize_sql_statistics_time_series(self, compartment_id, sql_identifier, * "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "vmclusterName": self.base_client.generate_collection_format_param(kwargs.get("vmcluster_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27731,7 +27731,7 @@ def summarize_sql_statistics_time_series_by_plan(self, compartment_id, sql_ident "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_sql_statistics_time_series_by_plan got unknown kwargs: {extra_kwargs!r}") @@ -27746,14 +27746,14 @@ def summarize_sql_statistics_time_series_by_plan(self, compartment_id, sql_ident "timeIntervalEnd": kwargs.get("time_interval_end", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27872,7 +27872,7 @@ def synchronize_autonomous_database_to_exadata(self, compartment_id, synchronize "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"synchronize_autonomous_database_to_exadata got unknown kwargs: {extra_kwargs!r}") @@ -27883,7 +27883,7 @@ def synchronize_autonomous_database_to_exadata(self, compartment_id, synchronize "id": kwargs.get("id", missing), "exadataInsightId": kwargs.get("exadata_insight_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -27892,7 +27892,7 @@ def synchronize_autonomous_database_to_exadata(self, compartment_id, synchronize "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -27993,7 +27993,7 @@ def test_macs_managed_autonomous_database_insight_connection(self, test_macs_man "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_macs_managed_autonomous_database_insight_connection got unknown kwargs: {extra_kwargs!r}") @@ -28002,7 +28002,7 @@ def test_macs_managed_autonomous_database_insight_connection(self, test_macs_man "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28010,7 +28010,7 @@ def test_macs_managed_autonomous_database_insight_connection(self, test_macs_man "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28111,7 +28111,7 @@ def test_macs_managed_cloud_database_insight_connection(self, test_macs_managed_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_macs_managed_cloud_database_insight_connection got unknown kwargs: {extra_kwargs!r}") @@ -28120,7 +28120,7 @@ def test_macs_managed_cloud_database_insight_connection(self, test_macs_managed_ "databaseId": kwargs.get("database_id", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -28128,7 +28128,7 @@ def test_macs_managed_cloud_database_insight_connection(self, test_macs_managed_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28217,7 +28217,7 @@ def update_awr_hub(self, awr_hub_id, update_awr_hub_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_awr_hub got unknown kwargs: {extra_kwargs!r}") @@ -28226,9 +28226,9 @@ def update_awr_hub(self, awr_hub_id, update_awr_hub_details, **kwargs): "awrHubId": awr_hub_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28238,7 +28238,7 @@ def update_awr_hub(self, awr_hub_id, update_awr_hub_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28326,7 +28326,7 @@ def update_awr_hub_source(self, update_awr_hub_source_details, awr_hub_source_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_awr_hub_source got unknown kwargs: {extra_kwargs!r}") @@ -28335,9 +28335,9 @@ def update_awr_hub_source(self, update_awr_hub_source_details, awr_hub_source_id "awrHubSourceId": awr_hub_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28347,7 +28347,7 @@ def update_awr_hub_source(self, update_awr_hub_source_details, awr_hub_source_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28435,7 +28435,7 @@ def update_database_insight(self, database_insight_id, update_database_insight_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_database_insight got unknown kwargs: {extra_kwargs!r}") @@ -28444,9 +28444,9 @@ def update_database_insight(self, database_insight_id, update_database_insight_d "databaseInsightId": database_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28456,7 +28456,7 @@ def update_database_insight(self, database_insight_id, update_database_insight_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28544,7 +28544,7 @@ def update_enterprise_manager_bridge(self, enterprise_manager_bridge_id, update_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_enterprise_manager_bridge got unknown kwargs: {extra_kwargs!r}") @@ -28553,9 +28553,9 @@ def update_enterprise_manager_bridge(self, enterprise_manager_bridge_id, update_ "enterpriseManagerBridgeId": enterprise_manager_bridge_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28565,7 +28565,7 @@ def update_enterprise_manager_bridge(self, enterprise_manager_bridge_id, update_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28653,7 +28653,7 @@ def update_exadata_insight(self, exadata_insight_id, update_exadata_insight_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_exadata_insight got unknown kwargs: {extra_kwargs!r}") @@ -28662,9 +28662,9 @@ def update_exadata_insight(self, exadata_insight_id, update_exadata_insight_deta "exadataInsightId": exadata_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28674,7 +28674,7 @@ def update_exadata_insight(self, exadata_insight_id, update_exadata_insight_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28762,7 +28762,7 @@ def update_host_insight(self, host_insight_id, update_host_insight_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_host_insight got unknown kwargs: {extra_kwargs!r}") @@ -28771,9 +28771,9 @@ def update_host_insight(self, host_insight_id, update_host_insight_details, **kw "hostInsightId": host_insight_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28783,7 +28783,7 @@ def update_host_insight(self, host_insight_id, update_host_insight_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28871,7 +28871,7 @@ def update_news_report(self, news_report_id, update_news_report_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_news_report got unknown kwargs: {extra_kwargs!r}") @@ -28880,9 +28880,9 @@ def update_news_report(self, news_report_id, update_news_report_details, **kwarg "newsReportId": news_report_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -28892,7 +28892,7 @@ def update_news_report(self, news_report_id, update_news_report_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -28982,7 +28982,7 @@ def update_operations_insights_private_endpoint(self, operations_insights_privat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_operations_insights_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -28991,9 +28991,9 @@ def update_operations_insights_private_endpoint(self, operations_insights_privat "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29003,7 +29003,7 @@ def update_operations_insights_private_endpoint(self, operations_insights_privat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29092,7 +29092,7 @@ def update_operations_insights_warehouse(self, operations_insights_warehouse_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_operations_insights_warehouse got unknown kwargs: {extra_kwargs!r}") @@ -29101,9 +29101,9 @@ def update_operations_insights_warehouse(self, operations_insights_warehouse_id, "operationsInsightsWarehouseId": operations_insights_warehouse_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29113,7 +29113,7 @@ def update_operations_insights_warehouse(self, operations_insights_warehouse_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29201,7 +29201,7 @@ def update_operations_insights_warehouse_user(self, operations_insights_warehous "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_operations_insights_warehouse_user got unknown kwargs: {extra_kwargs!r}") @@ -29210,9 +29210,9 @@ def update_operations_insights_warehouse_user(self, operations_insights_warehous "operationsInsightsWarehouseUserId": operations_insights_warehouse_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29222,7 +29222,7 @@ def update_operations_insights_warehouse_user(self, operations_insights_warehous "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -29312,7 +29312,7 @@ def update_opsi_configuration(self, opsi_configuration_id, update_opsi_configura "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_opsi_configuration got unknown kwargs: {extra_kwargs!r}") @@ -29321,9 +29321,9 @@ def update_opsi_configuration(self, opsi_configuration_id, update_opsi_configura "opsiConfigurationId": opsi_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -29333,7 +29333,7 @@ def update_opsi_configuration(self, opsi_configuration_id, update_opsi_configura "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/optimizer/optimizer_client.py b/src/oci/optimizer/optimizer_client.py index 7d52e04b7..48a5cad52 100644 --- a/src/oci/optimizer/optimizer_client.py +++ b/src/oci/optimizer/optimizer_client.py @@ -174,7 +174,7 @@ def bulk_apply_recommendations(self, recommendation_id, bulk_apply_recommendatio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_apply_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -183,9 +183,9 @@ def bulk_apply_recommendations(self, recommendation_id, bulk_apply_recommendatio "recommendationId": recommendation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -195,7 +195,7 @@ def bulk_apply_recommendations(self, recommendation_id, bulk_apply_recommendatio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def create_profile(self, create_profile_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_profile got unknown kwargs: {extra_kwargs!r}") @@ -294,7 +294,7 @@ def create_profile(self, create_profile_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -382,7 +382,7 @@ def delete_profile(self, profile_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_profile got unknown kwargs: {extra_kwargs!r}") @@ -391,9 +391,9 @@ def delete_profile(self, profile_id, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -403,7 +403,7 @@ def delete_profile(self, profile_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -538,7 +538,7 @@ def filter_resource_actions(self, compartment_id, compartment_id_in_subtree, que "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"filter_resource_actions got unknown kwargs: {extra_kwargs!r}") @@ -554,14 +554,14 @@ def filter_resource_actions(self, compartment_id, compartment_id_in_subtree, que "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -642,7 +642,7 @@ def get_category(self, category_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_category got unknown kwargs: {extra_kwargs!r}") @@ -651,9 +651,9 @@ def get_category(self, category_id, **kwargs): "categoryId": category_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -662,7 +662,7 @@ def get_category(self, category_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -741,7 +741,7 @@ def get_enrollment_status(self, enrollment_status_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_enrollment_status got unknown kwargs: {extra_kwargs!r}") @@ -750,9 +750,9 @@ def get_enrollment_status(self, enrollment_status_id, **kwargs): "enrollmentStatusId": enrollment_status_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -761,7 +761,7 @@ def get_enrollment_status(self, enrollment_status_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -840,7 +840,7 @@ def get_profile(self, profile_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_profile got unknown kwargs: {extra_kwargs!r}") @@ -849,9 +849,9 @@ def get_profile(self, profile_id, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -860,7 +860,7 @@ def get_profile(self, profile_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -939,7 +939,7 @@ def get_recommendation(self, recommendation_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_recommendation got unknown kwargs: {extra_kwargs!r}") @@ -948,9 +948,9 @@ def get_recommendation(self, recommendation_id, **kwargs): "recommendationId": recommendation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -959,7 +959,7 @@ def get_recommendation(self, recommendation_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1042,7 +1042,7 @@ def get_resource_action(self, resource_action_id, **kwargs): "include_resource_metadata", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_action got unknown kwargs: {extra_kwargs!r}") @@ -1051,23 +1051,23 @@ def get_resource_action(self, resource_action_id, **kwargs): "resourceActionId": resource_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "includeResourceMetadata": kwargs.get("include_resource_metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1148,7 +1148,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1157,9 +1157,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1168,7 +1168,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1312,7 +1312,7 @@ def list_categories(self, compartment_id, compartment_id_in_subtree, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_categories got unknown kwargs: {extra_kwargs!r}") @@ -1350,14 +1350,14 @@ def list_categories(self, compartment_id, compartment_id_in_subtree, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1468,7 +1468,7 @@ def list_enrollment_statuses(self, compartment_id, **kwargs): "status", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_enrollment_statuses got unknown kwargs: {extra_kwargs!r}") @@ -1510,14 +1510,14 @@ def list_enrollment_statuses(self, compartment_id, **kwargs): "lifecycleState": kwargs.get("lifecycle_state", missing), "status": kwargs.get("status", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1654,7 +1654,7 @@ def list_histories(self, compartment_id, compartment_id_in_subtree, **kwargs): "include_resource_metadata", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_histories got unknown kwargs: {extra_kwargs!r}") @@ -1702,14 +1702,14 @@ def list_histories(self, compartment_id, compartment_id_in_subtree, **kwargs): "status": kwargs.get("status", missing), "includeResourceMetadata": kwargs.get("include_resource_metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1821,7 +1821,7 @@ def list_profile_levels(self, compartment_id, compartment_id_in_subtree, **kwarg "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_profile_levels got unknown kwargs: {extra_kwargs!r}") @@ -1850,14 +1850,14 @@ def list_profile_levels(self, compartment_id, compartment_id_in_subtree, **kwarg "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1966,7 +1966,7 @@ def list_profiles(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_profiles got unknown kwargs: {extra_kwargs!r}") @@ -2001,14 +2001,14 @@ def list_profiles(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2120,7 +2120,7 @@ def list_recommendation_strategies(self, compartment_id, compartment_id_in_subtr "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recommendation_strategies got unknown kwargs: {extra_kwargs!r}") @@ -2149,14 +2149,14 @@ def list_recommendation_strategies(self, compartment_id, compartment_id_in_subtr "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2314,7 +2314,7 @@ def list_recommendations(self, compartment_id, compartment_id_in_subtree, **kwar "status", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -2362,14 +2362,14 @@ def list_recommendations(self, compartment_id, compartment_id_in_subtree, **kwar "lifecycleState": kwargs.get("lifecycle_state", missing), "status": kwargs.get("status", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2461,7 +2461,7 @@ def list_resource_action_queryable_fields(self, compartment_id, compartment_id_i "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_action_queryable_fields got unknown kwargs: {extra_kwargs!r}") @@ -2472,14 +2472,14 @@ def list_resource_action_queryable_fields(self, compartment_id, compartment_id_i "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2645,7 +2645,7 @@ def list_resource_actions(self, compartment_id, compartment_id_in_subtree, **kwa "include_resource_metadata", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_actions got unknown kwargs: {extra_kwargs!r}") @@ -2695,14 +2695,14 @@ def list_resource_actions(self, compartment_id, compartment_id_in_subtree, **kwa "status": kwargs.get("status", missing), "includeResourceMetadata": kwargs.get("include_resource_metadata", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2789,7 +2789,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2798,9 +2798,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2808,14 +2808,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2904,7 +2904,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2913,9 +2913,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2923,14 +2923,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3019,7 +3019,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3029,14 +3029,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3126,7 +3126,7 @@ def update_enrollment_status(self, enrollment_status_id, update_enrollment_statu "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_enrollment_status got unknown kwargs: {extra_kwargs!r}") @@ -3135,9 +3135,9 @@ def update_enrollment_status(self, enrollment_status_id, update_enrollment_statu "enrollmentStatusId": enrollment_status_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3147,7 +3147,7 @@ def update_enrollment_status(self, enrollment_status_id, update_enrollment_statu "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3239,7 +3239,7 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_profile got unknown kwargs: {extra_kwargs!r}") @@ -3248,9 +3248,9 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3260,7 +3260,7 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3357,7 +3357,7 @@ def update_recommendation(self, recommendation_id, update_recommendation_details "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_recommendation got unknown kwargs: {extra_kwargs!r}") @@ -3366,9 +3366,9 @@ def update_recommendation(self, recommendation_id, update_recommendation_details "recommendationId": recommendation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3378,7 +3378,7 @@ def update_recommendation(self, recommendation_id, update_recommendation_details "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3473,7 +3473,7 @@ def update_resource_action(self, resource_action_id, update_resource_action_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_resource_action got unknown kwargs: {extra_kwargs!r}") @@ -3482,9 +3482,9 @@ def update_resource_action(self, resource_action_id, update_resource_action_deta "resourceActionId": resource_action_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3494,7 +3494,7 @@ def update_resource_action(self, resource_action_id, update_resource_action_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/event_client.py b/src/oci/os_management_hub/event_client.py index 2e76b272b..440958403 100644 --- a/src/oci/os_management_hub/event_client.py +++ b/src/oci/os_management_hub/event_client.py @@ -185,7 +185,7 @@ def change_event_compartment(self, change_event_compartment_details, event_id, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_event_compartment got unknown kwargs: {extra_kwargs!r}") @@ -194,9 +194,9 @@ def change_event_compartment(self, change_event_compartment_details, event_id, * "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -207,7 +207,7 @@ def change_event_compartment(self, change_event_compartment_details, event_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -296,7 +296,7 @@ def delete_event(self, event_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_event got unknown kwargs: {extra_kwargs!r}") @@ -305,9 +305,9 @@ def delete_event(self, event_id, **kwargs): "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -317,7 +317,7 @@ def delete_event(self, event_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -411,7 +411,7 @@ def delete_event_content(self, event_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_event_content got unknown kwargs: {extra_kwargs!r}") @@ -420,9 +420,9 @@ def delete_event_content(self, event_id, **kwargs): "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -433,7 +433,7 @@ def delete_event_content(self, event_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -512,7 +512,7 @@ def get_event(self, event_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_event got unknown kwargs: {extra_kwargs!r}") @@ -521,9 +521,9 @@ def get_event(self, event_id, **kwargs): "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -532,7 +532,7 @@ def get_event(self, event_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -612,7 +612,7 @@ def get_event_content(self, event_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_event_content got unknown kwargs: {extra_kwargs!r}") @@ -621,9 +621,9 @@ def get_event_content(self, event_id, **kwargs): "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -632,7 +632,7 @@ def get_event_content(self, event_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -728,7 +728,7 @@ def import_event_content(self, event_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"import_event_content got unknown kwargs: {extra_kwargs!r}") @@ -737,9 +737,9 @@ def import_event_content(self, event_id, **kwargs): "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -750,7 +750,7 @@ def import_event_content(self, event_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -908,7 +908,7 @@ def list_events(self, **kwargs): "opc_request_id", "is_managed_by_autonomous_linux" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_events got unknown kwargs: {extra_kwargs!r}") @@ -959,14 +959,14 @@ def list_events(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "isManagedByAutonomousLinux": kwargs.get("is_managed_by_autonomous_linux", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1057,7 +1057,7 @@ def update_event(self, event_id, update_event_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_event got unknown kwargs: {extra_kwargs!r}") @@ -1066,9 +1066,9 @@ def update_event(self, event_id, update_event_details, **kwargs): "eventId": event_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1078,7 +1078,7 @@ def update_event(self, event_id, update_event_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/lifecycle_environment_client.py b/src/oci/os_management_hub/lifecycle_environment_client.py index e9dcd9d5e..9de4fd848 100644 --- a/src/oci/os_management_hub/lifecycle_environment_client.py +++ b/src/oci/os_management_hub/lifecycle_environment_client.py @@ -182,7 +182,7 @@ def attach_managed_instances_to_lifecycle_stage(self, lifecycle_stage_id, attach "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_managed_instances_to_lifecycle_stage got unknown kwargs: {extra_kwargs!r}") @@ -191,9 +191,9 @@ def attach_managed_instances_to_lifecycle_stage(self, lifecycle_stage_id, attach "lifecycleStageId": lifecycle_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def attach_managed_instances_to_lifecycle_stage(self, lifecycle_stage_id, attach "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -308,7 +308,7 @@ def change_lifecycle_environment_compartment(self, lifecycle_environment_id, cha "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_lifecycle_environment_compartment got unknown kwargs: {extra_kwargs!r}") @@ -317,9 +317,9 @@ def change_lifecycle_environment_compartment(self, lifecycle_environment_id, cha "lifecycleEnvironmentId": lifecycle_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -330,7 +330,7 @@ def change_lifecycle_environment_compartment(self, lifecycle_environment_id, cha "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -417,7 +417,7 @@ def create_lifecycle_environment(self, create_lifecycle_environment_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_lifecycle_environment got unknown kwargs: {extra_kwargs!r}") @@ -428,7 +428,7 @@ def create_lifecycle_environment(self, create_lifecycle_environment_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -517,7 +517,7 @@ def delete_lifecycle_environment(self, lifecycle_environment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_lifecycle_environment got unknown kwargs: {extra_kwargs!r}") @@ -526,9 +526,9 @@ def delete_lifecycle_environment(self, lifecycle_environment_id, **kwargs): "lifecycleEnvironmentId": lifecycle_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -538,7 +538,7 @@ def delete_lifecycle_environment(self, lifecycle_environment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -635,7 +635,7 @@ def detach_managed_instances_from_lifecycle_stage(self, lifecycle_stage_id, deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_managed_instances_from_lifecycle_stage got unknown kwargs: {extra_kwargs!r}") @@ -644,9 +644,9 @@ def detach_managed_instances_from_lifecycle_stage(self, lifecycle_stage_id, deta "lifecycleStageId": lifecycle_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -657,7 +657,7 @@ def detach_managed_instances_from_lifecycle_stage(self, lifecycle_stage_id, deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -738,7 +738,7 @@ def get_lifecycle_environment(self, lifecycle_environment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lifecycle_environment got unknown kwargs: {extra_kwargs!r}") @@ -747,9 +747,9 @@ def get_lifecycle_environment(self, lifecycle_environment_id, **kwargs): "lifecycleEnvironmentId": lifecycle_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -758,7 +758,7 @@ def get_lifecycle_environment(self, lifecycle_environment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -838,7 +838,7 @@ def get_lifecycle_stage(self, lifecycle_stage_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_lifecycle_stage got unknown kwargs: {extra_kwargs!r}") @@ -847,9 +847,9 @@ def get_lifecycle_stage(self, lifecycle_stage_id, **kwargs): "lifecycleStageId": lifecycle_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -858,7 +858,7 @@ def get_lifecycle_stage(self, lifecycle_stage_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1013,7 +1013,7 @@ def list_lifecycle_environments(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_lifecycle_environments got unknown kwargs: {extra_kwargs!r}") @@ -1084,14 +1084,14 @@ def list_lifecycle_environments(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1221,7 +1221,7 @@ def list_lifecycle_stage_installed_packages(self, lifecycle_stage_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_lifecycle_stage_installed_packages got unknown kwargs: {extra_kwargs!r}") @@ -1230,9 +1230,9 @@ def list_lifecycle_stage_installed_packages(self, lifecycle_stage_id, **kwargs): "lifecycleStageId": lifecycle_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1267,14 +1267,14 @@ def list_lifecycle_stage_installed_packages(self, lifecycle_stage_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1438,7 +1438,7 @@ def list_lifecycle_stages(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_lifecycle_stages got unknown kwargs: {extra_kwargs!r}") @@ -1510,14 +1510,14 @@ def list_lifecycle_stages(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1624,7 +1624,7 @@ def promote_software_source_to_lifecycle_stage(self, lifecycle_stage_id, promote "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"promote_software_source_to_lifecycle_stage got unknown kwargs: {extra_kwargs!r}") @@ -1633,16 +1633,16 @@ def promote_software_source_to_lifecycle_stage(self, lifecycle_stage_id, promote "lifecycleStageId": lifecycle_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "softwareSourceId": kwargs.get("software_source_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1651,7 +1651,7 @@ def promote_software_source_to_lifecycle_stage(self, lifecycle_stage_id, promote "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1753,7 +1753,7 @@ def reboot_lifecycle_stage(self, lifecycle_stage_id, reboot_lifecycle_stage_deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reboot_lifecycle_stage got unknown kwargs: {extra_kwargs!r}") @@ -1762,9 +1762,9 @@ def reboot_lifecycle_stage(self, lifecycle_stage_id, reboot_lifecycle_stage_deta "lifecycleStageId": lifecycle_stage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1775,7 +1775,7 @@ def reboot_lifecycle_stage(self, lifecycle_stage_id, reboot_lifecycle_stage_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1867,7 +1867,7 @@ def update_lifecycle_environment(self, lifecycle_environment_id, update_lifecycl "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_lifecycle_environment got unknown kwargs: {extra_kwargs!r}") @@ -1876,9 +1876,9 @@ def update_lifecycle_environment(self, lifecycle_environment_id, update_lifecycl "lifecycleEnvironmentId": lifecycle_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1888,7 +1888,7 @@ def update_lifecycle_environment(self, lifecycle_environment_id, update_lifecycl "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/managed_instance_client.py b/src/oci/os_management_hub/managed_instance_client.py index fee4a5461..0ff0aec8d 100644 --- a/src/oci/os_management_hub/managed_instance_client.py +++ b/src/oci/os_management_hub/managed_instance_client.py @@ -184,7 +184,7 @@ def associate_managed_instances_with_management_station(self, management_station "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"associate_managed_instances_with_management_station got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def associate_managed_instances_with_management_station(self, management_station "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def associate_managed_instances_with_management_station(self, management_station "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -307,7 +307,7 @@ def attach_profile_to_managed_instance(self, managed_instance_id, attach_profile "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_profile_to_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -316,9 +316,9 @@ def attach_profile_to_managed_instance(self, managed_instance_id, attach_profile "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -329,7 +329,7 @@ def attach_profile_to_managed_instance(self, managed_instance_id, attach_profile "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -430,7 +430,7 @@ def attach_software_sources_to_managed_instance(self, managed_instance_id, attac "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_software_sources_to_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -439,9 +439,9 @@ def attach_software_sources_to_managed_instance(self, managed_instance_id, attac "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -452,7 +452,7 @@ def attach_software_sources_to_managed_instance(self, managed_instance_id, attac "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -542,7 +542,7 @@ def delete_managed_instance(self, managed_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -551,9 +551,9 @@ def delete_managed_instance(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -563,7 +563,7 @@ def delete_managed_instance(self, managed_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -658,7 +658,7 @@ def detach_profile_from_managed_instance(self, managed_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_profile_from_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -667,9 +667,9 @@ def detach_profile_from_managed_instance(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -680,7 +680,7 @@ def detach_profile_from_managed_instance(self, managed_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -779,7 +779,7 @@ def detach_software_sources_from_managed_instance(self, managed_instance_id, det "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_software_sources_from_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -788,9 +788,9 @@ def detach_software_sources_from_managed_instance(self, managed_instance_id, det "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -801,7 +801,7 @@ def detach_software_sources_from_managed_instance(self, managed_instance_id, det "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -904,7 +904,7 @@ def disable_module_stream_on_managed_instance(self, managed_instance_id, disable "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_module_stream_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -913,9 +913,9 @@ def disable_module_stream_on_managed_instance(self, managed_instance_id, disable "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -926,7 +926,7 @@ def disable_module_stream_on_managed_instance(self, managed_instance_id, disable "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1030,7 +1030,7 @@ def enable_module_stream_on_managed_instance(self, managed_instance_id, enable_m "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_module_stream_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -1039,9 +1039,9 @@ def enable_module_stream_on_managed_instance(self, managed_instance_id, enable_m "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1052,7 +1052,7 @@ def enable_module_stream_on_managed_instance(self, managed_instance_id, enable_m "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1133,7 +1133,7 @@ def get_managed_instance(self, managed_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -1142,9 +1142,9 @@ def get_managed_instance(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1153,7 +1153,7 @@ def get_managed_instance(self, managed_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1232,7 +1232,7 @@ def get_windows_update(self, windows_update_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_windows_update got unknown kwargs: {extra_kwargs!r}") @@ -1241,9 +1241,9 @@ def get_windows_update(self, windows_update_id, **kwargs): "windowsUpdateId": windows_update_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1252,7 +1252,7 @@ def get_windows_update(self, windows_update_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1346,7 +1346,7 @@ def install_all_windows_updates_on_managed_instances_in_compartment(self, instal "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_all_windows_updates_on_managed_instances_in_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1358,7 +1358,7 @@ def install_all_windows_updates_on_managed_instances_in_compartment(self, instal "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1458,7 +1458,7 @@ def install_module_stream_profile_on_managed_instance(self, managed_instance_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_module_stream_profile_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -1467,9 +1467,9 @@ def install_module_stream_profile_on_managed_instance(self, managed_instance_id, "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1480,7 +1480,7 @@ def install_module_stream_profile_on_managed_instance(self, managed_instance_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1580,7 +1580,7 @@ def install_packages_on_managed_instance(self, managed_instance_id, install_pack "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_packages_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -1589,9 +1589,9 @@ def install_packages_on_managed_instance(self, managed_instance_id, install_pack "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1602,7 +1602,7 @@ def install_packages_on_managed_instance(self, managed_instance_id, install_pack "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1702,7 +1702,7 @@ def install_windows_updates_on_managed_instance(self, managed_instance_id, insta "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_windows_updates_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -1711,9 +1711,9 @@ def install_windows_updates_on_managed_instance(self, managed_instance_id, insta "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1724,7 +1724,7 @@ def install_windows_updates_on_managed_instance(self, managed_instance_id, insta "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1847,7 +1847,7 @@ def list_managed_instance_available_packages(self, managed_instance_id, **kwargs "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_available_packages got unknown kwargs: {extra_kwargs!r}") @@ -1856,9 +1856,9 @@ def list_managed_instance_available_packages(self, managed_instance_id, **kwargs "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1885,14 +1885,14 @@ def list_managed_instance_available_packages(self, managed_instance_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2016,7 +2016,7 @@ def list_managed_instance_available_software_sources(self, managed_instance_id, "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_available_software_sources got unknown kwargs: {extra_kwargs!r}") @@ -2025,9 +2025,9 @@ def list_managed_instance_available_software_sources(self, managed_instance_id, "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2054,14 +2054,14 @@ def list_managed_instance_available_software_sources(self, managed_instance_id, "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2202,7 +2202,7 @@ def list_managed_instance_available_windows_updates(self, managed_instance_id, * "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_available_windows_updates got unknown kwargs: {extra_kwargs!r}") @@ -2211,9 +2211,9 @@ def list_managed_instance_available_windows_updates(self, managed_instance_id, * "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2258,14 +2258,14 @@ def list_managed_instance_available_windows_updates(self, managed_instance_id, * "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2397,7 +2397,7 @@ def list_managed_instance_errata(self, managed_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_errata got unknown kwargs: {extra_kwargs!r}") @@ -2406,9 +2406,9 @@ def list_managed_instance_errata(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2444,14 +2444,14 @@ def list_managed_instance_errata(self, managed_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2587,7 +2587,7 @@ def list_managed_instance_installed_packages(self, managed_instance_id, **kwargs "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_installed_packages got unknown kwargs: {extra_kwargs!r}") @@ -2596,9 +2596,9 @@ def list_managed_instance_installed_packages(self, managed_instance_id, **kwargs "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2627,14 +2627,14 @@ def list_managed_instance_installed_packages(self, managed_instance_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2763,7 +2763,7 @@ def list_managed_instance_installed_windows_updates(self, managed_instance_id, * "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_installed_windows_updates got unknown kwargs: {extra_kwargs!r}") @@ -2772,9 +2772,9 @@ def list_managed_instance_installed_windows_updates(self, managed_instance_id, * "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2802,14 +2802,14 @@ def list_managed_instance_installed_windows_updates(self, managed_instance_id, * "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2933,7 +2933,7 @@ def list_managed_instance_modules(self, managed_instance_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_modules got unknown kwargs: {extra_kwargs!r}") @@ -2942,9 +2942,9 @@ def list_managed_instance_modules(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2971,14 +2971,14 @@ def list_managed_instance_modules(self, managed_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3114,7 +3114,7 @@ def list_managed_instance_updatable_packages(self, managed_instance_id, **kwargs "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_updatable_packages got unknown kwargs: {extra_kwargs!r}") @@ -3123,9 +3123,9 @@ def list_managed_instance_updatable_packages(self, managed_instance_id, **kwargs "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3162,14 +3162,14 @@ def list_managed_instance_updatable_packages(self, managed_instance_id, **kwargs "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3408,7 +3408,7 @@ def list_managed_instances(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instances got unknown kwargs: {extra_kwargs!r}") @@ -3500,14 +3500,14 @@ def list_managed_instances(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3632,7 +3632,7 @@ def list_windows_updates(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_windows_updates got unknown kwargs: {extra_kwargs!r}") @@ -3669,14 +3669,14 @@ def list_windows_updates(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3778,7 +3778,7 @@ def manage_module_streams_on_managed_instance(self, managed_instance_id, manage_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"manage_module_streams_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -3787,9 +3787,9 @@ def manage_module_streams_on_managed_instance(self, managed_instance_id, manage_ "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3800,7 +3800,7 @@ def manage_module_streams_on_managed_instance(self, managed_instance_id, manage_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3902,7 +3902,7 @@ def reboot_managed_instance(self, managed_instance_id, reboot_managed_instance_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reboot_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -3911,9 +3911,9 @@ def reboot_managed_instance(self, managed_instance_id, reboot_managed_instance_d "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3924,7 +3924,7 @@ def reboot_managed_instance(self, managed_instance_id, reboot_managed_instance_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4021,7 +4021,7 @@ def refresh_software_on_managed_instance(self, managed_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_software_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4030,9 +4030,9 @@ def refresh_software_on_managed_instance(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4043,7 +4043,7 @@ def refresh_software_on_managed_instance(self, managed_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4143,7 +4143,7 @@ def remove_module_stream_profile_from_managed_instance(self, managed_instance_id "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_module_stream_profile_from_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4152,9 +4152,9 @@ def remove_module_stream_profile_from_managed_instance(self, managed_instance_id "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4165,7 +4165,7 @@ def remove_module_stream_profile_from_managed_instance(self, managed_instance_id "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4265,7 +4265,7 @@ def remove_packages_from_managed_instance(self, managed_instance_id, remove_pack "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_packages_from_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4274,9 +4274,9 @@ def remove_packages_from_managed_instance(self, managed_instance_id, remove_pack "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4287,7 +4287,7 @@ def remove_packages_from_managed_instance(self, managed_instance_id, remove_pack "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4390,7 +4390,7 @@ def switch_module_stream_on_managed_instance(self, managed_instance_id, switch_m "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switch_module_stream_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4399,9 +4399,9 @@ def switch_module_stream_on_managed_instance(self, managed_instance_id, switch_m "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4412,7 +4412,7 @@ def switch_module_stream_on_managed_instance(self, managed_instance_id, switch_m "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4507,7 +4507,7 @@ def update_all_packages_on_managed_instances_in_compartment(self, update_all_pac "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_all_packages_on_managed_instances_in_compartment got unknown kwargs: {extra_kwargs!r}") @@ -4519,7 +4519,7 @@ def update_all_packages_on_managed_instances_in_compartment(self, update_all_pac "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4609,7 +4609,7 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4618,9 +4618,9 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4630,7 +4630,7 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4731,7 +4731,7 @@ def update_packages_on_managed_instance(self, managed_instance_id, update_packag "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_packages_on_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4740,9 +4740,9 @@ def update_packages_on_managed_instance(self, managed_instance_id, update_packag "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4753,7 +4753,7 @@ def update_packages_on_managed_instance(self, managed_instance_id, update_packag "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/managed_instance_group_client.py b/src/oci/os_management_hub/managed_instance_group_client.py index 6f65bb42b..689b0913c 100644 --- a/src/oci/os_management_hub/managed_instance_group_client.py +++ b/src/oci/os_management_hub/managed_instance_group_client.py @@ -184,7 +184,7 @@ def attach_managed_instances_to_managed_instance_group(self, managed_instance_gr "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_managed_instances_to_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def attach_managed_instances_to_managed_instance_group(self, managed_instance_gr "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def attach_managed_instances_to_managed_instance_group(self, managed_instance_gr "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -308,7 +308,7 @@ def attach_software_sources_to_managed_instance_group(self, managed_instance_gro "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_software_sources_to_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -317,9 +317,9 @@ def attach_software_sources_to_managed_instance_group(self, managed_instance_gro "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -330,7 +330,7 @@ def attach_software_sources_to_managed_instance_group(self, managed_instance_gro "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -434,7 +434,7 @@ def change_managed_instance_group_compartment(self, managed_instance_group_id, c "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_managed_instance_group_compartment got unknown kwargs: {extra_kwargs!r}") @@ -443,9 +443,9 @@ def change_managed_instance_group_compartment(self, managed_instance_group_id, c "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -456,7 +456,7 @@ def change_managed_instance_group_compartment(self, managed_instance_group_id, c "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -543,7 +543,7 @@ def create_managed_instance_group(self, create_managed_instance_group_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -554,7 +554,7 @@ def create_managed_instance_group(self, create_managed_instance_group_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -643,7 +643,7 @@ def delete_managed_instance_group(self, managed_instance_group_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -652,9 +652,9 @@ def delete_managed_instance_group(self, managed_instance_group_id, **kwargs): "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -664,7 +664,7 @@ def delete_managed_instance_group(self, managed_instance_group_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -763,7 +763,7 @@ def detach_managed_instances_from_managed_instance_group(self, managed_instance_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_managed_instances_from_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -772,9 +772,9 @@ def detach_managed_instances_from_managed_instance_group(self, managed_instance_ "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -785,7 +785,7 @@ def detach_managed_instances_from_managed_instance_group(self, managed_instance_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -887,7 +887,7 @@ def detach_software_sources_from_managed_instance_group(self, managed_instance_g "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_software_sources_from_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -896,9 +896,9 @@ def detach_software_sources_from_managed_instance_group(self, managed_instance_g "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -909,7 +909,7 @@ def detach_software_sources_from_managed_instance_group(self, managed_instance_g "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1009,7 +1009,7 @@ def disable_module_stream_on_managed_instance_group(self, managed_instance_group "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_module_stream_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -1018,9 +1018,9 @@ def disable_module_stream_on_managed_instance_group(self, managed_instance_group "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1031,7 +1031,7 @@ def disable_module_stream_on_managed_instance_group(self, managed_instance_group "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1131,7 +1131,7 @@ def enable_module_stream_on_managed_instance_group(self, managed_instance_group_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_module_stream_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -1140,9 +1140,9 @@ def enable_module_stream_on_managed_instance_group(self, managed_instance_group_ "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1153,7 +1153,7 @@ def enable_module_stream_on_managed_instance_group(self, managed_instance_group_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1234,7 +1234,7 @@ def get_managed_instance_group(self, managed_instance_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -1243,9 +1243,9 @@ def get_managed_instance_group(self, managed_instance_group_id, **kwargs): "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1254,7 +1254,7 @@ def get_managed_instance_group(self, managed_instance_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1353,7 +1353,7 @@ def install_module_stream_profile_on_managed_instance_group(self, managed_instan "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_module_stream_profile_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -1362,9 +1362,9 @@ def install_module_stream_profile_on_managed_instance_group(self, managed_instan "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1375,7 +1375,7 @@ def install_module_stream_profile_on_managed_instance_group(self, managed_instan "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1475,7 +1475,7 @@ def install_packages_on_managed_instance_group(self, managed_instance_group_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_packages_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -1484,9 +1484,9 @@ def install_packages_on_managed_instance_group(self, managed_instance_group_id, "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1497,7 +1497,7 @@ def install_packages_on_managed_instance_group(self, managed_instance_group_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1597,7 +1597,7 @@ def install_windows_updates_on_managed_instance_group(self, managed_instance_gro "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_windows_updates_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -1606,9 +1606,9 @@ def install_windows_updates_on_managed_instance_group(self, managed_instance_gro "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1619,7 +1619,7 @@ def install_windows_updates_on_managed_instance_group(self, managed_instance_gro "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1742,7 +1742,7 @@ def list_managed_instance_group_available_modules(self, managed_instance_group_i "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_group_available_modules got unknown kwargs: {extra_kwargs!r}") @@ -1751,9 +1751,9 @@ def list_managed_instance_group_available_modules(self, managed_instance_group_i "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1780,14 +1780,14 @@ def list_managed_instance_group_available_modules(self, managed_instance_group_i "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1916,7 +1916,7 @@ def list_managed_instance_group_available_packages(self, managed_instance_group_ "is_latest", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_group_available_packages got unknown kwargs: {extra_kwargs!r}") @@ -1925,9 +1925,9 @@ def list_managed_instance_group_available_packages(self, managed_instance_group_ "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1955,14 +1955,14 @@ def list_managed_instance_group_available_packages(self, managed_instance_group_ "sortBy": kwargs.get("sort_by", missing), "isLatest": kwargs.get("is_latest", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2086,7 +2086,7 @@ def list_managed_instance_group_available_software_sources(self, managed_instanc "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_group_available_software_sources got unknown kwargs: {extra_kwargs!r}") @@ -2095,9 +2095,9 @@ def list_managed_instance_group_available_software_sources(self, managed_instanc "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2124,14 +2124,14 @@ def list_managed_instance_group_available_software_sources(self, managed_instanc "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2268,7 +2268,7 @@ def list_managed_instance_group_installed_packages(self, managed_instance_group_ "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_group_installed_packages got unknown kwargs: {extra_kwargs!r}") @@ -2277,9 +2277,9 @@ def list_managed_instance_group_installed_packages(self, managed_instance_group_ "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2308,14 +2308,14 @@ def list_managed_instance_group_installed_packages(self, managed_instance_group_ "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2463,7 +2463,7 @@ def list_managed_instance_group_modules(self, managed_instance_group_id, **kwarg "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_group_modules got unknown kwargs: {extra_kwargs!r}") @@ -2472,9 +2472,9 @@ def list_managed_instance_group_modules(self, managed_instance_group_id, **kwarg "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2502,14 +2502,14 @@ def list_managed_instance_group_modules(self, managed_instance_group_id, **kwarg "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2676,7 +2676,7 @@ def list_managed_instance_groups(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_groups got unknown kwargs: {extra_kwargs!r}") @@ -2749,14 +2749,14 @@ def list_managed_instance_groups(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2856,7 +2856,7 @@ def manage_module_streams_on_managed_instance_group(self, managed_instance_group "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"manage_module_streams_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -2865,9 +2865,9 @@ def manage_module_streams_on_managed_instance_group(self, managed_instance_group "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2878,7 +2878,7 @@ def manage_module_streams_on_managed_instance_group(self, managed_instance_group "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2978,7 +2978,7 @@ def reboot_managed_instance_group(self, managed_instance_group_id, reboot_manage "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reboot_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -2987,9 +2987,9 @@ def reboot_managed_instance_group(self, managed_instance_group_id, reboot_manage "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3000,7 +3000,7 @@ def reboot_managed_instance_group(self, managed_instance_group_id, reboot_manage "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3100,7 +3100,7 @@ def remove_module_stream_profile_from_managed_instance_group(self, managed_insta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_module_stream_profile_from_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -3109,9 +3109,9 @@ def remove_module_stream_profile_from_managed_instance_group(self, managed_insta "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3122,7 +3122,7 @@ def remove_module_stream_profile_from_managed_instance_group(self, managed_insta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3222,7 +3222,7 @@ def remove_packages_from_managed_instance_group(self, managed_instance_group_id, "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_packages_from_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -3231,9 +3231,9 @@ def remove_packages_from_managed_instance_group(self, managed_instance_group_id, "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3244,7 +3244,7 @@ def remove_packages_from_managed_instance_group(self, managed_instance_group_id, "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3347,7 +3347,7 @@ def switch_module_stream_on_managed_instance_group(self, managed_instance_group_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"switch_module_stream_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -3356,9 +3356,9 @@ def switch_module_stream_on_managed_instance_group(self, managed_instance_group_ "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3369,7 +3369,7 @@ def switch_module_stream_on_managed_instance_group(self, managed_instance_group_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3469,7 +3469,7 @@ def update_all_packages_on_managed_instance_group(self, managed_instance_group_i "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_all_packages_on_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -3478,9 +3478,9 @@ def update_all_packages_on_managed_instance_group(self, managed_instance_group_i "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3491,7 +3491,7 @@ def update_all_packages_on_managed_instance_group(self, managed_instance_group_i "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3583,7 +3583,7 @@ def update_managed_instance_group(self, managed_instance_group_id, update_manage "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_managed_instance_group got unknown kwargs: {extra_kwargs!r}") @@ -3592,9 +3592,9 @@ def update_managed_instance_group(self, managed_instance_group_id, update_manage "managedInstanceGroupId": managed_instance_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3604,7 +3604,7 @@ def update_managed_instance_group(self, managed_instance_group_id, update_manage "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/management_station_client.py b/src/oci/os_management_hub/management_station_client.py index d91afe68e..15e6bf911 100644 --- a/src/oci/os_management_hub/management_station_client.py +++ b/src/oci/os_management_hub/management_station_client.py @@ -184,7 +184,7 @@ def change_management_station_compartment(self, management_station_id, change_ma "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_management_station_compartment got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def change_management_station_compartment(self, management_station_id, change_ma "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def change_management_station_compartment(self, management_station_id, change_ma "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -293,7 +293,7 @@ def create_management_station(self, create_management_station_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_management_station got unknown kwargs: {extra_kwargs!r}") @@ -304,7 +304,7 @@ def create_management_station(self, create_management_station_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -403,7 +403,7 @@ def delete_management_station(self, management_station_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_management_station got unknown kwargs: {extra_kwargs!r}") @@ -412,9 +412,9 @@ def delete_management_station(self, management_station_id, **kwargs): "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -425,7 +425,7 @@ def delete_management_station(self, management_station_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -504,7 +504,7 @@ def get_management_station(self, management_station_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_management_station got unknown kwargs: {extra_kwargs!r}") @@ -513,9 +513,9 @@ def get_management_station(self, management_station_id, **kwargs): "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -524,7 +524,7 @@ def get_management_station(self, management_station_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -672,7 +672,7 @@ def list_management_stations(self, **kwargs): "opc_request_id", "id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_management_stations got unknown kwargs: {extra_kwargs!r}") @@ -728,14 +728,14 @@ def list_management_stations(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "id": kwargs.get("id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -859,7 +859,7 @@ def list_mirrors(self, management_station_id, **kwargs): "mirror_states", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_mirrors got unknown kwargs: {extra_kwargs!r}") @@ -868,9 +868,9 @@ def list_mirrors(self, management_station_id, **kwargs): "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -905,14 +905,14 @@ def list_mirrors(self, management_station_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "mirrorStates": self.base_client.generate_collection_format_param(kwargs.get("mirror_states", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1010,7 +1010,7 @@ def refresh_management_station_config(self, management_station_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"refresh_management_station_config got unknown kwargs: {extra_kwargs!r}") @@ -1019,9 +1019,9 @@ def refresh_management_station_config(self, management_station_id, **kwargs): "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1032,7 +1032,7 @@ def refresh_management_station_config(self, management_station_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1130,7 +1130,7 @@ def synchronize_mirrors(self, management_station_id, synchronize_mirrors_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"synchronize_mirrors got unknown kwargs: {extra_kwargs!r}") @@ -1139,9 +1139,9 @@ def synchronize_mirrors(self, management_station_id, synchronize_mirrors_details "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1152,7 +1152,7 @@ def synchronize_mirrors(self, management_station_id, synchronize_mirrors_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1252,7 +1252,7 @@ def synchronize_single_mirrors(self, management_station_id, mirror_id, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"synchronize_single_mirrors got unknown kwargs: {extra_kwargs!r}") @@ -1262,9 +1262,9 @@ def synchronize_single_mirrors(self, management_station_id, mirror_id, **kwargs) "mirrorId": mirror_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1275,7 +1275,7 @@ def synchronize_single_mirrors(self, management_station_id, mirror_id, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1365,7 +1365,7 @@ def update_management_station(self, management_station_id, update_management_sta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_management_station got unknown kwargs: {extra_kwargs!r}") @@ -1374,9 +1374,9 @@ def update_management_station(self, management_station_id, update_management_sta "managementStationId": management_station_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1386,7 +1386,7 @@ def update_management_station(self, management_station_id, update_management_sta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/onboarding_client.py b/src/oci/os_management_hub/onboarding_client.py index a4ed58ce3..6faf78f36 100644 --- a/src/oci/os_management_hub/onboarding_client.py +++ b/src/oci/os_management_hub/onboarding_client.py @@ -184,7 +184,7 @@ def attach_lifecycle_stage_to_profile(self, profile_id, attach_lifecycle_stage_t "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_lifecycle_stage_to_profile got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def attach_lifecycle_stage_to_profile(self, profile_id, attach_lifecycle_stage_t "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def attach_lifecycle_stage_to_profile(self, profile_id, attach_lifecycle_stage_t "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -308,7 +308,7 @@ def attach_managed_instance_group_to_profile(self, profile_id, attach_managed_in "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_managed_instance_group_to_profile got unknown kwargs: {extra_kwargs!r}") @@ -317,9 +317,9 @@ def attach_managed_instance_group_to_profile(self, profile_id, attach_managed_in "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -330,7 +330,7 @@ def attach_managed_instance_group_to_profile(self, profile_id, attach_managed_in "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -432,7 +432,7 @@ def attach_management_station_to_profile(self, profile_id, attach_management_sta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_management_station_to_profile got unknown kwargs: {extra_kwargs!r}") @@ -441,9 +441,9 @@ def attach_management_station_to_profile(self, profile_id, attach_management_sta "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -454,7 +454,7 @@ def attach_management_station_to_profile(self, profile_id, attach_management_sta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -556,7 +556,7 @@ def attach_software_sources_to_profile(self, profile_id, attach_software_sources "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_software_sources_to_profile got unknown kwargs: {extra_kwargs!r}") @@ -565,9 +565,9 @@ def attach_software_sources_to_profile(self, profile_id, attach_software_sources "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -578,7 +578,7 @@ def attach_software_sources_to_profile(self, profile_id, attach_software_sources "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -680,7 +680,7 @@ def change_profile_compartment(self, profile_id, change_profile_compartment_deta "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_profile_compartment got unknown kwargs: {extra_kwargs!r}") @@ -689,9 +689,9 @@ def change_profile_compartment(self, profile_id, change_profile_compartment_deta "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -702,7 +702,7 @@ def change_profile_compartment(self, profile_id, change_profile_compartment_deta "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -789,7 +789,7 @@ def create_profile(self, create_profile_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_profile got unknown kwargs: {extra_kwargs!r}") @@ -800,7 +800,7 @@ def create_profile(self, create_profile_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -889,7 +889,7 @@ def delete_profile(self, profile_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_profile got unknown kwargs: {extra_kwargs!r}") @@ -898,9 +898,9 @@ def delete_profile(self, profile_id, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -910,7 +910,7 @@ def delete_profile(self, profile_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1009,7 +1009,7 @@ def detach_software_sources_from_profile(self, profile_id, detach_software_sourc "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_software_sources_from_profile got unknown kwargs: {extra_kwargs!r}") @@ -1018,9 +1018,9 @@ def detach_software_sources_from_profile(self, profile_id, detach_software_sourc "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1031,7 +1031,7 @@ def detach_software_sources_from_profile(self, profile_id, detach_software_sourc "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1112,7 +1112,7 @@ def get_profile(self, profile_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_profile got unknown kwargs: {extra_kwargs!r}") @@ -1121,9 +1121,9 @@ def get_profile(self, profile_id, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1132,7 +1132,7 @@ def get_profile(self, profile_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1215,7 +1215,7 @@ def get_profile_version(self, profile_id, profile_version, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_profile_version got unknown kwargs: {extra_kwargs!r}") @@ -1225,9 +1225,9 @@ def get_profile_version(self, profile_id, profile_version, **kwargs): "profileVersion": profile_version } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1236,7 +1236,7 @@ def get_profile_version(self, profile_id, profile_version, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1360,7 +1360,7 @@ def list_profile_available_software_sources(self, profile_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_profile_available_software_sources got unknown kwargs: {extra_kwargs!r}") @@ -1369,9 +1369,9 @@ def list_profile_available_software_sources(self, profile_id, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1398,14 +1398,14 @@ def list_profile_available_software_sources(self, profile_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1593,7 +1593,7 @@ def list_profiles(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_profiles got unknown kwargs: {extra_kwargs!r}") @@ -1669,14 +1669,14 @@ def list_profiles(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1767,7 +1767,7 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_profile got unknown kwargs: {extra_kwargs!r}") @@ -1776,9 +1776,9 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): "profileId": profile_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1788,7 +1788,7 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/reporting_managed_instance_client.py b/src/oci/os_management_hub/reporting_managed_instance_client.py index be0ca2b42..fe7047cfb 100644 --- a/src/oci/os_management_hub/reporting_managed_instance_client.py +++ b/src/oci/os_management_hub/reporting_managed_instance_client.py @@ -247,7 +247,7 @@ def get_managed_instance_analytic_content(self, **kwargs): "report_type", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_instance_analytic_content got unknown kwargs: {extra_kwargs!r}") @@ -317,14 +317,14 @@ def get_managed_instance_analytic_content(self, **kwargs): "reportFormat": kwargs.get("report_format", missing), "reportType": kwargs.get("report_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/x-yaml", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -439,7 +439,7 @@ def get_managed_instance_content(self, managed_instance_id, vulnerability_type, "report_format", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_instance_content got unknown kwargs: {extra_kwargs!r}") @@ -448,9 +448,9 @@ def get_managed_instance_content(self, managed_instance_id, vulnerability_type, "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -485,14 +485,14 @@ def get_managed_instance_content(self, managed_instance_id, vulnerability_type, "vulnerabilityType": self.base_client.generate_collection_format_param(vulnerability_type, 'multi'), "reportFormat": kwargs.get("report_format", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/x-yaml", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -666,7 +666,7 @@ def summarize_managed_instance_analytics(self, metric_names, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_managed_instance_analytics got unknown kwargs: {extra_kwargs!r}") @@ -742,14 +742,14 @@ def summarize_managed_instance_analytics(self, metric_names, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/scheduled_job_client.py b/src/oci/os_management_hub/scheduled_job_client.py index f14607003..bdb2f901f 100644 --- a/src/oci/os_management_hub/scheduled_job_client.py +++ b/src/oci/os_management_hub/scheduled_job_client.py @@ -184,7 +184,7 @@ def change_scheduled_job_compartment(self, scheduled_job_id, change_scheduled_jo "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_scheduled_job_compartment got unknown kwargs: {extra_kwargs!r}") @@ -193,9 +193,9 @@ def change_scheduled_job_compartment(self, scheduled_job_id, change_scheduled_jo "scheduledJobId": scheduled_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -206,7 +206,7 @@ def change_scheduled_job_compartment(self, scheduled_job_id, change_scheduled_jo "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -293,7 +293,7 @@ def create_scheduled_job(self, create_scheduled_job_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_scheduled_job got unknown kwargs: {extra_kwargs!r}") @@ -304,7 +304,7 @@ def create_scheduled_job(self, create_scheduled_job_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -393,7 +393,7 @@ def delete_scheduled_job(self, scheduled_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_scheduled_job got unknown kwargs: {extra_kwargs!r}") @@ -402,9 +402,9 @@ def delete_scheduled_job(self, scheduled_job_id, **kwargs): "scheduledJobId": scheduled_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -414,7 +414,7 @@ def delete_scheduled_job(self, scheduled_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -492,7 +492,7 @@ def get_scheduled_job(self, scheduled_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduled_job got unknown kwargs: {extra_kwargs!r}") @@ -501,9 +501,9 @@ def get_scheduled_job(self, scheduled_job_id, **kwargs): "scheduledJobId": scheduled_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -512,7 +512,7 @@ def get_scheduled_job(self, scheduled_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -715,7 +715,7 @@ def list_scheduled_jobs(self, **kwargs): "location_not_equal_to", "is_managed_by_autonomous_linux" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_jobs got unknown kwargs: {extra_kwargs!r}") @@ -795,14 +795,14 @@ def list_scheduled_jobs(self, **kwargs): "locationNotEqualTo": self.base_client.generate_collection_format_param(kwargs.get("location_not_equal_to", missing), 'multi'), "isManagedByAutonomousLinux": kwargs.get("is_managed_by_autonomous_linux", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -899,7 +899,7 @@ def run_scheduled_job_now(self, scheduled_job_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"run_scheduled_job_now got unknown kwargs: {extra_kwargs!r}") @@ -908,9 +908,9 @@ def run_scheduled_job_now(self, scheduled_job_id, **kwargs): "scheduledJobId": scheduled_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -921,7 +921,7 @@ def run_scheduled_job_now(self, scheduled_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1011,7 +1011,7 @@ def update_scheduled_job(self, scheduled_job_id, update_scheduled_job_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_scheduled_job got unknown kwargs: {extra_kwargs!r}") @@ -1020,9 +1020,9 @@ def update_scheduled_job(self, scheduled_job_id, update_scheduled_job_details, * "scheduledJobId": scheduled_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1032,7 +1032,7 @@ def update_scheduled_job(self, scheduled_job_id, update_scheduled_job_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/os_management_hub/software_source_client.py b/src/oci/os_management_hub/software_source_client.py index 9f09f4af6..fce72b75a 100644 --- a/src/oci/os_management_hub/software_source_client.py +++ b/src/oci/os_management_hub/software_source_client.py @@ -188,7 +188,7 @@ def add_packages_to_software_source(self, software_source_id, add_packages_to_so "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_packages_to_software_source got unknown kwargs: {extra_kwargs!r}") @@ -197,9 +197,9 @@ def add_packages_to_software_source(self, software_source_id, add_packages_to_so "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -210,7 +210,7 @@ def add_packages_to_software_source(self, software_source_id, add_packages_to_so "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def change_availability_of_software_sources(self, change_availability_of_softwar "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_availability_of_software_sources got unknown kwargs: {extra_kwargs!r}") @@ -308,7 +308,7 @@ def change_availability_of_software_sources(self, change_availability_of_softwar "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -411,7 +411,7 @@ def change_software_source_compartment(self, software_source_id, change_software "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_software_source_compartment got unknown kwargs: {extra_kwargs!r}") @@ -420,9 +420,9 @@ def change_software_source_compartment(self, software_source_id, change_software "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -433,7 +433,7 @@ def change_software_source_compartment(self, software_source_id, change_software "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -520,7 +520,7 @@ def create_entitlement(self, create_entitlement_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_entitlement got unknown kwargs: {extra_kwargs!r}") @@ -531,7 +531,7 @@ def create_entitlement(self, create_entitlement_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -616,7 +616,7 @@ def create_software_source(self, create_software_source_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_software_source got unknown kwargs: {extra_kwargs!r}") @@ -627,7 +627,7 @@ def create_software_source(self, create_software_source_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -716,7 +716,7 @@ def delete_software_source(self, software_source_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_software_source got unknown kwargs: {extra_kwargs!r}") @@ -725,9 +725,9 @@ def delete_software_source(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -737,7 +737,7 @@ def delete_software_source(self, software_source_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -818,7 +818,7 @@ def get_erratum(self, compartment_id, name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_erratum got unknown kwargs: {extra_kwargs!r}") @@ -827,23 +827,23 @@ def get_erratum(self, compartment_id, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -931,7 +931,7 @@ def get_module_stream(self, software_source_id, module_name, stream_name, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_module_stream got unknown kwargs: {extra_kwargs!r}") @@ -941,23 +941,23 @@ def get_module_stream(self, software_source_id, module_name, stream_name, **kwar "moduleName": module_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "streamName": stream_name } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1048,7 +1048,7 @@ def get_module_stream_profile(self, software_source_id, profile_name, module_nam "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_module_stream_profile got unknown kwargs: {extra_kwargs!r}") @@ -1058,9 +1058,9 @@ def get_module_stream_profile(self, software_source_id, profile_name, module_nam "profileName": profile_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1068,14 +1068,14 @@ def get_module_stream_profile(self, software_source_id, profile_name, module_nam "moduleName": module_name, "streamName": stream_name } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1160,7 +1160,7 @@ def get_package_group(self, software_source_id, package_group_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_package_group got unknown kwargs: {extra_kwargs!r}") @@ -1170,9 +1170,9 @@ def get_package_group(self, software_source_id, package_group_id, **kwargs): "packageGroupId": package_group_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1181,7 +1181,7 @@ def get_package_group(self, software_source_id, package_group_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1264,7 +1264,7 @@ def get_software_package(self, software_source_id, software_package_name, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_software_package got unknown kwargs: {extra_kwargs!r}") @@ -1274,9 +1274,9 @@ def get_software_package(self, software_source_id, software_package_name, **kwar "softwarePackageName": software_package_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1285,7 +1285,7 @@ def get_software_package(self, software_source_id, software_package_name, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1363,7 +1363,7 @@ def get_software_package_by_name(self, software_package_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_software_package_by_name got unknown kwargs: {extra_kwargs!r}") @@ -1372,9 +1372,9 @@ def get_software_package_by_name(self, software_package_name, **kwargs): "softwarePackageName": software_package_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1383,7 +1383,7 @@ def get_software_package_by_name(self, software_package_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1463,7 +1463,7 @@ def get_software_source(self, software_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_software_source got unknown kwargs: {extra_kwargs!r}") @@ -1472,9 +1472,9 @@ def get_software_source(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1483,7 +1483,7 @@ def get_software_source(self, software_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1563,7 +1563,7 @@ def get_software_source_manifest(self, software_source_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_software_source_manifest got unknown kwargs: {extra_kwargs!r}") @@ -1572,9 +1572,9 @@ def get_software_source_manifest(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1583,7 +1583,7 @@ def get_software_source_manifest(self, software_source_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1717,7 +1717,7 @@ def list_all_software_packages(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_all_software_packages got unknown kwargs: {extra_kwargs!r}") @@ -1762,14 +1762,14 @@ def list_all_software_packages(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1892,7 +1892,7 @@ def list_available_software_packages(self, software_source_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_available_software_packages got unknown kwargs: {extra_kwargs!r}") @@ -1901,9 +1901,9 @@ def list_available_software_packages(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1930,14 +1930,14 @@ def list_available_software_packages(self, software_source_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2062,7 +2062,7 @@ def list_entitlements(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_entitlements got unknown kwargs: {extra_kwargs!r}") @@ -2097,14 +2097,14 @@ def list_entitlements(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2261,7 +2261,7 @@ def list_errata(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_errata got unknown kwargs: {extra_kwargs!r}") @@ -2326,14 +2326,14 @@ def list_errata(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2459,7 +2459,7 @@ def list_module_stream_profiles(self, software_source_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_module_stream_profiles got unknown kwargs: {extra_kwargs!r}") @@ -2468,9 +2468,9 @@ def list_module_stream_profiles(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2497,14 +2497,14 @@ def list_module_stream_profiles(self, software_source_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2636,7 +2636,7 @@ def list_module_streams(self, software_source_id, **kwargs): "module_name_contains", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_module_streams got unknown kwargs: {extra_kwargs!r}") @@ -2645,9 +2645,9 @@ def list_module_streams(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2675,14 +2675,14 @@ def list_module_streams(self, software_source_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "moduleNameContains": kwargs.get("module_name_contains", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2813,7 +2813,7 @@ def list_package_groups(self, software_source_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_package_groups got unknown kwargs: {extra_kwargs!r}") @@ -2822,9 +2822,9 @@ def list_package_groups(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2852,14 +2852,14 @@ def list_package_groups(self, software_source_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3023,7 +3023,7 @@ def list_software_package_software_sources(self, software_package_name, compartm "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_software_package_software_sources got unknown kwargs: {extra_kwargs!r}") @@ -3032,9 +3032,9 @@ def list_software_package_software_sources(self, software_package_name, compartm "softwarePackageName": software_package_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3116,14 +3116,14 @@ def list_software_package_software_sources(self, software_package_name, compartm "sortBy": kwargs.get("sort_by", missing), "lifecycleState": self.base_client.generate_collection_format_param(kwargs.get("lifecycle_state", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3248,7 +3248,7 @@ def list_software_packages(self, software_source_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_software_packages got unknown kwargs: {extra_kwargs!r}") @@ -3257,9 +3257,9 @@ def list_software_packages(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3286,14 +3286,14 @@ def list_software_packages(self, software_source_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3392,7 +3392,7 @@ def list_software_source_vendors(self, compartment_id, **kwargs): "sort_by", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_software_source_vendors got unknown kwargs: {extra_kwargs!r}") @@ -3417,14 +3417,14 @@ def list_software_source_vendors(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3608,7 +3608,7 @@ def list_software_sources(self, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_software_sources got unknown kwargs: {extra_kwargs!r}") @@ -3703,14 +3703,14 @@ def list_software_sources(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "lifecycleState": self.base_client.generate_collection_format_param(kwargs.get("lifecycle_state", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3813,7 +3813,7 @@ def remove_packages_from_software_source(self, software_source_id, remove_packag "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_packages_from_software_source got unknown kwargs: {extra_kwargs!r}") @@ -3822,9 +3822,9 @@ def remove_packages_from_software_source(self, software_source_id, remove_packag "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3835,7 +3835,7 @@ def remove_packages_from_software_source(self, software_source_id, remove_packag "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3939,7 +3939,7 @@ def replace_packages_in_software_source(self, software_source_id, replace_packag "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"replace_packages_in_software_source got unknown kwargs: {extra_kwargs!r}") @@ -3948,9 +3948,9 @@ def replace_packages_in_software_source(self, software_source_id, replace_packag "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3961,7 +3961,7 @@ def replace_packages_in_software_source(self, software_source_id, replace_packag "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4059,7 +4059,7 @@ def search_software_source_module_streams(self, search_software_source_module_st "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_software_source_module_streams got unknown kwargs: {extra_kwargs!r}") @@ -4068,14 +4068,14 @@ def search_software_source_module_streams(self, search_software_source_module_st "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4174,7 +4174,7 @@ def search_software_source_modules(self, search_software_source_modules_details, "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_software_source_modules got unknown kwargs: {extra_kwargs!r}") @@ -4183,14 +4183,14 @@ def search_software_source_modules(self, search_software_source_modules_details, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4289,7 +4289,7 @@ def search_software_source_package_groups(self, search_software_source_package_g "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_software_source_package_groups got unknown kwargs: {extra_kwargs!r}") @@ -4298,14 +4298,14 @@ def search_software_source_package_groups(self, search_software_source_package_g "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4403,7 +4403,7 @@ def software_source_generate_metadata(self, software_source_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"software_source_generate_metadata got unknown kwargs: {extra_kwargs!r}") @@ -4412,9 +4412,9 @@ def software_source_generate_metadata(self, software_source_id, **kwargs): "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4425,7 +4425,7 @@ def software_source_generate_metadata(self, software_source_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4515,7 +4515,7 @@ def update_software_source(self, software_source_id, update_software_source_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_software_source got unknown kwargs: {extra_kwargs!r}") @@ -4524,9 +4524,9 @@ def update_software_source(self, software_source_id, update_software_source_deta "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4536,7 +4536,7 @@ def update_software_source(self, software_source_id, update_software_source_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4645,7 +4645,7 @@ def update_software_source_manifest(self, update_software_source_manifest_detail "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_software_source_manifest got unknown kwargs: {extra_kwargs!r}") @@ -4654,9 +4654,9 @@ def update_software_source_manifest(self, update_software_source_manifest_detail "softwareSourceId": software_source_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4666,7 +4666,7 @@ def update_software_source_manifest(self, update_software_source_manifest_detail "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # If the body parameter is optional we need to assign it to a variable so additional type checking can be performed. try: diff --git a/src/oci/os_management_hub/work_request_client.py b/src/oci/os_management_hub/work_request_client.py index 9f2ec8b98..00260e3d5 100644 --- a/src/oci/os_management_hub/work_request_client.py +++ b/src/oci/os_management_hub/work_request_client.py @@ -163,7 +163,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -172,9 +172,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -183,7 +183,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -294,7 +294,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -303,9 +303,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -329,14 +329,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -449,7 +449,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -458,9 +458,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -484,14 +484,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -678,7 +678,7 @@ def list_work_requests(self, **kwargs): "time_created_greater_than_or_equal_to", "is_managed_by_autonomous_linux" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -733,14 +733,14 @@ def list_work_requests(self, **kwargs): "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing), "isManagedByAutonomousLinux": kwargs.get("is_managed_by_autonomous_linux", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -843,7 +843,7 @@ def rerun_work_request(self, work_request_id, rerun_work_request_details, **kwar "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rerun_work_request got unknown kwargs: {extra_kwargs!r}") @@ -852,9 +852,9 @@ def rerun_work_request(self, work_request_id, rerun_work_request_details, **kwar "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -865,7 +865,7 @@ def rerun_work_request(self, work_request_id, rerun_work_request_details, **kwar "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osp_gateway/address_rule_service_client.py b/src/oci/osp_gateway/address_rule_service_client.py index 355b8f007..45469c835 100644 --- a/src/oci/osp_gateway/address_rule_service_client.py +++ b/src/oci/osp_gateway/address_rule_service_client.py @@ -169,7 +169,7 @@ def get_address_rule(self, osp_home_region, compartment_id, country_code, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_address_rule got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def get_address_rule(self, osp_home_region, compartment_id, country_code, **kwar "countryCode": country_code } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,14 +188,14 @@ def get_address_rule(self, osp_home_region, compartment_id, country_code, **kwar "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osp_gateway/address_service_client.py b/src/oci/osp_gateway/address_service_client.py index 87352c180..ec2e48f71 100644 --- a/src/oci/osp_gateway/address_service_client.py +++ b/src/oci/osp_gateway/address_service_client.py @@ -169,7 +169,7 @@ def get_address(self, osp_home_region, compartment_id, address_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_address got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def get_address(self, osp_home_region, compartment_id, address_id, **kwargs): "addressId": address_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,14 +188,14 @@ def get_address(self, osp_home_region, compartment_id, address_id, **kwargs): "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def verify_address(self, osp_home_region, compartment_id, verify_address_details "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"verify_address got unknown kwargs: {extra_kwargs!r}") @@ -306,7 +306,7 @@ def verify_address(self, osp_home_region, compartment_id, verify_address_details "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -315,7 +315,7 @@ def verify_address(self, osp_home_region, compartment_id, verify_address_details "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osp_gateway/invoice_service_client.py b/src/oci/osp_gateway/invoice_service_client.py index dd95f2b81..190aa3861 100644 --- a/src/oci/osp_gateway/invoice_service_client.py +++ b/src/oci/osp_gateway/invoice_service_client.py @@ -169,7 +169,7 @@ def download_pdf_content(self, osp_home_region, compartment_id, internal_invoice "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"download_pdf_content got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def download_pdf_content(self, osp_home_region, compartment_id, internal_invoice "internalInvoiceId": internal_invoice_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,14 +188,14 @@ def download_pdf_content(self, osp_home_region, compartment_id, internal_invoice "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/pdf", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -284,7 +284,7 @@ def get_invoice(self, osp_home_region, compartment_id, internal_invoice_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_invoice got unknown kwargs: {extra_kwargs!r}") @@ -293,9 +293,9 @@ def get_invoice(self, osp_home_region, compartment_id, internal_invoice_id, **kw "internalInvoiceId": internal_invoice_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -303,14 +303,14 @@ def get_invoice(self, osp_home_region, compartment_id, internal_invoice_id, **kw "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -407,7 +407,7 @@ def list_invoice_lines(self, osp_home_region, compartment_id, internal_invoice_i "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_invoice_lines got unknown kwargs: {extra_kwargs!r}") @@ -416,9 +416,9 @@ def list_invoice_lines(self, osp_home_region, compartment_id, internal_invoice_i "internalInvoiceId": internal_invoice_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -428,14 +428,14 @@ def list_invoice_lines(self, osp_home_region, compartment_id, internal_invoice_i "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -580,7 +580,7 @@ def list_invoices(self, osp_home_region, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_invoices got unknown kwargs: {extra_kwargs!r}") @@ -631,14 +631,14 @@ def list_invoices(self, osp_home_region, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -741,7 +741,7 @@ def pay_invoice(self, osp_home_region, internal_invoice_id, compartment_id, pay_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"pay_invoice got unknown kwargs: {extra_kwargs!r}") @@ -750,9 +750,9 @@ def pay_invoice(self, osp_home_region, internal_invoice_id, compartment_id, pay_ "internalInvoiceId": internal_invoice_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -760,7 +760,7 @@ def pay_invoice(self, osp_home_region, internal_invoice_id, compartment_id, pay_ "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -769,7 +769,7 @@ def pay_invoice(self, osp_home_region, internal_invoice_id, compartment_id, pay_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osp_gateway/subscription_service_client.py b/src/oci/osp_gateway/subscription_service_client.py index 06c9fb8a3..2bae75860 100644 --- a/src/oci/osp_gateway/subscription_service_client.py +++ b/src/oci/osp_gateway/subscription_service_client.py @@ -185,7 +185,7 @@ def authorize_subscription_payment(self, osp_home_region, subscription_id, compa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"authorize_subscription_payment got unknown kwargs: {extra_kwargs!r}") @@ -194,9 +194,9 @@ def authorize_subscription_payment(self, osp_home_region, subscription_id, compa "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -204,7 +204,7 @@ def authorize_subscription_payment(self, osp_home_region, subscription_id, compa "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -213,7 +213,7 @@ def authorize_subscription_payment(self, osp_home_region, subscription_id, compa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -305,7 +305,7 @@ def get_subscription(self, subscription_id, osp_home_region, compartment_id, **k "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscription got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def get_subscription(self, subscription_id, osp_home_region, compartment_id, **k "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -324,14 +324,14 @@ def get_subscription(self, subscription_id, osp_home_region, compartment_id, **k "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -437,7 +437,7 @@ def list_subscriptions(self, osp_home_region, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -464,14 +464,14 @@ def list_subscriptions(self, osp_home_region, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -574,7 +574,7 @@ def pay_subscription(self, osp_home_region, subscription_id, compartment_id, pay "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"pay_subscription got unknown kwargs: {extra_kwargs!r}") @@ -583,9 +583,9 @@ def pay_subscription(self, osp_home_region, subscription_id, compartment_id, pay "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -593,7 +593,7 @@ def pay_subscription(self, osp_home_region, subscription_id, compartment_id, pay "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -602,7 +602,7 @@ def pay_subscription(self, osp_home_region, subscription_id, compartment_id, pay "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -705,7 +705,7 @@ def update_subscription(self, subscription_id, osp_home_region, compartment_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_subscription got unknown kwargs: {extra_kwargs!r}") @@ -714,9 +714,9 @@ def update_subscription(self, subscription_id, osp_home_region, compartment_id, "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -724,7 +724,7 @@ def update_subscription(self, subscription_id, osp_home_region, compartment_id, "ospHomeRegion": osp_home_region, "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -732,7 +732,7 @@ def update_subscription(self, subscription_id, osp_home_region, compartment_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osub_billing_schedule/billing_schedule_client.py b/src/oci/osub_billing_schedule/billing_schedule_client.py index 5993d9b1d..9d2e3de20 100644 --- a/src/oci/osub_billing_schedule/billing_schedule_client.py +++ b/src/oci/osub_billing_schedule/billing_schedule_client.py @@ -194,7 +194,7 @@ def list_billing_schedules(self, compartment_id, subscription_id, **kwargs): "opc_request_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_billing_schedules got unknown kwargs: {extra_kwargs!r}") @@ -222,7 +222,7 @@ def list_billing_schedules(self, compartment_id, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -230,7 +230,7 @@ def list_billing_schedules(self, compartment_id, subscription_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osub_organization_subscription/organization_subscription_client.py b/src/oci/osub_organization_subscription/organization_subscription_client.py index d5d1528fb..161e975f3 100644 --- a/src/oci/osub_organization_subscription/organization_subscription_client.py +++ b/src/oci/osub_organization_subscription/organization_subscription_client.py @@ -189,7 +189,7 @@ def list_organization_subscriptions(self, compartment_id, subscription_ids, **kw "opc_request_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_organization_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -216,7 +216,7 @@ def list_organization_subscriptions(self, compartment_id, subscription_ids, **kw "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -224,7 +224,7 @@ def list_organization_subscriptions(self, compartment_id, subscription_ids, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osub_subscription/commitment_client.py b/src/oci/osub_subscription/commitment_client.py index 86fff1175..5681e30a6 100644 --- a/src/oci/osub_subscription/commitment_client.py +++ b/src/oci/osub_subscription/commitment_client.py @@ -169,7 +169,7 @@ def get_commitment(self, commitment_id, **kwargs): "x_one_gateway_subscription_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_commitment got unknown kwargs: {extra_kwargs!r}") @@ -178,9 +178,9 @@ def get_commitment(self, commitment_id, **kwargs): "commitmentId": commitment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -191,7 +191,7 @@ def get_commitment(self, commitment_id, **kwargs): "x-one-gateway-subscription-id": kwargs.get("x_one_gateway_subscription_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -301,7 +301,7 @@ def list_commitments(self, subscribed_service_id, compartment_id, **kwargs): "x_one_gateway_subscription_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_commitments got unknown kwargs: {extra_kwargs!r}") @@ -328,7 +328,7 @@ def list_commitments(self, subscribed_service_id, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -337,7 +337,7 @@ def list_commitments(self, subscribed_service_id, compartment_id, **kwargs): "x-one-gateway-subscription-id": kwargs.get("x_one_gateway_subscription_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osub_subscription/ratecard_client.py b/src/oci/osub_subscription/ratecard_client.py index b3268dcf6..cdf58dc1a 100644 --- a/src/oci/osub_subscription/ratecard_client.py +++ b/src/oci/osub_subscription/ratecard_client.py @@ -202,7 +202,7 @@ def list_rate_cards(self, subscription_id, compartment_id, **kwargs): "opc_request_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rate_cards got unknown kwargs: {extra_kwargs!r}") @@ -232,7 +232,7 @@ def list_rate_cards(self, subscription_id, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -240,7 +240,7 @@ def list_rate_cards(self, subscription_id, compartment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osub_subscription/subscription_client.py b/src/oci/osub_subscription/subscription_client.py index 8ed9073cc..6e07b5be7 100644 --- a/src/oci/osub_subscription/subscription_client.py +++ b/src/oci/osub_subscription/subscription_client.py @@ -210,7 +210,7 @@ def list_subscriptions(self, compartment_id, **kwargs): "x_one_gateway_subscription_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -240,7 +240,7 @@ def list_subscriptions(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -249,7 +249,7 @@ def list_subscriptions(self, compartment_id, **kwargs): "x-one-gateway-subscription-id": kwargs.get("x_one_gateway_subscription_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/osub_usage/computed_usage_client.py b/src/oci/osub_usage/computed_usage_client.py index 67de2f49c..58a319dca 100644 --- a/src/oci/osub_usage/computed_usage_client.py +++ b/src/oci/osub_usage/computed_usage_client.py @@ -174,7 +174,7 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "opc_request_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_computed_usage got unknown kwargs: {extra_kwargs!r}") @@ -183,9 +183,9 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "computedUsageId": computed_usage_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "compartmentId": compartment_id, "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -201,7 +201,7 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -312,7 +312,7 @@ def list_computed_usage_aggregateds(self, compartment_id, subscription_id, time_ "opc_request_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_computed_usage_aggregateds got unknown kwargs: {extra_kwargs!r}") @@ -334,7 +334,7 @@ def list_computed_usage_aggregateds(self, compartment_id, subscription_id, time_ "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -342,7 +342,7 @@ def list_computed_usage_aggregateds(self, compartment_id, subscription_id, time_ "opc-request-id": kwargs.get("opc_request_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -461,7 +461,7 @@ def list_computed_usages(self, compartment_id, subscription_id, time_from, time_ "opc_request_id", "x_one_origin_region" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_computed_usages got unknown kwargs: {extra_kwargs!r}") @@ -492,7 +492,7 @@ def list_computed_usages(self, compartment_id, subscription_id, time_from, time_ "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -500,7 +500,7 @@ def list_computed_usages(self, compartment_id, subscription_id, time_from, time_ "opc-request-id": kwargs.get("opc_request_id", missing), "x-one-origin-region": kwargs.get("x_one_origin_region", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/psa/private_service_access_client.py b/src/oci/psa/private_service_access_client.py index dcabc24a8..28e08060c 100644 --- a/src/oci/psa/private_service_access_client.py +++ b/src/oci/psa/private_service_access_client.py @@ -173,7 +173,7 @@ def cancel_psa_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_psa_work_request got unknown kwargs: {extra_kwargs!r}") @@ -182,9 +182,9 @@ def cancel_psa_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -194,7 +194,7 @@ def cancel_psa_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -296,7 +296,7 @@ def change_private_service_access_compartment(self, private_service_access_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_private_service_access_compartment got unknown kwargs: {extra_kwargs!r}") @@ -305,9 +305,9 @@ def change_private_service_access_compartment(self, private_service_access_id, c "privateServiceAccessId": private_service_access_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -318,7 +318,7 @@ def change_private_service_access_compartment(self, private_service_access_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -409,7 +409,7 @@ def create_private_service_access(self, create_private_service_access_details, * "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_service_access got unknown kwargs: {extra_kwargs!r}") @@ -420,7 +420,7 @@ def create_private_service_access(self, create_private_service_access_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -511,7 +511,7 @@ def delete_private_service_access(self, private_service_access_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_service_access got unknown kwargs: {extra_kwargs!r}") @@ -520,9 +520,9 @@ def delete_private_service_access(self, private_service_access_id, **kwargs): "privateServiceAccessId": private_service_access_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -532,7 +532,7 @@ def delete_private_service_access(self, private_service_access_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -613,7 +613,7 @@ def get_private_service_access(self, private_service_access_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_service_access got unknown kwargs: {extra_kwargs!r}") @@ -622,9 +622,9 @@ def get_private_service_access(self, private_service_access_id, **kwargs): "privateServiceAccessId": private_service_access_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -633,7 +633,7 @@ def get_private_service_access(self, private_service_access_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -716,7 +716,7 @@ def get_psa_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_psa_work_request got unknown kwargs: {extra_kwargs!r}") @@ -725,9 +725,9 @@ def get_psa_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -736,7 +736,7 @@ def get_psa_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -879,7 +879,7 @@ def list_private_service_accesses(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_service_accesses got unknown kwargs: {extra_kwargs!r}") @@ -917,14 +917,14 @@ def list_private_service_accesses(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1038,7 +1038,7 @@ def list_psa_services(self, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_psa_services got unknown kwargs: {extra_kwargs!r}") @@ -1065,14 +1065,14 @@ def list_psa_services(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1183,7 +1183,7 @@ def list_psa_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_psa_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1192,9 +1192,9 @@ def list_psa_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1218,14 +1218,14 @@ def list_psa_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1338,7 +1338,7 @@ def list_psa_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_psa_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1347,9 +1347,9 @@ def list_psa_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1373,14 +1373,14 @@ def list_psa_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1512,7 +1512,7 @@ def list_psa_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_psa_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1548,14 +1548,14 @@ def list_psa_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1648,7 +1648,7 @@ def update_private_service_access(self, private_service_access_id, update_privat "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_service_access got unknown kwargs: {extra_kwargs!r}") @@ -1657,9 +1657,9 @@ def update_private_service_access(self, private_service_access_id, update_privat "privateServiceAccessId": private_service_access_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1669,7 +1669,7 @@ def update_private_service_access(self, private_service_access_id, update_privat "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/psql/postgresql_client.py b/src/oci/psql/postgresql_client.py index 76405089e..9abcac420 100644 --- a/src/oci/psql/postgresql_client.py +++ b/src/oci/psql/postgresql_client.py @@ -176,7 +176,7 @@ def backup_copy(self, backup_id, backup_copy_details, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"backup_copy got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def backup_copy(self, backup_id, backup_copy_details, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def backup_copy(self, backup_id, backup_copy_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -292,7 +292,7 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_backup_compartment got unknown kwargs: {extra_kwargs!r}") @@ -301,9 +301,9 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -314,7 +314,7 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -408,7 +408,7 @@ def change_configuration_compartment(self, configuration_id, change_configuratio "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_configuration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -417,9 +417,9 @@ def change_configuration_compartment(self, configuration_id, change_configuratio "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -430,7 +430,7 @@ def change_configuration_compartment(self, configuration_id, change_configuratio "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -524,7 +524,7 @@ def change_db_system_compartment(self, db_system_id, change_db_system_compartmen "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_db_system_compartment got unknown kwargs: {extra_kwargs!r}") @@ -533,9 +533,9 @@ def change_db_system_compartment(self, db_system_id, change_db_system_compartmen "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -546,7 +546,7 @@ def change_db_system_compartment(self, db_system_id, change_db_system_compartmen "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -632,7 +632,7 @@ def create_backup(self, create_backup_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_backup got unknown kwargs: {extra_kwargs!r}") @@ -643,7 +643,7 @@ def create_backup(self, create_backup_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -727,7 +727,7 @@ def create_configuration(self, create_configuration_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_configuration got unknown kwargs: {extra_kwargs!r}") @@ -738,7 +738,7 @@ def create_configuration(self, create_configuration_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -824,7 +824,7 @@ def create_db_system(self, create_db_system_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_db_system got unknown kwargs: {extra_kwargs!r}") @@ -835,7 +835,7 @@ def create_db_system(self, create_db_system_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -919,7 +919,7 @@ def delete_backup(self, backup_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_backup got unknown kwargs: {extra_kwargs!r}") @@ -928,9 +928,9 @@ def delete_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -940,7 +940,7 @@ def delete_backup(self, backup_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1021,7 +1021,7 @@ def delete_configuration(self, configuration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1030,9 +1030,9 @@ def delete_configuration(self, configuration_id, **kwargs): "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1042,7 +1042,7 @@ def delete_configuration(self, configuration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1123,7 +1123,7 @@ def delete_db_system(self, db_system_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_db_system got unknown kwargs: {extra_kwargs!r}") @@ -1132,9 +1132,9 @@ def delete_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1144,7 +1144,7 @@ def delete_db_system(self, db_system_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1235,7 +1235,7 @@ def failover_db_system(self, db_system_id, failover_db_system_details, **kwargs) "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"failover_db_system got unknown kwargs: {extra_kwargs!r}") @@ -1244,9 +1244,9 @@ def failover_db_system(self, db_system_id, failover_db_system_details, **kwargs) "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1257,7 +1257,7 @@ def failover_db_system(self, db_system_id, failover_db_system_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1336,7 +1336,7 @@ def get_backup(self, backup_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_backup got unknown kwargs: {extra_kwargs!r}") @@ -1345,9 +1345,9 @@ def get_backup(self, backup_id, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1356,7 +1356,7 @@ def get_backup(self, backup_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1434,7 +1434,7 @@ def get_configuration(self, configuration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1443,9 +1443,9 @@ def get_configuration(self, configuration_id, **kwargs): "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1454,7 +1454,7 @@ def get_configuration(self, configuration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1532,7 +1532,7 @@ def get_connection_details(self, db_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connection_details got unknown kwargs: {extra_kwargs!r}") @@ -1541,9 +1541,9 @@ def get_connection_details(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1552,7 +1552,7 @@ def get_connection_details(self, db_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1636,7 +1636,7 @@ def get_db_system(self, db_system_id, **kwargs): "opc_request_id", "excluded_fields" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_db_system got unknown kwargs: {extra_kwargs!r}") @@ -1645,9 +1645,9 @@ def get_db_system(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1662,14 +1662,14 @@ def get_db_system(self, db_system_id, **kwargs): query_params = { "excludedFields": self.base_client.generate_collection_format_param(kwargs.get("excluded_fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1749,7 +1749,7 @@ def get_default_configuration(self, default_configuration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_default_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1758,9 +1758,9 @@ def get_default_configuration(self, default_configuration_id, **kwargs): "defaultConfigurationId": default_configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1769,7 +1769,7 @@ def get_default_configuration(self, default_configuration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1847,7 +1847,7 @@ def get_primary_db_instance(self, db_system_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_primary_db_instance got unknown kwargs: {extra_kwargs!r}") @@ -1856,9 +1856,9 @@ def get_primary_db_instance(self, db_system_id, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1867,7 +1867,7 @@ def get_primary_db_instance(self, db_system_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1945,7 +1945,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1954,9 +1954,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1965,7 +1965,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2094,7 +2094,7 @@ def list_backups(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_backups got unknown kwargs: {extra_kwargs!r}") @@ -2133,14 +2133,14 @@ def list_backups(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2275,7 +2275,7 @@ def list_configurations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2323,14 +2323,14 @@ def list_configurations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2443,7 +2443,7 @@ def list_db_systems(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_db_systems got unknown kwargs: {extra_kwargs!r}") @@ -2479,14 +2479,14 @@ def list_db_systems(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2611,7 +2611,7 @@ def list_default_configurations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_default_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2650,14 +2650,14 @@ def list_default_configurations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2760,7 +2760,7 @@ def list_shapes(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_shapes got unknown kwargs: {extra_kwargs!r}") @@ -2787,14 +2787,14 @@ def list_shapes(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2892,7 +2892,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2901,9 +2901,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2927,14 +2927,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3034,7 +3034,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3043,9 +3043,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3069,14 +3069,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3191,7 +3191,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3227,14 +3227,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3320,7 +3320,7 @@ def patch_db_system(self, db_system_id, patch_db_system_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"patch_db_system got unknown kwargs: {extra_kwargs!r}") @@ -3329,9 +3329,9 @@ def patch_db_system(self, db_system_id, patch_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3341,7 +3341,7 @@ def patch_db_system(self, db_system_id, patch_db_system_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3434,7 +3434,7 @@ def reset_master_user_password(self, db_system_id, reset_master_user_password_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reset_master_user_password got unknown kwargs: {extra_kwargs!r}") @@ -3443,9 +3443,9 @@ def reset_master_user_password(self, db_system_id, reset_master_user_password_de "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3456,7 +3456,7 @@ def reset_master_user_password(self, db_system_id, reset_master_user_password_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3550,7 +3550,7 @@ def restart_db_instance_in_db_system(self, db_system_id, restart_db_instance_in_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_db_instance_in_db_system got unknown kwargs: {extra_kwargs!r}") @@ -3559,9 +3559,9 @@ def restart_db_instance_in_db_system(self, db_system_id, restart_db_instance_in_ "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3572,7 +3572,7 @@ def restart_db_instance_in_db_system(self, db_system_id, restart_db_instance_in_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3666,7 +3666,7 @@ def restore_db_system(self, db_system_id, restore_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_db_system got unknown kwargs: {extra_kwargs!r}") @@ -3675,9 +3675,9 @@ def restore_db_system(self, db_system_id, restore_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3688,7 +3688,7 @@ def restore_db_system(self, db_system_id, restore_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3775,7 +3775,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_backup got unknown kwargs: {extra_kwargs!r}") @@ -3784,9 +3784,9 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3796,7 +3796,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3891,7 +3891,7 @@ def update_configuration(self, configuration_id, update_configuration_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -3900,9 +3900,9 @@ def update_configuration(self, configuration_id, update_configuration_details, * "configurationId": configuration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3913,7 +3913,7 @@ def update_configuration(self, configuration_id, update_configuration_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4009,7 +4009,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_system got unknown kwargs: {extra_kwargs!r}") @@ -4018,9 +4018,9 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "dbSystemId": db_system_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4031,7 +4031,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4128,7 +4128,7 @@ def update_db_system_db_instance(self, db_system_id, db_instance_id, update_db_s "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_db_system_db_instance got unknown kwargs: {extra_kwargs!r}") @@ -4138,9 +4138,9 @@ def update_db_system_db_instance(self, db_system_id, db_instance_id, update_db_s "dbInstanceId": db_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4151,7 +4151,7 @@ def update_db_system_db_instance(self, db_system_id, db_instance_id, update_db_s "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/queue/queue_admin_client.py b/src/oci/queue/queue_admin_client.py index f15bcc1a5..fe9766d6a 100644 --- a/src/oci/queue/queue_admin_client.py +++ b/src/oci/queue/queue_admin_client.py @@ -171,7 +171,7 @@ def change_queue_compartment(self, queue_id, change_queue_compartment_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_queue_compartment got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def change_queue_compartment(self, queue_id, change_queue_compartment_details, * "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def change_queue_compartment(self, queue_id, change_queue_compartment_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -278,7 +278,7 @@ def create_queue(self, create_queue_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_queue got unknown kwargs: {extra_kwargs!r}") @@ -289,7 +289,7 @@ def create_queue(self, create_queue_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -374,7 +374,7 @@ def delete_queue(self, queue_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_queue got unknown kwargs: {extra_kwargs!r}") @@ -383,9 +383,9 @@ def delete_queue(self, queue_id, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -395,7 +395,7 @@ def delete_queue(self, queue_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -471,7 +471,7 @@ def get_queue(self, queue_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_queue got unknown kwargs: {extra_kwargs!r}") @@ -480,9 +480,9 @@ def get_queue(self, queue_id, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -491,7 +491,7 @@ def get_queue(self, queue_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -569,7 +569,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -578,9 +578,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -589,7 +589,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -708,7 +708,7 @@ def list_queues(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_queues got unknown kwargs: {extra_kwargs!r}") @@ -744,14 +744,14 @@ def list_queues(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -841,7 +841,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -850,9 +850,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -860,14 +860,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -959,7 +959,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -968,9 +968,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -978,14 +978,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1084,7 +1084,7 @@ def list_work_requests(self, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1095,14 +1095,14 @@ def list_work_requests(self, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1193,7 +1193,7 @@ def purge_queue(self, queue_id, purge_queue_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"purge_queue got unknown kwargs: {extra_kwargs!r}") @@ -1202,9 +1202,9 @@ def purge_queue(self, queue_id, purge_queue_details, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1214,7 +1214,7 @@ def purge_queue(self, queue_id, purge_queue_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1303,7 +1303,7 @@ def update_queue(self, queue_id, update_queue_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_queue got unknown kwargs: {extra_kwargs!r}") @@ -1312,9 +1312,9 @@ def update_queue(self, queue_id, update_queue_details, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1324,7 +1324,7 @@ def update_queue(self, queue_id, update_queue_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/queue/queue_client.py b/src/oci/queue/queue_client.py index 02bbb0941..a190b7ebb 100644 --- a/src/oci/queue/queue_client.py +++ b/src/oci/queue/queue_client.py @@ -167,7 +167,7 @@ def delete_message(self, queue_id, message_receipt, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_message got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def delete_message(self, queue_id, message_receipt, **kwargs): "messageReceipt": message_receipt } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,7 +188,7 @@ def delete_message(self, queue_id, message_receipt, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -271,7 +271,7 @@ def delete_messages(self, queue_id, delete_messages_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_messages got unknown kwargs: {extra_kwargs!r}") @@ -280,9 +280,9 @@ def delete_messages(self, queue_id, delete_messages_details, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -291,7 +291,7 @@ def delete_messages(self, queue_id, delete_messages_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -401,7 +401,7 @@ def get_messages(self, queue_id, **kwargs): "opc_request_id", "channel_filter" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_messages got unknown kwargs: {extra_kwargs!r}") @@ -410,9 +410,9 @@ def get_messages(self, queue_id, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -422,14 +422,14 @@ def get_messages(self, queue_id, **kwargs): "limit": kwargs.get("limit", missing), "channelFilter": kwargs.get("channel_filter", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -515,7 +515,7 @@ def get_stats(self, queue_id, **kwargs): "opc_request_id", "channel_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stats got unknown kwargs: {extra_kwargs!r}") @@ -524,23 +524,23 @@ def get_stats(self, queue_id, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "channelId": kwargs.get("channel_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -639,7 +639,7 @@ def list_channels(self, queue_id, **kwargs): "page", "channel_filter" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_channels got unknown kwargs: {extra_kwargs!r}") @@ -648,9 +648,9 @@ def list_channels(self, queue_id, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -659,14 +659,14 @@ def list_channels(self, queue_id, **kwargs): "page": kwargs.get("page", missing), "channelFilter": kwargs.get("channel_filter", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -753,7 +753,7 @@ def put_messages(self, queue_id, put_messages_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_messages got unknown kwargs: {extra_kwargs!r}") @@ -762,9 +762,9 @@ def put_messages(self, queue_id, put_messages_details, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -773,7 +773,7 @@ def put_messages(self, queue_id, put_messages_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -861,7 +861,7 @@ def update_message(self, queue_id, message_receipt, update_message_details, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_message got unknown kwargs: {extra_kwargs!r}") @@ -871,9 +871,9 @@ def update_message(self, queue_id, message_receipt, update_message_details, **kw "messageReceipt": message_receipt } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -882,7 +882,7 @@ def update_message(self, queue_id, message_receipt, update_message_details, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -969,7 +969,7 @@ def update_messages(self, queue_id, update_messages_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_messages got unknown kwargs: {extra_kwargs!r}") @@ -978,9 +978,9 @@ def update_messages(self, queue_id, update_messages_details, **kwargs): "queueId": queue_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -989,7 +989,7 @@ def update_messages(self, queue_id, update_messages_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/recovery/database_recovery_client.py b/src/oci/recovery/database_recovery_client.py index 855cc21b6..e8de21188 100644 --- a/src/oci/recovery/database_recovery_client.py +++ b/src/oci/recovery/database_recovery_client.py @@ -168,7 +168,7 @@ def cancel_protected_database_deletion(self, protected_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_protected_database_deletion got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def cancel_protected_database_deletion(self, protected_database_id, **kwargs): "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def cancel_protected_database_deletion(self, protected_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -276,7 +276,7 @@ def change_protected_database_compartment(self, protected_database_id, change_pr "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_protected_database_compartment got unknown kwargs: {extra_kwargs!r}") @@ -285,9 +285,9 @@ def change_protected_database_compartment(self, protected_database_id, change_pr "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -297,7 +297,7 @@ def change_protected_database_compartment(self, protected_database_id, change_pr "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -386,7 +386,7 @@ def change_protected_database_subscription(self, protected_database_id, change_p "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_protected_database_subscription got unknown kwargs: {extra_kwargs!r}") @@ -395,9 +395,9 @@ def change_protected_database_subscription(self, protected_database_id, change_p "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -407,7 +407,7 @@ def change_protected_database_subscription(self, protected_database_id, change_p "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -496,7 +496,7 @@ def change_protection_policy_compartment(self, protection_policy_id, change_prot "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_protection_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -505,9 +505,9 @@ def change_protection_policy_compartment(self, protection_policy_id, change_prot "protectionPolicyId": protection_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -517,7 +517,7 @@ def change_protection_policy_compartment(self, protection_policy_id, change_prot "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -606,7 +606,7 @@ def change_recovery_service_subnet_compartment(self, recovery_service_subnet_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_recovery_service_subnet_compartment got unknown kwargs: {extra_kwargs!r}") @@ -615,9 +615,9 @@ def change_recovery_service_subnet_compartment(self, recovery_service_subnet_id, "recoveryServiceSubnetId": recovery_service_subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -627,7 +627,7 @@ def change_recovery_service_subnet_compartment(self, recovery_service_subnet_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -737,7 +737,7 @@ def create_protected_database(self, create_protected_database_details, **kwargs) "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_protected_database got unknown kwargs: {extra_kwargs!r}") @@ -749,7 +749,7 @@ def create_protected_database(self, create_protected_database_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -836,7 +836,7 @@ def create_protection_policy(self, create_protection_policy_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_protection_policy got unknown kwargs: {extra_kwargs!r}") @@ -847,7 +847,7 @@ def create_protection_policy(self, create_protection_policy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -934,7 +934,7 @@ def create_recovery_service_subnet(self, create_recovery_service_subnet_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_recovery_service_subnet got unknown kwargs: {extra_kwargs!r}") @@ -945,7 +945,7 @@ def create_recovery_service_subnet(self, create_recovery_service_subnet_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1040,7 +1040,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_protected_database got unknown kwargs: {extra_kwargs!r}") @@ -1049,9 +1049,9 @@ def delete_protected_database(self, protected_database_id, **kwargs): "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1065,7 +1065,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): query_params = { "deletionSchedule": kwargs.get("deletion_schedule", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1073,7 +1073,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1160,7 +1160,7 @@ def delete_protection_policy(self, protection_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_protection_policy got unknown kwargs: {extra_kwargs!r}") @@ -1169,9 +1169,9 @@ def delete_protection_policy(self, protection_policy_id, **kwargs): "protectionPolicyId": protection_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1181,7 +1181,7 @@ def delete_protection_policy(self, protection_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1265,7 +1265,7 @@ def delete_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_recovery_service_subnet got unknown kwargs: {extra_kwargs!r}") @@ -1274,9 +1274,9 @@ def delete_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): "recoveryServiceSubnetId": recovery_service_subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1286,7 +1286,7 @@ def delete_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1374,7 +1374,7 @@ def fetch_protected_database_configuration(self, protected_database_id, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"fetch_protected_database_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1383,9 +1383,9 @@ def fetch_protected_database_configuration(self, protected_database_id, **kwargs "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1395,7 +1395,7 @@ def fetch_protected_database_configuration(self, protected_database_id, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1475,7 +1475,7 @@ def get_protected_database(self, protected_database_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_protected_database got unknown kwargs: {extra_kwargs!r}") @@ -1484,9 +1484,9 @@ def get_protected_database(self, protected_database_id, **kwargs): "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1495,7 +1495,7 @@ def get_protected_database(self, protected_database_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1573,7 +1573,7 @@ def get_protection_policy(self, protection_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_protection_policy got unknown kwargs: {extra_kwargs!r}") @@ -1582,9 +1582,9 @@ def get_protection_policy(self, protection_policy_id, **kwargs): "protectionPolicyId": protection_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1593,7 +1593,7 @@ def get_protection_policy(self, protection_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1671,7 +1671,7 @@ def get_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_recovery_service_subnet got unknown kwargs: {extra_kwargs!r}") @@ -1680,9 +1680,9 @@ def get_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): "recoveryServiceSubnetId": recovery_service_subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1691,7 +1691,7 @@ def get_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1769,7 +1769,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1778,9 +1778,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1789,7 +1789,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1915,7 +1915,7 @@ def list_protected_databases(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protected_databases got unknown kwargs: {extra_kwargs!r}") @@ -1953,14 +1953,14 @@ def list_protected_databases(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2084,7 +2084,7 @@ def list_protection_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protection_policies got unknown kwargs: {extra_kwargs!r}") @@ -2128,14 +2128,14 @@ def list_protection_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2257,7 +2257,7 @@ def list_recovery_service_subnets(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recovery_service_subnets got unknown kwargs: {extra_kwargs!r}") @@ -2294,14 +2294,14 @@ def list_recovery_service_subnets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2402,7 +2402,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2411,9 +2411,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2437,14 +2437,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2547,7 +2547,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2556,9 +2556,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2582,14 +2582,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2706,7 +2706,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2742,14 +2742,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2841,7 +2841,7 @@ def schedule_protected_database_deletion(self, protected_database_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_protected_database_deletion got unknown kwargs: {extra_kwargs!r}") @@ -2850,9 +2850,9 @@ def schedule_protected_database_deletion(self, protected_database_id, **kwargs): "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2862,7 +2862,7 @@ def schedule_protected_database_deletion(self, protected_database_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2951,7 +2951,7 @@ def update_protected_database(self, protected_database_id, update_protected_data "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_protected_database got unknown kwargs: {extra_kwargs!r}") @@ -2960,9 +2960,9 @@ def update_protected_database(self, protected_database_id, update_protected_data "protectedDatabaseId": protected_database_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2972,7 +2972,7 @@ def update_protected_database(self, protected_database_id, update_protected_data "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3061,7 +3061,7 @@ def update_protection_policy(self, protection_policy_id, update_protection_polic "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_protection_policy got unknown kwargs: {extra_kwargs!r}") @@ -3070,9 +3070,9 @@ def update_protection_policy(self, protection_policy_id, update_protection_polic "protectionPolicyId": protection_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3082,7 +3082,7 @@ def update_protection_policy(self, protection_policy_id, update_protection_polic "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3171,7 +3171,7 @@ def update_recovery_service_subnet(self, recovery_service_subnet_id, update_reco "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_recovery_service_subnet got unknown kwargs: {extra_kwargs!r}") @@ -3180,9 +3180,9 @@ def update_recovery_service_subnet(self, recovery_service_subnet_id, update_reco "recoveryServiceSubnetId": recovery_service_subnet_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3192,7 +3192,7 @@ def update_recovery_service_subnet(self, recovery_service_subnet_id, update_reco "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/redis/oci_cache_config_set_client.py b/src/oci/redis/oci_cache_config_set_client.py index e4af4788c..64333bb28 100644 --- a/src/oci/redis/oci_cache_config_set_client.py +++ b/src/oci/redis/oci_cache_config_set_client.py @@ -179,7 +179,7 @@ def change_oci_cache_config_set_compartment(self, oci_cache_config_set_id, chang "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oci_cache_config_set_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_oci_cache_config_set_compartment(self, oci_cache_config_set_id, chang "ociCacheConfigSetId": oci_cache_config_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_oci_cache_config_set_compartment(self, oci_cache_config_set_id, chang "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_oci_cache_config_set(self, create_oci_cache_config_set_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oci_cache_config_set got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_oci_cache_config_set(self, create_oci_cache_config_set_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -386,7 +386,7 @@ def delete_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oci_cache_config_set got unknown kwargs: {extra_kwargs!r}") @@ -395,9 +395,9 @@ def delete_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): "ociCacheConfigSetId": oci_cache_config_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -407,7 +407,7 @@ def delete_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -483,7 +483,7 @@ def get_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oci_cache_config_set got unknown kwargs: {extra_kwargs!r}") @@ -492,9 +492,9 @@ def get_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): "ociCacheConfigSetId": oci_cache_config_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -503,7 +503,7 @@ def get_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -601,7 +601,7 @@ def list_associated_oci_cache_clusters(self, oci_cache_config_set_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_associated_oci_cache_clusters got unknown kwargs: {extra_kwargs!r}") @@ -610,9 +610,9 @@ def list_associated_oci_cache_clusters(self, oci_cache_config_set_id, **kwargs): "ociCacheConfigSetId": oci_cache_config_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -636,14 +636,14 @@ def list_associated_oci_cache_clusters(self, oci_cache_config_set_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def list_oci_cache_config_sets(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oci_cache_config_sets got unknown kwargs: {extra_kwargs!r}") @@ -808,14 +808,14 @@ def list_oci_cache_config_sets(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -904,7 +904,7 @@ def update_oci_cache_config_set(self, oci_cache_config_set_id, update_oci_cache_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oci_cache_config_set got unknown kwargs: {extra_kwargs!r}") @@ -913,9 +913,9 @@ def update_oci_cache_config_set(self, oci_cache_config_set_id, update_oci_cache_ "ociCacheConfigSetId": oci_cache_config_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -925,7 +925,7 @@ def update_oci_cache_config_set(self, oci_cache_config_set_id, update_oci_cache_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/redis/oci_cache_default_config_set_client.py b/src/oci/redis/oci_cache_default_config_set_client.py index c38461508..61cc21f87 100644 --- a/src/oci/redis/oci_cache_default_config_set_client.py +++ b/src/oci/redis/oci_cache_default_config_set_client.py @@ -163,7 +163,7 @@ def get_oci_cache_default_config_set(self, compartment_id, oci_cache_default_con "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oci_cache_default_config_set got unknown kwargs: {extra_kwargs!r}") @@ -172,23 +172,23 @@ def get_oci_cache_default_config_set(self, compartment_id, oci_cache_default_con "ociCacheDefaultConfigSetId": oci_cache_default_config_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -308,7 +308,7 @@ def list_oci_cache_default_config_sets(self, compartment_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oci_cache_default_config_sets got unknown kwargs: {extra_kwargs!r}") @@ -352,14 +352,14 @@ def list_oci_cache_default_config_sets(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/redis/oci_cache_user_client.py b/src/oci/redis/oci_cache_user_client.py index 04ddc45cd..4e43973f4 100644 --- a/src/oci/redis/oci_cache_user_client.py +++ b/src/oci/redis/oci_cache_user_client.py @@ -179,7 +179,7 @@ def change_oci_cache_user_compartment(self, oci_cache_user_id, change_oci_cache_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_oci_cache_user_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_oci_cache_user_compartment(self, oci_cache_user_id, change_oci_cache_ "ociCacheUserId": oci_cache_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_oci_cache_user_compartment(self, oci_cache_user_id, change_oci_cache_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_oci_cache_user(self, create_oci_cache_user_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_oci_cache_user got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_oci_cache_user(self, create_oci_cache_user_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -386,7 +386,7 @@ def delete_oci_cache_user(self, oci_cache_user_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_oci_cache_user got unknown kwargs: {extra_kwargs!r}") @@ -395,9 +395,9 @@ def delete_oci_cache_user(self, oci_cache_user_id, **kwargs): "ociCacheUserId": oci_cache_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -407,7 +407,7 @@ def delete_oci_cache_user(self, oci_cache_user_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -483,7 +483,7 @@ def get_oci_cache_user(self, oci_cache_user_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_oci_cache_user got unknown kwargs: {extra_kwargs!r}") @@ -492,9 +492,9 @@ def get_oci_cache_user(self, oci_cache_user_id, **kwargs): "ociCacheUserId": oci_cache_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -503,7 +503,7 @@ def get_oci_cache_user(self, oci_cache_user_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -609,7 +609,7 @@ def list_attached_redis_clusters(self, oci_cache_user_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attached_redis_clusters got unknown kwargs: {extra_kwargs!r}") @@ -618,9 +618,9 @@ def list_attached_redis_clusters(self, oci_cache_user_id, **kwargs): "ociCacheUserId": oci_cache_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -646,14 +646,14 @@ def list_attached_redis_clusters(self, oci_cache_user_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -764,7 +764,7 @@ def list_oci_cache_users(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_oci_cache_users got unknown kwargs: {extra_kwargs!r}") @@ -799,14 +799,14 @@ def list_oci_cache_users(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -895,7 +895,7 @@ def update_oci_cache_user(self, oci_cache_user_id, update_oci_cache_user_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_oci_cache_user got unknown kwargs: {extra_kwargs!r}") @@ -904,9 +904,9 @@ def update_oci_cache_user(self, oci_cache_user_id, update_oci_cache_user_details "ociCacheUserId": oci_cache_user_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -916,7 +916,7 @@ def update_oci_cache_user(self, oci_cache_user_id, update_oci_cache_user_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/redis/redis_cluster_client.py b/src/oci/redis/redis_cluster_client.py index ce8222e54..2738b6af9 100644 --- a/src/oci/redis/redis_cluster_client.py +++ b/src/oci/redis/redis_cluster_client.py @@ -181,7 +181,7 @@ def attach_oci_cache_users(self, redis_cluster_id, attach_oci_cache_users_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"attach_oci_cache_users got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def attach_oci_cache_users(self, redis_cluster_id, attach_oci_cache_users_detail "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def attach_oci_cache_users(self, redis_cluster_id, attach_oci_cache_users_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -290,7 +290,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -299,9 +299,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -311,7 +311,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -410,7 +410,7 @@ def change_redis_cluster_compartment(self, redis_cluster_id, change_redis_cluste "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_redis_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -419,9 +419,9 @@ def change_redis_cluster_compartment(self, redis_cluster_id, change_redis_cluste "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -432,7 +432,7 @@ def change_redis_cluster_compartment(self, redis_cluster_id, change_redis_cluste "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -521,7 +521,7 @@ def create_redis_cluster(self, create_redis_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_redis_cluster got unknown kwargs: {extra_kwargs!r}") @@ -532,7 +532,7 @@ def create_redis_cluster(self, create_redis_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -623,7 +623,7 @@ def delete_redis_cluster(self, redis_cluster_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_redis_cluster got unknown kwargs: {extra_kwargs!r}") @@ -632,9 +632,9 @@ def delete_redis_cluster(self, redis_cluster_id, **kwargs): "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -644,7 +644,7 @@ def delete_redis_cluster(self, redis_cluster_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -741,7 +741,7 @@ def detach_oci_cache_users(self, redis_cluster_id, detach_oci_cache_users_detail "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detach_oci_cache_users got unknown kwargs: {extra_kwargs!r}") @@ -750,9 +750,9 @@ def detach_oci_cache_users(self, redis_cluster_id, detach_oci_cache_users_detail "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -763,7 +763,7 @@ def detach_oci_cache_users(self, redis_cluster_id, detach_oci_cache_users_detail "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -846,7 +846,7 @@ def get_redis_cluster(self, redis_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_redis_cluster got unknown kwargs: {extra_kwargs!r}") @@ -855,9 +855,9 @@ def get_redis_cluster(self, redis_cluster_id, **kwargs): "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -866,7 +866,7 @@ def get_redis_cluster(self, redis_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -944,7 +944,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -953,9 +953,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -964,7 +964,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1072,7 +1072,7 @@ def list_attached_oci_cache_users(self, redis_cluster_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_attached_oci_cache_users got unknown kwargs: {extra_kwargs!r}") @@ -1081,9 +1081,9 @@ def list_attached_oci_cache_users(self, redis_cluster_id, **kwargs): "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1109,14 +1109,14 @@ def list_attached_oci_cache_users(self, redis_cluster_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1222,7 +1222,7 @@ def list_redis_cluster_nodes(self, redis_cluster_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_redis_cluster_nodes got unknown kwargs: {extra_kwargs!r}") @@ -1231,9 +1231,9 @@ def list_redis_cluster_nodes(self, redis_cluster_id, **kwargs): "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1258,14 +1258,14 @@ def list_redis_cluster_nodes(self, redis_cluster_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1384,7 +1384,7 @@ def list_redis_clusters(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_redis_clusters got unknown kwargs: {extra_kwargs!r}") @@ -1420,14 +1420,14 @@ def list_redis_clusters(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1525,7 +1525,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1534,9 +1534,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1560,14 +1560,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1667,7 +1667,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1676,9 +1676,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1702,14 +1702,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1826,7 +1826,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1862,14 +1862,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1962,7 +1962,7 @@ def update_redis_cluster(self, redis_cluster_id, update_redis_cluster_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_redis_cluster got unknown kwargs: {extra_kwargs!r}") @@ -1971,9 +1971,9 @@ def update_redis_cluster(self, redis_cluster_id, update_redis_cluster_details, * "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1983,7 +1983,7 @@ def update_redis_cluster(self, redis_cluster_id, update_redis_cluster_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/redis/redis_identity_client.py b/src/oci/redis/redis_identity_client.py index 3fb66a9bd..998d0a69f 100644 --- a/src/oci/redis/redis_identity_client.py +++ b/src/oci/redis/redis_identity_client.py @@ -181,7 +181,7 @@ def create_identity_token(self, create_identity_token_details, redis_cluster_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_identity_token got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def create_identity_token(self, create_identity_token_details, redis_cluster_id, "redisClusterId": redis_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def create_identity_token(self, create_identity_token_details, redis_cluster_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/resource_analytics/monitored_region_client.py b/src/oci/resource_analytics/monitored_region_client.py index 26320e98a..f2f79a983 100644 --- a/src/oci/resource_analytics/monitored_region_client.py +++ b/src/oci/resource_analytics/monitored_region_client.py @@ -171,7 +171,7 @@ def create_monitored_region(self, create_monitored_region_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_monitored_region got unknown kwargs: {extra_kwargs!r}") @@ -182,7 +182,7 @@ def create_monitored_region(self, create_monitored_region_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def delete_monitored_region(self, monitored_region_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_monitored_region got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def delete_monitored_region(self, monitored_region_id, **kwargs): "monitoredRegionId": monitored_region_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def delete_monitored_region(self, monitored_region_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -375,7 +375,7 @@ def get_monitored_region(self, monitored_region_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitored_region got unknown kwargs: {extra_kwargs!r}") @@ -384,9 +384,9 @@ def get_monitored_region(self, monitored_region_id, **kwargs): "monitoredRegionId": monitored_region_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -395,7 +395,7 @@ def get_monitored_region(self, monitored_region_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -521,7 +521,7 @@ def list_monitored_regions(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitored_regions got unknown kwargs: {extra_kwargs!r}") @@ -556,14 +556,14 @@ def list_monitored_regions(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/resource_analytics/resource_analytics_instance_client.py b/src/oci/resource_analytics/resource_analytics_instance_client.py index 40f7a6f2a..a69e77be6 100644 --- a/src/oci/resource_analytics/resource_analytics_instance_client.py +++ b/src/oci/resource_analytics/resource_analytics_instance_client.py @@ -172,7 +172,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -287,7 +287,7 @@ def change_resource_analytics_instance_compartment(self, resource_analytics_inst "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_resource_analytics_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -296,9 +296,9 @@ def change_resource_analytics_instance_compartment(self, resource_analytics_inst "resourceAnalyticsInstanceId": resource_analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -308,7 +308,7 @@ def change_resource_analytics_instance_compartment(self, resource_analytics_inst "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -397,7 +397,7 @@ def create_resource_analytics_instance(self, create_resource_analytics_instance_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_resource_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -408,7 +408,7 @@ def create_resource_analytics_instance(self, create_resource_analytics_instance_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -499,7 +499,7 @@ def delete_resource_analytics_instance(self, resource_analytics_instance_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_resource_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -508,9 +508,9 @@ def delete_resource_analytics_instance(self, resource_analytics_instance_id, **k "resourceAnalyticsInstanceId": resource_analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -520,7 +520,7 @@ def delete_resource_analytics_instance(self, resource_analytics_instance_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -601,7 +601,7 @@ def get_resource_analytics_instance(self, resource_analytics_instance_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -610,9 +610,9 @@ def get_resource_analytics_instance(self, resource_analytics_instance_id, **kwar "resourceAnalyticsInstanceId": resource_analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -621,7 +621,7 @@ def get_resource_analytics_instance(self, resource_analytics_instance_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -704,7 +704,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -713,9 +713,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -724,7 +724,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -854,7 +854,7 @@ def list_resource_analytics_instances(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_analytics_instances got unknown kwargs: {extra_kwargs!r}") @@ -890,14 +890,14 @@ def list_resource_analytics_instances(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1008,7 +1008,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1017,9 +1017,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1043,14 +1043,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1163,7 +1163,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1172,9 +1172,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1198,14 +1198,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1337,7 +1337,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1373,14 +1373,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1470,7 +1470,7 @@ def resource_analytics_instance_disable_oac(self, resource_analytics_instance_id "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resource_analytics_instance_disable_oac got unknown kwargs: {extra_kwargs!r}") @@ -1479,9 +1479,9 @@ def resource_analytics_instance_disable_oac(self, resource_analytics_instance_id "resourceAnalyticsInstanceId": resource_analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1491,7 +1491,7 @@ def resource_analytics_instance_disable_oac(self, resource_analytics_instance_id "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1580,7 +1580,7 @@ def resource_analytics_instance_enable_oac(self, resource_analytics_instance_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"resource_analytics_instance_enable_oac got unknown kwargs: {extra_kwargs!r}") @@ -1589,9 +1589,9 @@ def resource_analytics_instance_enable_oac(self, resource_analytics_instance_id, "resourceAnalyticsInstanceId": resource_analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1601,7 +1601,7 @@ def resource_analytics_instance_enable_oac(self, resource_analytics_instance_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1692,7 +1692,7 @@ def update_resource_analytics_instance(self, resource_analytics_instance_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_resource_analytics_instance got unknown kwargs: {extra_kwargs!r}") @@ -1701,9 +1701,9 @@ def update_resource_analytics_instance(self, resource_analytics_instance_id, upd "resourceAnalyticsInstanceId": resource_analytics_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1713,7 +1713,7 @@ def update_resource_analytics_instance(self, resource_analytics_instance_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/resource_analytics/tenancy_attachment_client.py b/src/oci/resource_analytics/tenancy_attachment_client.py index a923041cd..413492b0c 100644 --- a/src/oci/resource_analytics/tenancy_attachment_client.py +++ b/src/oci/resource_analytics/tenancy_attachment_client.py @@ -171,7 +171,7 @@ def create_tenancy_attachment(self, create_tenancy_attachment_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_tenancy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -182,7 +182,7 @@ def create_tenancy_attachment(self, create_tenancy_attachment_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def delete_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_tenancy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def delete_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "tenancyAttachmentId": tenancy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def delete_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -375,7 +375,7 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_tenancy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -384,9 +384,9 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "tenancyAttachmentId": tenancy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -395,7 +395,7 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -521,7 +521,7 @@ def list_tenancy_attachments(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_tenancy_attachments got unknown kwargs: {extra_kwargs!r}") @@ -556,14 +556,14 @@ def list_tenancy_attachments(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -656,7 +656,7 @@ def update_tenancy_attachment(self, tenancy_attachment_id, update_tenancy_attach "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_tenancy_attachment got unknown kwargs: {extra_kwargs!r}") @@ -665,9 +665,9 @@ def update_tenancy_attachment(self, tenancy_attachment_id, update_tenancy_attach "tenancyAttachmentId": tenancy_attachment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -677,7 +677,7 @@ def update_tenancy_attachment(self, tenancy_attachment_id, update_tenancy_attach "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/resource_manager/resource_manager_client.py b/src/oci/resource_manager/resource_manager_client.py index 46fab436c..8a3b3f145 100644 --- a/src/oci/resource_manager/resource_manager_client.py +++ b/src/oci/resource_manager/resource_manager_client.py @@ -187,7 +187,7 @@ def cancel_job(self, job_id, **kwargs): "if_match", "is_forced" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_job got unknown kwargs: {extra_kwargs!r}") @@ -196,16 +196,16 @@ def cancel_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isForced": kwargs.get("is_forced", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -213,7 +213,7 @@ def cancel_job(self, job_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -315,7 +315,7 @@ def change_configuration_source_provider_compartment(self, configuration_source_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_configuration_source_provider_compartment got unknown kwargs: {extra_kwargs!r}") @@ -324,9 +324,9 @@ def change_configuration_source_provider_compartment(self, configuration_source_ "configurationSourceProviderId": configuration_source_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -337,7 +337,7 @@ def change_configuration_source_provider_compartment(self, configuration_source_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -440,7 +440,7 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_private_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") @@ -449,9 +449,9 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -462,7 +462,7 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -565,7 +565,7 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stack_compartment got unknown kwargs: {extra_kwargs!r}") @@ -574,9 +574,9 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -587,7 +587,7 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -690,7 +690,7 @@ def change_template_compartment(self, template_id, change_template_compartment_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_template_compartment got unknown kwargs: {extra_kwargs!r}") @@ -699,9 +699,9 @@ def change_template_compartment(self, template_id, change_template_compartment_d "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -712,7 +712,7 @@ def change_template_compartment(self, template_id, change_template_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -804,7 +804,7 @@ def create_configuration_source_provider(self, create_configuration_source_provi "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_configuration_source_provider got unknown kwargs: {extra_kwargs!r}") @@ -815,7 +815,7 @@ def create_configuration_source_provider(self, create_configuration_source_provi "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -907,7 +907,7 @@ def create_job(self, create_job_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_job got unknown kwargs: {extra_kwargs!r}") @@ -918,7 +918,7 @@ def create_job(self, create_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1010,7 +1010,7 @@ def create_private_endpoint(self, create_private_endpoint_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1021,7 +1021,7 @@ def create_private_endpoint(self, create_private_endpoint_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1117,7 +1117,7 @@ def create_stack(self, create_stack_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stack got unknown kwargs: {extra_kwargs!r}") @@ -1128,7 +1128,7 @@ def create_stack(self, create_stack_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1220,7 +1220,7 @@ def create_template(self, create_template_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_template got unknown kwargs: {extra_kwargs!r}") @@ -1231,7 +1231,7 @@ def create_template(self, create_template_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1323,7 +1323,7 @@ def delete_configuration_source_provider(self, configuration_source_provider_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_configuration_source_provider got unknown kwargs: {extra_kwargs!r}") @@ -1332,9 +1332,9 @@ def delete_configuration_source_provider(self, configuration_source_provider_id, "configurationSourceProviderId": configuration_source_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1344,7 +1344,7 @@ def delete_configuration_source_provider(self, configuration_source_provider_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1433,7 +1433,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -1442,9 +1442,9 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1454,7 +1454,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1543,7 +1543,7 @@ def delete_stack(self, stack_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stack got unknown kwargs: {extra_kwargs!r}") @@ -1552,9 +1552,9 @@ def delete_stack(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1564,7 +1564,7 @@ def delete_stack(self, stack_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1653,7 +1653,7 @@ def delete_template(self, template_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_template got unknown kwargs: {extra_kwargs!r}") @@ -1662,9 +1662,9 @@ def delete_template(self, template_id, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1674,7 +1674,7 @@ def delete_template(self, template_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1775,7 +1775,7 @@ def detect_stack_drift(self, stack_id, **kwargs): "opc_retry_token", "detect_stack_drift_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"detect_stack_drift got unknown kwargs: {extra_kwargs!r}") @@ -1784,9 +1784,9 @@ def detect_stack_drift(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1797,7 +1797,7 @@ def detect_stack_drift(self, stack_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1883,7 +1883,7 @@ def get_configuration_source_provider(self, configuration_source_provider_id, ** "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration_source_provider got unknown kwargs: {extra_kwargs!r}") @@ -1892,9 +1892,9 @@ def get_configuration_source_provider(self, configuration_source_provider_id, ** "configurationSourceProviderId": configuration_source_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1903,7 +1903,7 @@ def get_configuration_source_provider(self, configuration_source_provider_id, ** "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1988,7 +1988,7 @@ def get_job(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job got unknown kwargs: {extra_kwargs!r}") @@ -1997,9 +1997,9 @@ def get_job(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2008,7 +2008,7 @@ def get_job(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2095,7 +2095,7 @@ def get_job_detailed_log_content(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_detailed_log_content got unknown kwargs: {extra_kwargs!r}") @@ -2104,9 +2104,9 @@ def get_job_detailed_log_content(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2115,7 +2115,7 @@ def get_job_detailed_log_content(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2242,7 +2242,7 @@ def get_job_logs(self, job_id, **kwargs): "timestamp_greater_than_or_equal_to", "timestamp_less_than_or_equal_to" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_logs got unknown kwargs: {extra_kwargs!r}") @@ -2251,9 +2251,9 @@ def get_job_logs(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2280,14 +2280,14 @@ def get_job_logs(self, job_id, **kwargs): "timestampGreaterThanOrEqualTo": kwargs.get("timestamp_greater_than_or_equal_to", missing), "timestampLessThanOrEqualTo": kwargs.get("timestamp_less_than_or_equal_to", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2375,7 +2375,7 @@ def get_job_logs_content(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_logs_content got unknown kwargs: {extra_kwargs!r}") @@ -2384,9 +2384,9 @@ def get_job_logs_content(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2395,7 +2395,7 @@ def get_job_logs_content(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2481,7 +2481,7 @@ def get_job_tf_config(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_tf_config got unknown kwargs: {extra_kwargs!r}") @@ -2490,9 +2490,9 @@ def get_job_tf_config(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2501,7 +2501,7 @@ def get_job_tf_config(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2592,7 +2592,7 @@ def get_job_tf_plan(self, job_id, **kwargs): "opc_request_id", "tf_plan_format" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_tf_plan got unknown kwargs: {extra_kwargs!r}") @@ -2601,9 +2601,9 @@ def get_job_tf_plan(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2617,14 +2617,14 @@ def get_job_tf_plan(self, job_id, **kwargs): query_params = { "tfPlanFormat": kwargs.get("tf_plan_format", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/octet-stream", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2711,7 +2711,7 @@ def get_job_tf_state(self, job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_job_tf_state got unknown kwargs: {extra_kwargs!r}") @@ -2720,9 +2720,9 @@ def get_job_tf_state(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2731,7 +2731,7 @@ def get_job_tf_state(self, job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2816,7 +2816,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -2825,9 +2825,9 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2836,7 +2836,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2933,7 +2933,7 @@ def get_reachable_ip(self, private_ip, private_endpoint_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_reachable_ip got unknown kwargs: {extra_kwargs!r}") @@ -2942,16 +2942,16 @@ def get_reachable_ip(self, private_ip, private_endpoint_id, **kwargs): "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "privateIp": private_ip } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2959,7 +2959,7 @@ def get_reachable_ip(self, private_ip, private_endpoint_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3047,7 +3047,7 @@ def get_stack(self, stack_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stack got unknown kwargs: {extra_kwargs!r}") @@ -3056,9 +3056,9 @@ def get_stack(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3067,7 +3067,7 @@ def get_stack(self, stack_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3153,7 +3153,7 @@ def get_stack_tf_config(self, stack_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stack_tf_config got unknown kwargs: {extra_kwargs!r}") @@ -3162,9 +3162,9 @@ def get_stack_tf_config(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3173,7 +3173,7 @@ def get_stack_tf_config(self, stack_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3258,7 +3258,7 @@ def get_stack_tf_state(self, stack_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stack_tf_state got unknown kwargs: {extra_kwargs!r}") @@ -3267,9 +3267,9 @@ def get_stack_tf_state(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3278,7 +3278,7 @@ def get_stack_tf_state(self, stack_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3363,7 +3363,7 @@ def get_template(self, template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_template got unknown kwargs: {extra_kwargs!r}") @@ -3372,9 +3372,9 @@ def get_template(self, template_id, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3383,7 +3383,7 @@ def get_template(self, template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3469,7 +3469,7 @@ def get_template_logo(self, template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_template_logo got unknown kwargs: {extra_kwargs!r}") @@ -3478,9 +3478,9 @@ def get_template_logo(self, template_id, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3489,7 +3489,7 @@ def get_template_logo(self, template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3575,7 +3575,7 @@ def get_template_tf_config(self, template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_template_tf_config got unknown kwargs: {extra_kwargs!r}") @@ -3584,9 +3584,9 @@ def get_template_tf_config(self, template_id, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3595,7 +3595,7 @@ def get_template_tf_config(self, template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3680,7 +3680,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3689,9 +3689,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3700,7 +3700,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3833,7 +3833,7 @@ def list_configuration_source_providers(self, **kwargs): "page", "config_source_provider_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_configuration_source_providers got unknown kwargs: {extra_kwargs!r}") @@ -3862,14 +3862,14 @@ def list_configuration_source_providers(self, **kwargs): "page": kwargs.get("page", missing), "configSourceProviderType": kwargs.get("config_source_provider_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3981,7 +3981,7 @@ def list_job_associated_resources(self, job_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_associated_resources got unknown kwargs: {extra_kwargs!r}") @@ -3990,9 +3990,9 @@ def list_job_associated_resources(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4002,14 +4002,14 @@ def list_job_associated_resources(self, job_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4116,7 +4116,7 @@ def list_job_outputs(self, job_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_job_outputs got unknown kwargs: {extra_kwargs!r}") @@ -4125,9 +4125,9 @@ def list_job_outputs(self, job_id, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4136,14 +4136,14 @@ def list_job_outputs(self, job_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4292,7 +4292,7 @@ def list_jobs(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_jobs got unknown kwargs: {extra_kwargs!r}") @@ -4329,14 +4329,14 @@ def list_jobs(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4471,7 +4471,7 @@ def list_private_endpoints(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_endpoints got unknown kwargs: {extra_kwargs!r}") @@ -4500,14 +4500,14 @@ def list_private_endpoints(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4596,7 +4596,7 @@ def list_resource_discovery_services(self, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_discovery_services got unknown kwargs: {extra_kwargs!r}") @@ -4604,14 +4604,14 @@ def list_resource_discovery_services(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4723,7 +4723,7 @@ def list_stack_associated_resources(self, stack_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stack_associated_resources got unknown kwargs: {extra_kwargs!r}") @@ -4732,9 +4732,9 @@ def list_stack_associated_resources(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4744,14 +4744,14 @@ def list_stack_associated_resources(self, stack_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4866,7 +4866,7 @@ def list_stack_resource_drift_details(self, stack_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stack_resource_drift_details got unknown kwargs: {extra_kwargs!r}") @@ -4875,9 +4875,9 @@ def list_stack_resource_drift_details(self, stack_id, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4887,14 +4887,14 @@ def list_stack_resource_drift_details(self, stack_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5036,7 +5036,7 @@ def list_stacks(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stacks got unknown kwargs: {extra_kwargs!r}") @@ -5072,14 +5072,14 @@ def list_stacks(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5159,7 +5159,7 @@ def list_template_categories(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_template_categories got unknown kwargs: {extra_kwargs!r}") @@ -5169,7 +5169,7 @@ def list_template_categories(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5303,7 +5303,7 @@ def list_templates(self, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_templates got unknown kwargs: {extra_kwargs!r}") @@ -5332,14 +5332,14 @@ def list_templates(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5425,7 +5425,7 @@ def list_terraform_versions(self, **kwargs): "opc_request_id", "compartment_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_terraform_versions got unknown kwargs: {extra_kwargs!r}") @@ -5433,14 +5433,14 @@ def list_terraform_versions(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5551,7 +5551,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -5560,9 +5560,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5579,14 +5579,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5699,7 +5699,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -5708,9 +5708,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5727,14 +5727,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5841,7 +5841,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -5852,14 +5852,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5953,7 +5953,7 @@ def update_configuration_source_provider(self, configuration_source_provider_id, "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration_source_provider got unknown kwargs: {extra_kwargs!r}") @@ -5962,9 +5962,9 @@ def update_configuration_source_provider(self, configuration_source_provider_id, "configurationSourceProviderId": configuration_source_provider_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5974,7 +5974,7 @@ def update_configuration_source_provider(self, configuration_source_provider_id, "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6070,7 +6070,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_job got unknown kwargs: {extra_kwargs!r}") @@ -6079,9 +6079,9 @@ def update_job(self, job_id, update_job_details, **kwargs): "jobId": job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6091,7 +6091,7 @@ def update_job(self, job_id, update_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6187,7 +6187,7 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_endpoint got unknown kwargs: {extra_kwargs!r}") @@ -6196,9 +6196,9 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d "privateEndpointId": private_endpoint_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6208,7 +6208,7 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6306,7 +6306,7 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stack got unknown kwargs: {extra_kwargs!r}") @@ -6315,9 +6315,9 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): "stackId": stack_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6327,7 +6327,7 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6423,7 +6423,7 @@ def update_template(self, template_id, update_template_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_template got unknown kwargs: {extra_kwargs!r}") @@ -6432,9 +6432,9 @@ def update_template(self, template_id, update_template_details, **kwargs): "templateId": template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6444,7 +6444,7 @@ def update_template(self, template_id, update_template_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/resource_scheduler/schedule_client.py b/src/oci/resource_scheduler/schedule_client.py index d677415dc..0e1df3f15 100644 --- a/src/oci/resource_scheduler/schedule_client.py +++ b/src/oci/resource_scheduler/schedule_client.py @@ -180,7 +180,7 @@ def activate_schedule(self, schedule_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_schedule got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def activate_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def activate_schedule(self, schedule_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -293,7 +293,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -302,9 +302,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -314,7 +314,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -416,7 +416,7 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_schedule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -425,9 +425,9 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -438,7 +438,7 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -528,7 +528,7 @@ def create_schedule(self, create_schedule_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_schedule got unknown kwargs: {extra_kwargs!r}") @@ -539,7 +539,7 @@ def create_schedule(self, create_schedule_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -638,7 +638,7 @@ def deactivate_schedule(self, schedule_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_schedule got unknown kwargs: {extra_kwargs!r}") @@ -647,9 +647,9 @@ def deactivate_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -660,7 +660,7 @@ def deactivate_schedule(self, schedule_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -751,7 +751,7 @@ def delete_schedule(self, schedule_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_schedule got unknown kwargs: {extra_kwargs!r}") @@ -760,9 +760,9 @@ def delete_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -772,7 +772,7 @@ def delete_schedule(self, schedule_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -853,7 +853,7 @@ def get_schedule(self, schedule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_schedule got unknown kwargs: {extra_kwargs!r}") @@ -862,9 +862,9 @@ def get_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -873,7 +873,7 @@ def get_schedule(self, schedule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -956,7 +956,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -965,9 +965,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -976,7 +976,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1076,7 +1076,7 @@ def list_resource_types(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -1086,14 +1086,14 @@ def list_resource_types(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1231,7 +1231,7 @@ def list_schedules(self, **kwargs): "opc_request_id", "resource_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schedules got unknown kwargs: {extra_kwargs!r}") @@ -1268,14 +1268,14 @@ def list_schedules(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "resourceId": kwargs.get("resource_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1386,7 +1386,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1395,9 +1395,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1421,14 +1421,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1541,7 +1541,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1550,9 +1550,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1576,14 +1576,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1723,7 +1723,7 @@ def list_work_requests(self, **kwargs): "schedule_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1760,14 +1760,14 @@ def list_work_requests(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "scheduleId": kwargs.get("schedule_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1860,7 +1860,7 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1869,9 +1869,9 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1881,7 +1881,7 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/resource_search/resource_search_client.py b/src/oci/resource_search/resource_search_client.py index d709fa4bd..2127c160c 100644 --- a/src/oci/resource_search/resource_search_client.py +++ b/src/oci/resource_search/resource_search_client.py @@ -161,7 +161,7 @@ def get_resource_type(self, name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_resource_type got unknown kwargs: {extra_kwargs!r}") @@ -170,9 +170,9 @@ def get_resource_type(self, name, **kwargs): "name": name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -181,7 +181,7 @@ def get_resource_type(self, name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -265,7 +265,7 @@ def list_resource_types(self, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -274,14 +274,14 @@ def list_resource_types(self, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -374,7 +374,7 @@ def search_resources(self, search_details, **kwargs): "tenant_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_resources got unknown kwargs: {extra_kwargs!r}") @@ -384,14 +384,14 @@ def search_resources(self, search_details, **kwargs): "page": kwargs.get("page", missing), "tenantId": kwargs.get("tenant_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/rover/rover_bundle_client.py b/src/oci/rover/rover_bundle_client.py index dff6f57f6..911fd99ed 100644 --- a/src/oci/rover/rover_bundle_client.py +++ b/src/oci/rover/rover_bundle_client.py @@ -180,7 +180,7 @@ def list_rover_cluster_rover_bundle_requests(self, rover_cluster_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rover_cluster_rover_bundle_requests got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def list_rover_cluster_rover_bundle_requests(self, rover_cluster_id, **kwargs): "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -215,14 +215,14 @@ def list_rover_cluster_rover_bundle_requests(self, rover_cluster_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -322,7 +322,7 @@ def list_rover_node_rover_bundle_requests(self, rover_node_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rover_node_rover_bundle_requests got unknown kwargs: {extra_kwargs!r}") @@ -331,9 +331,9 @@ def list_rover_node_rover_bundle_requests(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -357,14 +357,14 @@ def list_rover_node_rover_bundle_requests(self, rover_node_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -447,7 +447,7 @@ def request_bundle_rover_cluster(self, request_rover_bundle_details, rover_clust "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_bundle_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -456,9 +456,9 @@ def request_bundle_rover_cluster(self, request_rover_bundle_details, rover_clust "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -467,7 +467,7 @@ def request_bundle_rover_cluster(self, request_rover_bundle_details, rover_clust "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -548,7 +548,7 @@ def request_bundle_rover_node(self, request_rover_bundle_details, rover_node_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_bundle_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -557,9 +557,9 @@ def request_bundle_rover_node(self, request_rover_bundle_details, rover_node_id, "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -568,7 +568,7 @@ def request_bundle_rover_node(self, request_rover_bundle_details, rover_node_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -649,7 +649,7 @@ def retrieve_available_bundle_versions_rover_cluster(self, current_rover_bundle_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_available_bundle_versions_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -658,9 +658,9 @@ def retrieve_available_bundle_versions_rover_cluster(self, current_rover_bundle_ "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -669,7 +669,7 @@ def retrieve_available_bundle_versions_rover_cluster(self, current_rover_bundle_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -752,7 +752,7 @@ def retrieve_available_bundle_versions_rover_node(self, current_rover_bundle_det "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_available_bundle_versions_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -761,9 +761,9 @@ def retrieve_available_bundle_versions_rover_node(self, current_rover_bundle_det "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -772,7 +772,7 @@ def retrieve_available_bundle_versions_rover_node(self, current_rover_bundle_det "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -855,7 +855,7 @@ def retrieve_bundle_status_rover_cluster(self, rover_bundle_status_details, rove "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_bundle_status_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -864,9 +864,9 @@ def retrieve_bundle_status_rover_cluster(self, rover_bundle_status_details, rove "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -875,7 +875,7 @@ def retrieve_bundle_status_rover_cluster(self, rover_bundle_status_details, rove "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -958,7 +958,7 @@ def retrieve_bundle_status_rover_node(self, rover_bundle_status_details, rover_n "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retrieve_bundle_status_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -967,9 +967,9 @@ def retrieve_bundle_status_rover_node(self, rover_bundle_status_details, rover_n "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -978,7 +978,7 @@ def retrieve_bundle_status_rover_node(self, rover_bundle_status_details, rover_n "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/rover/rover_cluster_client.py b/src/oci/rover/rover_cluster_client.py index 5b4edfdf9..09753937f 100644 --- a/src/oci/rover/rover_cluster_client.py +++ b/src/oci/rover/rover_cluster_client.py @@ -179,7 +179,7 @@ def change_rover_cluster_compartment(self, rover_cluster_id, change_rover_cluste "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_rover_cluster_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_rover_cluster_compartment(self, rover_cluster_id, change_rover_cluste "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_rover_cluster_compartment(self, rover_cluster_id, change_rover_cluste "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_rover_cluster(self, create_rover_cluster_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_rover_cluster(self, create_rover_cluster_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def delete_rover_cluster(self, rover_cluster_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def delete_rover_cluster(self, rover_cluster_id, **kwargs): "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def delete_rover_cluster(self, rover_cluster_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -493,7 +493,7 @@ def get_rover_cluster(self, rover_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -502,9 +502,9 @@ def get_rover_cluster(self, rover_cluster_id, **kwargs): "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -513,7 +513,7 @@ def get_rover_cluster(self, rover_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -591,7 +591,7 @@ def get_rover_cluster_certificate(self, rover_cluster_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_cluster_certificate got unknown kwargs: {extra_kwargs!r}") @@ -600,9 +600,9 @@ def get_rover_cluster_certificate(self, rover_cluster_id, **kwargs): "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -611,7 +611,7 @@ def get_rover_cluster_certificate(self, rover_cluster_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -725,7 +725,7 @@ def list_rover_clusters(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rover_clusters got unknown kwargs: {extra_kwargs!r}") @@ -768,14 +768,14 @@ def list_rover_clusters(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -872,7 +872,7 @@ def request_additional_nodes(self, rover_cluster_id, request_additional_nodes_de "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_additional_nodes got unknown kwargs: {extra_kwargs!r}") @@ -881,9 +881,9 @@ def request_additional_nodes(self, rover_cluster_id, request_additional_nodes_de "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -894,7 +894,7 @@ def request_additional_nodes(self, rover_cluster_id, request_additional_nodes_de "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -984,7 +984,7 @@ def update_rover_cluster(self, rover_cluster_id, update_rover_cluster_details, * "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_rover_cluster got unknown kwargs: {extra_kwargs!r}") @@ -993,9 +993,9 @@ def update_rover_cluster(self, rover_cluster_id, update_rover_cluster_details, * "roverClusterId": rover_cluster_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1005,7 +1005,7 @@ def update_rover_cluster(self, rover_cluster_id, update_rover_cluster_details, * "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/rover/rover_entitlement_client.py b/src/oci/rover/rover_entitlement_client.py index 84c6029f7..1e904d6e3 100644 --- a/src/oci/rover/rover_entitlement_client.py +++ b/src/oci/rover/rover_entitlement_client.py @@ -179,7 +179,7 @@ def change_rover_entitlement_compartment(self, rover_entitlement_id, change_rove "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_rover_entitlement_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_rover_entitlement_compartment(self, rover_entitlement_id, change_rove "roverEntitlementId": rover_entitlement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_rover_entitlement_compartment(self, rover_entitlement_id, change_rove "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_rover_entitlement(self, create_rover_entitlement_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_rover_entitlement got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_rover_entitlement(self, create_rover_entitlement_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def delete_rover_entitlement(self, rover_entitlement_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rover_entitlement got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def delete_rover_entitlement(self, rover_entitlement_id, **kwargs): "roverEntitlementId": rover_entitlement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def delete_rover_entitlement(self, rover_entitlement_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -504,7 +504,7 @@ def get_rover_entitlement(self, rover_entitlement_id, compartment_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_entitlement got unknown kwargs: {extra_kwargs!r}") @@ -513,16 +513,16 @@ def get_rover_entitlement(self, rover_entitlement_id, compartment_id, **kwargs): "roverEntitlementId": rover_entitlement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -530,7 +530,7 @@ def get_rover_entitlement(self, rover_entitlement_id, compartment_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -645,7 +645,7 @@ def list_rover_entitlements(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rover_entitlements got unknown kwargs: {extra_kwargs!r}") @@ -681,14 +681,14 @@ def list_rover_entitlements(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -777,7 +777,7 @@ def update_rover_entitlement(self, rover_entitlement_id, update_rover_entitlemen "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_rover_entitlement got unknown kwargs: {extra_kwargs!r}") @@ -786,9 +786,9 @@ def update_rover_entitlement(self, rover_entitlement_id, update_rover_entitlemen "roverEntitlementId": rover_entitlement_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -798,7 +798,7 @@ def update_rover_entitlement(self, rover_entitlement_id, update_rover_entitlemen "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/rover/rover_node_client.py b/src/oci/rover/rover_node_client.py index 32eeaa819..52e5d2d61 100644 --- a/src/oci/rover/rover_node_client.py +++ b/src/oci/rover/rover_node_client.py @@ -179,7 +179,7 @@ def change_rover_node_compartment(self, rover_node_id, change_rover_node_compart "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_rover_node_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_rover_node_compartment(self, rover_node_id, change_rover_node_compart "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_rover_node_compartment(self, rover_node_id, change_rover_node_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -288,7 +288,7 @@ def create_rover_node(self, create_rover_node_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -299,7 +299,7 @@ def create_rover_node(self, create_rover_node_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def delete_rover_node(self, rover_node_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def delete_rover_node(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def delete_rover_node(self, rover_node_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -493,7 +493,7 @@ def get_rover_node(self, rover_node_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -502,9 +502,9 @@ def get_rover_node(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -513,7 +513,7 @@ def get_rover_node(self, rover_node_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -591,7 +591,7 @@ def get_rover_node_certificate(self, rover_node_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_node_certificate got unknown kwargs: {extra_kwargs!r}") @@ -600,9 +600,9 @@ def get_rover_node_certificate(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -611,7 +611,7 @@ def get_rover_node_certificate(self, rover_node_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -689,7 +689,7 @@ def get_rover_node_encryption_key(self, rover_node_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_node_encryption_key got unknown kwargs: {extra_kwargs!r}") @@ -698,9 +698,9 @@ def get_rover_node_encryption_key(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -709,7 +709,7 @@ def get_rover_node_encryption_key(self, rover_node_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -791,7 +791,7 @@ def get_rover_node_get_rpt(self, rover_node_id, jwt, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_rover_node_get_rpt got unknown kwargs: {extra_kwargs!r}") @@ -800,9 +800,9 @@ def get_rover_node_get_rpt(self, rover_node_id, jwt, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -812,7 +812,7 @@ def get_rover_node_get_rpt(self, rover_node_id, jwt, **kwargs): "jwt": jwt, "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -930,7 +930,7 @@ def list_rover_nodes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rover_nodes got unknown kwargs: {extra_kwargs!r}") @@ -974,14 +974,14 @@ def list_rover_nodes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1075,7 +1075,7 @@ def rover_node_action_retrieve_ca_bundle(self, rover_node_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rover_node_action_retrieve_ca_bundle got unknown kwargs: {extra_kwargs!r}") @@ -1084,9 +1084,9 @@ def rover_node_action_retrieve_ca_bundle(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1097,7 +1097,7 @@ def rover_node_action_retrieve_ca_bundle(self, rover_node_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1199,7 +1199,7 @@ def rover_node_action_set_key(self, rover_node_id, jwt, rover_node_action_set_ke "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rover_node_action_set_key got unknown kwargs: {extra_kwargs!r}") @@ -1208,9 +1208,9 @@ def rover_node_action_set_key(self, rover_node_id, jwt, rover_node_action_set_ke "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1222,7 +1222,7 @@ def rover_node_action_set_key(self, rover_node_id, jwt, rover_node_action_set_ke "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1322,7 +1322,7 @@ def rover_node_generate_certificate(self, rover_node_generate_certificate_detail "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rover_node_generate_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1331,9 +1331,9 @@ def rover_node_generate_certificate(self, rover_node_generate_certificate_detail "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1344,7 +1344,7 @@ def rover_node_generate_certificate(self, rover_node_generate_certificate_detail "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1444,7 +1444,7 @@ def rover_node_renew_certificate(self, rover_node_renew_certificate_details, rov "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rover_node_renew_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1453,9 +1453,9 @@ def rover_node_renew_certificate(self, rover_node_renew_certificate_details, rov "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1466,7 +1466,7 @@ def rover_node_renew_certificate(self, rover_node_renew_certificate_details, rov "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1566,7 +1566,7 @@ def rover_node_replace_certificate_authority(self, rover_node_replace_certificat "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rover_node_replace_certificate_authority got unknown kwargs: {extra_kwargs!r}") @@ -1575,9 +1575,9 @@ def rover_node_replace_certificate_authority(self, rover_node_replace_certificat "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1588,7 +1588,7 @@ def rover_node_replace_certificate_authority(self, rover_node_replace_certificat "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1685,7 +1685,7 @@ def rover_node_retrieve_leaf_certificate(self, rover_node_id, **kwargs): "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rover_node_retrieve_leaf_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1694,9 +1694,9 @@ def rover_node_retrieve_leaf_certificate(self, rover_node_id, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1707,7 +1707,7 @@ def rover_node_retrieve_leaf_certificate(self, rover_node_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1797,7 +1797,7 @@ def update_rover_node(self, rover_node_id, update_rover_node_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_rover_node got unknown kwargs: {extra_kwargs!r}") @@ -1806,9 +1806,9 @@ def update_rover_node(self, rover_node_id, update_rover_node_details, **kwargs): "roverNodeId": rover_node_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1818,7 +1818,7 @@ def update_rover_node(self, rover_node_id, update_rover_node_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/rover/shape_client.py b/src/oci/rover/shape_client.py index 4249cb1fd..a88fdafff 100644 --- a/src/oci/rover/shape_client.py +++ b/src/oci/rover/shape_client.py @@ -180,7 +180,7 @@ def list_shapes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_shapes got unknown kwargs: {extra_kwargs!r}") @@ -206,14 +206,14 @@ def list_shapes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/rover/work_requests_client.py b/src/oci/rover/work_requests_client.py index b21565647..5c6dac481 100644 --- a/src/oci/rover/work_requests_client.py +++ b/src/oci/rover/work_requests_client.py @@ -176,7 +176,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -275,7 +275,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -284,9 +284,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -295,7 +295,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -393,7 +393,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -402,9 +402,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -428,14 +428,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -535,7 +535,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -544,9 +544,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -570,14 +570,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -693,7 +693,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -736,14 +736,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/sch/connector_plugins_client.py b/src/oci/sch/connector_plugins_client.py index b3fa0c769..364ac26c0 100644 --- a/src/oci/sch/connector_plugins_client.py +++ b/src/oci/sch/connector_plugins_client.py @@ -164,7 +164,7 @@ def get_connector_plugin(self, connector_plugin_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connector_plugin got unknown kwargs: {extra_kwargs!r}") @@ -173,9 +173,9 @@ def get_connector_plugin(self, connector_plugin_name, **kwargs): "connectorPluginName": connector_plugin_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -184,7 +184,7 @@ def get_connector_plugin(self, connector_plugin_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -309,7 +309,7 @@ def list_connector_plugins(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connector_plugins got unknown kwargs: {extra_kwargs!r}") @@ -344,14 +344,14 @@ def list_connector_plugins(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/sch/service_connector_client.py b/src/oci/sch/service_connector_client.py index d445e30b9..946430a62 100644 --- a/src/oci/sch/service_connector_client.py +++ b/src/oci/sch/service_connector_client.py @@ -190,7 +190,7 @@ def activate_service_connector(self, service_connector_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_service_connector got unknown kwargs: {extra_kwargs!r}") @@ -199,9 +199,9 @@ def activate_service_connector(self, service_connector_id, **kwargs): "serviceConnectorId": service_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -212,7 +212,7 @@ def activate_service_connector(self, service_connector_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -309,7 +309,7 @@ def change_service_connector_compartment(self, service_connector_id, change_serv "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_service_connector_compartment got unknown kwargs: {extra_kwargs!r}") @@ -318,9 +318,9 @@ def change_service_connector_compartment(self, service_connector_id, change_serv "serviceConnectorId": service_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -330,7 +330,7 @@ def change_service_connector_compartment(self, service_connector_id, change_serv "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -442,7 +442,7 @@ def create_service_connector(self, create_service_connector_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service_connector got unknown kwargs: {extra_kwargs!r}") @@ -453,7 +453,7 @@ def create_service_connector(self, create_service_connector_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -556,7 +556,7 @@ def deactivate_service_connector(self, service_connector_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"deactivate_service_connector got unknown kwargs: {extra_kwargs!r}") @@ -565,9 +565,9 @@ def deactivate_service_connector(self, service_connector_id, **kwargs): "serviceConnectorId": service_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -578,7 +578,7 @@ def deactivate_service_connector(self, service_connector_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -673,7 +673,7 @@ def delete_service_connector(self, service_connector_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service_connector got unknown kwargs: {extra_kwargs!r}") @@ -682,9 +682,9 @@ def delete_service_connector(self, service_connector_id, **kwargs): "serviceConnectorId": service_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -694,7 +694,7 @@ def delete_service_connector(self, service_connector_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -777,7 +777,7 @@ def get_service_connector(self, service_connector_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_connector got unknown kwargs: {extra_kwargs!r}") @@ -786,9 +786,9 @@ def get_service_connector(self, service_connector_id, **kwargs): "serviceConnectorId": service_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -797,7 +797,7 @@ def get_service_connector(self, service_connector_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -882,7 +882,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -891,9 +891,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -902,7 +902,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1030,7 +1030,7 @@ def list_service_connectors(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_connectors got unknown kwargs: {extra_kwargs!r}") @@ -1065,14 +1065,14 @@ def list_service_connectors(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1173,7 +1173,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1182,9 +1182,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1192,14 +1192,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1302,7 +1302,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1311,9 +1311,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1321,14 +1321,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1431,7 +1431,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1441,14 +1441,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1548,7 +1548,7 @@ def update_service_connector(self, service_connector_id, update_service_connecto "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_service_connector got unknown kwargs: {extra_kwargs!r}") @@ -1557,9 +1557,9 @@ def update_service_connector(self, service_connector_id, update_service_connecto "serviceConnectorId": service_connector_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1569,7 +1569,7 @@ def update_service_connector(self, service_connector_id, update_service_connecto "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/secrets/secrets_client.py b/src/oci/secrets/secrets_client.py index c83f64528..6e5428ef2 100644 --- a/src/oci/secrets/secrets_client.py +++ b/src/oci/secrets/secrets_client.py @@ -175,7 +175,7 @@ def get_secret_bundle(self, secret_id, **kwargs): "secret_version_name", "stage" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_secret_bundle got unknown kwargs: {extra_kwargs!r}") @@ -184,9 +184,9 @@ def get_secret_bundle(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,14 +202,14 @@ def get_secret_bundle(self, secret_id, **kwargs): "secretVersionName": kwargs.get("secret_version_name", missing), "stage": kwargs.get("stage", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -307,7 +307,7 @@ def get_secret_bundle_by_name(self, secret_name, vault_id, **kwargs): "secret_version_name", "stage" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_secret_bundle_by_name got unknown kwargs: {extra_kwargs!r}") @@ -326,14 +326,14 @@ def get_secret_bundle_by_name(self, secret_name, vault_id, **kwargs): "secretVersionName": kwargs.get("secret_version_name", missing), "stage": kwargs.get("stage", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -438,7 +438,7 @@ def list_secret_bundle_versions(self, secret_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_secret_bundle_versions got unknown kwargs: {extra_kwargs!r}") @@ -447,9 +447,9 @@ def list_secret_bundle_versions(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -473,14 +473,14 @@ def list_secret_bundle_versions(self, secret_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/security_attribute/security_attribute_client.py b/src/oci/security_attribute/security_attribute_client.py index a16709000..1f52250fa 100644 --- a/src/oci/security_attribute/security_attribute_client.py +++ b/src/oci/security_attribute/security_attribute_client.py @@ -186,7 +186,7 @@ def bulk_delete_security_attributes(self, bulk_delete_security_attributes_detail "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_delete_security_attributes got unknown kwargs: {extra_kwargs!r}") @@ -197,7 +197,7 @@ def bulk_delete_security_attributes(self, bulk_delete_security_attributes_detail "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -295,7 +295,7 @@ def bulk_edit_security_attributes(self, **kwargs): "opc_retry_token", "bulk_edit_security_attribute_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_edit_security_attributes got unknown kwargs: {extra_kwargs!r}") @@ -306,7 +306,7 @@ def bulk_edit_security_attributes(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -419,7 +419,7 @@ def cascading_delete_security_attribute_namespace(self, security_attribute_names "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cascading_delete_security_attribute_namespace got unknown kwargs: {extra_kwargs!r}") @@ -428,9 +428,9 @@ def cascading_delete_security_attribute_namespace(self, security_attribute_names "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -441,7 +441,7 @@ def cascading_delete_security_attribute_namespace(self, security_attribute_names "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -546,7 +546,7 @@ def change_security_attribute_namespace_compartment(self, security_attribute_nam "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_security_attribute_namespace_compartment got unknown kwargs: {extra_kwargs!r}") @@ -555,9 +555,9 @@ def change_security_attribute_namespace_compartment(self, security_attribute_nam "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -568,7 +568,7 @@ def change_security_attribute_namespace_compartment(self, security_attribute_nam "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -677,7 +677,7 @@ def create_security_attribute(self, security_attribute_namespace_id, create_secu "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_attribute got unknown kwargs: {extra_kwargs!r}") @@ -686,9 +686,9 @@ def create_security_attribute(self, security_attribute_namespace_id, create_secu "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -698,7 +698,7 @@ def create_security_attribute(self, security_attribute_namespace_id, create_secu "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -803,7 +803,7 @@ def create_security_attribute_namespace(self, create_security_attribute_namespac "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_security_attribute_namespace got unknown kwargs: {extra_kwargs!r}") @@ -814,7 +814,7 @@ def create_security_attribute_namespace(self, create_security_attribute_namespac "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -927,7 +927,7 @@ def delete_security_attribute(self, security_attribute_namespace_id, security_at "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_attribute got unknown kwargs: {extra_kwargs!r}") @@ -937,9 +937,9 @@ def delete_security_attribute(self, security_attribute_namespace_id, security_at "securityAttributeName": security_attribute_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -950,7 +950,7 @@ def delete_security_attribute(self, security_attribute_namespace_id, security_at "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1047,7 +1047,7 @@ def delete_security_attribute_namespace(self, security_attribute_namespace_id, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_security_attribute_namespace got unknown kwargs: {extra_kwargs!r}") @@ -1056,9 +1056,9 @@ def delete_security_attribute_namespace(self, security_attribute_namespace_id, * "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1069,7 +1069,7 @@ def delete_security_attribute_namespace(self, security_attribute_namespace_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1152,7 +1152,7 @@ def get_security_attribute(self, security_attribute_namespace_id, security_attri "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_attribute got unknown kwargs: {extra_kwargs!r}") @@ -1162,9 +1162,9 @@ def get_security_attribute(self, security_attribute_namespace_id, security_attri "securityAttributeName": security_attribute_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1173,7 +1173,7 @@ def get_security_attribute(self, security_attribute_namespace_id, security_attri "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1254,7 +1254,7 @@ def get_security_attribute_namespace(self, security_attribute_namespace_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_attribute_namespace got unknown kwargs: {extra_kwargs!r}") @@ -1263,9 +1263,9 @@ def get_security_attribute_namespace(self, security_attribute_namespace_id, **kw "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1274,7 +1274,7 @@ def get_security_attribute_namespace(self, security_attribute_namespace_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1356,7 +1356,7 @@ def get_security_attribute_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_security_attribute_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1365,9 +1365,9 @@ def get_security_attribute_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1376,7 +1376,7 @@ def get_security_attribute_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1502,7 +1502,7 @@ def list_security_attribute_namespaces(self, **kwargs): "compartment_id_in_subtree", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_attribute_namespaces got unknown kwargs: {extra_kwargs!r}") @@ -1538,14 +1538,14 @@ def list_security_attribute_namespaces(self, **kwargs): "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1634,7 +1634,7 @@ def list_security_attribute_work_request_errors(self, work_request_id, **kwargs) "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_attribute_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1643,9 +1643,9 @@ def list_security_attribute_work_request_errors(self, work_request_id, **kwargs) "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1653,14 +1653,14 @@ def list_security_attribute_work_request_errors(self, work_request_id, **kwargs) "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1751,7 +1751,7 @@ def list_security_attribute_work_request_logs(self, work_request_id, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_attribute_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1760,9 +1760,9 @@ def list_security_attribute_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1770,14 +1770,14 @@ def list_security_attribute_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1875,7 +1875,7 @@ def list_security_attribute_work_requests(self, **kwargs): "resource_identifier", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_attribute_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1886,14 +1886,14 @@ def list_security_attribute_work_requests(self, **kwargs): "limit": kwargs.get("limit", missing), "resourceIdentifier": kwargs.get("resource_identifier", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1988,7 +1988,7 @@ def list_security_attributes(self, security_attribute_namespace_id, **kwargs): "opc_request_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_security_attributes got unknown kwargs: {extra_kwargs!r}") @@ -1997,9 +1997,9 @@ def list_security_attributes(self, security_attribute_namespace_id, **kwargs): "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2015,14 +2015,14 @@ def list_security_attributes(self, security_attribute_namespace_id, **kwargs): "limit": kwargs.get("limit", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2126,7 +2126,7 @@ def update_security_attribute(self, security_attribute_namespace_id, security_at "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_attribute got unknown kwargs: {extra_kwargs!r}") @@ -2136,9 +2136,9 @@ def update_security_attribute(self, security_attribute_namespace_id, security_at "securityAttributeName": security_attribute_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2149,7 +2149,7 @@ def update_security_attribute(self, security_attribute_namespace_id, security_at "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2261,7 +2261,7 @@ def update_security_attribute_namespace(self, security_attribute_namespace_id, u "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_security_attribute_namespace got unknown kwargs: {extra_kwargs!r}") @@ -2270,9 +2270,9 @@ def update_security_attribute_namespace(self, security_attribute_namespace_id, u "securityAttributeNamespaceId": security_attribute_namespace_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2283,7 +2283,7 @@ def update_security_attribute_namespace(self, security_attribute_namespace_id, u "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/service_catalog/service_catalog_client.py b/src/oci/service_catalog/service_catalog_client.py index 67c4b0edd..a9c327e09 100644 --- a/src/oci/service_catalog/service_catalog_client.py +++ b/src/oci/service_catalog/service_catalog_client.py @@ -171,7 +171,7 @@ def bulk_replace_service_catalog_associations(self, service_catalog_id, bulk_rep "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"bulk_replace_service_catalog_associations got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def bulk_replace_service_catalog_associations(self, service_catalog_id, bulk_rep "serviceCatalogId": service_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def bulk_replace_service_catalog_associations(self, service_catalog_id, bulk_rep "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def change_private_application_compartment(self, private_application_id, change_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_private_application_compartment got unknown kwargs: {extra_kwargs!r}") @@ -289,9 +289,9 @@ def change_private_application_compartment(self, private_application_id, change_ "privateApplicationId": private_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -301,7 +301,7 @@ def change_private_application_compartment(self, private_application_id, change_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -389,7 +389,7 @@ def change_service_catalog_compartment(self, service_catalog_id, change_service_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_service_catalog_compartment got unknown kwargs: {extra_kwargs!r}") @@ -398,9 +398,9 @@ def change_service_catalog_compartment(self, service_catalog_id, change_service_ "serviceCatalogId": service_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -410,7 +410,7 @@ def change_service_catalog_compartment(self, service_catalog_id, change_service_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -496,7 +496,7 @@ def create_private_application(self, create_private_application_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_private_application got unknown kwargs: {extra_kwargs!r}") @@ -507,7 +507,7 @@ def create_private_application(self, create_private_application_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -594,7 +594,7 @@ def create_service_catalog(self, create_service_catalog_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service_catalog got unknown kwargs: {extra_kwargs!r}") @@ -605,7 +605,7 @@ def create_service_catalog(self, create_service_catalog_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -692,7 +692,7 @@ def create_service_catalog_association(self, create_service_catalog_association_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_service_catalog_association got unknown kwargs: {extra_kwargs!r}") @@ -703,7 +703,7 @@ def create_service_catalog_association(self, create_service_catalog_association_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -789,7 +789,7 @@ def delete_private_application(self, private_application_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_private_application got unknown kwargs: {extra_kwargs!r}") @@ -798,9 +798,9 @@ def delete_private_application(self, private_application_id, **kwargs): "privateApplicationId": private_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -810,7 +810,7 @@ def delete_private_application(self, private_application_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -893,7 +893,7 @@ def delete_service_catalog(self, service_catalog_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service_catalog got unknown kwargs: {extra_kwargs!r}") @@ -902,9 +902,9 @@ def delete_service_catalog(self, service_catalog_id, **kwargs): "serviceCatalogId": service_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -914,7 +914,7 @@ def delete_service_catalog(self, service_catalog_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -997,7 +997,7 @@ def delete_service_catalog_association(self, service_catalog_association_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_service_catalog_association got unknown kwargs: {extra_kwargs!r}") @@ -1006,9 +1006,9 @@ def delete_service_catalog_association(self, service_catalog_association_id, **k "serviceCatalogAssociationId": service_catalog_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1018,7 +1018,7 @@ def delete_service_catalog_association(self, service_catalog_association_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1095,7 +1095,7 @@ def get_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -1103,14 +1103,14 @@ def get_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1189,7 +1189,7 @@ def get_private_application(self, private_application_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_application got unknown kwargs: {extra_kwargs!r}") @@ -1198,9 +1198,9 @@ def get_private_application(self, private_application_id, **kwargs): "privateApplicationId": private_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1209,7 +1209,7 @@ def get_private_application(self, private_application_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1288,7 +1288,7 @@ def get_private_application_action_download_logo(self, private_application_id, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_application_action_download_logo got unknown kwargs: {extra_kwargs!r}") @@ -1297,9 +1297,9 @@ def get_private_application_action_download_logo(self, private_application_id, * "privateApplicationId": private_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1308,7 +1308,7 @@ def get_private_application_action_download_logo(self, private_application_id, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1387,7 +1387,7 @@ def get_private_application_package(self, private_application_package_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_application_package got unknown kwargs: {extra_kwargs!r}") @@ -1396,9 +1396,9 @@ def get_private_application_package(self, private_application_package_id, **kwar "privateApplicationPackageId": private_application_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1407,7 +1407,7 @@ def get_private_application_package(self, private_application_package_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1486,7 +1486,7 @@ def get_private_application_package_action_download_config(self, private_applica "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_private_application_package_action_download_config got unknown kwargs: {extra_kwargs!r}") @@ -1495,9 +1495,9 @@ def get_private_application_package_action_download_config(self, private_applica "privateApplicationPackageId": private_application_package_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1506,7 +1506,7 @@ def get_private_application_package_action_download_config(self, private_applica "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1585,7 +1585,7 @@ def get_service_catalog(self, service_catalog_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_catalog got unknown kwargs: {extra_kwargs!r}") @@ -1594,9 +1594,9 @@ def get_service_catalog(self, service_catalog_id, **kwargs): "serviceCatalogId": service_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1605,7 +1605,7 @@ def get_service_catalog(self, service_catalog_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1684,7 +1684,7 @@ def get_service_catalog_association(self, service_catalog_association_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_catalog_association got unknown kwargs: {extra_kwargs!r}") @@ -1693,9 +1693,9 @@ def get_service_catalog_association(self, service_catalog_association_id, **kwar "serviceCatalogAssociationId": service_catalog_association_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1704,7 +1704,7 @@ def get_service_catalog_association(self, service_catalog_association_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1783,7 +1783,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1792,9 +1792,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1803,7 +1803,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1932,7 +1932,7 @@ def list_all_applications(self, **kwargs): "is_featured", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_all_applications got unknown kwargs: {extra_kwargs!r}") @@ -1973,14 +1973,14 @@ def list_all_applications(self, **kwargs): "isFeatured": kwargs.get("is_featured", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2114,7 +2114,7 @@ def list_applications(self, **kwargs): "is_featured", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_applications got unknown kwargs: {extra_kwargs!r}") @@ -2156,14 +2156,14 @@ def list_applications(self, **kwargs): "isFeatured": kwargs.get("is_featured", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2279,7 +2279,7 @@ def list_private_application_packages(self, private_application_id, **kwargs): "sort_order", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_application_packages got unknown kwargs: {extra_kwargs!r}") @@ -2316,14 +2316,14 @@ def list_private_application_packages(self, private_application_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2431,7 +2431,7 @@ def list_private_applications(self, compartment_id, **kwargs): "sort_order", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_private_applications got unknown kwargs: {extra_kwargs!r}") @@ -2459,14 +2459,14 @@ def list_private_applications(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2578,7 +2578,7 @@ def list_service_catalog_associations(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_catalog_associations got unknown kwargs: {extra_kwargs!r}") @@ -2607,14 +2607,14 @@ def list_service_catalog_associations(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2727,7 +2727,7 @@ def list_service_catalogs(self, compartment_id, **kwargs): "sort_order", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_catalogs got unknown kwargs: {extra_kwargs!r}") @@ -2763,14 +2763,14 @@ def list_service_catalogs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2869,7 +2869,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2878,9 +2878,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2904,14 +2904,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3012,7 +3012,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3021,9 +3021,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3047,14 +3047,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3170,7 +3170,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -3206,14 +3206,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3301,7 +3301,7 @@ def update_private_application(self, private_application_id, update_private_appl "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_private_application got unknown kwargs: {extra_kwargs!r}") @@ -3310,9 +3310,9 @@ def update_private_application(self, private_application_id, update_private_appl "privateApplicationId": private_application_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3322,7 +3322,7 @@ def update_private_application(self, private_application_id, update_private_appl "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3412,7 +3412,7 @@ def update_service_catalog(self, service_catalog_id, update_service_catalog_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_service_catalog got unknown kwargs: {extra_kwargs!r}") @@ -3421,9 +3421,9 @@ def update_service_catalog(self, service_catalog_id, update_service_catalog_deta "serviceCatalogId": service_catalog_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3433,7 +3433,7 @@ def update_service_catalog(self, service_catalog_id, update_service_catalog_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/service_manager_proxy/service_manager_proxy_client.py b/src/oci/service_manager_proxy/service_manager_proxy_client.py index 4ad99158e..f027873b8 100644 --- a/src/oci/service_manager_proxy/service_manager_proxy_client.py +++ b/src/oci/service_manager_proxy/service_manager_proxy_client.py @@ -171,7 +171,7 @@ def get_service_environment(self, service_environment_id, compartment_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_service_environment got unknown kwargs: {extra_kwargs!r}") @@ -180,23 +180,23 @@ def get_service_environment(self, service_environment_id, compartment_id, **kwar "serviceEnvironmentId": service_environment_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -315,7 +315,7 @@ def list_service_environments(self, compartment_id, **kwargs): "sort_order", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_service_environments got unknown kwargs: {extra_kwargs!r}") @@ -344,14 +344,14 @@ def list_service_environments(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/stack_monitoring/stack_monitoring_client.py b/src/oci/stack_monitoring/stack_monitoring_client.py index 3f23023c1..3f5cacb62 100644 --- a/src/oci/stack_monitoring/stack_monitoring_client.py +++ b/src/oci/stack_monitoring/stack_monitoring_client.py @@ -179,7 +179,7 @@ def apply_monitoring_template(self, monitoring_template_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"apply_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def apply_monitoring_template(self, monitoring_template_id, **kwargs): "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def apply_monitoring_template(self, monitoring_template_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def associate_monitored_resources(self, associate_monitored_resources_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"associate_monitored_resources got unknown kwargs: {extra_kwargs!r}") @@ -309,7 +309,7 @@ def associate_monitored_resources(self, associate_monitored_resources_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -416,7 +416,7 @@ def change_config_compartment(self, config_id, change_config_compartment_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_config_compartment got unknown kwargs: {extra_kwargs!r}") @@ -425,9 +425,9 @@ def change_config_compartment(self, config_id, change_config_compartment_details "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -438,7 +438,7 @@ def change_config_compartment(self, config_id, change_config_compartment_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -540,7 +540,7 @@ def change_metric_extension_compartment(self, metric_extension_id, change_metric "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_metric_extension_compartment got unknown kwargs: {extra_kwargs!r}") @@ -549,9 +549,9 @@ def change_metric_extension_compartment(self, metric_extension_id, change_metric "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -562,7 +562,7 @@ def change_metric_extension_compartment(self, metric_extension_id, change_metric "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -662,7 +662,7 @@ def change_monitored_resource_compartment(self, monitored_resource_id, change_mo "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_monitored_resource_compartment got unknown kwargs: {extra_kwargs!r}") @@ -671,9 +671,9 @@ def change_monitored_resource_compartment(self, monitored_resource_id, change_mo "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -684,7 +684,7 @@ def change_monitored_resource_compartment(self, monitored_resource_id, change_mo "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -783,7 +783,7 @@ def change_monitored_resource_task_compartment(self, monitored_resource_task_id, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_monitored_resource_task_compartment got unknown kwargs: {extra_kwargs!r}") @@ -792,9 +792,9 @@ def change_monitored_resource_task_compartment(self, monitored_resource_task_id, "monitoredResourceTaskId": monitored_resource_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -805,7 +805,7 @@ def change_monitored_resource_task_compartment(self, monitored_resource_task_id, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -904,7 +904,7 @@ def change_process_set_compartment(self, process_set_id, change_process_set_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_process_set_compartment got unknown kwargs: {extra_kwargs!r}") @@ -913,9 +913,9 @@ def change_process_set_compartment(self, process_set_id, change_process_set_comp "processSetId": process_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -926,7 +926,7 @@ def change_process_set_compartment(self, process_set_id, change_process_set_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1019,7 +1019,7 @@ def create_alarm_condition(self, create_alarm_condition_details, monitoring_temp "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_alarm_condition got unknown kwargs: {extra_kwargs!r}") @@ -1028,9 +1028,9 @@ def create_alarm_condition(self, create_alarm_condition_details, monitoring_temp "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1040,7 +1040,7 @@ def create_alarm_condition(self, create_alarm_condition_details, monitoring_temp "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1130,7 +1130,7 @@ def create_baselineable_metric(self, create_baselineable_metric_details, **kwarg "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_baselineable_metric got unknown kwargs: {extra_kwargs!r}") @@ -1141,7 +1141,7 @@ def create_baselineable_metric(self, create_baselineable_metric_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1235,7 +1235,7 @@ def create_config(self, create_config_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_config got unknown kwargs: {extra_kwargs!r}") @@ -1246,7 +1246,7 @@ def create_config(self, create_config_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1334,7 +1334,7 @@ def create_discovery_job(self, create_discovery_job_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_discovery_job got unknown kwargs: {extra_kwargs!r}") @@ -1345,7 +1345,7 @@ def create_discovery_job(self, create_discovery_job_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1432,7 +1432,7 @@ def create_maintenance_window(self, create_maintenance_window_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -1443,7 +1443,7 @@ def create_maintenance_window(self, create_maintenance_window_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1531,7 +1531,7 @@ def create_metric_extension(self, create_metric_extension_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -1542,7 +1542,7 @@ def create_metric_extension(self, create_metric_extension_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1637,7 +1637,7 @@ def create_monitored_resource(self, create_monitored_resource_details, **kwargs) "opc_request_id", "external_resource_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_monitored_resource got unknown kwargs: {extra_kwargs!r}") @@ -1649,7 +1649,7 @@ def create_monitored_resource(self, create_monitored_resource_details, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "external-resource-id": kwargs.get("external_resource_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1735,7 +1735,7 @@ def create_monitored_resource_task(self, create_monitored_resource_task_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_monitored_resource_task got unknown kwargs: {extra_kwargs!r}") @@ -1746,7 +1746,7 @@ def create_monitored_resource_task(self, create_monitored_resource_task_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1834,7 +1834,7 @@ def create_monitored_resource_type(self, create_monitored_resource_type_details, "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_monitored_resource_type got unknown kwargs: {extra_kwargs!r}") @@ -1845,7 +1845,7 @@ def create_monitored_resource_type(self, create_monitored_resource_type_details, "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1933,7 +1933,7 @@ def create_monitoring_template(self, create_monitoring_template_details, **kwarg "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -1944,7 +1944,7 @@ def create_monitoring_template(self, create_monitoring_template_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2032,7 +2032,7 @@ def create_process_set(self, create_process_set_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_process_set got unknown kwargs: {extra_kwargs!r}") @@ -2043,7 +2043,7 @@ def create_process_set(self, create_process_set_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2138,7 +2138,7 @@ def delete_alarm_condition(self, alarm_condition_id, monitoring_template_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_alarm_condition got unknown kwargs: {extra_kwargs!r}") @@ -2148,9 +2148,9 @@ def delete_alarm_condition(self, alarm_condition_id, monitoring_template_id, **k "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2160,7 +2160,7 @@ def delete_alarm_condition(self, alarm_condition_id, monitoring_template_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2243,7 +2243,7 @@ def delete_baselineable_metric(self, baselineable_metric_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_baselineable_metric got unknown kwargs: {extra_kwargs!r}") @@ -2252,9 +2252,9 @@ def delete_baselineable_metric(self, baselineable_metric_id, **kwargs): "baselineableMetricId": baselineable_metric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2264,7 +2264,7 @@ def delete_baselineable_metric(self, baselineable_metric_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2349,7 +2349,7 @@ def delete_config(self, config_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_config got unknown kwargs: {extra_kwargs!r}") @@ -2358,9 +2358,9 @@ def delete_config(self, config_id, **kwargs): "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2370,7 +2370,7 @@ def delete_config(self, config_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2455,7 +2455,7 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_discovery_job got unknown kwargs: {extra_kwargs!r}") @@ -2464,9 +2464,9 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2476,7 +2476,7 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2563,7 +2563,7 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -2572,9 +2572,9 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2584,7 +2584,7 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2669,7 +2669,7 @@ def delete_metric_extension(self, metric_extension_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -2678,9 +2678,9 @@ def delete_metric_extension(self, metric_extension_id, **kwargs): "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2690,7 +2690,7 @@ def delete_metric_extension(self, metric_extension_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2785,7 +2785,7 @@ def delete_monitored_resource(self, monitored_resource_id, **kwargs): "opc_request_id", "is_delete_members" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_monitored_resource got unknown kwargs: {extra_kwargs!r}") @@ -2794,16 +2794,16 @@ def delete_monitored_resource(self, monitored_resource_id, **kwargs): "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "isDeleteMembers": kwargs.get("is_delete_members", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2811,7 +2811,7 @@ def delete_monitored_resource(self, monitored_resource_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2900,7 +2900,7 @@ def delete_monitored_resource_type(self, monitored_resource_type_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_monitored_resource_type got unknown kwargs: {extra_kwargs!r}") @@ -2909,9 +2909,9 @@ def delete_monitored_resource_type(self, monitored_resource_type_id, **kwargs): "monitoredResourceTypeId": monitored_resource_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2921,7 +2921,7 @@ def delete_monitored_resource_type(self, monitored_resource_type_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3006,7 +3006,7 @@ def delete_monitoring_template(self, monitoring_template_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -3015,9 +3015,9 @@ def delete_monitoring_template(self, monitoring_template_id, **kwargs): "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3027,7 +3027,7 @@ def delete_monitoring_template(self, monitoring_template_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3110,7 +3110,7 @@ def delete_process_set(self, process_set_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_process_set got unknown kwargs: {extra_kwargs!r}") @@ -3119,9 +3119,9 @@ def delete_process_set(self, process_set_id, **kwargs): "processSetId": process_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3131,7 +3131,7 @@ def delete_process_set(self, process_set_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3227,7 +3227,7 @@ def disable_external_database(self, monitored_resource_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_external_database got unknown kwargs: {extra_kwargs!r}") @@ -3236,9 +3236,9 @@ def disable_external_database(self, monitored_resource_id, **kwargs): "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3249,7 +3249,7 @@ def disable_external_database(self, monitored_resource_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3346,7 +3346,7 @@ def disable_metric_extension(self, metric_extension_id, disable_metric_extension "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disable_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -3355,9 +3355,9 @@ def disable_metric_extension(self, metric_extension_id, disable_metric_extension "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3368,7 +3368,7 @@ def disable_metric_extension(self, metric_extension_id, disable_metric_extension "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3462,7 +3462,7 @@ def disassociate_monitored_resources(self, disassociate_monitored_resources_deta "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"disassociate_monitored_resources got unknown kwargs: {extra_kwargs!r}") @@ -3474,7 +3474,7 @@ def disassociate_monitored_resources(self, disassociate_monitored_resources_deta "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3571,7 +3571,7 @@ def enable_metric_extension(self, metric_extension_id, enable_metric_extension_d "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"enable_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -3580,9 +3580,9 @@ def enable_metric_extension(self, metric_extension_id, enable_metric_extension_d "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3593,7 +3593,7 @@ def enable_metric_extension(self, metric_extension_id, enable_metric_extension_d "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3690,7 +3690,7 @@ def evaluate_baselineable_metric(self, evaluate_baselineable_metric_details, bas "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"evaluate_baselineable_metric got unknown kwargs: {extra_kwargs!r}") @@ -3699,9 +3699,9 @@ def evaluate_baselineable_metric(self, evaluate_baselineable_metric_details, bas "baselineableMetricId": baselineable_metric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3712,7 +3712,7 @@ def evaluate_baselineable_metric(self, evaluate_baselineable_metric_details, bas "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3813,7 +3813,7 @@ def export_metric_extension(self, metric_extension_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -3822,9 +3822,9 @@ def export_metric_extension(self, metric_extension_id, **kwargs): "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3835,7 +3835,7 @@ def export_metric_extension(self, metric_extension_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3933,7 +3933,7 @@ def export_monitoring_template(self, monitoring_template_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -3942,9 +3942,9 @@ def export_monitoring_template(self, monitoring_template_id, **kwargs): "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3955,7 +3955,7 @@ def export_monitoring_template(self, monitoring_template_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4042,7 +4042,7 @@ def get_alarm_condition(self, alarm_condition_id, monitoring_template_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_alarm_condition got unknown kwargs: {extra_kwargs!r}") @@ -4052,9 +4052,9 @@ def get_alarm_condition(self, alarm_condition_id, monitoring_template_id, **kwar "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4063,7 +4063,7 @@ def get_alarm_condition(self, alarm_condition_id, monitoring_template_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4142,7 +4142,7 @@ def get_baselineable_metric(self, baselineable_metric_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_baselineable_metric got unknown kwargs: {extra_kwargs!r}") @@ -4151,9 +4151,9 @@ def get_baselineable_metric(self, baselineable_metric_id, **kwargs): "baselineableMetricId": baselineable_metric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4162,7 +4162,7 @@ def get_baselineable_metric(self, baselineable_metric_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4241,7 +4241,7 @@ def get_config(self, config_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_config got unknown kwargs: {extra_kwargs!r}") @@ -4250,9 +4250,9 @@ def get_config(self, config_id, **kwargs): "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4261,7 +4261,7 @@ def get_config(self, config_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4340,7 +4340,7 @@ def get_discovery_job(self, discovery_job_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_discovery_job got unknown kwargs: {extra_kwargs!r}") @@ -4349,9 +4349,9 @@ def get_discovery_job(self, discovery_job_id, **kwargs): "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4360,7 +4360,7 @@ def get_discovery_job(self, discovery_job_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4443,7 +4443,7 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -4452,9 +4452,9 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4463,7 +4463,7 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4544,7 +4544,7 @@ def get_metric_extension(self, metric_extension_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -4553,9 +4553,9 @@ def get_metric_extension(self, metric_extension_id, **kwargs): "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4564,7 +4564,7 @@ def get_metric_extension(self, metric_extension_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4647,7 +4647,7 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitored_resource got unknown kwargs: {extra_kwargs!r}") @@ -4656,9 +4656,9 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4667,7 +4667,7 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4750,7 +4750,7 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitored_resource_task got unknown kwargs: {extra_kwargs!r}") @@ -4759,9 +4759,9 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): "monitoredResourceTaskId": monitored_resource_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4770,7 +4770,7 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4853,7 +4853,7 @@ def get_monitored_resource_type(self, monitored_resource_type_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitored_resource_type got unknown kwargs: {extra_kwargs!r}") @@ -4862,9 +4862,9 @@ def get_monitored_resource_type(self, monitored_resource_type_id, **kwargs): "monitoredResourceTypeId": monitored_resource_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4873,7 +4873,7 @@ def get_monitored_resource_type(self, monitored_resource_type_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4954,7 +4954,7 @@ def get_monitoring_template(self, monitoring_template_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -4963,9 +4963,9 @@ def get_monitoring_template(self, monitoring_template_id, **kwargs): "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4974,7 +4974,7 @@ def get_monitoring_template(self, monitoring_template_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5053,7 +5053,7 @@ def get_process_set(self, process_set_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_process_set got unknown kwargs: {extra_kwargs!r}") @@ -5062,9 +5062,9 @@ def get_process_set(self, process_set_id, **kwargs): "processSetId": process_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5073,7 +5073,7 @@ def get_process_set(self, process_set_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5154,7 +5154,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -5163,9 +5163,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5174,7 +5174,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5304,7 +5304,7 @@ def list_alarm_conditions(self, monitoring_template_id, **kwargs): "metric_name", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_alarm_conditions got unknown kwargs: {extra_kwargs!r}") @@ -5313,9 +5313,9 @@ def list_alarm_conditions(self, monitoring_template_id, **kwargs): "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5357,14 +5357,14 @@ def list_alarm_conditions(self, monitoring_template_id, **kwargs): "resourceTypes": self.base_client.generate_collection_format_param(kwargs.get("resource_types", missing), 'multi'), "metricName": self.base_client.generate_collection_format_param(kwargs.get("metric_name", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5498,7 +5498,7 @@ def list_baselineable_metrics(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_baselineable_metrics got unknown kwargs: {extra_kwargs!r}") @@ -5530,14 +5530,14 @@ def list_baselineable_metrics(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5662,7 +5662,7 @@ def list_configs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_configs got unknown kwargs: {extra_kwargs!r}") @@ -5705,14 +5705,14 @@ def list_configs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5831,7 +5831,7 @@ def list_defined_monitoring_templates(self, compartment_id, **kwargs): "resource_types", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_defined_monitoring_templates got unknown kwargs: {extra_kwargs!r}") @@ -5859,14 +5859,14 @@ def list_defined_monitoring_templates(self, compartment_id, **kwargs): "resourceTypes": self.base_client.generate_collection_format_param(kwargs.get("resource_types", missing), 'multi'), "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5979,7 +5979,7 @@ def list_discovery_job_logs(self, discovery_job_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_discovery_job_logs got unknown kwargs: {extra_kwargs!r}") @@ -5988,9 +5988,9 @@ def list_discovery_job_logs(self, discovery_job_id, **kwargs): "discoveryJobId": discovery_job_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6022,14 +6022,14 @@ def list_discovery_job_logs(self, discovery_job_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6142,7 +6142,7 @@ def list_discovery_jobs(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_discovery_jobs got unknown kwargs: {extra_kwargs!r}") @@ -6169,14 +6169,14 @@ def list_discovery_jobs(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6300,7 +6300,7 @@ def list_maintenance_windows(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_maintenance_windows got unknown kwargs: {extra_kwargs!r}") @@ -6343,14 +6343,14 @@ def list_maintenance_windows(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6487,7 +6487,7 @@ def list_metric_extensions(self, **kwargs): "metric_extension_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_metric_extensions got unknown kwargs: {extra_kwargs!r}") @@ -6533,14 +6533,14 @@ def list_metric_extensions(self, **kwargs): "enabledOnResourceId": kwargs.get("enabled_on_resource_id", missing), "metricExtensionId": kwargs.get("metric_extension_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6657,7 +6657,7 @@ def list_monitored_resource_tasks(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitored_resource_tasks got unknown kwargs: {extra_kwargs!r}") @@ -6691,14 +6691,14 @@ def list_monitored_resource_tasks(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6872,7 +6872,7 @@ def list_monitored_resource_types(self, compartment_id, **kwargs): "fields", "exclude_fields" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitored_resource_types got unknown kwargs: {extra_kwargs!r}") @@ -6927,14 +6927,14 @@ def list_monitored_resource_types(self, compartment_id, **kwargs): "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'), "excludeFields": self.base_client.generate_collection_format_param(kwargs.get("exclude_fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7056,7 +7056,7 @@ def list_monitored_resources(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitored_resources got unknown kwargs: {extra_kwargs!r}") @@ -7092,14 +7092,14 @@ def list_monitored_resources(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7240,7 +7240,7 @@ def list_monitoring_templates(self, **kwargs): "metric_name", "namespace" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_monitoring_templates got unknown kwargs: {extra_kwargs!r}") @@ -7287,14 +7287,14 @@ def list_monitoring_templates(self, **kwargs): "metricName": self.base_client.generate_collection_format_param(kwargs.get("metric_name", missing), 'multi'), "namespace": self.base_client.generate_collection_format_param(kwargs.get("namespace", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7405,7 +7405,7 @@ def list_process_sets(self, compartment_id, **kwargs): "sort_by", "display_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_process_sets got unknown kwargs: {extra_kwargs!r}") @@ -7432,14 +7432,14 @@ def list_process_sets(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "displayName": kwargs.get("display_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7548,7 +7548,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -7557,9 +7557,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7583,14 +7583,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7701,7 +7701,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -7710,9 +7710,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7736,14 +7736,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7866,7 +7866,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -7902,14 +7902,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8013,7 +8013,7 @@ def manage_license(self, monitored_resource_id, manage_license_details, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"manage_license got unknown kwargs: {extra_kwargs!r}") @@ -8022,9 +8022,9 @@ def manage_license(self, monitored_resource_id, manage_license_details, **kwargs "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8035,7 +8035,7 @@ def manage_license(self, monitored_resource_id, manage_license_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8133,7 +8133,7 @@ def publish_metric_extension(self, metric_extension_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"publish_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -8142,9 +8142,9 @@ def publish_metric_extension(self, metric_extension_id, **kwargs): "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8155,7 +8155,7 @@ def publish_metric_extension(self, metric_extension_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8277,7 +8277,7 @@ def request_monitored_resources_summarized_count(self, compartment_id, **kwargs) "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_monitored_resources_summarized_count got unknown kwargs: {extra_kwargs!r}") @@ -8320,14 +8320,14 @@ def request_monitored_resources_summarized_count(self, compartment_id, **kwargs) "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8423,7 +8423,7 @@ def request_summarized_metric_extensions_metrics(self, request_summarized_metric "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_metric_extensions_metrics got unknown kwargs: {extra_kwargs!r}") @@ -8432,14 +8432,14 @@ def request_summarized_metric_extensions_metrics(self, request_summarized_metric "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8537,7 +8537,7 @@ def request_summarized_metric_extensions_resources(self, request_summarized_metr "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_metric_extensions_resources got unknown kwargs: {extra_kwargs!r}") @@ -8546,14 +8546,14 @@ def request_summarized_metric_extensions_resources(self, request_summarized_metr "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8644,7 +8644,7 @@ def retry_failed_maintenance_window_operation(self, maintenance_window_id, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"retry_failed_maintenance_window_operation got unknown kwargs: {extra_kwargs!r}") @@ -8653,9 +8653,9 @@ def retry_failed_maintenance_window_operation(self, maintenance_window_id, **kwa "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -8665,7 +8665,7 @@ def retry_failed_maintenance_window_operation(self, maintenance_window_id, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8799,7 +8799,7 @@ def search_associated_resources(self, search_associated_resources_details, **kwa "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_associated_resources got unknown kwargs: {extra_kwargs!r}") @@ -8810,7 +8810,7 @@ def search_associated_resources(self, search_associated_resources_details, **kwa "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8819,7 +8819,7 @@ def search_associated_resources(self, search_associated_resources_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -8933,7 +8933,7 @@ def search_monitored_resource_associations(self, search_monitored_resource_assoc "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_monitored_resource_associations got unknown kwargs: {extra_kwargs!r}") @@ -8942,7 +8942,7 @@ def search_monitored_resource_associations(self, search_monitored_resource_assoc "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -8951,7 +8951,7 @@ def search_monitored_resource_associations(self, search_monitored_resource_assoc "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9084,7 +9084,7 @@ def search_monitored_resource_members(self, monitored_resource_id, search_monito "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_monitored_resource_members got unknown kwargs: {extra_kwargs!r}") @@ -9093,9 +9093,9 @@ def search_monitored_resource_members(self, monitored_resource_id, search_monito "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9119,7 +9119,7 @@ def search_monitored_resource_members(self, monitored_resource_id, search_monito "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9128,7 +9128,7 @@ def search_monitored_resource_members(self, monitored_resource_id, search_monito "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9270,7 +9270,7 @@ def search_monitored_resources(self, search_monitored_resources_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"search_monitored_resources got unknown kwargs: {extra_kwargs!r}") @@ -9281,7 +9281,7 @@ def search_monitored_resources(self, search_monitored_resources_details, **kwarg "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'), "excludeFields": self.base_client.generate_collection_format_param(kwargs.get("exclude_fields", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -9290,7 +9290,7 @@ def search_monitored_resources(self, search_monitored_resources_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9382,7 +9382,7 @@ def stop_maintenance_window(self, maintenance_window_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -9391,9 +9391,9 @@ def stop_maintenance_window(self, maintenance_window_id, **kwargs): "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9403,7 +9403,7 @@ def stop_maintenance_window(self, maintenance_window_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9499,7 +9499,7 @@ def test_metric_extension(self, metric_extension_id, test_metric_extension_detai "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"test_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -9508,9 +9508,9 @@ def test_metric_extension(self, metric_extension_id, test_metric_extension_detai "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9521,7 +9521,7 @@ def test_metric_extension(self, metric_extension_id, test_metric_extension_detai "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9619,7 +9619,7 @@ def unapply_monitoring_template(self, monitoring_template_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unapply_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -9628,9 +9628,9 @@ def unapply_monitoring_template(self, monitoring_template_id, **kwargs): "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9641,7 +9641,7 @@ def unapply_monitoring_template(self, monitoring_template_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9737,7 +9737,7 @@ def update_alarm_condition(self, update_alarm_condition_details, alarm_condition "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_alarm_condition got unknown kwargs: {extra_kwargs!r}") @@ -9747,9 +9747,9 @@ def update_alarm_condition(self, update_alarm_condition_details, alarm_condition "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9759,7 +9759,7 @@ def update_alarm_condition(self, update_alarm_condition_details, alarm_condition "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9866,7 +9866,7 @@ def update_and_propagate_tags(self, monitored_resource_id, update_and_propagate_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_and_propagate_tags got unknown kwargs: {extra_kwargs!r}") @@ -9875,9 +9875,9 @@ def update_and_propagate_tags(self, monitored_resource_id, update_and_propagate_ "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -9888,7 +9888,7 @@ def update_and_propagate_tags(self, monitored_resource_id, update_and_propagate_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -9979,7 +9979,7 @@ def update_baselineable_metric(self, update_baselineable_metric_details, baselin "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_baselineable_metric got unknown kwargs: {extra_kwargs!r}") @@ -9988,9 +9988,9 @@ def update_baselineable_metric(self, update_baselineable_metric_details, baselin "baselineableMetricId": baselineable_metric_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10000,7 +10000,7 @@ def update_baselineable_metric(self, update_baselineable_metric_details, baselin "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10092,7 +10092,7 @@ def update_config(self, config_id, update_config_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_config got unknown kwargs: {extra_kwargs!r}") @@ -10101,9 +10101,9 @@ def update_config(self, config_id, update_config_details, **kwargs): "configId": config_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10113,7 +10113,7 @@ def update_config(self, config_id, update_config_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10209,7 +10209,7 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_maintenance_window got unknown kwargs: {extra_kwargs!r}") @@ -10218,9 +10218,9 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi "maintenanceWindowId": maintenance_window_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10230,7 +10230,7 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10320,7 +10320,7 @@ def update_metric_extension(self, metric_extension_id, update_metric_extension_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_metric_extension got unknown kwargs: {extra_kwargs!r}") @@ -10329,9 +10329,9 @@ def update_metric_extension(self, metric_extension_id, update_metric_extension_d "metricExtensionId": metric_extension_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10341,7 +10341,7 @@ def update_metric_extension(self, metric_extension_id, update_metric_extension_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10437,7 +10437,7 @@ def update_monitored_resource(self, monitored_resource_id, update_monitored_reso "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_monitored_resource got unknown kwargs: {extra_kwargs!r}") @@ -10446,9 +10446,9 @@ def update_monitored_resource(self, monitored_resource_id, update_monitored_reso "monitoredResourceId": monitored_resource_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10458,7 +10458,7 @@ def update_monitored_resource(self, monitored_resource_id, update_monitored_reso "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10550,7 +10550,7 @@ def update_monitored_resource_task(self, monitored_resource_task_id, update_moni "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_monitored_resource_task got unknown kwargs: {extra_kwargs!r}") @@ -10559,9 +10559,9 @@ def update_monitored_resource_task(self, monitored_resource_task_id, update_moni "monitoredResourceTaskId": monitored_resource_task_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10571,7 +10571,7 @@ def update_monitored_resource_task(self, monitored_resource_task_id, update_moni "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10665,7 +10665,7 @@ def update_monitored_resource_type(self, monitored_resource_type_id, update_moni "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_monitored_resource_type got unknown kwargs: {extra_kwargs!r}") @@ -10674,9 +10674,9 @@ def update_monitored_resource_type(self, monitored_resource_type_id, update_moni "monitoredResourceTypeId": monitored_resource_type_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10686,7 +10686,7 @@ def update_monitored_resource_type(self, monitored_resource_type_id, update_moni "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10778,7 +10778,7 @@ def update_monitoring_template(self, monitoring_template_id, update_monitoring_t "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_monitoring_template got unknown kwargs: {extra_kwargs!r}") @@ -10787,9 +10787,9 @@ def update_monitoring_template(self, monitoring_template_id, update_monitoring_t "monitoringTemplateId": monitoring_template_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10799,7 +10799,7 @@ def update_monitoring_template(self, monitoring_template_id, update_monitoring_t "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -10889,7 +10889,7 @@ def update_process_set(self, process_set_id, update_process_set_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_process_set got unknown kwargs: {extra_kwargs!r}") @@ -10898,9 +10898,9 @@ def update_process_set(self, process_set_id, update_process_set_details, **kwarg "processSetId": process_set_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -10910,7 +10910,7 @@ def update_process_set(self, process_set_id, update_process_set_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/streaming/stream_admin_client.py b/src/oci/streaming/stream_admin_client.py index 33a609a44..b71870717 100644 --- a/src/oci/streaming/stream_admin_client.py +++ b/src/oci/streaming/stream_admin_client.py @@ -168,7 +168,7 @@ def change_connect_harness_compartment(self, connect_harness_id, change_connect_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_connect_harness_compartment got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def change_connect_harness_compartment(self, connect_harness_id, change_connect_ "connectHarnessId": connect_harness_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def change_connect_harness_compartment(self, connect_harness_id, change_connect_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -277,7 +277,7 @@ def change_stream_compartment(self, stream_id, change_stream_compartment_details "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stream_compartment got unknown kwargs: {extra_kwargs!r}") @@ -286,9 +286,9 @@ def change_stream_compartment(self, stream_id, change_stream_compartment_details "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -298,7 +298,7 @@ def change_stream_compartment(self, stream_id, change_stream_compartment_details "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -384,7 +384,7 @@ def change_stream_pool_compartment(self, stream_pool_id, change_stream_pool_comp "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_stream_pool_compartment got unknown kwargs: {extra_kwargs!r}") @@ -393,9 +393,9 @@ def change_stream_pool_compartment(self, stream_pool_id, change_stream_pool_comp "streamPoolId": stream_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -405,7 +405,7 @@ def change_stream_pool_compartment(self, stream_pool_id, change_stream_pool_comp "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -489,7 +489,7 @@ def create_connect_harness(self, create_connect_harness_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_connect_harness got unknown kwargs: {extra_kwargs!r}") @@ -500,7 +500,7 @@ def create_connect_harness(self, create_connect_harness_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -584,7 +584,7 @@ def create_stream(self, create_stream_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream got unknown kwargs: {extra_kwargs!r}") @@ -594,7 +594,7 @@ def create_stream(self, create_stream_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -679,7 +679,7 @@ def create_stream_pool(self, create_stream_pool_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_stream_pool got unknown kwargs: {extra_kwargs!r}") @@ -690,7 +690,7 @@ def create_stream_pool(self, create_stream_pool_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -778,7 +778,7 @@ def delete_connect_harness(self, connect_harness_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_connect_harness got unknown kwargs: {extra_kwargs!r}") @@ -787,9 +787,9 @@ def delete_connect_harness(self, connect_harness_id, **kwargs): "connectHarnessId": connect_harness_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -799,7 +799,7 @@ def delete_connect_harness(self, connect_harness_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -884,7 +884,7 @@ def delete_stream(self, stream_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream got unknown kwargs: {extra_kwargs!r}") @@ -893,9 +893,9 @@ def delete_stream(self, stream_id, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -905,7 +905,7 @@ def delete_stream(self, stream_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -987,7 +987,7 @@ def delete_stream_pool(self, stream_pool_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_stream_pool got unknown kwargs: {extra_kwargs!r}") @@ -996,9 +996,9 @@ def delete_stream_pool(self, stream_pool_id, **kwargs): "streamPoolId": stream_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1008,7 +1008,7 @@ def delete_stream_pool(self, stream_pool_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1085,7 +1085,7 @@ def get_connect_harness(self, connect_harness_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_connect_harness got unknown kwargs: {extra_kwargs!r}") @@ -1094,9 +1094,9 @@ def get_connect_harness(self, connect_harness_id, **kwargs): "connectHarnessId": connect_harness_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1105,7 +1105,7 @@ def get_connect_harness(self, connect_harness_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1184,7 +1184,7 @@ def get_stream(self, stream_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream got unknown kwargs: {extra_kwargs!r}") @@ -1193,9 +1193,9 @@ def get_stream(self, stream_id, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1204,7 +1204,7 @@ def get_stream(self, stream_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1283,7 +1283,7 @@ def get_stream_pool(self, stream_pool_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_stream_pool got unknown kwargs: {extra_kwargs!r}") @@ -1292,9 +1292,9 @@ def get_stream_pool(self, stream_pool_id, **kwargs): "streamPoolId": stream_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1303,7 +1303,7 @@ def get_stream_pool(self, stream_pool_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1416,7 +1416,7 @@ def list_connect_harnesses(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_connect_harnesses got unknown kwargs: {extra_kwargs!r}") @@ -1452,14 +1452,14 @@ def list_connect_harnesses(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1572,7 +1572,7 @@ def list_stream_pools(self, compartment_id, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_stream_pools got unknown kwargs: {extra_kwargs!r}") @@ -1608,14 +1608,14 @@ def list_stream_pools(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1736,7 +1736,7 @@ def list_streams(self, **kwargs): "lifecycle_state", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_streams got unknown kwargs: {extra_kwargs!r}") @@ -1773,14 +1773,14 @@ def list_streams(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1866,7 +1866,7 @@ def update_connect_harness(self, connect_harness_id, update_connect_harness_deta "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_connect_harness got unknown kwargs: {extra_kwargs!r}") @@ -1875,9 +1875,9 @@ def update_connect_harness(self, connect_harness_id, update_connect_harness_deta "connectHarnessId": connect_harness_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1887,7 +1887,7 @@ def update_connect_harness(self, connect_harness_id, update_connect_harness_deta "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1975,7 +1975,7 @@ def update_stream(self, stream_id, update_stream_details, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream got unknown kwargs: {extra_kwargs!r}") @@ -1984,9 +1984,9 @@ def update_stream(self, stream_id, update_stream_details, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1996,7 +1996,7 @@ def update_stream(self, stream_id, update_stream_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2084,7 +2084,7 @@ def update_stream_pool(self, stream_pool_id, update_stream_pool_details, **kwarg "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_stream_pool got unknown kwargs: {extra_kwargs!r}") @@ -2093,9 +2093,9 @@ def update_stream_pool(self, stream_pool_id, update_stream_pool_details, **kwarg "streamPoolId": stream_pool_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2105,7 +2105,7 @@ def update_stream_pool(self, stream_pool_id, update_stream_pool_details, **kwarg "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/streaming/stream_client.py b/src/oci/streaming/stream_client.py index f3af6aba9..52de8ecc3 100644 --- a/src/oci/streaming/stream_client.py +++ b/src/oci/streaming/stream_client.py @@ -161,7 +161,7 @@ def consumer_commit(self, stream_id, cursor, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"consumer_commit got unknown kwargs: {extra_kwargs!r}") @@ -170,23 +170,23 @@ def consumer_commit(self, stream_id, cursor, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "cursor": cursor } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -270,7 +270,7 @@ def consumer_heartbeat(self, stream_id, cursor, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"consumer_heartbeat got unknown kwargs: {extra_kwargs!r}") @@ -279,23 +279,23 @@ def consumer_heartbeat(self, stream_id, cursor, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "cursor": cursor } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -383,7 +383,7 @@ def create_cursor(self, stream_id, create_cursor_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_cursor got unknown kwargs: {extra_kwargs!r}") @@ -392,9 +392,9 @@ def create_cursor(self, stream_id, create_cursor_details, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -403,7 +403,7 @@ def create_cursor(self, stream_id, create_cursor_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -487,7 +487,7 @@ def create_group_cursor(self, stream_id, create_group_cursor_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_group_cursor got unknown kwargs: {extra_kwargs!r}") @@ -496,9 +496,9 @@ def create_group_cursor(self, stream_id, create_group_cursor_details, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -507,7 +507,7 @@ def create_group_cursor(self, stream_id, create_group_cursor_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -591,7 +591,7 @@ def get_group(self, stream_id, group_name, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_group got unknown kwargs: {extra_kwargs!r}") @@ -601,9 +601,9 @@ def get_group(self, stream_id, group_name, **kwargs): "groupName": group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -612,7 +612,7 @@ def get_group(self, stream_id, group_name, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -701,7 +701,7 @@ def get_messages(self, stream_id, cursor, **kwargs): "limit", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_messages got unknown kwargs: {extra_kwargs!r}") @@ -710,9 +710,9 @@ def get_messages(self, stream_id, cursor, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -720,14 +720,14 @@ def get_messages(self, stream_id, cursor, **kwargs): "cursor": cursor, "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -814,7 +814,7 @@ def put_messages(self, stream_id, put_messages_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"put_messages got unknown kwargs: {extra_kwargs!r}") @@ -823,9 +823,9 @@ def put_messages(self, stream_id, put_messages_details, **kwargs): "streamId": stream_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -834,7 +834,7 @@ def put_messages(self, stream_id, put_messages_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -921,7 +921,7 @@ def update_group(self, stream_id, group_name, update_group_details, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_group got unknown kwargs: {extra_kwargs!r}") @@ -931,9 +931,9 @@ def update_group(self, stream_id, group_name, update_group_details, **kwargs): "groupName": group_name } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -942,7 +942,7 @@ def update_group(self, stream_id, group_name, update_group_details, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/domain_client.py b/src/oci/tenant_manager_control_plane/domain_client.py index 369ad0c3c..8394a0e9d 100644 --- a/src/oci/tenant_manager_control_plane/domain_client.py +++ b/src/oci/tenant_manager_control_plane/domain_client.py @@ -168,7 +168,7 @@ def create_domain(self, create_domain_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_domain got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_domain(self, create_domain_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -264,7 +264,7 @@ def delete_domain(self, domain_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_domain got unknown kwargs: {extra_kwargs!r}") @@ -273,9 +273,9 @@ def delete_domain(self, domain_id, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -285,7 +285,7 @@ def delete_domain(self, domain_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -359,7 +359,7 @@ def get_domain(self, domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_domain got unknown kwargs: {extra_kwargs!r}") @@ -368,9 +368,9 @@ def get_domain(self, domain_id, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -379,7 +379,7 @@ def get_domain(self, domain_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -498,7 +498,7 @@ def list_domains(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_domains got unknown kwargs: {extra_kwargs!r}") @@ -542,14 +542,14 @@ def list_domains(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -636,7 +636,7 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_domain got unknown kwargs: {extra_kwargs!r}") @@ -645,9 +645,9 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): "domainId": domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -657,7 +657,7 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/domain_governance_client.py b/src/oci/tenant_manager_control_plane/domain_governance_client.py index f6910177f..e69739aab 100644 --- a/src/oci/tenant_manager_control_plane/domain_governance_client.py +++ b/src/oci/tenant_manager_control_plane/domain_governance_client.py @@ -168,7 +168,7 @@ def create_domain_governance(self, create_domain_governance_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_domain_governance got unknown kwargs: {extra_kwargs!r}") @@ -179,7 +179,7 @@ def create_domain_governance(self, create_domain_governance_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -264,7 +264,7 @@ def delete_domain_governance(self, domain_governance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_domain_governance got unknown kwargs: {extra_kwargs!r}") @@ -273,9 +273,9 @@ def delete_domain_governance(self, domain_governance_id, **kwargs): "domainGovernanceId": domain_governance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -285,7 +285,7 @@ def delete_domain_governance(self, domain_governance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -359,7 +359,7 @@ def get_domain_governance(self, domain_governance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_domain_governance got unknown kwargs: {extra_kwargs!r}") @@ -368,9 +368,9 @@ def get_domain_governance(self, domain_governance_id, **kwargs): "domainGovernanceId": domain_governance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -379,7 +379,7 @@ def get_domain_governance(self, domain_governance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -496,7 +496,7 @@ def list_domain_governances(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_domain_governances got unknown kwargs: {extra_kwargs!r}") @@ -533,14 +533,14 @@ def list_domain_governances(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -627,7 +627,7 @@ def update_domain_governance(self, domain_governance_id, update_domain_governanc "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_domain_governance got unknown kwargs: {extra_kwargs!r}") @@ -636,9 +636,9 @@ def update_domain_governance(self, domain_governance_id, update_domain_governanc "domainGovernanceId": domain_governance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -648,7 +648,7 @@ def update_domain_governance(self, domain_governance_id, update_domain_governanc "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/governance_client.py b/src/oci/tenant_manager_control_plane/governance_client.py index 33b69b7a3..cb92a7967 100644 --- a/src/oci/tenant_manager_control_plane/governance_client.py +++ b/src/oci/tenant_manager_control_plane/governance_client.py @@ -179,7 +179,7 @@ def add_governance(self, organization_id, organization_tenancy_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"add_governance got unknown kwargs: {extra_kwargs!r}") @@ -189,9 +189,9 @@ def add_governance(self, organization_id, organization_tenancy_id, **kwargs): "organizationTenancyId": organization_tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -202,7 +202,7 @@ def add_governance(self, organization_id, organization_tenancy_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -296,7 +296,7 @@ def remove_governance(self, organization_id, organization_tenancy_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"remove_governance got unknown kwargs: {extra_kwargs!r}") @@ -306,9 +306,9 @@ def remove_governance(self, organization_id, organization_tenancy_id, **kwargs): "organizationTenancyId": organization_tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -319,7 +319,7 @@ def remove_governance(self, organization_id, organization_tenancy_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/link_client.py b/src/oci/tenant_manager_control_plane/link_client.py index d729bb6e6..2c9b5d6b8 100644 --- a/src/oci/tenant_manager_control_plane/link_client.py +++ b/src/oci/tenant_manager_control_plane/link_client.py @@ -168,7 +168,7 @@ def delete_link(self, link_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_link got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def delete_link(self, link_id, **kwargs): "linkId": link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -189,7 +189,7 @@ def delete_link(self, link_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -263,7 +263,7 @@ def get_link(self, link_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_link got unknown kwargs: {extra_kwargs!r}") @@ -272,9 +272,9 @@ def get_link(self, link_id, **kwargs): "linkId": link_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -283,7 +283,7 @@ def get_link(self, link_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -384,7 +384,7 @@ def list_links(self, **kwargs): "limit", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_links got unknown kwargs: {extra_kwargs!r}") @@ -411,14 +411,14 @@ def list_links(self, **kwargs): "limit": kwargs.get("limit", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/orders_client.py b/src/oci/tenant_manager_control_plane/orders_client.py index 5851470db..fa75652e1 100644 --- a/src/oci/tenant_manager_control_plane/orders_client.py +++ b/src/oci/tenant_manager_control_plane/orders_client.py @@ -171,7 +171,7 @@ def activate_order(self, activate_order_details, activation_token, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"activate_order got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def activate_order(self, activate_order_details, activation_token, **kwargs): "activationToken": activation_token } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def activate_order(self, activate_order_details, activation_token, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -269,7 +269,7 @@ def get_order(self, activation_token, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_order got unknown kwargs: {extra_kwargs!r}") @@ -278,9 +278,9 @@ def get_order(self, activation_token, **kwargs): "activationToken": activation_token } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -289,7 +289,7 @@ def get_order(self, activation_token, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/organization_client.py b/src/oci/tenant_manager_control_plane/organization_client.py index 1cac0baef..c6ae20761 100644 --- a/src/oci/tenant_manager_control_plane/organization_client.py +++ b/src/oci/tenant_manager_control_plane/organization_client.py @@ -179,7 +179,7 @@ def approve_organization_tenancy_for_transfer(self, compartment_id, organization "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"approve_organization_tenancy_for_transfer got unknown kwargs: {extra_kwargs!r}") @@ -188,16 +188,16 @@ def approve_organization_tenancy_for_transfer(self, compartment_id, organization "organizationTenancyId": organization_tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -206,7 +206,7 @@ def approve_organization_tenancy_for_transfer(self, compartment_id, organization "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -293,7 +293,7 @@ def create_child_tenancy(self, create_child_tenancy_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_child_tenancy got unknown kwargs: {extra_kwargs!r}") @@ -304,7 +304,7 @@ def create_child_tenancy(self, create_child_tenancy_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -395,7 +395,7 @@ def delete_organization_tenancy(self, organization_tenancy_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_organization_tenancy got unknown kwargs: {extra_kwargs!r}") @@ -404,9 +404,9 @@ def delete_organization_tenancy(self, organization_tenancy_id, **kwargs): "organizationTenancyId": organization_tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -417,7 +417,7 @@ def delete_organization_tenancy(self, organization_tenancy_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -492,7 +492,7 @@ def get_organization(self, organization_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_organization got unknown kwargs: {extra_kwargs!r}") @@ -501,9 +501,9 @@ def get_organization(self, organization_id, **kwargs): "organizationId": organization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -512,7 +512,7 @@ def get_organization(self, organization_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -591,7 +591,7 @@ def get_organization_tenancy(self, organization_id, tenancy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_organization_tenancy got unknown kwargs: {extra_kwargs!r}") @@ -601,9 +601,9 @@ def get_organization_tenancy(self, organization_id, tenancy_id, **kwargs): "tenancyId": tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -612,7 +612,7 @@ def get_organization_tenancy(self, organization_id, tenancy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -696,7 +696,7 @@ def list_organization_tenancies(self, organization_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_organization_tenancies got unknown kwargs: {extra_kwargs!r}") @@ -705,9 +705,9 @@ def list_organization_tenancies(self, organization_id, **kwargs): "organizationId": organization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -715,14 +715,14 @@ def list_organization_tenancies(self, organization_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -808,7 +808,7 @@ def list_organizations(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_organizations got unknown kwargs: {extra_kwargs!r}") @@ -818,14 +818,14 @@ def list_organizations(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -909,7 +909,7 @@ def restore_organization_tenancy(self, organization_tenancy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_organization_tenancy got unknown kwargs: {extra_kwargs!r}") @@ -918,9 +918,9 @@ def restore_organization_tenancy(self, organization_tenancy_id, **kwargs): "organizationTenancyId": organization_tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -930,7 +930,7 @@ def restore_organization_tenancy(self, organization_tenancy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1023,7 +1023,7 @@ def unapprove_organization_tenancy_for_transfer(self, compartment_id, organizati "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"unapprove_organization_tenancy_for_transfer got unknown kwargs: {extra_kwargs!r}") @@ -1032,16 +1032,16 @@ def unapprove_organization_tenancy_for_transfer(self, compartment_id, organizati "organizationTenancyId": organization_tenancy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1050,7 +1050,7 @@ def unapprove_organization_tenancy_for_transfer(self, compartment_id, organizati "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1148,7 +1148,7 @@ def update_organization(self, organization_id, update_organization_details, **kw "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_organization got unknown kwargs: {extra_kwargs!r}") @@ -1157,9 +1157,9 @@ def update_organization(self, organization_id, update_organization_details, **kw "organizationId": organization_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1170,7 +1170,7 @@ def update_organization(self, organization_id, update_organization_details, **kw "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/recipient_invitation_client.py b/src/oci/tenant_manager_control_plane/recipient_invitation_client.py index 09e71ccd9..1d5ff99db 100644 --- a/src/oci/tenant_manager_control_plane/recipient_invitation_client.py +++ b/src/oci/tenant_manager_control_plane/recipient_invitation_client.py @@ -176,7 +176,7 @@ def accept_recipient_invitation(self, recipient_invitation_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"accept_recipient_invitation got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def accept_recipient_invitation(self, recipient_invitation_id, **kwargs): "recipientInvitationId": recipient_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def accept_recipient_invitation(self, recipient_invitation_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def get_recipient_invitation(self, recipient_invitation_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_recipient_invitation got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def get_recipient_invitation(self, recipient_invitation_id, **kwargs): "recipientInvitationId": recipient_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -293,7 +293,7 @@ def get_recipient_invitation(self, recipient_invitation_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -385,7 +385,7 @@ def ignore_recipient_invitation(self, recipient_invitation_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"ignore_recipient_invitation got unknown kwargs: {extra_kwargs!r}") @@ -394,9 +394,9 @@ def ignore_recipient_invitation(self, recipient_invitation_id, **kwargs): "recipientInvitationId": recipient_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -407,7 +407,7 @@ def ignore_recipient_invitation(self, recipient_invitation_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -504,7 +504,7 @@ def list_recipient_invitations(self, compartment_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recipient_invitations got unknown kwargs: {extra_kwargs!r}") @@ -530,14 +530,14 @@ def list_recipient_invitations(self, compartment_id, **kwargs): "compartmentId": compartment_id, "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -624,7 +624,7 @@ def update_recipient_invitation(self, recipient_invitation_id, update_recipient_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_recipient_invitation got unknown kwargs: {extra_kwargs!r}") @@ -633,9 +633,9 @@ def update_recipient_invitation(self, recipient_invitation_id, update_recipient_ "recipientInvitationId": recipient_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -645,7 +645,7 @@ def update_recipient_invitation(self, recipient_invitation_id, update_recipient_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/sender_invitation_client.py b/src/oci/tenant_manager_control_plane/sender_invitation_client.py index 7b2ac9e6a..d34f2af44 100644 --- a/src/oci/tenant_manager_control_plane/sender_invitation_client.py +++ b/src/oci/tenant_manager_control_plane/sender_invitation_client.py @@ -176,7 +176,7 @@ def cancel_sender_invitation(self, sender_invitation_id, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_sender_invitation got unknown kwargs: {extra_kwargs!r}") @@ -185,9 +185,9 @@ def cancel_sender_invitation(self, sender_invitation_id, **kwargs): "senderInvitationId": sender_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -198,7 +198,7 @@ def cancel_sender_invitation(self, sender_invitation_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -281,7 +281,7 @@ def create_sender_invitation(self, create_sender_invitation_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_sender_invitation got unknown kwargs: {extra_kwargs!r}") @@ -292,7 +292,7 @@ def create_sender_invitation(self, create_sender_invitation_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -369,7 +369,7 @@ def get_sender_invitation(self, sender_invitation_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_sender_invitation got unknown kwargs: {extra_kwargs!r}") @@ -378,9 +378,9 @@ def get_sender_invitation(self, sender_invitation_id, **kwargs): "senderInvitationId": sender_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -389,7 +389,7 @@ def get_sender_invitation(self, sender_invitation_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -508,7 +508,7 @@ def list_sender_invitations(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_sender_invitations got unknown kwargs: {extra_kwargs!r}") @@ -552,14 +552,14 @@ def list_sender_invitations(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -646,7 +646,7 @@ def update_sender_invitation(self, sender_invitation_id, update_sender_invitatio "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_sender_invitation got unknown kwargs: {extra_kwargs!r}") @@ -655,9 +655,9 @@ def update_sender_invitation(self, sender_invitation_id, update_sender_invitatio "senderInvitationId": sender_invitation_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -667,7 +667,7 @@ def update_sender_invitation(self, sender_invitation_id, update_sender_invitatio "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/subscription_client.py b/src/oci/tenant_manager_control_plane/subscription_client.py index e3fd125d0..37fd13251 100644 --- a/src/oci/tenant_manager_control_plane/subscription_client.py +++ b/src/oci/tenant_manager_control_plane/subscription_client.py @@ -176,7 +176,7 @@ def create_subscription_mapping(self, create_subscription_mapping_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_subscription_mapping got unknown kwargs: {extra_kwargs!r}") @@ -188,7 +188,7 @@ def create_subscription_mapping(self, create_subscription_mapping_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -273,7 +273,7 @@ def delete_subscription_mapping(self, subscription_mapping_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_subscription_mapping got unknown kwargs: {extra_kwargs!r}") @@ -282,9 +282,9 @@ def delete_subscription_mapping(self, subscription_mapping_id, **kwargs): "subscriptionMappingId": subscription_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -294,7 +294,7 @@ def delete_subscription_mapping(self, subscription_mapping_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -368,7 +368,7 @@ def get_assigned_subscription(self, assigned_subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_assigned_subscription got unknown kwargs: {extra_kwargs!r}") @@ -377,9 +377,9 @@ def get_assigned_subscription(self, assigned_subscription_id, **kwargs): "assignedSubscriptionId": assigned_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -388,7 +388,7 @@ def get_assigned_subscription(self, assigned_subscription_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -464,7 +464,7 @@ def get_subscription(self, subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscription got unknown kwargs: {extra_kwargs!r}") @@ -473,9 +473,9 @@ def get_subscription(self, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -484,7 +484,7 @@ def get_subscription(self, subscription_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -560,7 +560,7 @@ def get_subscription_mapping(self, subscription_mapping_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_subscription_mapping got unknown kwargs: {extra_kwargs!r}") @@ -569,9 +569,9 @@ def get_subscription_mapping(self, subscription_mapping_id, **kwargs): "subscriptionMappingId": subscription_mapping_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -580,7 +580,7 @@ def get_subscription_mapping(self, subscription_mapping_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -679,7 +679,7 @@ def list_assigned_subscription_line_items(self, assigned_subscription_id, **kwar "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_assigned_subscription_line_items got unknown kwargs: {extra_kwargs!r}") @@ -688,9 +688,9 @@ def list_assigned_subscription_line_items(self, assigned_subscription_id, **kwar "assignedSubscriptionId": assigned_subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -714,14 +714,14 @@ def list_assigned_subscription_line_items(self, assigned_subscription_id, **kwar "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -834,7 +834,7 @@ def list_assigned_subscriptions(self, compartment_id, **kwargs): "sort_by", "entity_version" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_assigned_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -869,14 +869,14 @@ def list_assigned_subscriptions(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "entityVersion": kwargs.get("entity_version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -956,7 +956,7 @@ def list_available_regions(self, subscription_id, **kwargs): "opc_request_id", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_available_regions got unknown kwargs: {extra_kwargs!r}") @@ -965,23 +965,23 @@ def list_available_regions(self, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1082,7 +1082,7 @@ def list_subscription_line_items(self, subscription_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscription_line_items got unknown kwargs: {extra_kwargs!r}") @@ -1091,9 +1091,9 @@ def list_subscription_line_items(self, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1117,14 +1117,14 @@ def list_subscription_line_items(self, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1241,7 +1241,7 @@ def list_subscription_mappings(self, subscription_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscription_mappings got unknown kwargs: {extra_kwargs!r}") @@ -1277,14 +1277,14 @@ def list_subscription_mappings(self, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1394,7 +1394,7 @@ def list_subscriptions(self, **kwargs): "sort_by", "entity_version" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_subscriptions got unknown kwargs: {extra_kwargs!r}") @@ -1429,14 +1429,14 @@ def list_subscriptions(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "entityVersion": kwargs.get("entity_version", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/tenant_manager_control_plane/work_request_client.py b/src/oci/tenant_manager_control_plane/work_request_client.py index 8c06d5d25..ce780acdb 100644 --- a/src/oci/tenant_manager_control_plane/work_request_client.py +++ b/src/oci/tenant_manager_control_plane/work_request_client.py @@ -160,7 +160,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -169,9 +169,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -180,7 +180,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -270,7 +270,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -279,9 +279,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -297,14 +297,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -396,7 +396,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -405,9 +405,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -423,14 +423,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -522,7 +522,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -540,14 +540,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/threat_intelligence/threatintel_client.py b/src/oci/threat_intelligence/threatintel_client.py index d1e0c6d71..16e165a2a 100644 --- a/src/oci/threat_intelligence/threatintel_client.py +++ b/src/oci/threat_intelligence/threatintel_client.py @@ -163,7 +163,7 @@ def get_indicator(self, indicator_id, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_indicator got unknown kwargs: {extra_kwargs!r}") @@ -172,23 +172,23 @@ def get_indicator(self, indicator_id, compartment_id, **kwargs): "indicatorId": indicator_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -274,7 +274,7 @@ def list_indicator_counts(self, compartment_id, **kwargs): "opc_request_id", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_indicator_counts got unknown kwargs: {extra_kwargs!r}") @@ -290,14 +290,14 @@ def list_indicator_counts(self, compartment_id, **kwargs): "compartmentId": compartment_id, "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -437,7 +437,7 @@ def list_indicators(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_indicators got unknown kwargs: {extra_kwargs!r}") @@ -480,14 +480,14 @@ def list_indicators(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -580,7 +580,7 @@ def list_threat_types(self, compartment_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_threat_types got unknown kwargs: {extra_kwargs!r}") @@ -598,14 +598,14 @@ def list_threat_types(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -694,7 +694,7 @@ def summarize_indicators(self, compartment_id, summarize_indicators_details, **k "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_indicators got unknown kwargs: {extra_kwargs!r}") @@ -704,14 +704,14 @@ def summarize_indicators(self, compartment_id, summarize_indicators_details, **k "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/usage/resources_client.py b/src/oci/usage/resources_client.py index d3a6a0721..2986115ad 100644 --- a/src/oci/usage/resources_client.py +++ b/src/oci/usage/resources_client.py @@ -188,7 +188,7 @@ def list_resource_quota(self, service_name, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resource_quota got unknown kwargs: {extra_kwargs!r}") @@ -216,14 +216,14 @@ def list_resource_quota(self, service_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -329,7 +329,7 @@ def list_resources(self, service_name, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_resources got unknown kwargs: {extra_kwargs!r}") @@ -357,14 +357,14 @@ def list_resources(self, service_name, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/usage/rewards_client.py b/src/oci/usage/rewards_client.py index 9c06861e1..33a7ba508 100644 --- a/src/oci/usage/rewards_client.py +++ b/src/oci/usage/rewards_client.py @@ -186,7 +186,7 @@ def create_redeemable_user(self, create_redeemable_user_details, tenancy_id, sub "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_redeemable_user got unknown kwargs: {extra_kwargs!r}") @@ -195,9 +195,9 @@ def create_redeemable_user(self, create_redeemable_user_details, tenancy_id, sub "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def create_redeemable_user(self, create_redeemable_user_details, tenancy_id, sub "tenancyId": tenancy_id, "userId": kwargs.get("user_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -214,7 +214,7 @@ def create_redeemable_user(self, create_redeemable_user_details, tenancy_id, sub "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -309,7 +309,7 @@ def delete_redeemable_user(self, email_id, tenancy_id, subscription_id, **kwargs "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_redeemable_user got unknown kwargs: {extra_kwargs!r}") @@ -318,9 +318,9 @@ def delete_redeemable_user(self, email_id, tenancy_id, subscription_id, **kwargs "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -328,7 +328,7 @@ def delete_redeemable_user(self, email_id, tenancy_id, subscription_id, **kwargs "emailId": email_id, "tenancyId": tenancy_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -336,7 +336,7 @@ def delete_redeemable_user(self, email_id, tenancy_id, subscription_id, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -444,7 +444,7 @@ def list_products(self, tenancy_id, subscription_id, usage_period_key, **kwargs) "sort_by", "producttype" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_products got unknown kwargs: {extra_kwargs!r}") @@ -453,9 +453,9 @@ def list_products(self, tenancy_id, subscription_id, usage_period_key, **kwargs) "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -489,14 +489,14 @@ def list_products(self, tenancy_id, subscription_id, usage_period_key, **kwargs) "sortBy": kwargs.get("sort_by", missing), "producttype": kwargs.get("producttype", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -597,7 +597,7 @@ def list_redeemable_users(self, tenancy_id, subscription_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_redeemable_users got unknown kwargs: {extra_kwargs!r}") @@ -606,9 +606,9 @@ def list_redeemable_users(self, tenancy_id, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -633,14 +633,14 @@ def list_redeemable_users(self, tenancy_id, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -749,7 +749,7 @@ def list_redemptions(self, tenancy_id, subscription_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_redemptions got unknown kwargs: {extra_kwargs!r}") @@ -758,9 +758,9 @@ def list_redemptions(self, tenancy_id, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -787,14 +787,14 @@ def list_redemptions(self, tenancy_id, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -875,7 +875,7 @@ def list_rewards(self, tenancy_id, subscription_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_rewards got unknown kwargs: {extra_kwargs!r}") @@ -884,23 +884,23 @@ def list_rewards(self, tenancy_id, subscription_id, **kwargs): "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "tenancyId": tenancy_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/usage/usagelimits_client.py b/src/oci/usage/usagelimits_client.py index b62305734..e0a356580 100644 --- a/src/oci/usage/usagelimits_client.py +++ b/src/oci/usage/usagelimits_client.py @@ -195,7 +195,7 @@ def list_usage_limits(self, compartment_id, subscription_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_usage_limits got unknown kwargs: {extra_kwargs!r}") @@ -225,14 +225,14 @@ def list_usage_limits(self, compartment_id, subscription_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/usage_api/usageapi_client.py b/src/oci/usage_api/usageapi_client.py index dd61e5519..10010f93d 100644 --- a/src/oci/usage_api/usageapi_client.py +++ b/src/oci/usage_api/usageapi_client.py @@ -169,7 +169,7 @@ def create_custom_table(self, create_custom_table_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_custom_table got unknown kwargs: {extra_kwargs!r}") @@ -180,7 +180,7 @@ def create_custom_table(self, create_custom_table_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -269,7 +269,7 @@ def create_email_recipients_group(self, create_email_recipients_group_details, s "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_email_recipients_group got unknown kwargs: {extra_kwargs!r}") @@ -278,9 +278,9 @@ def create_email_recipients_group(self, create_email_recipients_group_details, s "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -290,7 +290,7 @@ def create_email_recipients_group(self, create_email_recipients_group_details, s "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -378,7 +378,7 @@ def create_query(self, create_query_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_query got unknown kwargs: {extra_kwargs!r}") @@ -389,7 +389,7 @@ def create_query(self, create_query_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -475,7 +475,7 @@ def create_schedule(self, create_schedule_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_schedule got unknown kwargs: {extra_kwargs!r}") @@ -486,7 +486,7 @@ def create_schedule(self, create_schedule_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -572,7 +572,7 @@ def create_usage_carbon_emissions_query(self, create_usage_carbon_emissions_quer "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_usage_carbon_emissions_query got unknown kwargs: {extra_kwargs!r}") @@ -583,7 +583,7 @@ def create_usage_carbon_emissions_query(self, create_usage_carbon_emissions_quer "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -669,7 +669,7 @@ def delete_custom_table(self, custom_table_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_custom_table got unknown kwargs: {extra_kwargs!r}") @@ -678,9 +678,9 @@ def delete_custom_table(self, custom_table_id, **kwargs): "customTableId": custom_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -690,7 +690,7 @@ def delete_custom_table(self, custom_table_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -779,7 +779,7 @@ def delete_email_recipients_group(self, email_recipients_group_id, subscription_ "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_email_recipients_group got unknown kwargs: {extra_kwargs!r}") @@ -789,16 +789,16 @@ def delete_email_recipients_group(self, email_recipients_group_id, subscription_ "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -806,7 +806,7 @@ def delete_email_recipients_group(self, email_recipients_group_id, subscription_ "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -891,7 +891,7 @@ def delete_query(self, query_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_query got unknown kwargs: {extra_kwargs!r}") @@ -900,9 +900,9 @@ def delete_query(self, query_id, **kwargs): "queryId": query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -912,7 +912,7 @@ def delete_query(self, query_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -995,7 +995,7 @@ def delete_schedule(self, schedule_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1004,9 +1004,9 @@ def delete_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1016,7 +1016,7 @@ def delete_schedule(self, schedule_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1099,7 +1099,7 @@ def delete_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, * "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_usage_carbon_emissions_query got unknown kwargs: {extra_kwargs!r}") @@ -1108,9 +1108,9 @@ def delete_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, * "usageCarbonEmissionsQueryId": usage_carbon_emissions_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1120,7 +1120,7 @@ def delete_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, * "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1195,7 +1195,7 @@ def get_custom_table(self, custom_table_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_custom_table got unknown kwargs: {extra_kwargs!r}") @@ -1204,9 +1204,9 @@ def get_custom_table(self, custom_table_id, **kwargs): "customTableId": custom_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1215,7 +1215,7 @@ def get_custom_table(self, custom_table_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1298,7 +1298,7 @@ def get_email_recipients_group(self, email_recipients_group_id, subscription_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_email_recipients_group got unknown kwargs: {extra_kwargs!r}") @@ -1308,23 +1308,23 @@ def get_email_recipients_group(self, email_recipients_group_id, subscription_id, "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1403,7 +1403,7 @@ def get_query(self, query_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_query got unknown kwargs: {extra_kwargs!r}") @@ -1412,9 +1412,9 @@ def get_query(self, query_id, **kwargs): "queryId": query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1423,7 +1423,7 @@ def get_query(self, query_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1500,7 +1500,7 @@ def get_schedule(self, schedule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_schedule got unknown kwargs: {extra_kwargs!r}") @@ -1509,9 +1509,9 @@ def get_schedule(self, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1520,7 +1520,7 @@ def get_schedule(self, schedule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1597,7 +1597,7 @@ def get_scheduled_run(self, scheduled_run_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_scheduled_run got unknown kwargs: {extra_kwargs!r}") @@ -1606,9 +1606,9 @@ def get_scheduled_run(self, scheduled_run_id, **kwargs): "scheduledRunId": scheduled_run_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1617,7 +1617,7 @@ def get_scheduled_run(self, scheduled_run_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1694,7 +1694,7 @@ def get_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_usage_carbon_emissions_query got unknown kwargs: {extra_kwargs!r}") @@ -1703,9 +1703,9 @@ def get_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, **kw "usageCarbonEmissionsQueryId": usage_carbon_emissions_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1714,7 +1714,7 @@ def get_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1815,7 +1815,7 @@ def list_custom_tables(self, compartment_id, saved_report_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_custom_tables got unknown kwargs: {extra_kwargs!r}") @@ -1842,14 +1842,14 @@ def list_custom_tables(self, compartment_id, saved_report_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1958,7 +1958,7 @@ def list_email_recipients_groups(self, subscription_id, compartment_id, **kwargs "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_email_recipients_groups got unknown kwargs: {extra_kwargs!r}") @@ -1967,9 +1967,9 @@ def list_email_recipients_groups(self, subscription_id, compartment_id, **kwargs "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1994,7 +1994,7 @@ def list_email_recipients_groups(self, subscription_id, compartment_id, **kwargs "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2002,7 +2002,7 @@ def list_email_recipients_groups(self, subscription_id, compartment_id, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2103,7 +2103,7 @@ def list_queries(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_queries got unknown kwargs: {extra_kwargs!r}") @@ -2129,14 +2129,14 @@ def list_queries(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2234,7 +2234,7 @@ def list_scheduled_runs(self, schedule_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_scheduled_runs got unknown kwargs: {extra_kwargs!r}") @@ -2260,14 +2260,14 @@ def list_scheduled_runs(self, schedule_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2369,7 +2369,7 @@ def list_schedules(self, compartment_id, **kwargs): "sort_order", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_schedules got unknown kwargs: {extra_kwargs!r}") @@ -2396,14 +2396,14 @@ def list_schedules(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2501,7 +2501,7 @@ def list_usage_carbon_emissions_queries(self, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_usage_carbon_emissions_queries got unknown kwargs: {extra_kwargs!r}") @@ -2527,14 +2527,14 @@ def list_usage_carbon_emissions_queries(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2611,7 +2611,7 @@ def request_average_carbon_emission(self, sku_part_number, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_average_carbon_emission got unknown kwargs: {extra_kwargs!r}") @@ -2620,9 +2620,9 @@ def request_average_carbon_emission(self, sku_part_number, **kwargs): "skuPartNumber": sku_part_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2631,7 +2631,7 @@ def request_average_carbon_emission(self, sku_part_number, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2712,7 +2712,7 @@ def request_clean_energy_usage(self, region, **kwargs): "ad", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_clean_energy_usage got unknown kwargs: {extra_kwargs!r}") @@ -2721,23 +2721,23 @@ def request_clean_energy_usage(self, region, **kwargs): "region": region } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "ad": kwargs.get("ad", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2816,7 +2816,7 @@ def request_summarized_configurations(self, tenant_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_configurations got unknown kwargs: {extra_kwargs!r}") @@ -2824,14 +2824,14 @@ def request_summarized_configurations(self, tenant_id, **kwargs): query_params = { "tenantId": tenant_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2917,7 +2917,7 @@ def request_summarized_usages(self, request_summarized_usages_details, **kwargs) "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_usages got unknown kwargs: {extra_kwargs!r}") @@ -2926,14 +2926,14 @@ def request_summarized_usages(self, request_summarized_usages_details, **kwargs) "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3012,7 +3012,7 @@ def request_usage_carbon_emission_config(self, tenant_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_usage_carbon_emission_config got unknown kwargs: {extra_kwargs!r}") @@ -3020,14 +3020,14 @@ def request_usage_carbon_emission_config(self, tenant_id, **kwargs): query_params = { "tenantId": tenant_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3113,7 +3113,7 @@ def request_usage_carbon_emissions(self, request_usage_carbon_emissions_details, "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_usage_carbon_emissions got unknown kwargs: {extra_kwargs!r}") @@ -3122,14 +3122,14 @@ def request_usage_carbon_emissions(self, request_usage_carbon_emissions_details, "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3219,7 +3219,7 @@ def update_custom_table(self, update_custom_table_details, custom_table_id, **kw "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_custom_table got unknown kwargs: {extra_kwargs!r}") @@ -3228,9 +3228,9 @@ def update_custom_table(self, update_custom_table_details, custom_table_id, **kw "customTableId": custom_table_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3240,7 +3240,7 @@ def update_custom_table(self, update_custom_table_details, custom_table_id, **kw "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3336,7 +3336,7 @@ def update_email_recipients_group(self, update_email_recipients_group_details, e "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_email_recipients_group got unknown kwargs: {extra_kwargs!r}") @@ -3346,16 +3346,16 @@ def update_email_recipients_group(self, update_email_recipients_group_details, e "subscriptionId": subscription_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3363,7 +3363,7 @@ def update_email_recipients_group(self, update_email_recipients_group_details, e "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3455,7 +3455,7 @@ def update_query(self, update_query_details, query_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_query got unknown kwargs: {extra_kwargs!r}") @@ -3464,9 +3464,9 @@ def update_query(self, update_query_details, query_id, **kwargs): "queryId": query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3476,7 +3476,7 @@ def update_query(self, update_query_details, query_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3566,7 +3566,7 @@ def update_schedule(self, update_schedule_details, schedule_id, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_schedule got unknown kwargs: {extra_kwargs!r}") @@ -3575,9 +3575,9 @@ def update_schedule(self, update_schedule_details, schedule_id, **kwargs): "scheduleId": schedule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3587,7 +3587,7 @@ def update_schedule(self, update_schedule_details, schedule_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3677,7 +3677,7 @@ def update_usage_carbon_emissions_query(self, update_usage_carbon_emissions_quer "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_usage_carbon_emissions_query got unknown kwargs: {extra_kwargs!r}") @@ -3686,9 +3686,9 @@ def update_usage_carbon_emissions_query(self, update_usage_carbon_emissions_quer "usageCarbonEmissionsQueryId": usage_carbon_emissions_query_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3698,7 +3698,7 @@ def update_usage_carbon_emissions_query(self, update_usage_carbon_emissions_quer "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/vault/vaults_client.py b/src/oci/vault/vaults_client.py index cf60cc3a9..5e8079e22 100644 --- a/src/oci/vault/vaults_client.py +++ b/src/oci/vault/vaults_client.py @@ -172,7 +172,7 @@ def cancel_secret_deletion(self, secret_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_secret_deletion got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def cancel_secret_deletion(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def cancel_secret_deletion(self, secret_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -279,7 +279,7 @@ def cancel_secret_rotation(self, secret_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_secret_rotation got unknown kwargs: {extra_kwargs!r}") @@ -288,9 +288,9 @@ def cancel_secret_rotation(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -300,7 +300,7 @@ def cancel_secret_rotation(self, secret_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -389,7 +389,7 @@ def cancel_secret_version_deletion(self, secret_id, secret_version_number, **kwa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_secret_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -399,9 +399,9 @@ def cancel_secret_version_deletion(self, secret_id, secret_version_number, **kwa "secretVersionNumber": secret_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -411,7 +411,7 @@ def cancel_secret_version_deletion(self, secret_id, secret_version_number, **kwa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -512,7 +512,7 @@ def change_secret_compartment(self, secret_id, change_secret_compartment_details "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_secret_compartment got unknown kwargs: {extra_kwargs!r}") @@ -521,9 +521,9 @@ def change_secret_compartment(self, secret_id, change_secret_compartment_details "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -534,7 +534,7 @@ def change_secret_compartment(self, secret_id, change_secret_compartment_details "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -624,7 +624,7 @@ def create_secret(self, create_secret_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_secret got unknown kwargs: {extra_kwargs!r}") @@ -635,7 +635,7 @@ def create_secret(self, create_secret_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -716,7 +716,7 @@ def get_secret(self, secret_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_secret got unknown kwargs: {extra_kwargs!r}") @@ -725,9 +725,9 @@ def get_secret(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -736,7 +736,7 @@ def get_secret(self, secret_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -819,7 +819,7 @@ def get_secret_version(self, secret_id, secret_version_number, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_secret_version got unknown kwargs: {extra_kwargs!r}") @@ -829,9 +829,9 @@ def get_secret_version(self, secret_id, secret_version_number, **kwargs): "secretVersionNumber": secret_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -840,7 +840,7 @@ def get_secret_version(self, secret_id, secret_version_number, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -941,7 +941,7 @@ def list_secret_versions(self, secret_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_secret_versions got unknown kwargs: {extra_kwargs!r}") @@ -950,9 +950,9 @@ def list_secret_versions(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -976,14 +976,14 @@ def list_secret_versions(self, secret_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1101,7 +1101,7 @@ def list_secrets(self, compartment_id, **kwargs): "vault_id", "lifecycle_state" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_secrets got unknown kwargs: {extra_kwargs!r}") @@ -1137,14 +1137,14 @@ def list_secrets(self, compartment_id, **kwargs): "vaultId": kwargs.get("vault_id", missing), "lifecycleState": kwargs.get("lifecycle_state", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1241,7 +1241,7 @@ def rotate_secret(self, secret_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"rotate_secret got unknown kwargs: {extra_kwargs!r}") @@ -1250,9 +1250,9 @@ def rotate_secret(self, secret_id, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1263,7 +1263,7 @@ def rotate_secret(self, secret_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1354,7 +1354,7 @@ def schedule_secret_deletion(self, secret_id, schedule_secret_deletion_details, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_secret_deletion got unknown kwargs: {extra_kwargs!r}") @@ -1363,9 +1363,9 @@ def schedule_secret_deletion(self, secret_id, schedule_secret_deletion_details, "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1375,7 +1375,7 @@ def schedule_secret_deletion(self, secret_id, schedule_secret_deletion_details, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1468,7 +1468,7 @@ def schedule_secret_version_deletion(self, secret_id, secret_version_number, sch "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"schedule_secret_version_deletion got unknown kwargs: {extra_kwargs!r}") @@ -1478,9 +1478,9 @@ def schedule_secret_version_deletion(self, secret_id, secret_version_number, sch "secretVersionNumber": secret_version_number } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1490,7 +1490,7 @@ def schedule_secret_version_deletion(self, secret_id, secret_version_number, sch "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1584,7 +1584,7 @@ def update_secret(self, secret_id, update_secret_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_secret got unknown kwargs: {extra_kwargs!r}") @@ -1593,9 +1593,9 @@ def update_secret(self, secret_id, update_secret_details, **kwargs): "secretId": secret_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1605,7 +1605,7 @@ def update_secret(self, secret_id, update_secret_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/vbs_inst/vbs_instance_client.py b/src/oci/vbs_inst/vbs_instance_client.py index b367321f3..11a7f7083 100644 --- a/src/oci/vbs_inst/vbs_instance_client.py +++ b/src/oci/vbs_inst/vbs_instance_client.py @@ -171,7 +171,7 @@ def change_vbs_instance_compartment(self, vbs_instance_id, change_vbs_instance_c "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vbs_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -180,9 +180,9 @@ def change_vbs_instance_compartment(self, vbs_instance_id, change_vbs_instance_c "vbsInstanceId": vbs_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -192,7 +192,7 @@ def change_vbs_instance_compartment(self, vbs_instance_id, change_vbs_instance_c "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def create_vbs_instance(self, create_vbs_instance_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vbs_instance got unknown kwargs: {extra_kwargs!r}") @@ -292,7 +292,7 @@ def create_vbs_instance(self, create_vbs_instance_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -375,7 +375,7 @@ def delete_vbs_instance(self, vbs_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vbs_instance got unknown kwargs: {extra_kwargs!r}") @@ -384,9 +384,9 @@ def delete_vbs_instance(self, vbs_instance_id, **kwargs): "vbsInstanceId": vbs_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -396,7 +396,7 @@ def delete_vbs_instance(self, vbs_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -470,7 +470,7 @@ def get_vbs_instance(self, vbs_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vbs_instance got unknown kwargs: {extra_kwargs!r}") @@ -479,9 +479,9 @@ def get_vbs_instance(self, vbs_instance_id, **kwargs): "vbsInstanceId": vbs_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -490,7 +490,7 @@ def get_vbs_instance(self, vbs_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -566,7 +566,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -575,9 +575,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -586,7 +586,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -696,7 +696,7 @@ def list_vbs_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vbs_instances got unknown kwargs: {extra_kwargs!r}") @@ -732,14 +732,14 @@ def list_vbs_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -835,7 +835,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -844,9 +844,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -870,14 +870,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -975,7 +975,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -984,9 +984,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1010,14 +1010,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1119,7 +1119,7 @@ def list_work_requests(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1146,14 +1146,14 @@ def list_work_requests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1240,7 +1240,7 @@ def update_vbs_instance(self, vbs_instance_id, update_vbs_instance_details, **kw "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vbs_instance got unknown kwargs: {extra_kwargs!r}") @@ -1249,9 +1249,9 @@ def update_vbs_instance(self, vbs_instance_id, update_vbs_instance_details, **kw "vbsInstanceId": vbs_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1261,7 +1261,7 @@ def update_vbs_instance(self, vbs_instance_id, update_vbs_instance_details, **kw "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/visual_builder/vb_instance_client.py b/src/oci/visual_builder/vb_instance_client.py index f9018fe05..f4d7ed5b1 100644 --- a/src/oci/visual_builder/vb_instance_client.py +++ b/src/oci/visual_builder/vb_instance_client.py @@ -181,7 +181,7 @@ def change_vb_instance_compartment(self, vb_instance_id, change_vb_instance_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_vb_instance_compartment got unknown kwargs: {extra_kwargs!r}") @@ -190,9 +190,9 @@ def change_vb_instance_compartment(self, vb_instance_id, change_vb_instance_comp "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -203,7 +203,7 @@ def change_vb_instance_compartment(self, vb_instance_id, change_vb_instance_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -289,7 +289,7 @@ def create_vb_instance(self, create_vb_instance_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -300,7 +300,7 @@ def create_vb_instance(self, create_vb_instance_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -383,7 +383,7 @@ def delete_vb_instance(self, vb_instance_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -392,9 +392,9 @@ def delete_vb_instance(self, vb_instance_id, **kwargs): "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -404,7 +404,7 @@ def delete_vb_instance(self, vb_instance_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -478,7 +478,7 @@ def get_vb_instance(self, vb_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -487,9 +487,9 @@ def get_vb_instance(self, vb_instance_id, **kwargs): "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -498,7 +498,7 @@ def get_vb_instance(self, vb_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -576,7 +576,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -585,9 +585,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -596,7 +596,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -708,7 +708,7 @@ def list_vb_instances(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vb_instances got unknown kwargs: {extra_kwargs!r}") @@ -743,14 +743,14 @@ def list_vb_instances(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -839,7 +839,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -848,9 +848,9 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -859,14 +859,14 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -957,7 +957,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -966,9 +966,9 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -977,14 +977,14 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1076,7 +1076,7 @@ def list_work_requests(self, compartment_id, **kwargs): "limit", "vb_instance_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1087,14 +1087,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "vbInstanceId": kwargs.get("vb_instance_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1191,7 +1191,7 @@ def reconfigure_private_endpoint_vb_instance(self, vb_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"reconfigure_private_endpoint_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -1200,9 +1200,9 @@ def reconfigure_private_endpoint_vb_instance(self, vb_instance_id, **kwargs): "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1213,7 +1213,7 @@ def reconfigure_private_endpoint_vb_instance(self, vb_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1308,7 +1308,7 @@ def request_summarized_applications(self, request_summarized_applications_detail "if_match", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"request_summarized_applications got unknown kwargs: {extra_kwargs!r}") @@ -1317,9 +1317,9 @@ def request_summarized_applications(self, request_summarized_applications_detail "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1330,7 +1330,7 @@ def request_summarized_applications(self, request_summarized_applications_detail "if-match": kwargs.get("if_match", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1427,7 +1427,7 @@ def start_vb_instance(self, vb_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -1436,9 +1436,9 @@ def start_vb_instance(self, vb_instance_id, **kwargs): "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1449,7 +1449,7 @@ def start_vb_instance(self, vb_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1542,7 +1542,7 @@ def stop_vb_instance(self, vb_instance_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -1551,9 +1551,9 @@ def stop_vb_instance(self, vb_instance_id, **kwargs): "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1564,7 +1564,7 @@ def stop_vb_instance(self, vb_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1650,7 +1650,7 @@ def update_vb_instance(self, vb_instance_id, update_vb_instance_details, **kwarg "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_vb_instance got unknown kwargs: {extra_kwargs!r}") @@ -1659,9 +1659,9 @@ def update_vb_instance(self, vb_instance_id, update_vb_instance_details, **kwarg "vbInstanceId": vb_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1671,7 +1671,7 @@ def update_vb_instance(self, vb_instance_id, update_vb_instance_details, **kwarg "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/vn_monitoring/vn_monitoring_client.py b/src/oci/vn_monitoring/vn_monitoring_client.py index 244abc43e..18dc90704 100644 --- a/src/oci/vn_monitoring/vn_monitoring_client.py +++ b/src/oci/vn_monitoring/vn_monitoring_client.py @@ -173,7 +173,7 @@ def change_path_analyzer_test_compartment(self, path_analyzer_test_id, change_pa "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_path_analyzer_test_compartment got unknown kwargs: {extra_kwargs!r}") @@ -182,9 +182,9 @@ def change_path_analyzer_test_compartment(self, path_analyzer_test_id, change_pa "pathAnalyzerTestId": path_analyzer_test_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -194,7 +194,7 @@ def change_path_analyzer_test_compartment(self, path_analyzer_test_id, change_pa "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -279,7 +279,7 @@ def create_path_analyzer_test(self, create_path_analyzer_test_details, **kwargs) "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_path_analyzer_test got unknown kwargs: {extra_kwargs!r}") @@ -290,7 +290,7 @@ def create_path_analyzer_test(self, create_path_analyzer_test_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -376,7 +376,7 @@ def delete_path_analyzer_test(self, path_analyzer_test_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_path_analyzer_test got unknown kwargs: {extra_kwargs!r}") @@ -385,9 +385,9 @@ def delete_path_analyzer_test(self, path_analyzer_test_id, **kwargs): "pathAnalyzerTestId": path_analyzer_test_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -397,7 +397,7 @@ def delete_path_analyzer_test(self, path_analyzer_test_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -494,7 +494,7 @@ def get_path_analysis(self, get_path_analysis_details, **kwargs): "opc_request_id", "cache_control" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_path_analysis got unknown kwargs: {extra_kwargs!r}") @@ -506,7 +506,7 @@ def get_path_analysis(self, get_path_analysis_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "cache-control": kwargs.get("cache_control", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -584,7 +584,7 @@ def get_path_analyzer_test(self, path_analyzer_test_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_path_analyzer_test got unknown kwargs: {extra_kwargs!r}") @@ -593,9 +593,9 @@ def get_path_analyzer_test(self, path_analyzer_test_id, **kwargs): "pathAnalyzerTestId": path_analyzer_test_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -604,7 +604,7 @@ def get_path_analyzer_test(self, path_analyzer_test_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -683,7 +683,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -692,9 +692,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -703,7 +703,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -830,7 +830,7 @@ def list_path_analyzer_tests(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_path_analyzer_tests got unknown kwargs: {extra_kwargs!r}") @@ -865,14 +865,14 @@ def list_path_analyzer_tests(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -982,7 +982,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -991,9 +991,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1017,14 +1017,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1136,7 +1136,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1145,9 +1145,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1171,14 +1171,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1284,7 +1284,7 @@ def list_work_request_results(self, work_request_id, **kwargs): "page", "result_type" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_results got unknown kwargs: {extra_kwargs!r}") @@ -1293,9 +1293,9 @@ def list_work_request_results(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1311,14 +1311,14 @@ def list_work_request_results(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "resultType": kwargs.get("result_type", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1444,7 +1444,7 @@ def list_work_requests(self, compartment_id, **kwargs): "status", "resource_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1480,14 +1480,14 @@ def list_work_requests(self, compartment_id, **kwargs): "status": kwargs.get("status", missing), "resourceId": kwargs.get("resource_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1583,7 +1583,7 @@ def update_path_analyzer_test(self, path_analyzer_test_id, update_path_analyzer_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_path_analyzer_test got unknown kwargs: {extra_kwargs!r}") @@ -1592,9 +1592,9 @@ def update_path_analyzer_test(self, path_analyzer_test_id, update_path_analyzer_ "pathAnalyzerTestId": path_analyzer_test_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1605,7 +1605,7 @@ def update_path_analyzer_test(self, path_analyzer_test_id, update_path_analyzer_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/vulnerability_scanning/vulnerability_scanning_client.py b/src/oci/vulnerability_scanning/vulnerability_scanning_client.py index 00289aa5b..5efeaf6a2 100644 --- a/src/oci/vulnerability_scanning/vulnerability_scanning_client.py +++ b/src/oci/vulnerability_scanning/vulnerability_scanning_client.py @@ -179,7 +179,7 @@ def change_container_scan_recipe_compartment(self, container_scan_recipe_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_container_scan_recipe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -188,9 +188,9 @@ def change_container_scan_recipe_compartment(self, container_scan_recipe_id, cha "containerScanRecipeId": container_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -201,7 +201,7 @@ def change_container_scan_recipe_compartment(self, container_scan_recipe_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -297,7 +297,7 @@ def change_container_scan_result_compartment(self, container_scan_result_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_container_scan_result_compartment got unknown kwargs: {extra_kwargs!r}") @@ -306,9 +306,9 @@ def change_container_scan_result_compartment(self, container_scan_result_id, cha "containerScanResultId": container_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -319,7 +319,7 @@ def change_container_scan_result_compartment(self, container_scan_result_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -415,7 +415,7 @@ def change_container_scan_target_compartment(self, container_scan_target_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_container_scan_target_compartment got unknown kwargs: {extra_kwargs!r}") @@ -424,9 +424,9 @@ def change_container_scan_target_compartment(self, container_scan_target_id, cha "containerScanTargetId": container_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -437,7 +437,7 @@ def change_container_scan_target_compartment(self, container_scan_target_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -533,7 +533,7 @@ def change_host_agent_scan_result_compartment(self, host_agent_scan_result_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_agent_scan_result_compartment got unknown kwargs: {extra_kwargs!r}") @@ -542,9 +542,9 @@ def change_host_agent_scan_result_compartment(self, host_agent_scan_result_id, c "hostAgentScanResultId": host_agent_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -555,7 +555,7 @@ def change_host_agent_scan_result_compartment(self, host_agent_scan_result_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -651,7 +651,7 @@ def change_host_cis_benchmark_scan_result_compartment(self, host_cis_benchmark_s "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_cis_benchmark_scan_result_compartment got unknown kwargs: {extra_kwargs!r}") @@ -660,9 +660,9 @@ def change_host_cis_benchmark_scan_result_compartment(self, host_cis_benchmark_s "hostCisBenchmarkScanResultId": host_cis_benchmark_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -673,7 +673,7 @@ def change_host_cis_benchmark_scan_result_compartment(self, host_cis_benchmark_s "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -769,7 +769,7 @@ def change_host_endpoint_protection_scan_result_compartment(self, host_endpoint_ "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_endpoint_protection_scan_result_compartment got unknown kwargs: {extra_kwargs!r}") @@ -778,9 +778,9 @@ def change_host_endpoint_protection_scan_result_compartment(self, host_endpoint_ "hostEndpointProtectionScanResultId": host_endpoint_protection_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -791,7 +791,7 @@ def change_host_endpoint_protection_scan_result_compartment(self, host_endpoint_ "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -887,7 +887,7 @@ def change_host_port_scan_result_compartment(self, host_port_scan_result_id, cha "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_port_scan_result_compartment got unknown kwargs: {extra_kwargs!r}") @@ -896,9 +896,9 @@ def change_host_port_scan_result_compartment(self, host_port_scan_result_id, cha "hostPortScanResultId": host_port_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -909,7 +909,7 @@ def change_host_port_scan_result_compartment(self, host_port_scan_result_id, cha "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1005,7 +1005,7 @@ def change_host_scan_recipe_compartment(self, host_scan_recipe_id, change_host_s "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_scan_recipe_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1014,9 +1014,9 @@ def change_host_scan_recipe_compartment(self, host_scan_recipe_id, change_host_s "hostScanRecipeId": host_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1027,7 +1027,7 @@ def change_host_scan_recipe_compartment(self, host_scan_recipe_id, change_host_s "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1123,7 +1123,7 @@ def change_host_scan_target_compartment(self, host_scan_target_id, change_host_s "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_host_scan_target_compartment got unknown kwargs: {extra_kwargs!r}") @@ -1132,9 +1132,9 @@ def change_host_scan_target_compartment(self, host_scan_target_id, change_host_s "hostScanTargetId": host_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1145,7 +1145,7 @@ def change_host_scan_target_compartment(self, host_scan_target_id, change_host_s "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1230,7 +1230,7 @@ def create_container_scan_recipe(self, create_container_scan_recipe_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_container_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1241,7 +1241,7 @@ def create_container_scan_recipe(self, create_container_scan_recipe_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1326,7 +1326,7 @@ def create_container_scan_target(self, create_container_scan_target_details, **k "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_container_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -1337,7 +1337,7 @@ def create_container_scan_target(self, create_container_scan_target_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1422,7 +1422,7 @@ def create_host_scan_recipe(self, create_host_scan_recipe_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_host_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1433,7 +1433,7 @@ def create_host_scan_recipe(self, create_host_scan_recipe_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1518,7 +1518,7 @@ def create_host_scan_target(self, create_host_scan_target_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_host_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -1529,7 +1529,7 @@ def create_host_scan_target(self, create_host_scan_target_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1614,7 +1614,7 @@ def delete_container_scan_recipe(self, container_scan_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -1623,9 +1623,9 @@ def delete_container_scan_recipe(self, container_scan_recipe_id, **kwargs): "containerScanRecipeId": container_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1635,7 +1635,7 @@ def delete_container_scan_recipe(self, container_scan_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1717,7 +1717,7 @@ def delete_container_scan_result(self, container_scan_result_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -1726,9 +1726,9 @@ def delete_container_scan_result(self, container_scan_result_id, **kwargs): "containerScanResultId": container_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1738,7 +1738,7 @@ def delete_container_scan_result(self, container_scan_result_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1820,7 +1820,7 @@ def delete_container_scan_target(self, container_scan_target_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_container_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -1829,9 +1829,9 @@ def delete_container_scan_target(self, container_scan_target_id, **kwargs): "containerScanTargetId": container_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1841,7 +1841,7 @@ def delete_container_scan_target(self, container_scan_target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1923,7 +1923,7 @@ def delete_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_agent_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -1932,9 +1932,9 @@ def delete_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): "hostAgentScanResultId": host_agent_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1944,7 +1944,7 @@ def delete_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2026,7 +2026,7 @@ def delete_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_i "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_cis_benchmark_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -2035,9 +2035,9 @@ def delete_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_i "hostCisBenchmarkScanResultId": host_cis_benchmark_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2047,7 +2047,7 @@ def delete_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_i "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2129,7 +2129,7 @@ def delete_host_endpoint_protection_scan_result(self, host_endpoint_protection_s "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_endpoint_protection_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -2138,9 +2138,9 @@ def delete_host_endpoint_protection_scan_result(self, host_endpoint_protection_s "hostEndpointProtectionScanResultId": host_endpoint_protection_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2150,7 +2150,7 @@ def delete_host_endpoint_protection_scan_result(self, host_endpoint_protection_s "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2232,7 +2232,7 @@ def delete_host_port_scan_result(self, host_port_scan_result_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_port_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -2241,9 +2241,9 @@ def delete_host_port_scan_result(self, host_port_scan_result_id, **kwargs): "hostPortScanResultId": host_port_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2253,7 +2253,7 @@ def delete_host_port_scan_result(self, host_port_scan_result_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2335,7 +2335,7 @@ def delete_host_scan_recipe(self, host_scan_recipe_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2344,9 +2344,9 @@ def delete_host_scan_recipe(self, host_scan_recipe_id, **kwargs): "hostScanRecipeId": host_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2356,7 +2356,7 @@ def delete_host_scan_recipe(self, host_scan_recipe_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2438,7 +2438,7 @@ def delete_host_scan_target(self, host_scan_target_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_host_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -2447,9 +2447,9 @@ def delete_host_scan_target(self, host_scan_target_id, **kwargs): "hostScanTargetId": host_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2459,7 +2459,7 @@ def delete_host_scan_target(self, host_scan_target_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2533,7 +2533,7 @@ def export_host_agent_scan_result_csv(self, export_host_agent_scan_result_csv_de "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_host_agent_scan_result_csv got unknown kwargs: {extra_kwargs!r}") @@ -2543,7 +2543,7 @@ def export_host_agent_scan_result_csv(self, export_host_agent_scan_result_csv_de "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2619,7 +2619,7 @@ def export_host_vulnerability_csv(self, export_host_vulnerability_csv_details, * "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"export_host_vulnerability_csv got unknown kwargs: {extra_kwargs!r}") @@ -2629,7 +2629,7 @@ def export_host_vulnerability_csv(self, export_host_vulnerability_csv_details, * "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2705,7 +2705,7 @@ def get_container_scan_recipe(self, container_scan_recipe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -2714,9 +2714,9 @@ def get_container_scan_recipe(self, container_scan_recipe_id, **kwargs): "containerScanRecipeId": container_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2725,7 +2725,7 @@ def get_container_scan_recipe(self, container_scan_recipe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2801,7 +2801,7 @@ def get_container_scan_result(self, container_scan_result_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -2810,9 +2810,9 @@ def get_container_scan_result(self, container_scan_result_id, **kwargs): "containerScanResultId": container_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2821,7 +2821,7 @@ def get_container_scan_result(self, container_scan_result_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2897,7 +2897,7 @@ def get_container_scan_target(self, container_scan_target_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_container_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -2906,9 +2906,9 @@ def get_container_scan_target(self, container_scan_target_id, **kwargs): "containerScanTargetId": container_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2917,7 +2917,7 @@ def get_container_scan_target(self, container_scan_target_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2993,7 +2993,7 @@ def get_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_agent_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -3002,9 +3002,9 @@ def get_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): "hostAgentScanResultId": host_agent_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3013,7 +3013,7 @@ def get_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3089,7 +3089,7 @@ def get_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_id, "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_cis_benchmark_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -3098,9 +3098,9 @@ def get_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_id, "hostCisBenchmarkScanResultId": host_cis_benchmark_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3109,7 +3109,7 @@ def get_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_id, "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3185,7 +3185,7 @@ def get_host_endpoint_protection_scan_result(self, host_endpoint_protection_scan "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_endpoint_protection_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -3194,9 +3194,9 @@ def get_host_endpoint_protection_scan_result(self, host_endpoint_protection_scan "hostEndpointProtectionScanResultId": host_endpoint_protection_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3205,7 +3205,7 @@ def get_host_endpoint_protection_scan_result(self, host_endpoint_protection_scan "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3281,7 +3281,7 @@ def get_host_port_scan_result(self, host_port_scan_result_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_port_scan_result got unknown kwargs: {extra_kwargs!r}") @@ -3290,9 +3290,9 @@ def get_host_port_scan_result(self, host_port_scan_result_id, **kwargs): "hostPortScanResultId": host_port_scan_result_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3301,7 +3301,7 @@ def get_host_port_scan_result(self, host_port_scan_result_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3377,7 +3377,7 @@ def get_host_scan_recipe(self, host_scan_recipe_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -3386,9 +3386,9 @@ def get_host_scan_recipe(self, host_scan_recipe_id, **kwargs): "hostScanRecipeId": host_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3397,7 +3397,7 @@ def get_host_scan_recipe(self, host_scan_recipe_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3473,7 +3473,7 @@ def get_host_scan_target(self, host_scan_target_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -3482,9 +3482,9 @@ def get_host_scan_target(self, host_scan_target_id, **kwargs): "hostScanTargetId": host_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3493,7 +3493,7 @@ def get_host_scan_target(self, host_scan_target_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3569,7 +3569,7 @@ def get_host_vulnerability(self, host_vulnerability_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_host_vulnerability got unknown kwargs: {extra_kwargs!r}") @@ -3578,9 +3578,9 @@ def get_host_vulnerability(self, host_vulnerability_id, **kwargs): "hostVulnerabilityId": host_vulnerability_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3589,7 +3589,7 @@ def get_host_vulnerability(self, host_vulnerability_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3665,7 +3665,7 @@ def get_vulnerability(self, vulnerability_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_vulnerability got unknown kwargs: {extra_kwargs!r}") @@ -3674,9 +3674,9 @@ def get_vulnerability(self, vulnerability_id, **kwargs): "vulnerabilityId": vulnerability_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3685,7 +3685,7 @@ def get_vulnerability(self, vulnerability_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3761,7 +3761,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -3770,9 +3770,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3781,7 +3781,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3887,7 +3887,7 @@ def list_container_scan_recipes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_scan_recipes got unknown kwargs: {extra_kwargs!r}") @@ -3922,14 +3922,14 @@ def list_container_scan_recipes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4059,7 +4059,7 @@ def list_container_scan_results(self, compartment_id, **kwargs): "opc_request_id", "is_latest_only" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -4099,14 +4099,14 @@ def list_container_scan_results(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "isLatestOnly": kwargs.get("is_latest_only", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4212,7 +4212,7 @@ def list_container_scan_targets(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_container_scan_targets got unknown kwargs: {extra_kwargs!r}") @@ -4247,14 +4247,14 @@ def list_container_scan_targets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4384,7 +4384,7 @@ def list_host_agent_scan_results(self, compartment_id, **kwargs): "display_name", "is_latest_only" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_agent_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -4424,14 +4424,14 @@ def list_host_agent_scan_results(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "isLatestOnly": kwargs.get("is_latest_only", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4557,7 +4557,7 @@ def list_host_cis_benchmark_scan_results(self, compartment_id, **kwargs): "display_name", "is_latest_only" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_cis_benchmark_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -4596,14 +4596,14 @@ def list_host_cis_benchmark_scan_results(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "isLatestOnly": kwargs.get("is_latest_only", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4729,7 +4729,7 @@ def list_host_endpoint_protection_scan_results(self, compartment_id, **kwargs): "display_name", "is_latest_only" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_endpoint_protection_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -4768,14 +4768,14 @@ def list_host_endpoint_protection_scan_results(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "isLatestOnly": kwargs.get("is_latest_only", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4901,7 +4901,7 @@ def list_host_port_scan_results(self, compartment_id, **kwargs): "display_name", "is_latest_only" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_port_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -4940,14 +4940,14 @@ def list_host_port_scan_results(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "isLatestOnly": kwargs.get("is_latest_only", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5053,7 +5053,7 @@ def list_host_scan_recipes(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_scan_recipes got unknown kwargs: {extra_kwargs!r}") @@ -5088,14 +5088,14 @@ def list_host_scan_recipes(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5200,7 +5200,7 @@ def list_host_scan_target_errors(self, compartment_id, host_scan_target_id, **kw "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_scan_target_errors got unknown kwargs: {extra_kwargs!r}") @@ -5209,9 +5209,9 @@ def list_host_scan_target_errors(self, compartment_id, host_scan_target_id, **kw "hostScanTargetId": host_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5244,14 +5244,14 @@ def list_host_scan_target_errors(self, compartment_id, host_scan_target_id, **kw "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5359,7 +5359,7 @@ def list_host_scan_targets(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_scan_targets got unknown kwargs: {extra_kwargs!r}") @@ -5394,14 +5394,14 @@ def list_host_scan_targets(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5517,7 +5517,7 @@ def list_host_vulnerabilities(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_vulnerabilities got unknown kwargs: {extra_kwargs!r}") @@ -5561,14 +5561,14 @@ def list_host_vulnerabilities(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5664,7 +5664,7 @@ def list_host_vulnerability_impacted_hosts(self, host_vulnerability_id, **kwargs "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_host_vulnerability_impacted_hosts got unknown kwargs: {extra_kwargs!r}") @@ -5673,9 +5673,9 @@ def list_host_vulnerability_impacted_hosts(self, host_vulnerability_id, **kwargs "hostVulnerabilityId": host_vulnerability_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5699,14 +5699,14 @@ def list_host_vulnerability_impacted_hosts(self, host_vulnerability_id, **kwargs "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5824,7 +5824,7 @@ def list_vulnerabilities(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerabilities got unknown kwargs: {extra_kwargs!r}") @@ -5868,14 +5868,14 @@ def list_vulnerabilities(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5971,7 +5971,7 @@ def list_vulnerability_impacted_containers(self, vulnerability_id, **kwargs): "opc_request_id", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerability_impacted_containers got unknown kwargs: {extra_kwargs!r}") @@ -5980,9 +5980,9 @@ def list_vulnerability_impacted_containers(self, vulnerability_id, **kwargs): "vulnerabilityId": vulnerability_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6006,14 +6006,14 @@ def list_vulnerability_impacted_containers(self, vulnerability_id, **kwargs): "page": kwargs.get("page", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6111,7 +6111,7 @@ def list_vulnerability_impacted_hosts(self, vulnerability_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_vulnerability_impacted_hosts got unknown kwargs: {extra_kwargs!r}") @@ -6120,9 +6120,9 @@ def list_vulnerability_impacted_hosts(self, vulnerability_id, **kwargs): "vulnerabilityId": vulnerability_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6146,14 +6146,14 @@ def list_vulnerability_impacted_hosts(self, vulnerability_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6239,7 +6239,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -6248,9 +6248,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6258,14 +6258,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6351,7 +6351,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -6360,9 +6360,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6370,14 +6370,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6463,7 +6463,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -6473,14 +6473,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6567,7 +6567,7 @@ def update_container_scan_recipe(self, container_scan_recipe_id, update_containe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -6576,9 +6576,9 @@ def update_container_scan_recipe(self, container_scan_recipe_id, update_containe "containerScanRecipeId": container_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6588,7 +6588,7 @@ def update_container_scan_recipe(self, container_scan_recipe_id, update_containe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6675,7 +6675,7 @@ def update_container_scan_target(self, container_scan_target_id, update_containe "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_container_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -6684,9 +6684,9 @@ def update_container_scan_target(self, container_scan_target_id, update_containe "containerScanTargetId": container_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6696,7 +6696,7 @@ def update_container_scan_target(self, container_scan_target_id, update_containe "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6783,7 +6783,7 @@ def update_host_scan_recipe(self, host_scan_recipe_id, update_host_scan_recipe_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_host_scan_recipe got unknown kwargs: {extra_kwargs!r}") @@ -6792,9 +6792,9 @@ def update_host_scan_recipe(self, host_scan_recipe_id, update_host_scan_recipe_d "hostScanRecipeId": host_scan_recipe_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6804,7 +6804,7 @@ def update_host_scan_recipe(self, host_scan_recipe_id, update_host_scan_recipe_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6891,7 +6891,7 @@ def update_host_scan_target(self, host_scan_target_id, update_host_scan_target_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_host_scan_target got unknown kwargs: {extra_kwargs!r}") @@ -6900,9 +6900,9 @@ def update_host_scan_target(self, host_scan_target_id, update_host_scan_target_d "hostScanTargetId": host_scan_target_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6912,7 +6912,7 @@ def update_host_scan_target(self, host_scan_target_id, update_host_scan_target_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/waa/waa_client.py b/src/oci/waa/waa_client.py index 761c128f6..c2ce1b395 100644 --- a/src/oci/waa/waa_client.py +++ b/src/oci/waa/waa_client.py @@ -174,7 +174,7 @@ def change_web_app_acceleration_compartment(self, web_app_acceleration_id, chang "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_web_app_acceleration_compartment got unknown kwargs: {extra_kwargs!r}") @@ -183,9 +183,9 @@ def change_web_app_acceleration_compartment(self, web_app_acceleration_id, chang "webAppAccelerationId": web_app_acceleration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -195,7 +195,7 @@ def change_web_app_acceleration_compartment(self, web_app_acceleration_id, chang "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -283,7 +283,7 @@ def change_web_app_acceleration_policy_compartment(self, web_app_acceleration_po "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_web_app_acceleration_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -292,9 +292,9 @@ def change_web_app_acceleration_policy_compartment(self, web_app_acceleration_po "webAppAccelerationPolicyId": web_app_acceleration_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -304,7 +304,7 @@ def change_web_app_acceleration_policy_compartment(self, web_app_acceleration_po "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -387,7 +387,7 @@ def create_web_app_acceleration(self, create_web_app_acceleration_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_web_app_acceleration got unknown kwargs: {extra_kwargs!r}") @@ -398,7 +398,7 @@ def create_web_app_acceleration(self, create_web_app_acceleration_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -482,7 +482,7 @@ def create_web_app_acceleration_policy(self, create_web_app_acceleration_policy_ "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_web_app_acceleration_policy got unknown kwargs: {extra_kwargs!r}") @@ -493,7 +493,7 @@ def create_web_app_acceleration_policy(self, create_web_app_acceleration_policy_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -578,7 +578,7 @@ def delete_web_app_acceleration(self, web_app_acceleration_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_web_app_acceleration got unknown kwargs: {extra_kwargs!r}") @@ -587,9 +587,9 @@ def delete_web_app_acceleration(self, web_app_acceleration_id, **kwargs): "webAppAccelerationId": web_app_acceleration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -599,7 +599,7 @@ def delete_web_app_acceleration(self, web_app_acceleration_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -681,7 +681,7 @@ def delete_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **k "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_web_app_acceleration_policy got unknown kwargs: {extra_kwargs!r}") @@ -690,9 +690,9 @@ def delete_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **k "webAppAccelerationPolicyId": web_app_acceleration_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -702,7 +702,7 @@ def delete_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **k "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -778,7 +778,7 @@ def get_web_app_acceleration(self, web_app_acceleration_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_web_app_acceleration got unknown kwargs: {extra_kwargs!r}") @@ -787,9 +787,9 @@ def get_web_app_acceleration(self, web_app_acceleration_id, **kwargs): "webAppAccelerationId": web_app_acceleration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -798,7 +798,7 @@ def get_web_app_acceleration(self, web_app_acceleration_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -876,7 +876,7 @@ def get_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **kwar "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_web_app_acceleration_policy got unknown kwargs: {extra_kwargs!r}") @@ -885,9 +885,9 @@ def get_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **kwar "webAppAccelerationPolicyId": web_app_acceleration_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -896,7 +896,7 @@ def get_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **kwar "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1012,7 +1012,7 @@ def list_web_app_acceleration_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_web_app_acceleration_policies got unknown kwargs: {extra_kwargs!r}") @@ -1041,14 +1041,14 @@ def list_web_app_acceleration_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1171,7 +1171,7 @@ def list_web_app_accelerations(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_web_app_accelerations got unknown kwargs: {extra_kwargs!r}") @@ -1201,14 +1201,14 @@ def list_web_app_accelerations(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1290,7 +1290,7 @@ def purge_web_app_acceleration_cache(self, web_app_acceleration_id, purge_web_ap "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"purge_web_app_acceleration_cache got unknown kwargs: {extra_kwargs!r}") @@ -1299,9 +1299,9 @@ def purge_web_app_acceleration_cache(self, web_app_acceleration_id, purge_web_ap "webAppAccelerationId": web_app_acceleration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1310,7 +1310,7 @@ def purge_web_app_acceleration_cache(self, web_app_acceleration_id, purge_web_ap "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1397,7 +1397,7 @@ def update_web_app_acceleration(self, web_app_acceleration_id, update_web_app_ac "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_web_app_acceleration got unknown kwargs: {extra_kwargs!r}") @@ -1406,9 +1406,9 @@ def update_web_app_acceleration(self, web_app_acceleration_id, update_web_app_ac "webAppAccelerationId": web_app_acceleration_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1418,7 +1418,7 @@ def update_web_app_acceleration(self, web_app_acceleration_id, update_web_app_ac "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1505,7 +1505,7 @@ def update_web_app_acceleration_policy(self, web_app_acceleration_policy_id, upd "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_web_app_acceleration_policy got unknown kwargs: {extra_kwargs!r}") @@ -1514,9 +1514,9 @@ def update_web_app_acceleration_policy(self, web_app_acceleration_policy_id, upd "webAppAccelerationPolicyId": web_app_acceleration_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1526,7 +1526,7 @@ def update_web_app_acceleration_policy(self, web_app_acceleration_policy_id, upd "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/waa/work_request_client.py b/src/oci/waa/work_request_client.py index e529ed9da..9e9f5e4d6 100644 --- a/src/oci/waa/work_request_client.py +++ b/src/oci/waa/work_request_client.py @@ -164,7 +164,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -173,9 +173,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -184,7 +184,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -271,7 +271,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -280,9 +280,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -290,14 +290,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -386,7 +386,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -395,9 +395,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -405,14 +405,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -507,7 +507,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -518,14 +518,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/waas/redirect_client.py b/src/oci/waas/redirect_client.py index 51822480a..b05b43883 100644 --- a/src/oci/waas/redirect_client.py +++ b/src/oci/waas/redirect_client.py @@ -173,7 +173,7 @@ def change_http_redirect_compartment(self, http_redirect_id, change_http_redirec "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_http_redirect_compartment got unknown kwargs: {extra_kwargs!r}") @@ -182,9 +182,9 @@ def change_http_redirect_compartment(self, http_redirect_id, change_http_redirec "httpRedirectId": http_redirect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -195,7 +195,7 @@ def change_http_redirect_compartment(self, http_redirect_id, change_http_redirec "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -277,7 +277,7 @@ def create_http_redirect(self, create_http_redirect_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_http_redirect got unknown kwargs: {extra_kwargs!r}") @@ -288,7 +288,7 @@ def create_http_redirect(self, create_http_redirect_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -374,7 +374,7 @@ def delete_http_redirect(self, http_redirect_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_http_redirect got unknown kwargs: {extra_kwargs!r}") @@ -383,9 +383,9 @@ def delete_http_redirect(self, http_redirect_id, **kwargs): "httpRedirectId": http_redirect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -396,7 +396,7 @@ def delete_http_redirect(self, http_redirect_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -473,7 +473,7 @@ def get_http_redirect(self, http_redirect_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_http_redirect got unknown kwargs: {extra_kwargs!r}") @@ -482,9 +482,9 @@ def get_http_redirect(self, http_redirect_id, **kwargs): "httpRedirectId": http_redirect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -493,7 +493,7 @@ def get_http_redirect(self, http_redirect_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -615,7 +615,7 @@ def list_http_redirects(self, compartment_id, **kwargs): "time_created_greater_than_or_equal_to", "time_created_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_http_redirects got unknown kwargs: {extra_kwargs!r}") @@ -654,14 +654,14 @@ def list_http_redirects(self, compartment_id, **kwargs): "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing), "timeCreatedLessThan": kwargs.get("time_created_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -753,7 +753,7 @@ def update_http_redirect(self, http_redirect_id, update_http_redirect_details, * "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_http_redirect got unknown kwargs: {extra_kwargs!r}") @@ -762,9 +762,9 @@ def update_http_redirect(self, http_redirect_id, update_http_redirect_details, * "httpRedirectId": http_redirect_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -775,7 +775,7 @@ def update_http_redirect(self, http_redirect_id, update_http_redirect_details, * "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/waas/waas_client.py b/src/oci/waas/waas_client.py index 63542e60e..b0cb9c5ef 100644 --- a/src/oci/waas/waas_client.py +++ b/src/oci/waas/waas_client.py @@ -172,7 +172,7 @@ def accept_recommendations(self, waas_policy_id, protection_rule_keys, **kwargs) "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"accept_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -181,9 +181,9 @@ def accept_recommendations(self, waas_policy_id, protection_rule_keys, **kwargs) "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -193,7 +193,7 @@ def accept_recommendations(self, waas_policy_id, protection_rule_keys, **kwargs) "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -280,7 +280,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") @@ -289,9 +289,9 @@ def cancel_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -302,7 +302,7 @@ def cancel_work_request(self, work_request_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -394,7 +394,7 @@ def change_address_list_compartment(self, address_list_id, change_address_list_c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_address_list_compartment got unknown kwargs: {extra_kwargs!r}") @@ -403,9 +403,9 @@ def change_address_list_compartment(self, address_list_id, change_address_list_c "addressListId": address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def change_address_list_compartment(self, address_list_id, change_address_list_c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -509,7 +509,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_certificate_compartment got unknown kwargs: {extra_kwargs!r}") @@ -518,9 +518,9 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -531,7 +531,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -623,7 +623,7 @@ def change_custom_protection_rule_compartment(self, custom_protection_rule_id, c "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_custom_protection_rule_compartment got unknown kwargs: {extra_kwargs!r}") @@ -632,9 +632,9 @@ def change_custom_protection_rule_compartment(self, custom_protection_rule_id, c "customProtectionRuleId": custom_protection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -645,7 +645,7 @@ def change_custom_protection_rule_compartment(self, custom_protection_rule_id, c "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -738,7 +738,7 @@ def change_waas_policy_compartment(self, waas_policy_id, change_waas_policy_comp "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_waas_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -747,9 +747,9 @@ def change_waas_policy_compartment(self, waas_policy_id, change_waas_policy_comp "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -760,7 +760,7 @@ def change_waas_policy_compartment(self, waas_policy_id, change_waas_policy_comp "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -842,7 +842,7 @@ def create_address_list(self, create_address_list_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_address_list got unknown kwargs: {extra_kwargs!r}") @@ -853,7 +853,7 @@ def create_address_list(self, create_address_list_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -939,7 +939,7 @@ def create_certificate(self, create_certificate_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_certificate got unknown kwargs: {extra_kwargs!r}") @@ -950,7 +950,7 @@ def create_certificate(self, create_certificate_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1037,7 +1037,7 @@ def create_custom_protection_rule(self, create_custom_protection_rule_details, * "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_custom_protection_rule got unknown kwargs: {extra_kwargs!r}") @@ -1048,7 +1048,7 @@ def create_custom_protection_rule(self, create_custom_protection_rule_details, * "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1145,7 +1145,7 @@ def create_waas_policy(self, create_waas_policy_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_waas_policy got unknown kwargs: {extra_kwargs!r}") @@ -1156,7 +1156,7 @@ def create_waas_policy(self, create_waas_policy_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1242,7 +1242,7 @@ def delete_address_list(self, address_list_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_address_list got unknown kwargs: {extra_kwargs!r}") @@ -1251,9 +1251,9 @@ def delete_address_list(self, address_list_id, **kwargs): "addressListId": address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1264,7 +1264,7 @@ def delete_address_list(self, address_list_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1350,7 +1350,7 @@ def delete_certificate(self, certificate_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1359,9 +1359,9 @@ def delete_certificate(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1372,7 +1372,7 @@ def delete_certificate(self, certificate_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1458,7 +1458,7 @@ def delete_custom_protection_rule(self, custom_protection_rule_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_custom_protection_rule got unknown kwargs: {extra_kwargs!r}") @@ -1467,9 +1467,9 @@ def delete_custom_protection_rule(self, custom_protection_rule_id, **kwargs): "customProtectionRuleId": custom_protection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1480,7 +1480,7 @@ def delete_custom_protection_rule(self, custom_protection_rule_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1566,7 +1566,7 @@ def delete_waas_policy(self, waas_policy_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_waas_policy got unknown kwargs: {extra_kwargs!r}") @@ -1575,9 +1575,9 @@ def delete_waas_policy(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1588,7 +1588,7 @@ def delete_waas_policy(self, waas_policy_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1665,7 +1665,7 @@ def get_address_list(self, address_list_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_address_list got unknown kwargs: {extra_kwargs!r}") @@ -1674,9 +1674,9 @@ def get_address_list(self, address_list_id, **kwargs): "addressListId": address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1685,7 +1685,7 @@ def get_address_list(self, address_list_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1765,7 +1765,7 @@ def get_certificate(self, certificate_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_certificate got unknown kwargs: {extra_kwargs!r}") @@ -1774,9 +1774,9 @@ def get_certificate(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1785,7 +1785,7 @@ def get_certificate(self, certificate_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1865,7 +1865,7 @@ def get_custom_protection_rule(self, custom_protection_rule_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_custom_protection_rule got unknown kwargs: {extra_kwargs!r}") @@ -1874,9 +1874,9 @@ def get_custom_protection_rule(self, custom_protection_rule_id, **kwargs): "customProtectionRuleId": custom_protection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1885,7 +1885,7 @@ def get_custom_protection_rule(self, custom_protection_rule_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1965,7 +1965,7 @@ def get_device_fingerprint_challenge(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_device_fingerprint_challenge got unknown kwargs: {extra_kwargs!r}") @@ -1974,9 +1974,9 @@ def get_device_fingerprint_challenge(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1985,7 +1985,7 @@ def get_device_fingerprint_challenge(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2065,7 +2065,7 @@ def get_human_interaction_challenge(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_human_interaction_challenge got unknown kwargs: {extra_kwargs!r}") @@ -2074,9 +2074,9 @@ def get_human_interaction_challenge(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2085,7 +2085,7 @@ def get_human_interaction_challenge(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2165,7 +2165,7 @@ def get_js_challenge(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_js_challenge got unknown kwargs: {extra_kwargs!r}") @@ -2174,9 +2174,9 @@ def get_js_challenge(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2185,7 +2185,7 @@ def get_js_challenge(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2265,7 +2265,7 @@ def get_policy_config(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_policy_config got unknown kwargs: {extra_kwargs!r}") @@ -2274,9 +2274,9 @@ def get_policy_config(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2285,7 +2285,7 @@ def get_policy_config(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2368,7 +2368,7 @@ def get_protection_rule(self, waas_policy_id, protection_rule_key, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_protection_rule got unknown kwargs: {extra_kwargs!r}") @@ -2378,9 +2378,9 @@ def get_protection_rule(self, waas_policy_id, protection_rule_key, **kwargs): "protectionRuleKey": protection_rule_key } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2389,7 +2389,7 @@ def get_protection_rule(self, waas_policy_id, protection_rule_key, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2469,7 +2469,7 @@ def get_protection_settings(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_protection_settings got unknown kwargs: {extra_kwargs!r}") @@ -2478,9 +2478,9 @@ def get_protection_settings(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2489,7 +2489,7 @@ def get_protection_settings(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2569,7 +2569,7 @@ def get_waas_policy(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_waas_policy got unknown kwargs: {extra_kwargs!r}") @@ -2578,9 +2578,9 @@ def get_waas_policy(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2589,7 +2589,7 @@ def get_waas_policy(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2669,7 +2669,7 @@ def get_waf_address_rate_limiting(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_waf_address_rate_limiting got unknown kwargs: {extra_kwargs!r}") @@ -2678,9 +2678,9 @@ def get_waf_address_rate_limiting(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2689,7 +2689,7 @@ def get_waf_address_rate_limiting(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2769,7 +2769,7 @@ def get_waf_config(self, waas_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_waf_config got unknown kwargs: {extra_kwargs!r}") @@ -2778,9 +2778,9 @@ def get_waf_config(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2789,7 +2789,7 @@ def get_waf_config(self, waas_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2869,7 +2869,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -2878,9 +2878,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2889,7 +2889,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2978,7 +2978,7 @@ def list_access_rules(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_access_rules got unknown kwargs: {extra_kwargs!r}") @@ -2987,9 +2987,9 @@ def list_access_rules(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2997,14 +2997,14 @@ def list_access_rules(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3128,7 +3128,7 @@ def list_address_lists(self, compartment_id, **kwargs): "time_created_greater_than_or_equal_to", "time_created_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_address_lists got unknown kwargs: {extra_kwargs!r}") @@ -3167,14 +3167,14 @@ def list_address_lists(self, compartment_id, **kwargs): "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing), "timeCreatedLessThan": kwargs.get("time_created_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3263,7 +3263,7 @@ def list_caching_rules(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_caching_rules got unknown kwargs: {extra_kwargs!r}") @@ -3272,9 +3272,9 @@ def list_caching_rules(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3282,14 +3282,14 @@ def list_caching_rules(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3383,7 +3383,7 @@ def list_captchas(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_captchas got unknown kwargs: {extra_kwargs!r}") @@ -3392,9 +3392,9 @@ def list_captchas(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3402,14 +3402,14 @@ def list_captchas(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3533,7 +3533,7 @@ def list_certificates(self, compartment_id, **kwargs): "time_created_greater_than_or_equal_to", "time_created_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_certificates got unknown kwargs: {extra_kwargs!r}") @@ -3572,14 +3572,14 @@ def list_certificates(self, compartment_id, **kwargs): "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing), "timeCreatedLessThan": kwargs.get("time_created_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3701,7 +3701,7 @@ def list_custom_protection_rules(self, compartment_id, **kwargs): "time_created_greater_than_or_equal_to", "time_created_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_custom_protection_rules got unknown kwargs: {extra_kwargs!r}") @@ -3740,14 +3740,14 @@ def list_custom_protection_rules(self, compartment_id, **kwargs): "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing), "timeCreatedLessThan": kwargs.get("time_created_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3842,7 +3842,7 @@ def list_edge_subnets(self, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_edge_subnets got unknown kwargs: {extra_kwargs!r}") @@ -3867,14 +3867,14 @@ def list_edge_subnets(self, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3964,7 +3964,7 @@ def list_good_bots(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_good_bots got unknown kwargs: {extra_kwargs!r}") @@ -3973,9 +3973,9 @@ def list_good_bots(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3983,14 +3983,14 @@ def list_good_bots(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4091,7 +4091,7 @@ def list_protection_rules(self, waas_policy_id, **kwargs): "mod_security_rule_id", "action" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protection_rules got unknown kwargs: {extra_kwargs!r}") @@ -4100,9 +4100,9 @@ def list_protection_rules(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4120,14 +4120,14 @@ def list_protection_rules(self, waas_policy_id, **kwargs): "modSecurityRuleId": self.base_client.generate_collection_format_param(kwargs.get("mod_security_rule_id", missing), 'multi'), "action": self.base_client.generate_collection_format_param(kwargs.get("action", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4228,7 +4228,7 @@ def list_recommendations(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_recommendations got unknown kwargs: {extra_kwargs!r}") @@ -4237,9 +4237,9 @@ def list_recommendations(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4255,14 +4255,14 @@ def list_recommendations(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4354,7 +4354,7 @@ def list_threat_feeds(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_threat_feeds got unknown kwargs: {extra_kwargs!r}") @@ -4363,9 +4363,9 @@ def list_threat_feeds(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4373,14 +4373,14 @@ def list_threat_feeds(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4504,7 +4504,7 @@ def list_waas_policies(self, compartment_id, **kwargs): "time_created_greater_than_or_equal_to", "time_created_less_than" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_waas_policies got unknown kwargs: {extra_kwargs!r}") @@ -4543,14 +4543,14 @@ def list_waas_policies(self, compartment_id, **kwargs): "timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing), "timeCreatedLessThan": kwargs.get("time_created_less_than", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4648,7 +4648,7 @@ def list_waas_policy_custom_protection_rules(self, waas_policy_id, **kwargs): "mod_security_rule_id", "action" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_waas_policy_custom_protection_rules got unknown kwargs: {extra_kwargs!r}") @@ -4657,9 +4657,9 @@ def list_waas_policy_custom_protection_rules(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4677,14 +4677,14 @@ def list_waas_policy_custom_protection_rules(self, waas_policy_id, **kwargs): "modSecurityRuleId": self.base_client.generate_collection_format_param(kwargs.get("mod_security_rule_id", missing), 'multi'), "action": self.base_client.generate_collection_format_param(kwargs.get("action", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4788,7 +4788,7 @@ def list_waf_blocked_requests(self, waas_policy_id, **kwargs): "page", "waf_feature" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_waf_blocked_requests got unknown kwargs: {extra_kwargs!r}") @@ -4797,9 +4797,9 @@ def list_waf_blocked_requests(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4818,14 +4818,14 @@ def list_waf_blocked_requests(self, waas_policy_id, **kwargs): "page": kwargs.get("page", missing), "wafFeature": self.base_client.generate_collection_format_param(kwargs.get("waf_feature", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5003,7 +5003,7 @@ def list_waf_logs(self, waas_policy_id, **kwargs): "user_agent", "protection_rule_key" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_waf_logs got unknown kwargs: {extra_kwargs!r}") @@ -5012,9 +5012,9 @@ def list_waf_logs(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5065,14 +5065,14 @@ def list_waf_logs(self, waas_policy_id, **kwargs): "userAgent": self.base_client.generate_collection_format_param(kwargs.get("user_agent", missing), 'multi'), "protectionRuleKey": self.base_client.generate_collection_format_param(kwargs.get("protection_rule_key", missing), 'multi') } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5172,7 +5172,7 @@ def list_waf_requests(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_waf_requests got unknown kwargs: {extra_kwargs!r}") @@ -5181,9 +5181,9 @@ def list_waf_requests(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5193,14 +5193,14 @@ def list_waf_requests(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5299,7 +5299,7 @@ def list_waf_traffic(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_waf_traffic got unknown kwargs: {extra_kwargs!r}") @@ -5308,9 +5308,9 @@ def list_waf_traffic(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5320,14 +5320,14 @@ def list_waf_traffic(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5417,7 +5417,7 @@ def list_whitelists(self, waas_policy_id, **kwargs): "limit", "page" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_whitelists got unknown kwargs: {extra_kwargs!r}") @@ -5426,9 +5426,9 @@ def list_whitelists(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5436,14 +5436,14 @@ def list_whitelists(self, waas_policy_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5550,7 +5550,7 @@ def list_work_requests(self, waas_policy_id, compartment_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -5577,14 +5577,14 @@ def list_work_requests(self, waas_policy_id, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5674,7 +5674,7 @@ def purge_cache(self, waas_policy_id, **kwargs): "if_match", "purge_cache" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"purge_cache got unknown kwargs: {extra_kwargs!r}") @@ -5683,9 +5683,9 @@ def purge_cache(self, waas_policy_id, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5695,7 +5695,7 @@ def purge_cache(self, waas_policy_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5792,7 +5792,7 @@ def update_access_rules(self, waas_policy_id, access_rules, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_access_rules got unknown kwargs: {extra_kwargs!r}") @@ -5801,9 +5801,9 @@ def update_access_rules(self, waas_policy_id, access_rules, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5814,7 +5814,7 @@ def update_access_rules(self, waas_policy_id, access_rules, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5901,7 +5901,7 @@ def update_address_list(self, address_list_id, **kwargs): "if_match", "update_address_list_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_address_list got unknown kwargs: {extra_kwargs!r}") @@ -5910,9 +5910,9 @@ def update_address_list(self, address_list_id, **kwargs): "addressListId": address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5922,7 +5922,7 @@ def update_address_list(self, address_list_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6021,7 +6021,7 @@ def update_caching_rules(self, waas_policy_id, caching_rules_details, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_caching_rules got unknown kwargs: {extra_kwargs!r}") @@ -6030,9 +6030,9 @@ def update_caching_rules(self, waas_policy_id, caching_rules_details, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6043,7 +6043,7 @@ def update_caching_rules(self, waas_policy_id, caching_rules_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6142,7 +6142,7 @@ def update_captchas(self, waas_policy_id, captchas, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_captchas got unknown kwargs: {extra_kwargs!r}") @@ -6151,9 +6151,9 @@ def update_captchas(self, waas_policy_id, captchas, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6164,7 +6164,7 @@ def update_captchas(self, waas_policy_id, captchas, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6251,7 +6251,7 @@ def update_certificate(self, certificate_id, **kwargs): "if_match", "update_certificate_details" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_certificate got unknown kwargs: {extra_kwargs!r}") @@ -6260,9 +6260,9 @@ def update_certificate(self, certificate_id, **kwargs): "certificateId": certificate_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6272,7 +6272,7 @@ def update_certificate(self, certificate_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6364,7 +6364,7 @@ def update_custom_protection_rule(self, custom_protection_rule_id, update_custom "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_custom_protection_rule got unknown kwargs: {extra_kwargs!r}") @@ -6373,9 +6373,9 @@ def update_custom_protection_rule(self, custom_protection_rule_id, update_custom "customProtectionRuleId": custom_protection_rule_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6386,7 +6386,7 @@ def update_custom_protection_rule(self, custom_protection_rule_id, update_custom "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6483,7 +6483,7 @@ def update_device_fingerprint_challenge(self, waas_policy_id, update_device_fing "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_device_fingerprint_challenge got unknown kwargs: {extra_kwargs!r}") @@ -6492,9 +6492,9 @@ def update_device_fingerprint_challenge(self, waas_policy_id, update_device_fing "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6505,7 +6505,7 @@ def update_device_fingerprint_challenge(self, waas_policy_id, update_device_fing "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6599,7 +6599,7 @@ def update_good_bots(self, waas_policy_id, good_bots, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_good_bots got unknown kwargs: {extra_kwargs!r}") @@ -6608,9 +6608,9 @@ def update_good_bots(self, waas_policy_id, good_bots, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6621,7 +6621,7 @@ def update_good_bots(self, waas_policy_id, good_bots, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6712,7 +6712,7 @@ def update_human_interaction_challenge(self, waas_policy_id, update_human_intera "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_human_interaction_challenge got unknown kwargs: {extra_kwargs!r}") @@ -6721,9 +6721,9 @@ def update_human_interaction_challenge(self, waas_policy_id, update_human_intera "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6734,7 +6734,7 @@ def update_human_interaction_challenge(self, waas_policy_id, update_human_intera "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6827,7 +6827,7 @@ def update_js_challenge(self, waas_policy_id, update_js_challenge_details, **kwa "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_js_challenge got unknown kwargs: {extra_kwargs!r}") @@ -6836,9 +6836,9 @@ def update_js_challenge(self, waas_policy_id, update_js_challenge_details, **kwa "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6849,7 +6849,7 @@ def update_js_challenge(self, waas_policy_id, update_js_challenge_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -6940,7 +6940,7 @@ def update_policy_config(self, waas_policy_id, update_policy_config_details, **k "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_policy_config got unknown kwargs: {extra_kwargs!r}") @@ -6949,9 +6949,9 @@ def update_policy_config(self, waas_policy_id, update_policy_config_details, **k "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -6962,7 +6962,7 @@ def update_policy_config(self, waas_policy_id, update_policy_config_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7051,7 +7051,7 @@ def update_protection_rules(self, waas_policy_id, protection_rules, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_protection_rules got unknown kwargs: {extra_kwargs!r}") @@ -7060,9 +7060,9 @@ def update_protection_rules(self, waas_policy_id, protection_rules, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7072,7 +7072,7 @@ def update_protection_rules(self, waas_policy_id, protection_rules, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7162,7 +7162,7 @@ def update_protection_settings(self, waas_policy_id, update_protection_settings_ "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_protection_settings got unknown kwargs: {extra_kwargs!r}") @@ -7171,9 +7171,9 @@ def update_protection_settings(self, waas_policy_id, update_protection_settings_ "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7184,7 +7184,7 @@ def update_protection_settings(self, waas_policy_id, update_protection_settings_ "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7270,7 +7270,7 @@ def update_threat_feeds(self, waas_policy_id, threat_feeds, **kwargs): "opc_request_id", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_threat_feeds got unknown kwargs: {extra_kwargs!r}") @@ -7279,9 +7279,9 @@ def update_threat_feeds(self, waas_policy_id, threat_feeds, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7291,7 +7291,7 @@ def update_threat_feeds(self, waas_policy_id, threat_feeds, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7383,7 +7383,7 @@ def update_waas_policy(self, waas_policy_id, update_waas_policy_details, **kwarg "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_waas_policy got unknown kwargs: {extra_kwargs!r}") @@ -7392,9 +7392,9 @@ def update_waas_policy(self, waas_policy_id, update_waas_policy_details, **kwarg "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7405,7 +7405,7 @@ def update_waas_policy(self, waas_policy_id, update_waas_policy_details, **kwarg "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7497,7 +7497,7 @@ def update_waas_policy_custom_protection_rules(self, waas_policy_id, update_cust "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_waas_policy_custom_protection_rules got unknown kwargs: {extra_kwargs!r}") @@ -7506,9 +7506,9 @@ def update_waas_policy_custom_protection_rules(self, waas_policy_id, update_cust "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7519,7 +7519,7 @@ def update_waas_policy_custom_protection_rules(self, waas_policy_id, update_cust "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7610,7 +7610,7 @@ def update_waf_address_rate_limiting(self, waas_policy_id, update_waf_address_ra "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_waf_address_rate_limiting got unknown kwargs: {extra_kwargs!r}") @@ -7619,9 +7619,9 @@ def update_waf_address_rate_limiting(self, waas_policy_id, update_waf_address_ra "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7632,7 +7632,7 @@ def update_waf_address_rate_limiting(self, waas_policy_id, update_waf_address_ra "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7730,7 +7730,7 @@ def update_waf_config(self, waas_policy_id, update_waf_config_details, **kwargs) "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_waf_config got unknown kwargs: {extra_kwargs!r}") @@ -7739,9 +7739,9 @@ def update_waf_config(self, waas_policy_id, update_waf_config_details, **kwargs) "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7752,7 +7752,7 @@ def update_waf_config(self, waas_policy_id, update_waf_config_details, **kwargs) "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -7850,7 +7850,7 @@ def update_whitelists(self, waas_policy_id, whitelists, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_whitelists got unknown kwargs: {extra_kwargs!r}") @@ -7859,9 +7859,9 @@ def update_whitelists(self, waas_policy_id, whitelists, **kwargs): "waasPolicyId": waas_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -7872,7 +7872,7 @@ def update_whitelists(self, waas_policy_id, whitelists, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/waf/waf_client.py b/src/oci/waf/waf_client.py index 03399ed1b..054d7d2d4 100644 --- a/src/oci/waf/waf_client.py +++ b/src/oci/waf/waf_client.py @@ -173,7 +173,7 @@ def change_network_address_list_compartment(self, network_address_list_id, chang "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_network_address_list_compartment got unknown kwargs: {extra_kwargs!r}") @@ -182,9 +182,9 @@ def change_network_address_list_compartment(self, network_address_list_id, chang "networkAddressListId": network_address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -194,7 +194,7 @@ def change_network_address_list_compartment(self, network_address_list_id, chang "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -284,7 +284,7 @@ def change_web_app_firewall_compartment(self, web_app_firewall_id, change_web_ap "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_web_app_firewall_compartment got unknown kwargs: {extra_kwargs!r}") @@ -293,9 +293,9 @@ def change_web_app_firewall_compartment(self, web_app_firewall_id, change_web_ap "webAppFirewallId": web_app_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -305,7 +305,7 @@ def change_web_app_firewall_compartment(self, web_app_firewall_id, change_web_ap "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -395,7 +395,7 @@ def change_web_app_firewall_policy_compartment(self, web_app_firewall_policy_id, "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_web_app_firewall_policy_compartment got unknown kwargs: {extra_kwargs!r}") @@ -404,9 +404,9 @@ def change_web_app_firewall_policy_compartment(self, web_app_firewall_policy_id, "webAppFirewallPolicyId": web_app_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -416,7 +416,7 @@ def change_web_app_firewall_policy_compartment(self, web_app_firewall_policy_id, "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -501,7 +501,7 @@ def create_network_address_list(self, create_network_address_list_details, **kwa "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_network_address_list got unknown kwargs: {extra_kwargs!r}") @@ -512,7 +512,7 @@ def create_network_address_list(self, create_network_address_list_details, **kwa "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -598,7 +598,7 @@ def create_web_app_firewall(self, create_web_app_firewall_details, **kwargs): "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_web_app_firewall got unknown kwargs: {extra_kwargs!r}") @@ -609,7 +609,7 @@ def create_web_app_firewall(self, create_web_app_firewall_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -695,7 +695,7 @@ def create_web_app_firewall_policy(self, create_web_app_firewall_policy_details, "opc_retry_token", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_web_app_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -706,7 +706,7 @@ def create_web_app_firewall_policy(self, create_web_app_firewall_policy_details, "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -793,7 +793,7 @@ def delete_network_address_list(self, network_address_list_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_network_address_list got unknown kwargs: {extra_kwargs!r}") @@ -802,9 +802,9 @@ def delete_network_address_list(self, network_address_list_id, **kwargs): "networkAddressListId": network_address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -814,7 +814,7 @@ def delete_network_address_list(self, network_address_list_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -898,7 +898,7 @@ def delete_web_app_firewall(self, web_app_firewall_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_web_app_firewall got unknown kwargs: {extra_kwargs!r}") @@ -907,9 +907,9 @@ def delete_web_app_firewall(self, web_app_firewall_id, **kwargs): "webAppFirewallId": web_app_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -919,7 +919,7 @@ def delete_web_app_firewall(self, web_app_firewall_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1003,7 +1003,7 @@ def delete_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_web_app_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -1012,9 +1012,9 @@ def delete_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): "webAppFirewallPolicyId": web_app_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1024,7 +1024,7 @@ def delete_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1102,7 +1102,7 @@ def get_network_address_list(self, network_address_list_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_network_address_list got unknown kwargs: {extra_kwargs!r}") @@ -1111,9 +1111,9 @@ def get_network_address_list(self, network_address_list_id, **kwargs): "networkAddressListId": network_address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1122,7 +1122,7 @@ def get_network_address_list(self, network_address_list_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1202,7 +1202,7 @@ def get_web_app_firewall(self, web_app_firewall_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_web_app_firewall got unknown kwargs: {extra_kwargs!r}") @@ -1211,9 +1211,9 @@ def get_web_app_firewall(self, web_app_firewall_id, **kwargs): "webAppFirewallId": web_app_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1222,7 +1222,7 @@ def get_web_app_firewall(self, web_app_firewall_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1302,7 +1302,7 @@ def get_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_web_app_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -1311,9 +1311,9 @@ def get_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): "webAppFirewallPolicyId": web_app_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1322,7 +1322,7 @@ def get_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1402,7 +1402,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1411,9 +1411,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1422,7 +1422,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1540,7 +1540,7 @@ def list_network_address_lists(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_network_address_lists got unknown kwargs: {extra_kwargs!r}") @@ -1569,14 +1569,14 @@ def list_network_address_lists(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1703,7 +1703,7 @@ def list_protection_capabilities(self, compartment_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protection_capabilities got unknown kwargs: {extra_kwargs!r}") @@ -1741,14 +1741,14 @@ def list_protection_capabilities(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1861,7 +1861,7 @@ def list_protection_capability_group_tags(self, compartment_id, **kwargs): "sort_by", "name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_protection_capability_group_tags got unknown kwargs: {extra_kwargs!r}") @@ -1896,14 +1896,14 @@ def list_protection_capability_group_tags(self, compartment_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "name": kwargs.get("name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2021,7 +2021,7 @@ def list_web_app_firewall_policies(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_web_app_firewall_policies got unknown kwargs: {extra_kwargs!r}") @@ -2050,14 +2050,14 @@ def list_web_app_firewall_policies(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2181,7 +2181,7 @@ def list_web_app_firewalls(self, compartment_id, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_web_app_firewalls got unknown kwargs: {extra_kwargs!r}") @@ -2211,14 +2211,14 @@ def list_web_app_firewalls(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2307,7 +2307,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -2316,9 +2316,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2326,14 +2326,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2424,7 +2424,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -2433,9 +2433,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2443,14 +2443,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2547,7 +2547,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "limit" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -2558,14 +2558,14 @@ def list_work_requests(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2654,7 +2654,7 @@ def update_network_address_list(self, network_address_list_id, update_network_ad "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_network_address_list got unknown kwargs: {extra_kwargs!r}") @@ -2663,9 +2663,9 @@ def update_network_address_list(self, network_address_list_id, update_network_ad "networkAddressListId": network_address_list_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2675,7 +2675,7 @@ def update_network_address_list(self, network_address_list_id, update_network_ad "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2764,7 +2764,7 @@ def update_web_app_firewall(self, web_app_firewall_id, update_web_app_firewall_d "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_web_app_firewall got unknown kwargs: {extra_kwargs!r}") @@ -2773,9 +2773,9 @@ def update_web_app_firewall(self, web_app_firewall_id, update_web_app_firewall_d "webAppFirewallId": web_app_firewall_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2785,7 +2785,7 @@ def update_web_app_firewall(self, web_app_firewall_id, update_web_app_firewall_d "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2874,7 +2874,7 @@ def update_web_app_firewall_policy(self, web_app_firewall_policy_id, update_web_ "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_web_app_firewall_policy got unknown kwargs: {extra_kwargs!r}") @@ -2883,9 +2883,9 @@ def update_web_app_firewall_policy(self, web_app_firewall_policy_id, update_web_ "webAppFirewallPolicyId": web_app_firewall_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2895,7 +2895,7 @@ def update_web_app_firewall_policy(self, web_app_firewall_policy_id, update_web_ "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/wlms/weblogic_management_service_client.py b/src/oci/wlms/weblogic_management_service_client.py index 22d094620..0fd86bfb1 100644 --- a/src/oci/wlms/weblogic_management_service_client.py +++ b/src/oci/wlms/weblogic_management_service_client.py @@ -183,7 +183,7 @@ def change_wls_domain_compartment(self, wls_domain_id, change_wls_domain_compart "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"change_wls_domain_compartment got unknown kwargs: {extra_kwargs!r}") @@ -192,9 +192,9 @@ def change_wls_domain_compartment(self, wls_domain_id, change_wls_domain_compart "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -205,7 +205,7 @@ def change_wls_domain_compartment(self, wls_domain_id, change_wls_domain_compart "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -305,7 +305,7 @@ def create_agreement_record(self, create_agreement_record_details, wls_domain_id "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_agreement_record got unknown kwargs: {extra_kwargs!r}") @@ -314,9 +314,9 @@ def create_agreement_record(self, create_agreement_record_details, wls_domain_id "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -327,7 +327,7 @@ def create_agreement_record(self, create_agreement_record_details, wls_domain_id "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -426,7 +426,7 @@ def delete_wls_domain(self, wls_domain_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -435,9 +435,9 @@ def delete_wls_domain(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -448,7 +448,7 @@ def delete_wls_domain(self, wls_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -522,7 +522,7 @@ def get_agreement(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_agreement got unknown kwargs: {extra_kwargs!r}") @@ -532,7 +532,7 @@ def get_agreement(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -610,7 +610,7 @@ def get_managed_instance(self, managed_instance_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -619,9 +619,9 @@ def get_managed_instance(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -630,7 +630,7 @@ def get_managed_instance(self, managed_instance_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -717,7 +717,7 @@ def get_managed_instance_server(self, managed_instance_id, server_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_managed_instance_server got unknown kwargs: {extra_kwargs!r}") @@ -727,9 +727,9 @@ def get_managed_instance_server(self, managed_instance_id, server_id, **kwargs): "serverId": server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -738,7 +738,7 @@ def get_managed_instance_server(self, managed_instance_id, server_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -818,7 +818,7 @@ def get_wls_domain(self, wls_domain_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -827,9 +827,9 @@ def get_wls_domain(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -838,7 +838,7 @@ def get_wls_domain(self, wls_domain_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -923,7 +923,7 @@ def get_wls_domain_credential(self, wls_domain_id, credential_type, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wls_domain_credential got unknown kwargs: {extra_kwargs!r}") @@ -933,9 +933,9 @@ def get_wls_domain_credential(self, wls_domain_id, credential_type, **kwargs): "credentialType": credential_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -944,7 +944,7 @@ def get_wls_domain_credential(self, wls_domain_id, credential_type, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1031,7 +1031,7 @@ def get_wls_domain_server(self, wls_domain_id, server_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wls_domain_server got unknown kwargs: {extra_kwargs!r}") @@ -1041,9 +1041,9 @@ def get_wls_domain_server(self, wls_domain_id, server_id, **kwargs): "serverId": server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1052,7 +1052,7 @@ def get_wls_domain_server(self, wls_domain_id, server_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1146,7 +1146,7 @@ def get_wls_domain_server_backup(self, wls_domain_id, server_id, backup_id, **kw "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wls_domain_server_backup got unknown kwargs: {extra_kwargs!r}") @@ -1157,9 +1157,9 @@ def get_wls_domain_server_backup(self, wls_domain_id, server_id, backup_id, **kw "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1168,7 +1168,7 @@ def get_wls_domain_server_backup(self, wls_domain_id, server_id, backup_id, **kw "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1262,7 +1262,7 @@ def get_wls_domain_server_backup_content(self, wls_domain_id, server_id, backup_ "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_wls_domain_server_backup_content got unknown kwargs: {extra_kwargs!r}") @@ -1273,9 +1273,9 @@ def get_wls_domain_server_backup_content(self, wls_domain_id, server_id, backup_ "backupId": backup_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1284,7 +1284,7 @@ def get_wls_domain_server_backup_content(self, wls_domain_id, server_id, backup_ "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1364,7 +1364,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -1373,9 +1373,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1384,7 +1384,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1483,7 +1483,7 @@ def install_latest_patches_on_wls_domain(self, wls_domain_id, install_latest_pat "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"install_latest_patches_on_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -1492,9 +1492,9 @@ def install_latest_patches_on_wls_domain(self, wls_domain_id, install_latest_pat "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1505,7 +1505,7 @@ def install_latest_patches_on_wls_domain(self, wls_domain_id, install_latest_pat "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1609,7 +1609,7 @@ def list_agreement_records(self, wls_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_agreement_records got unknown kwargs: {extra_kwargs!r}") @@ -1618,9 +1618,9 @@ def list_agreement_records(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1644,14 +1644,14 @@ def list_agreement_records(self, wls_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1763,7 +1763,7 @@ def list_applicable_patches(self, wls_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_applicable_patches got unknown kwargs: {extra_kwargs!r}") @@ -1772,9 +1772,9 @@ def list_applicable_patches(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1798,7 +1798,7 @@ def list_applicable_patches(self, wls_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -1806,7 +1806,7 @@ def list_applicable_patches(self, wls_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1922,7 +1922,7 @@ def list_managed_instance_scan_results(self, managed_instance_id, **kwargs): "wls_domain_id", "server_name" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -1931,9 +1931,9 @@ def list_managed_instance_scan_results(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1959,14 +1959,14 @@ def list_managed_instance_scan_results(self, managed_instance_id, **kwargs): "wlsDomainId": kwargs.get("wls_domain_id", missing), "serverName": kwargs.get("server_name", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2077,7 +2077,7 @@ def list_managed_instance_server_installed_patches(self, managed_instance_id, se "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_server_installed_patches got unknown kwargs: {extra_kwargs!r}") @@ -2087,9 +2087,9 @@ def list_managed_instance_server_installed_patches(self, managed_instance_id, se "serverId": server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2113,14 +2113,14 @@ def list_managed_instance_server_installed_patches(self, managed_instance_id, se "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2237,7 +2237,7 @@ def list_managed_instance_servers(self, managed_instance_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instance_servers got unknown kwargs: {extra_kwargs!r}") @@ -2246,9 +2246,9 @@ def list_managed_instance_servers(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2273,7 +2273,7 @@ def list_managed_instance_servers(self, managed_instance_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2281,7 +2281,7 @@ def list_managed_instance_servers(self, managed_instance_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2411,7 +2411,7 @@ def list_managed_instances(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_managed_instances got unknown kwargs: {extra_kwargs!r}") @@ -2447,7 +2447,7 @@ def list_managed_instances(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -2455,7 +2455,7 @@ def list_managed_instances(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2531,7 +2531,7 @@ def list_required_policies(self, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_required_policies got unknown kwargs: {extra_kwargs!r}") @@ -2541,7 +2541,7 @@ def list_required_policies(self, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2627,7 +2627,7 @@ def list_wls_domain_credentials(self, wls_domain_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domain_credentials got unknown kwargs: {extra_kwargs!r}") @@ -2636,9 +2636,9 @@ def list_wls_domain_credentials(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2648,7 +2648,7 @@ def list_wls_domain_credentials(self, wls_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2756,7 +2756,7 @@ def list_wls_domain_scan_results(self, wls_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domain_scan_results got unknown kwargs: {extra_kwargs!r}") @@ -2765,9 +2765,9 @@ def list_wls_domain_scan_results(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2792,14 +2792,14 @@ def list_wls_domain_scan_results(self, wls_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2910,7 +2910,7 @@ def list_wls_domain_server_backups(self, wls_domain_id, server_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domain_server_backups got unknown kwargs: {extra_kwargs!r}") @@ -2920,9 +2920,9 @@ def list_wls_domain_server_backups(self, wls_domain_id, server_id, **kwargs): "serverId": server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2946,14 +2946,14 @@ def list_wls_domain_server_backups(self, wls_domain_id, server_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3064,7 +3064,7 @@ def list_wls_domain_server_installed_patches(self, wls_domain_id, server_id, **k "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domain_server_installed_patches got unknown kwargs: {extra_kwargs!r}") @@ -3074,9 +3074,9 @@ def list_wls_domain_server_installed_patches(self, wls_domain_id, server_id, **k "serverId": server_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3100,14 +3100,14 @@ def list_wls_domain_server_installed_patches(self, wls_domain_id, server_id, **k "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3224,7 +3224,7 @@ def list_wls_domain_servers(self, wls_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domain_servers got unknown kwargs: {extra_kwargs!r}") @@ -3233,9 +3233,9 @@ def list_wls_domain_servers(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3260,7 +3260,7 @@ def list_wls_domain_servers(self, wls_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3268,7 +3268,7 @@ def list_wls_domain_servers(self, wls_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3417,7 +3417,7 @@ def list_wls_domains(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domains got unknown kwargs: {extra_kwargs!r}") @@ -3477,7 +3477,7 @@ def list_wls_domains(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -3485,7 +3485,7 @@ def list_wls_domains(self, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3589,7 +3589,7 @@ def list_wls_domains_sharing_middlewares(self, wls_domain_id, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_wls_domains_sharing_middlewares got unknown kwargs: {extra_kwargs!r}") @@ -3598,9 +3598,9 @@ def list_wls_domains_sharing_middlewares(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3624,14 +3624,14 @@ def list_wls_domains_sharing_middlewares(self, wls_domain_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3733,7 +3733,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -3742,9 +3742,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3768,14 +3768,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -3877,7 +3877,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -3886,9 +3886,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -3912,14 +3912,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4039,7 +4039,7 @@ def list_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -4075,14 +4075,14 @@ def list_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4181,7 +4181,7 @@ def restart_wls_domain(self, wls_domain_id, restart_wls_domain_details, **kwargs "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restart_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -4190,9 +4190,9 @@ def restart_wls_domain(self, wls_domain_id, restart_wls_domain_details, **kwargs "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4203,7 +4203,7 @@ def restart_wls_domain(self, wls_domain_id, restart_wls_domain_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4303,7 +4303,7 @@ def restore_wls_domain(self, wls_domain_id, restore_wls_domain_details, **kwargs "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"restore_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -4312,9 +4312,9 @@ def restore_wls_domain(self, wls_domain_id, restore_wls_domain_details, **kwargs "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4325,7 +4325,7 @@ def restore_wls_domain(self, wls_domain_id, restore_wls_domain_details, **kwargs "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4422,7 +4422,7 @@ def scan_managed_instance(self, managed_instance_id, **kwargs): "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scan_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -4431,9 +4431,9 @@ def scan_managed_instance(self, managed_instance_id, **kwargs): "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4444,7 +4444,7 @@ def scan_managed_instance(self, managed_instance_id, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4539,7 +4539,7 @@ def scan_wls_domain(self, wls_domain_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"scan_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -4548,9 +4548,9 @@ def scan_wls_domain(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4561,7 +4561,7 @@ def scan_wls_domain(self, wls_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4659,7 +4659,7 @@ def set_restart_order(self, wls_domain_id, set_restart_order_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"set_restart_order got unknown kwargs: {extra_kwargs!r}") @@ -4668,9 +4668,9 @@ def set_restart_order(self, wls_domain_id, set_restart_order_details, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4681,7 +4681,7 @@ def set_restart_order(self, wls_domain_id, set_restart_order_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4780,7 +4780,7 @@ def start_wls_domain(self, wls_domain_id, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"start_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -4789,9 +4789,9 @@ def start_wls_domain(self, wls_domain_id, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4802,7 +4802,7 @@ def start_wls_domain(self, wls_domain_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -4900,7 +4900,7 @@ def stop_wls_domain(self, wls_domain_id, stop_wls_domain_details, **kwargs): "opc_request_id", "opc_retry_token" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"stop_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -4909,9 +4909,9 @@ def stop_wls_domain(self, wls_domain_id, stop_wls_domain_details, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -4922,7 +4922,7 @@ def stop_wls_domain(self, wls_domain_id, stop_wls_domain_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-retry-token": kwargs.get("opc_retry_token", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5002,7 +5002,7 @@ def summarize_resource_inventory(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"summarize_resource_inventory got unknown kwargs: {extra_kwargs!r}") @@ -5010,14 +5010,14 @@ def summarize_resource_inventory(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5116,7 +5116,7 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_managed_instance got unknown kwargs: {extra_kwargs!r}") @@ -5125,9 +5125,9 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d "managedInstanceId": managed_instance_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5138,7 +5138,7 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5232,7 +5232,7 @@ def update_wls_domain(self, wls_domain_id, update_wls_domain_details, **kwargs): "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_wls_domain got unknown kwargs: {extra_kwargs!r}") @@ -5241,9 +5241,9 @@ def update_wls_domain(self, wls_domain_id, update_wls_domain_details, **kwargs): "wlsDomainId": wls_domain_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5253,7 +5253,7 @@ def update_wls_domain(self, wls_domain_id, update_wls_domain_details, **kwargs): "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -5351,7 +5351,7 @@ def update_wls_domain_credential(self, wls_domain_id, credential_type, update_wl "if_match", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_wls_domain_credential got unknown kwargs: {extra_kwargs!r}") @@ -5361,9 +5361,9 @@ def update_wls_domain_credential(self, wls_domain_id, credential_type, update_wl "credentialType": credential_type } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -5373,7 +5373,7 @@ def update_wls_domain_credential(self, wls_domain_id, credential_type, update_wl "if-match": kwargs.get("if_match", missing), "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/wlms/weblogic_management_service_configuration_client.py b/src/oci/wlms/weblogic_management_service_configuration_client.py index 1be02f81a..d36fe53a6 100644 --- a/src/oci/wlms/weblogic_management_service_configuration_client.py +++ b/src/oci/wlms/weblogic_management_service_configuration_client.py @@ -163,7 +163,7 @@ def get_configuration(self, compartment_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -171,14 +171,14 @@ def get_configuration(self, compartment_id, **kwargs): query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -276,7 +276,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k "opc_retry_token", "if_match" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_configuration got unknown kwargs: {extra_kwargs!r}") @@ -284,7 +284,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k query_params = { "compartmentId": compartment_id } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", @@ -293,7 +293,7 @@ def update_configuration(self, compartment_id, update_configuration_details, **k "opc-retry-token": kwargs.get("opc_retry_token", missing), "if-match": kwargs.get("if_match", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/work_requests/work_request_client.py b/src/oci/work_requests/work_request_client.py index 980fc143e..123a988e4 100644 --- a/src/oci/work_requests/work_request_client.py +++ b/src/oci/work_requests/work_request_client.py @@ -168,7 +168,7 @@ def get_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_work_request got unknown kwargs: {extra_kwargs!r}") @@ -177,9 +177,9 @@ def get_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -188,7 +188,7 @@ def get_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -289,7 +289,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -298,9 +298,9 @@ def list_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -316,14 +316,14 @@ def list_work_request_errors(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -426,7 +426,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): "sort_order", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -435,9 +435,9 @@ def list_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -453,14 +453,14 @@ def list_work_request_logs(self, work_request_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -563,7 +563,7 @@ def list_work_requests(self, compartment_id, **kwargs): "page", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -574,14 +574,14 @@ def list_work_requests(self, compartment_id, **kwargs): "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), diff --git a/src/oci/zpr/zpr_client.py b/src/oci/zpr/zpr_client.py index 122d0028d..e9d554399 100644 --- a/src/oci/zpr/zpr_client.py +++ b/src/oci/zpr/zpr_client.py @@ -177,7 +177,7 @@ def create_configuration(self, create_configuration_details, **kwargs): "opc_retry_token", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_configuration got unknown kwargs: {extra_kwargs!r}") @@ -189,7 +189,7 @@ def create_configuration(self, create_configuration_details, **kwargs): "opc-retry-token": kwargs.get("opc_retry_token", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -282,7 +282,7 @@ def create_zpr_policy(self, create_zpr_policy_details, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"create_zpr_policy got unknown kwargs: {extra_kwargs!r}") @@ -294,7 +294,7 @@ def create_zpr_policy(self, create_zpr_policy_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -390,7 +390,7 @@ def delete_zpr_policy(self, zpr_policy_id, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"delete_zpr_policy got unknown kwargs: {extra_kwargs!r}") @@ -399,9 +399,9 @@ def delete_zpr_policy(self, zpr_policy_id, **kwargs): "zprPolicyId": zpr_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -412,7 +412,7 @@ def delete_zpr_policy(self, zpr_policy_id, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -495,7 +495,7 @@ def get_configuration(self, **kwargs): "compartment_id", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_configuration got unknown kwargs: {extra_kwargs!r}") @@ -503,14 +503,14 @@ def get_configuration(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -593,7 +593,7 @@ def get_zpr_configuration_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_zpr_configuration_work_request got unknown kwargs: {extra_kwargs!r}") @@ -602,9 +602,9 @@ def get_zpr_configuration_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -613,7 +613,7 @@ def get_zpr_configuration_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -696,7 +696,7 @@ def get_zpr_policy(self, zpr_policy_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_zpr_policy got unknown kwargs: {extra_kwargs!r}") @@ -705,9 +705,9 @@ def get_zpr_policy(self, zpr_policy_id, **kwargs): "zprPolicyId": zpr_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -716,7 +716,7 @@ def get_zpr_policy(self, zpr_policy_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -799,7 +799,7 @@ def get_zpr_policy_work_request(self, work_request_id, **kwargs): "retry_strategy", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"get_zpr_policy_work_request got unknown kwargs: {extra_kwargs!r}") @@ -808,9 +808,9 @@ def get_zpr_policy_work_request(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -819,7 +819,7 @@ def get_zpr_policy_work_request(self, work_request_id, **kwargs): "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -930,7 +930,7 @@ def list_zpr_configuration_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_configuration_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -939,9 +939,9 @@ def list_zpr_configuration_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -965,14 +965,14 @@ def list_zpr_configuration_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1085,7 +1085,7 @@ def list_zpr_configuration_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_configuration_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1094,9 +1094,9 @@ def list_zpr_configuration_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1120,14 +1120,14 @@ def list_zpr_configuration_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1259,7 +1259,7 @@ def list_zpr_configuration_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_configuration_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1295,14 +1295,14 @@ def list_zpr_configuration_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1432,7 +1432,7 @@ def list_zpr_policies(self, **kwargs): "sort_by", "opc_request_id" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_policies got unknown kwargs: {extra_kwargs!r}") @@ -1468,14 +1468,14 @@ def list_zpr_policies(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1586,7 +1586,7 @@ def list_zpr_policy_work_request_errors(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_policy_work_request_errors got unknown kwargs: {extra_kwargs!r}") @@ -1595,9 +1595,9 @@ def list_zpr_policy_work_request_errors(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1621,14 +1621,14 @@ def list_zpr_policy_work_request_errors(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1741,7 +1741,7 @@ def list_zpr_policy_work_request_logs(self, work_request_id, **kwargs): "sort_by", "sort_order" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_policy_work_request_logs got unknown kwargs: {extra_kwargs!r}") @@ -1750,9 +1750,9 @@ def list_zpr_policy_work_request_logs(self, work_request_id, **kwargs): "workRequestId": work_request_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -1776,14 +1776,14 @@ def list_zpr_policy_work_request_logs(self, work_request_id, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -1915,7 +1915,7 @@ def list_zpr_policy_work_requests(self, **kwargs): "sort_order", "sort_by" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"list_zpr_policy_work_requests got unknown kwargs: {extra_kwargs!r}") @@ -1951,14 +1951,14 @@ def list_zpr_policy_work_requests(self, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing) } - query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + query_params = {k: v for (k, v) in query_params.items() if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), @@ -2064,7 +2064,7 @@ def update_zpr_policy(self, zpr_policy_id, update_zpr_policy_details, **kwargs): "opc_request_id", "opc_dry_run" ] - extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + extra_kwargs = [_key for _key in kwargs.keys() if _key not in expected_kwargs] if extra_kwargs: raise ValueError( f"update_zpr_policy got unknown kwargs: {extra_kwargs!r}") @@ -2073,9 +2073,9 @@ def update_zpr_policy(self, zpr_policy_id, update_zpr_policy_details, **kwargs): "zprPolicyId": zpr_policy_id } - path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + path_params = {k: v for (k, v) in path_params.items() if v is not missing} - for (k, v) in six.iteritems(path_params): + for (k, v) in path_params.items(): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') @@ -2087,7 +2087,7 @@ def update_zpr_policy(self, zpr_policy_id, update_zpr_policy_details, **kwargs): "opc-request-id": kwargs.get("opc_request_id", missing), "opc-dry-run": kwargs.get("opc_dry_run", missing) } - header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} retry_strategy = self.base_client.get_preferred_retry_strategy( operation_retry_strategy=kwargs.get('retry_strategy'), From 5aece73d2b872e253fd223b34850ef6832e17985 Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 14:50:55 +0100 Subject: [PATCH 3/7] scripted: remove all uses of six.string_types and six.binary_type done automatically with the following: find src/oci -type f -print | xargs gsed -i 's|six\.string_types|str|g' find src/oci -type f -print | xargs gsed -i 's|six\.binary_type|bytes|g' --- src/oci/_vendor/httpsig_cffi/sign.py | 8 +- src/oci/_vendor/httpsig_cffi/utils.py | 2 +- src/oci/_vendor/httpsig_cffi/verify.py | 4 +- src/oci/_vendor/urllib3/connection.py | 2 +- src/oci/_vendor/urllib3/contrib/pyopenssl.py | 2 +- src/oci/_vendor/urllib3/fields.py | 4 +- src/oci/_vendor/urllib3/packages/six.py | 2 +- src/oci/_vendor/urllib3/response.py | 2 +- src/oci/_vendor/urllib3/util/url.py | 2 +- .../access_governance_cp_client.py | 8 +- ...pplication_dependency_management_client.py | 54 +- .../ai_data_platform_client.py | 16 +- .../ai_document/ai_service_document_client.py | 40 +- .../ai_language/ai_service_language_client.py | 44 +- src/oci/ai_speech/ai_service_speech_client.py | 24 +- src/oci/ai_vision/ai_service_vision_client.py | 72 +- src/oci/analytics/analytics_client.py | 42 +- .../announcement_client.py | 8 +- .../announcement_subscription_client.py | 14 +- .../announcements_preferences_client.py | 4 +- src/oci/api_platform/api_platform_client.py | 14 +- .../apiaccesscontrol/api_metadata_client.py | 2 +- .../privileged_api_control_client.py | 8 +- .../privileged_api_requests_client.py | 10 +- .../privileged_api_work_request_client.py | 8 +- src/oci/apigateway/api_gateway_client.py | 40 +- src/oci/apigateway/deployment_client.py | 12 +- src/oci/apigateway/gateway_client.py | 12 +- src/oci/apigateway/subscribers_client.py | 12 +- src/oci/apigateway/usage_plans_client.py | 12 +- src/oci/apigateway/work_requests_client.py | 8 +- src/oci/apm_config/config_client.py | 6 +- .../apm_control_plane/apm_domain_client.py | 22 +- .../apm_synthetics/apm_synthetic_client.py | 38 +- src/oci/apm_traces/scheduled_query_client.py | 6 +- src/oci/apm_traces/trace_client.py | 10 +- .../appmgmt_control/appmgmt_control_client.py | 12 +- src/oci/artifacts/artifacts_client.py | 44 +- src/oci/autoscaling/auto_scaling_client.py | 18 +- src/oci/base_client.py | 6 +- src/oci/bastion/bastion_client.py | 20 +- src/oci/bds/bds_client.py | 166 ++--- .../blockchain/blockchain_platform_client.py | 48 +- src/oci/budget/budget_client.py | 16 +- .../capacity_management_client.py | 40 +- .../demand_signal_client.py | 12 +- .../internal_demand_signal_client.py | 12 +- src/oci/certificates/certificates_client.py | 10 +- .../certificates_management_client.py | 50 +- src/oci/cims/incident_client.py | 8 +- src/oci/cloud_bridge/common_client.py | 8 +- src/oci/cloud_bridge/discovery_client.py | 20 +- src/oci/cloud_bridge/inventory_client.py | 22 +- src/oci/cloud_bridge/ocb_agent_svc_client.py | 32 +- src/oci/cloud_guard/cloud_guard_client.py | 200 ++--- src/oci/cloud_migrations/migration_client.py | 66 +- .../cluster_placement_groups_cp_client.py | 20 +- .../compute_cloud_at_customer_client.py | 16 +- .../compute_instance_agent_client.py | 6 +- .../compute_instance_agent/plugin_client.py | 4 +- .../container_engine_client.py | 74 +- .../container_instance_client.py | 26 +- src/oci/core/blockstorage_client.py | 82 +-- src/oci/core/compute_client.py | 168 ++--- src/oci/core/compute_management_client.py | 54 +- src/oci/core/virtual_network_client.py | 378 +++++----- src/oci/dashboard_service/dashboard_client.py | 8 +- .../dashboard_group_client.py | 8 +- src/oci/data_catalog/data_catalog_client.py | 284 ++++---- src/oci/data_flow/data_flow_client.py | 68 +- .../data_integration_client.py | 320 ++++---- .../data_labeling_management_client.py | 26 +- .../data_labeling_client.py | 18 +- src/oci/data_safe/data_safe_client.py | 552 +++++++------- src/oci/data_science/data_science_client.py | 266 +++---- src/oci/database/database_client.py | 686 +++++++++--------- .../db_management_client.py | 450 ++++++------ .../diagnosability_client.py | 8 +- .../managed_my_sql_databases_client.py | 24 +- src/oci/database_management/perfhub_client.py | 2 +- .../database_management/sql_tuning_client.py | 34 +- .../database_migration_client.py | 70 +- .../database_tools/database_tools_client.py | 50 +- .../dblm/db_life_cycle_management_client.py | 8 +- .../db_multicloud_aws_provider_client.py | 20 +- .../db_multicloud_gcp_provider_client.py | 22 +- .../multi_cloud_resource_discovery_client.py | 8 +- .../oracle_db_azure_blob_container_client.py | 8 +- .../oracle_db_azure_blob_mount_client.py | 8 +- .../oracle_db_azure_connector_client.py | 12 +- .../oracle_db_azure_key_client.py | 2 +- ...racle_db_azure_vault_association_client.py | 10 +- .../oracle_db_azure_vault_client.py | 10 +- src/oci/dbmulticloud/work_request_client.py | 8 +- .../delegate_access_control_client.py | 38 +- .../work_request_client.py | 6 +- .../demand_signal/occ_demand_signal_client.py | 10 +- src/oci/desktops/desktop_service_client.py | 34 +- src/oci/devops/devops_client.py | 234 +++--- src/oci/dif/stack_client.py | 20 +- .../disaster_recovery_client.py | 54 +- ...istributed_autonomous_db_service_client.py | 34 +- ...uted_db_private_endpoint_service_client.py | 10 +- .../distributed_db_service_client.py | 34 +- ...tributed_db_work_request_service_client.py | 6 +- src/oci/dns/dns_client.py | 84 +-- src/oci/em_warehouse/em_warehouse_client.py | 20 +- src/oci/email/email_client.py | 66 +- src/oci/email_data_plane/email_dp_client.py | 2 +- src/oci/encryption/internal/streaming.py | 4 +- src/oci/encryption/internal/utils.py | 4 +- src/oci/events/events_client.py | 8 +- src/oci/file_storage/file_storage_client.py | 114 +-- .../fleet_apps_management_admin_client.py | 34 +- .../fleet_apps_management_catalog_client.py | 14 +- .../fleet_apps_management_client.py | 56 +- ...ps_management_maintenance_window_client.py | 6 +- ...fleet_apps_management_operations_client.py | 34 +- .../fleet_apps_management_provision_client.py | 8 +- .../fleet_apps_management_runbooks_client.py | 30 +- ...eet_apps_management_work_request_client.py | 6 +- .../fleet_software_update_client.py | 72 +- src/oci/functions/functions_invoke_client.py | 4 +- .../functions/functions_management_client.py | 18 +- .../fusion_apps/fusion_applications_client.py | 72 +- src/oci/generative_ai/generative_ai_client.py | 46 +- .../generative_ai_agent_client.py | 50 +- .../generative_ai_agent_runtime_client.py | 12 +- .../generic_artifacts_content_client.py | 8 +- .../sharded_database_service_client.py | 46 +- src/oci/golden_gate/golden_gate_client.py | 142 ++-- .../governance_rule_client.py | 18 +- .../work_request_client.py | 8 +- src/oci/healthchecks/health_checks_client.py | 20 +- src/oci/identity/identity_client.py | 216 +++--- .../identity_domains_client.py | 328 ++++----- .../integration_instance_client.py | 32 +- src/oci/iot/iot_client.py | 58 +- src/oci/jms/java_management_service_client.py | 146 ++-- .../java_download_client.py | 28 +- src/oci/jms_utils/jms_utils_client.py | 18 +- src/oci/key_management/ekm_client.py | 6 +- .../key_management/kms_hsm_cluster_client.py | 20 +- .../key_management/kms_management_client.py | 32 +- src/oci/key_management/kms_vault_client.py | 22 +- .../license_manager/license_manager_client.py | 12 +- src/oci/limits/limits_client.py | 2 +- src/oci/limits/quotas_client.py | 10 +- src/oci/load_balancer/load_balancer_client.py | 110 +-- src/oci/lockbox/lockbox_client.py | 32 +- src/oci/log_analytics/log_analytics_client.py | 414 +++++------ src/oci/logging/logging_management_client.py | 44 +- src/oci/loggingingestion/logging_client.py | 2 +- .../lustre_file_storage_client.py | 36 +- src/oci/managed_kafka/kafka_cluster_client.py | 34 +- .../management_agent_client.py | 40 +- .../management_dashboard/dashx_apis_client.py | 22 +- src/oci/marketplace/marketplace_client.py | 38 +- .../attachment_client.py | 10 +- .../marketplace_private_offer/offer_client.py | 8 +- .../marketplace_publisher_client.py | 122 ++-- .../media_services/media_services_client.py | 88 +-- src/oci/mngdmac/mac_device_client.py | 6 +- src/oci/mngdmac/mac_order_client.py | 16 +- .../model_deployment_client.py | 4 +- src/oci/monitoring/monitoring_client.py | 20 +- .../multi_clouds_metadata_client.py | 2 +- .../multicloud/omhub_network_anchor_client.py | 2 +- .../omhub_resource_anchor_client.py | 2 +- src/oci/mysql/channels_client.py | 10 +- src/oci/mysql/db_backups_client.py | 12 +- src/oci/mysql/db_system_client.py | 30 +- src/oci/mysql/mysqlaas_client.py | 6 +- src/oci/mysql/replicas_client.py | 6 +- src/oci/mysql/work_requests_client.py | 6 +- .../network_firewall_client.py | 198 ++--- .../network_load_balancer_client.py | 58 +- src/oci/nosql/nosql_client.py | 36 +- .../object_storage/object_storage_client.py | 112 +-- src/oci/oce/oce_instance_client.py | 14 +- .../oci_control_center/occ_metrics_client.py | 2 +- src/oci/ocvp/cluster_client.py | 6 +- src/oci/ocvp/datastore_client.py | 10 +- src/oci/ocvp/datastore_cluster_client.py | 20 +- src/oci/ocvp/esxi_host_client.py | 12 +- src/oci/ocvp/sddc_client.py | 18 +- src/oci/ocvp/work_request_client.py | 6 +- src/oci/oda/management_client.py | 110 +-- src/oci/oda/oda_client.py | 28 +- src/oci/oda/odapackage_client.py | 12 +- src/oci/onesubscription/commitment_client.py | 2 +- .../onesubscription/computed_usage_client.py | 2 +- .../subscribed_service_client.py | 2 +- .../ons/notification_control_plane_client.py | 8 +- src/oci/ons/notification_data_plane_client.py | 16 +- src/oci/opa/opa_instance_client.py | 20 +- .../opensearch_cluster_backup_client.py | 6 +- .../opensearch/opensearch_cluster_client.py | 24 +- .../opensearch_cluster_pipeline_client.py | 6 +- .../access_requests_client.py | 18 +- .../operator_actions_client.py | 2 +- .../operator_control_assignment_client.py | 12 +- .../operator_control_client.py | 8 +- src/oci/opsi/operations_insights_client.py | 180 ++--- src/oci/optimizer/optimizer_client.py | 28 +- src/oci/os_management_hub/event_client.py | 14 +- .../lifecycle_environment_client.py | 20 +- .../managed_instance_client.py | 58 +- .../managed_instance_group_client.py | 48 +- .../management_station_client.py | 16 +- .../os_management_hub/onboarding_client.py | 22 +- .../reporting_managed_instance_client.py | 2 +- .../os_management_hub/scheduled_job_client.py | 10 +- .../software_source_client.py | 46 +- .../os_management_hub/work_request_client.py | 8 +- .../address_rule_service_client.py | 2 +- src/oci/osp_gateway/address_service_client.py | 2 +- src/oci/osp_gateway/invoice_service_client.py | 8 +- .../subscription_service_client.py | 8 +- .../osub_subscription/commitment_client.py | 2 +- src/oci/osub_usage/computed_usage_client.py | 2 +- src/oci/psa/private_service_access_client.py | 16 +- src/oci/psql/postgresql_client.py | 50 +- src/oci/queue/queue_admin_client.py | 16 +- src/oci/queue/queue_client.py | 16 +- src/oci/recovery/database_recovery_client.py | 38 +- src/oci/redis/oci_cache_config_set_client.py | 10 +- .../oci_cache_default_config_set_client.py | 2 +- src/oci/redis/oci_cache_user_client.py | 10 +- src/oci/redis/redis_cluster_client.py | 24 +- src/oci/redis/redis_identity_client.py | 2 +- .../monitored_region_client.py | 4 +- .../resource_analytics_instance_client.py | 20 +- .../tenancy_attachment_client.py | 6 +- .../resource_manager_client.py | 76 +- src/oci/resource_scheduler/schedule_client.py | 20 +- .../resource_search/resource_search_client.py | 2 +- src/oci/rover/rover_bundle_client.py | 16 +- src/oci/rover/rover_cluster_client.py | 12 +- src/oci/rover/rover_entitlement_client.py | 8 +- src/oci/rover/rover_node_client.py | 26 +- src/oci/rover/work_requests_client.py | 8 +- src/oci/sch/connector_plugins_client.py | 2 +- src/oci/sch/service_connector_client.py | 18 +- src/oci/secrets/secrets_client.py | 4 +- .../security_attribute_client.py | 26 +- .../service_catalog/service_catalog_client.py | 34 +- .../service_manager_proxy_client.py | 2 +- src/oci/signer.py | 2 +- .../stack_monitoring_client.py | 114 +-- src/oci/streaming/stream_admin_client.py | 24 +- src/oci/streaming/stream_client.py | 16 +- .../domain_client.py | 6 +- .../domain_governance_client.py | 6 +- .../governance_client.py | 4 +- .../link_client.py | 4 +- .../orders_client.py | 4 +- .../organization_client.py | 16 +- .../recipient_invitation_client.py | 8 +- .../sender_invitation_client.py | 6 +- .../subscription_client.py | 14 +- .../work_request_client.py | 6 +- .../threat_intelligence/threatintel_client.py | 2 +- src/oci/usage/rewards_client.py | 12 +- src/oci/usage_api/usageapi_client.py | 40 +- src/oci/util.py | 2 +- src/oci/vault/vaults_client.py | 22 +- src/oci/vbs_inst/vbs_instance_client.py | 14 +- src/oci/visual_builder/vb_instance_client.py | 22 +- src/oci/vn_monitoring/vn_monitoring_client.py | 16 +- .../vulnerability_scanning_client.py | 80 +- src/oci/waa/waa_client.py | 18 +- src/oci/waa/work_request_client.py | 6 +- src/oci/waas/redirect_client.py | 8 +- src/oci/waas/waas_client.py | 112 +-- src/oci/waf/waf_client.py | 30 +- .../weblogic_management_service_client.py | 70 +- src/oci/work_requests/work_request_client.py | 6 +- src/oci/zpr/zpr_client.py | 18 +- 279 files changed, 5580 insertions(+), 5580 deletions(-) diff --git a/src/oci/_vendor/httpsig_cffi/sign.py b/src/oci/_vendor/httpsig_cffi/sign.py index 1584e3999..dbc5d47d2 100644 --- a/src/oci/_vendor/httpsig_cffi/sign.py +++ b/src/oci/_vendor/httpsig_cffi/sign.py @@ -29,7 +29,7 @@ def __init__(self, secret, algorithm=None): algorithm = DEFAULT_SIGN_ALGORITHM assert algorithm in ALGORITHMS, "Unknown algorithm" # noqa: F405 - if isinstance(secret, six.string_types): + if isinstance(secret, str): secret = secret.encode("ascii") self._rsa_public = None @@ -66,19 +66,19 @@ def algorithm(self): return '%s-%s' % (self.sign_algorithm, self.hash_algorithm) def _sign_rsa(self, data): - if isinstance(data, six.string_types): + if isinstance(data, str): data = data.encode("ascii") return self._rsa_private.sign(data, padding.PKCS1v15(), self._rsahash()) def _sign_hmac(self, data): - if isinstance(data, six.string_types): + if isinstance(data, str): data = data.encode("ascii") hmac = self._hash.copy() hmac.update(data) return hmac.finalize() def _sign(self, data): - if isinstance(data, six.string_types): + if isinstance(data, str): data = data.encode("ascii") signed = None diff --git a/src/oci/_vendor/httpsig_cffi/utils.py b/src/oci/_vendor/httpsig_cffi/utils.py index 8dda9dce0..b18ca978c 100644 --- a/src/oci/_vendor/httpsig_cffi/utils.py +++ b/src/oci/_vendor/httpsig_cffi/utils.py @@ -62,7 +62,7 @@ def generate_message(required_headers, headers, host=None, method=None, path=Non def parse_authorization_header(header): - if not isinstance(header, six.string_types): + if not isinstance(header, str): header = header.decode("ascii") # HTTP headers cannot be Unicode. auth = header.split(" ", 1) diff --git a/src/oci/_vendor/httpsig_cffi/verify.py b/src/oci/_vendor/httpsig_cffi/verify.py index d2eb1c35d..1c5c89614 100644 --- a/src/oci/_vendor/httpsig_cffi/verify.py +++ b/src/oci/_vendor/httpsig_cffi/verify.py @@ -33,9 +33,9 @@ def _verify(self, data, signature): `signature` is a base64-encoded signature to verify against `data` """ - if isinstance(data, six.string_types): + if isinstance(data, str): data = data.encode("ascii") - if isinstance(signature, six.string_types): + if isinstance(signature, str): signature = signature.encode("ascii") if self.sign_algorithm == 'rsa': diff --git a/src/oci/_vendor/urllib3/connection.py b/src/oci/_vendor/urllib3/connection.py index c38c812eb..9f59cda8a 100644 --- a/src/oci/_vendor/urllib3/connection.py +++ b/src/oci/_vendor/urllib3/connection.py @@ -269,7 +269,7 @@ def request_chunked(self, method, url, body=None, headers=None): self.endheaders() if body is not None: - stringish_types = six.string_types + (bytes,) + stringish_types = str + (bytes,) if isinstance(body, stringish_types): body = (body,) for chunk in body: diff --git a/src/oci/_vendor/urllib3/contrib/pyopenssl.py b/src/oci/_vendor/urllib3/contrib/pyopenssl.py index 8c76faf84..6c975dafc 100644 --- a/src/oci/_vendor/urllib3/contrib/pyopenssl.py +++ b/src/oci/_vendor/urllib3/contrib/pyopenssl.py @@ -478,7 +478,7 @@ def load_verify_locations(self, cafile=None, capath=None, cadata=None): def load_cert_chain(self, certfile, keyfile=None, password=None): self._ctx.use_certificate_chain_file(certfile) if password is not None: - if not isinstance(password, six.binary_type): + if not isinstance(password, bytes): password = password.encode("utf-8") self._ctx.set_passwd_cb(lambda *_: password) self._ctx.use_privatekey_file(keyfile or certfile) diff --git a/src/oci/_vendor/urllib3/fields.py b/src/oci/_vendor/urllib3/fields.py index 4508aa5e9..2d94c9462 100644 --- a/src/oci/_vendor/urllib3/fields.py +++ b/src/oci/_vendor/urllib3/fields.py @@ -42,7 +42,7 @@ def format_header_param_rfc2231(name, value): :ret: An RFC-2231-formatted unicode string. """ - if isinstance(value, six.binary_type): + if isinstance(value, bytes): value = value.decode("utf-8") if not any(ch in value for ch in '"\\\r\n'): @@ -116,7 +116,7 @@ def format_header_param_html5(name, value): :ret: A unicode string, stripped of troublesome characters. """ - if isinstance(value, six.binary_type): + if isinstance(value, bytes): value = value.decode("utf-8") value = _replace_multiple(value, _HTML5_REPLACEMENTS) diff --git a/src/oci/_vendor/urllib3/packages/six.py b/src/oci/_vendor/urllib3/packages/six.py index e640427c7..ef7cd2ac7 100644 --- a/src/oci/_vendor/urllib3/packages/six.py +++ b/src/oci/_vendor/urllib3/packages/six.py @@ -976,7 +976,7 @@ def wrapper(cls): def ensure_binary(s, encoding="utf-8", errors="strict"): - """Coerce **s** to six.binary_type. + """Coerce **s** to bytes. For Python 2: - `unicode` -> encoded to `str` diff --git a/src/oci/_vendor/urllib3/response.py b/src/oci/_vendor/urllib3/response.py index 48c890d23..10f8fc5ad 100644 --- a/src/oci/_vendor/urllib3/response.py +++ b/src/oci/_vendor/urllib3/response.py @@ -245,7 +245,7 @@ def __init__( self.msg = msg self._request_url = request_url - if body and isinstance(body, (six.string_types, bytes)): + if body and isinstance(body, (str, bytes)): self._body = body self._pool = pool diff --git a/src/oci/_vendor/urllib3/util/url.py b/src/oci/_vendor/urllib3/util/url.py index c60535c63..d4027b3b3 100644 --- a/src/oci/_vendor/urllib3/util/url.py +++ b/src/oci/_vendor/urllib3/util/url.py @@ -278,7 +278,7 @@ def _remove_path_dot_segments(path): def _normalize_host(host, scheme): if host: - if isinstance(host, six.binary_type): + if isinstance(host, bytes): host = six.ensure_str(host) if scheme in NORMALIZABLE_SCHEMES: diff --git a/src/oci/access_governance_cp/access_governance_cp_client.py b/src/oci/access_governance_cp/access_governance_cp_client.py index b0a44cbc8..355d12d96 100644 --- a/src/oci/access_governance_cp/access_governance_cp_client.py +++ b/src/oci/access_governance_cp/access_governance_cp_client.py @@ -191,7 +191,7 @@ def change_governance_instance_compartment(self, governance_instance_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def delete_governance_instance(self, governance_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -505,7 +505,7 @@ def get_governance_instance(self, governance_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -853,7 +853,7 @@ def update_governance_instance(self, update_governance_instance_details, governa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/adm/application_dependency_management_client.py b/src/oci/adm/application_dependency_management_client.py index d7c071a43..68726b155 100644 --- a/src/oci/adm/application_dependency_management_client.py +++ b/src/oci/adm/application_dependency_management_client.py @@ -182,7 +182,7 @@ def activate_remediation_recipe(self, remediation_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def cancel_remediation_run(self, remediation_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -524,7 +524,7 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -646,7 +646,7 @@ def change_remediation_recipe_compartment(self, remediation_recipe_id, change_re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -766,7 +766,7 @@ def change_remediation_run_compartment(self, remediation_run_id, change_remediat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -886,7 +886,7 @@ def change_vulnerability_audit_compartment(self, vulnerability_audit_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1394,7 +1394,7 @@ def deactivate_remediation_recipe(self, remediation_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1501,7 +1501,7 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1608,7 +1608,7 @@ def delete_remediation_recipe(self, remediation_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1713,7 +1713,7 @@ def delete_remediation_run(self, remediation_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1818,7 +1818,7 @@ def delete_vulnerability_audit(self, vulnerability_audit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1917,7 +1917,7 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2017,7 +2017,7 @@ def get_remediation_recipe(self, remediation_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2115,7 +2115,7 @@ def get_remediation_run(self, remediation_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2219,7 +2219,7 @@ def get_stage(self, remediation_run_id, stage_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2317,7 +2317,7 @@ def get_vulnerability_audit(self, vulnerability_audit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2417,7 +2417,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2549,7 +2549,7 @@ def list_application_dependency_recommendations(self, remediation_run_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2735,7 +2735,7 @@ def list_application_dependency_vulnerabilities(self, vulnerability_audit_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'severity_greater_than_or_equal' in kwargs: @@ -3405,7 +3405,7 @@ def list_stages(self, remediation_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'type' in kwargs: @@ -3768,7 +3768,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3912,7 +3912,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4206,7 +4206,7 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4318,7 +4318,7 @@ def update_remediation_recipe(self, remediation_recipe_id, update_remediation_re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4428,7 +4428,7 @@ def update_remediation_run(self, remediation_run_id, update_remediation_run_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4540,7 +4540,7 @@ def update_vulnerability_audit(self, vulnerability_audit_id, update_vulnerabilit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ai_data_platform/ai_data_platform_client.py b/src/oci/ai_data_platform/ai_data_platform_client.py index b31c34c6d..f020e2805 100644 --- a/src/oci/ai_data_platform/ai_data_platform_client.py +++ b/src/oci/ai_data_platform/ai_data_platform_client.py @@ -184,7 +184,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -299,7 +299,7 @@ def change_ai_data_platform_compartment(self, ai_data_platform_id, change_ai_dat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -515,7 +515,7 @@ def delete_ai_data_platform(self, ai_data_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -624,7 +624,7 @@ def get_ai_data_platform(self, ai_data_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -727,7 +727,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1051,7 +1051,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1206,7 +1206,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1516,7 +1516,7 @@ def update_ai_data_platform(self, ai_data_platform_id, update_ai_data_platform_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ai_document/ai_service_document_client.py b/src/oci/ai_document/ai_service_document_client.py index 7592cde23..443e4caa4 100644 --- a/src/oci/ai_document/ai_service_document_client.py +++ b/src/oci/ai_document/ai_service_document_client.py @@ -195,7 +195,7 @@ def add_model_lock(self, model_id, add_model_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -328,7 +328,7 @@ def add_project_lock(self, project_id, add_project_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -543,7 +543,7 @@ def cancel_processor_job(self, processor_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -646,7 +646,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -756,7 +756,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -875,7 +875,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1285,7 +1285,7 @@ def delete_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1399,7 +1399,7 @@ def delete_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1501,7 +1501,7 @@ def get_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1607,7 +1607,7 @@ def get_model_type(self, model_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1713,7 +1713,7 @@ def get_processor_job(self, processor_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1811,7 +1811,7 @@ def get_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1909,7 +1909,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2344,7 +2344,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2486,7 +2486,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2775,7 +2775,7 @@ def patch_model(self, model_id, patch_model_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2897,7 +2897,7 @@ def remove_model_lock(self, model_id, remove_model_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3030,7 +3030,7 @@ def remove_project_lock(self, project_id, remove_project_lock_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3155,7 +3155,7 @@ def update_model(self, model_id, update_model_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3274,7 +3274,7 @@ def update_project(self, project_id, update_project_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/ai_language/ai_service_language_client.py b/src/oci/ai_language/ai_service_language_client.py index c230f5772..2a7ac98fa 100644 --- a/src/oci/ai_language/ai_service_language_client.py +++ b/src/oci/ai_language/ai_service_language_client.py @@ -963,7 +963,7 @@ def cancel_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1079,7 +1079,7 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1197,7 +1197,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1315,7 +1315,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1433,7 +1433,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1934,7 +1934,7 @@ def delete_endpoint(self, endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2039,7 +2039,7 @@ def delete_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2144,7 +2144,7 @@ def delete_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2249,7 +2249,7 @@ def delete_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2854,7 +2854,7 @@ def get_endpoint(self, endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2952,7 +2952,7 @@ def get_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3050,7 +3050,7 @@ def get_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3148,7 +3148,7 @@ def get_model_type(self, model_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3246,7 +3246,7 @@ def get_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3344,7 +3344,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3619,7 +3619,7 @@ def list_evaluation_results(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4223,7 +4223,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -4365,7 +4365,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -4639,7 +4639,7 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4749,7 +4749,7 @@ def update_job(self, job_id, update_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4861,7 +4861,7 @@ def update_model(self, model_id, update_model_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4971,7 +4971,7 @@ def update_project(self, project_id, update_project_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ai_speech/ai_service_speech_client.py b/src/oci/ai_speech/ai_service_speech_client.py index 3791b3efa..47d08c0f0 100644 --- a/src/oci/ai_speech/ai_service_speech_client.py +++ b/src/oci/ai_speech/ai_service_speech_client.py @@ -188,7 +188,7 @@ def cancel_transcription_job(self, transcription_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -305,7 +305,7 @@ def cancel_transcription_task(self, transcription_job_id, transcription_task_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -421,7 +421,7 @@ def change_customization_compartment(self, customization_id, change_customizatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -539,7 +539,7 @@ def change_transcription_job_compartment(self, transcription_job_id, change_tran path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -942,7 +942,7 @@ def delete_customization(self, customization_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1055,7 +1055,7 @@ def delete_transcription_job(self, transcription_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1152,7 +1152,7 @@ def get_customization(self, customization_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1248,7 +1248,7 @@ def get_transcription_job(self, transcription_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1348,7 +1348,7 @@ def get_transcription_task(self, transcription_job_id, transcription_task_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1786,7 +1786,7 @@ def list_transcription_tasks(self, transcription_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -2129,7 +2129,7 @@ def update_customization(self, customization_id, update_customization_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2239,7 +2239,7 @@ def update_transcription_job(self, transcription_job_id, update_transcription_jo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ai_vision/ai_service_vision_client.py b/src/oci/ai_vision/ai_service_vision_client.py index 366689128..84c59b75e 100644 --- a/src/oci/ai_vision/ai_service_vision_client.py +++ b/src/oci/ai_vision/ai_service_vision_client.py @@ -356,7 +356,7 @@ def cancel_document_job(self, document_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -459,7 +459,7 @@ def cancel_image_job(self, image_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -562,7 +562,7 @@ def cancel_video_job(self, video_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -665,7 +665,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -771,7 +771,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -879,7 +879,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -995,7 +995,7 @@ def change_stream_group_compartment(self, stream_group_id, change_stream_group_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1115,7 +1115,7 @@ def change_stream_job_compartment(self, stream_job_id, change_stream_job_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1235,7 +1235,7 @@ def change_stream_source_compartment(self, stream_source_id, change_stream_sourc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1355,7 +1355,7 @@ def change_vision_private_endpoint_compartment(self, vision_private_endpoint_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2336,7 +2336,7 @@ def delete_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2439,7 +2439,7 @@ def delete_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2542,7 +2542,7 @@ def delete_stream_group(self, stream_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2645,7 +2645,7 @@ def delete_stream_job(self, stream_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2748,7 +2748,7 @@ def delete_stream_source(self, stream_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2851,7 +2851,7 @@ def delete_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2946,7 +2946,7 @@ def get_document_job(self, document_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3042,7 +3042,7 @@ def get_image_job(self, image_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3138,7 +3138,7 @@ def get_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3234,7 +3234,7 @@ def get_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3330,7 +3330,7 @@ def get_stream_group(self, stream_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3428,7 +3428,7 @@ def get_stream_job(self, stream_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3526,7 +3526,7 @@ def get_stream_source(self, stream_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3624,7 +3624,7 @@ def get_video_job(self, video_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3720,7 +3720,7 @@ def get_vision_private_endpoint(self, vision_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3818,7 +3818,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4857,7 +4857,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4997,7 +4997,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -5287,7 +5287,7 @@ def start_stream_job(self, stream_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5402,7 +5402,7 @@ def stop_stream_job(self, stream_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5512,7 +5512,7 @@ def update_model(self, model_id, update_model_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5620,7 +5620,7 @@ def update_project(self, project_id, update_project_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5728,7 +5728,7 @@ def update_stream_group(self, stream_group_id, update_stream_group_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5836,7 +5836,7 @@ def update_stream_job(self, update_stream_job_details, stream_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5944,7 +5944,7 @@ def update_stream_source(self, stream_source_id, update_stream_source_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6052,7 +6052,7 @@ def update_vision_private_endpoint(self, vision_private_endpoint_id, update_visi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/analytics/analytics_client.py b/src/oci/analytics/analytics_client.py index 0a1560cd1..ea6c5b488 100644 --- a/src/oci/analytics/analytics_client.py +++ b/src/oci/analytics/analytics_client.py @@ -191,7 +191,7 @@ def change_analytics_instance_compartment(self, analytics_instance_id, change_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -311,7 +311,7 @@ def change_analytics_instance_network_endpoint(self, analytics_instance_id, chan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -525,7 +525,7 @@ def create_private_access_channel(self, analytics_instance_id, create_private_ac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -638,7 +638,7 @@ def create_vanity_url(self, analytics_instance_id, create_vanity_url_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -754,7 +754,7 @@ def delete_analytics_instance(self, analytics_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -872,7 +872,7 @@ def delete_private_access_channel(self, private_access_channel_key, analytics_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -990,7 +990,7 @@ def delete_vanity_url(self, analytics_instance_id, vanity_url_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1096,7 +1096,7 @@ def delete_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1192,7 +1192,7 @@ def get_analytics_instance(self, analytics_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1295,7 +1295,7 @@ def get_private_access_channel(self, private_access_channel_key, analytics_insta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1394,7 +1394,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1704,7 +1704,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1829,7 +1829,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2130,7 +2130,7 @@ def scale_analytics_instance(self, analytics_instance_id, scale_analytics_instan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2249,7 +2249,7 @@ def set_feature_bundle(self, analytics_instance_id, set_feature_bundle_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2368,7 +2368,7 @@ def set_kms_key(self, analytics_instance_id, set_kms_key_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2485,7 +2485,7 @@ def start_analytics_instance(self, analytics_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2600,7 +2600,7 @@ def stop_analytics_instance(self, analytics_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2711,7 +2711,7 @@ def update_analytics_instance(self, analytics_instance_id, update_analytics_inst path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2832,7 +2832,7 @@ def update_private_access_channel(self, private_access_channel_key, analytics_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2955,7 +2955,7 @@ def update_vanity_url(self, analytics_instance_id, vanity_url_key, update_vanity path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/announcements_service/announcement_client.py b/src/oci/announcements_service/announcement_client.py index 782172412..80e80bd32 100644 --- a/src/oci/announcements_service/announcement_client.py +++ b/src/oci/announcements_service/announcement_client.py @@ -175,7 +175,7 @@ def get_announcement(self, announcement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -272,7 +272,7 @@ def get_announcement_compartment(self, announcement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -371,7 +371,7 @@ def get_announcement_user_status(self, announcement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -682,7 +682,7 @@ def update_announcement_user_status(self, announcement_id, status_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/announcements_service/announcement_subscription_client.py b/src/oci/announcements_service/announcement_subscription_client.py index 0cf5cd6b2..864974d42 100644 --- a/src/oci/announcements_service/announcement_subscription_client.py +++ b/src/oci/announcements_service/announcement_subscription_client.py @@ -182,7 +182,7 @@ def change_announcement_subscription_compartment(self, announcement_subscription path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -396,7 +396,7 @@ def create_filter_group(self, announcement_subscription_id, create_filter_group_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -504,7 +504,7 @@ def delete_announcement_subscription(self, announcement_subscription_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -610,7 +610,7 @@ def delete_filter_group(self, announcement_subscription_id, filter_group_name, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -708,7 +708,7 @@ def get_announcement_subscription(self, announcement_subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -970,7 +970,7 @@ def update_announcement_subscription(self, announcement_subscription_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1083,7 +1083,7 @@ def update_filter_group(self, announcement_subscription_id, filter_group_name, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/announcements_service/announcements_preferences_client.py b/src/oci/announcements_service/announcements_preferences_client.py index 229577a58..062a10682 100644 --- a/src/oci/announcements_service/announcements_preferences_client.py +++ b/src/oci/announcements_service/announcements_preferences_client.py @@ -270,7 +270,7 @@ def get_announcements_preference(self, preference_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -480,7 +480,7 @@ def update_announcements_preference(self, preference_id, announcements_preferenc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/api_platform/api_platform_client.py b/src/oci/api_platform/api_platform_client.py index a674c1d5e..8a9a0c96e 100644 --- a/src/oci/api_platform/api_platform_client.py +++ b/src/oci/api_platform/api_platform_client.py @@ -198,7 +198,7 @@ def change_api_platform_instance_compartment(self, api_platform_instance_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -412,7 +412,7 @@ def delete_api_platform_instance(self, api_platform_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -514,7 +514,7 @@ def get_api_platform_instance(self, api_platform_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -617,7 +617,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -921,7 +921,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1076,7 +1076,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1386,7 +1386,7 @@ def update_api_platform_instance(self, api_platform_instance_id, update_api_plat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/apiaccesscontrol/api_metadata_client.py b/src/oci/apiaccesscontrol/api_metadata_client.py index 0b3310f8b..27034621f 100644 --- a/src/oci/apiaccesscontrol/api_metadata_client.py +++ b/src/oci/apiaccesscontrol/api_metadata_client.py @@ -182,7 +182,7 @@ def get_api_metadata(self, api_metadata_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/apiaccesscontrol/privileged_api_control_client.py b/src/oci/apiaccesscontrol/privileged_api_control_client.py index 072c200ed..ff3e97cd7 100644 --- a/src/oci/apiaccesscontrol/privileged_api_control_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_control_client.py @@ -203,7 +203,7 @@ def change_privileged_api_control_compartment(self, privileged_api_control_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -421,7 +421,7 @@ def delete_privileged_api_control(self, privileged_api_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -530,7 +530,7 @@ def get_privileged_api_control(self, privileged_api_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -821,7 +821,7 @@ def update_privileged_api_control(self, privileged_api_control_id, update_privil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/apiaccesscontrol/privileged_api_requests_client.py b/src/oci/apiaccesscontrol/privileged_api_requests_client.py index 8535b3e88..659a5165e 100644 --- a/src/oci/apiaccesscontrol/privileged_api_requests_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_requests_client.py @@ -198,7 +198,7 @@ def approve_privileged_api_request(self, privileged_api_request_id, approve_priv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -320,7 +320,7 @@ def close_privileged_api_request(self, privileged_api_request_id, close_privileg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -525,7 +525,7 @@ def get_privileged_api_request(self, privileged_api_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -844,7 +844,7 @@ def reject_privileged_api_request(self, privileged_api_request_id, reject_privil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -966,7 +966,7 @@ def revoke_privileged_api_request(self, privileged_api_request_id, revoke_privil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/apiaccesscontrol/privileged_api_work_request_client.py b/src/oci/apiaccesscontrol/privileged_api_work_request_client.py index a0b1357d4..f9ba531d2 100644 --- a/src/oci/apiaccesscontrol/privileged_api_work_request_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_work_request_client.py @@ -189,7 +189,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -291,7 +291,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -422,7 +422,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -577,7 +577,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/apigateway/api_gateway_client.py b/src/oci/apigateway/api_gateway_client.py index 120933320..f06eaa078 100644 --- a/src/oci/apigateway/api_gateway_client.py +++ b/src/oci/apigateway/api_gateway_client.py @@ -184,7 +184,7 @@ def add_api_lock(self, api_id, add_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -293,7 +293,7 @@ def add_certificate_lock(self, certificate_id, add_resource_lock_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -402,7 +402,7 @@ def add_sdk_lock(self, sdk_id, add_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -524,7 +524,7 @@ def change_api_compartment(self, api_id, change_api_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -653,7 +653,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1065,7 +1065,7 @@ def delete_api(self, api_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1179,7 +1179,7 @@ def delete_certificate(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1293,7 +1293,7 @@ def delete_sdk(self, sdk_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1395,7 +1395,7 @@ def get_api(self, api_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1509,7 +1509,7 @@ def get_api_content(self, api_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1617,7 +1617,7 @@ def get_api_deployment_specification(self, api_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1724,7 +1724,7 @@ def get_api_validations(self, api_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1823,7 +1823,7 @@ def get_certificate(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1921,7 +1921,7 @@ def get_sdk(self, sdk_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2647,7 +2647,7 @@ def remove_api_lock(self, api_id, remove_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2756,7 +2756,7 @@ def remove_certificate_lock(self, certificate_id, remove_resource_lock_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2865,7 +2865,7 @@ def remove_sdk_lock(self, sdk_id, remove_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2979,7 +2979,7 @@ def update_api(self, api_id, update_api_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3098,7 +3098,7 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3217,7 +3217,7 @@ def update_sdk(self, sdk_id, update_sdk_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apigateway/deployment_client.py b/src/oci/apigateway/deployment_client.py index 87e8f7df5..1fd9304e3 100644 --- a/src/oci/apigateway/deployment_client.py +++ b/src/oci/apigateway/deployment_client.py @@ -184,7 +184,7 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -522,7 +522,7 @@ def delete_deployment(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -624,7 +624,7 @@ def get_deployment(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -894,7 +894,7 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1008,7 +1008,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apigateway/gateway_client.py b/src/oci/apigateway/gateway_client.py index e936ca981..4a0d48256 100644 --- a/src/oci/apigateway/gateway_client.py +++ b/src/oci/apigateway/gateway_client.py @@ -184,7 +184,7 @@ def add_gateway_lock(self, gateway_id, add_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def change_gateway_compartment(self, gateway_id, change_gateway_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -522,7 +522,7 @@ def delete_gateway(self, gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -624,7 +624,7 @@ def get_gateway(self, gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -894,7 +894,7 @@ def remove_gateway_lock(self, gateway_id, remove_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1008,7 +1008,7 @@ def update_gateway(self, gateway_id, update_gateway_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apigateway/subscribers_client.py b/src/oci/apigateway/subscribers_client.py index 3e75a5c5b..fb725b38c 100644 --- a/src/oci/apigateway/subscribers_client.py +++ b/src/oci/apigateway/subscribers_client.py @@ -184,7 +184,7 @@ def add_subscriber_lock(self, subscriber_id, add_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def change_subscriber_compartment(self, subscriber_id, change_subscriber_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -522,7 +522,7 @@ def delete_subscriber(self, subscriber_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -624,7 +624,7 @@ def get_subscriber(self, subscriber_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -888,7 +888,7 @@ def remove_subscriber_lock(self, subscriber_id, remove_resource_lock_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1002,7 +1002,7 @@ def update_subscriber(self, subscriber_id, update_subscriber_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apigateway/usage_plans_client.py b/src/oci/apigateway/usage_plans_client.py index 832bc1ff6..4f1bf5dc9 100644 --- a/src/oci/apigateway/usage_plans_client.py +++ b/src/oci/apigateway/usage_plans_client.py @@ -184,7 +184,7 @@ def add_usage_plan_lock(self, usage_plan_id, add_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def change_usage_plan_compartment(self, usage_plan_id, change_usage_plan_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -522,7 +522,7 @@ def delete_usage_plan(self, usage_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -624,7 +624,7 @@ def get_usage_plan(self, usage_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -888,7 +888,7 @@ def remove_usage_plan_lock(self, usage_plan_id, remove_resource_lock_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1002,7 +1002,7 @@ def update_usage_plan(self, usage_plan_id, update_usage_plan_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apigateway/work_requests_client.py b/src/oci/apigateway/work_requests_client.py index 578d7db16..172cd7282 100644 --- a/src/oci/apigateway/work_requests_client.py +++ b/src/oci/apigateway/work_requests_client.py @@ -190,7 +190,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -287,7 +287,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -408,7 +408,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -553,7 +553,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: diff --git a/src/oci/apm_config/config_client.py b/src/oci/apm_config/config_client.py index bb1229703..bfee91e5d 100644 --- a/src/oci/apm_config/config_client.py +++ b/src/oci/apm_config/config_client.py @@ -415,7 +415,7 @@ def delete_config(self, apm_domain_id, config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -634,7 +634,7 @@ def get_config(self, apm_domain_id, config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1444,7 +1444,7 @@ def update_config(self, apm_domain_id, config_id, update_config_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apm_control_plane/apm_domain_client.py b/src/oci/apm_control_plane/apm_domain_client.py index fd464c629..63653c2ef 100644 --- a/src/oci/apm_control_plane/apm_domain_client.py +++ b/src/oci/apm_control_plane/apm_domain_client.py @@ -191,7 +191,7 @@ def change_apm_domain_compartment(self, apm_domain_id, change_apm_domain_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -397,7 +397,7 @@ def delete_apm_domain(self, apm_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -505,7 +505,7 @@ def generate_data_keys(self, generate_data_keys_list_details, apm_domain_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -604,7 +604,7 @@ def get_apm_domain(self, apm_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -702,7 +702,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -808,7 +808,7 @@ def list_apm_domain_work_requests(self, apm_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1071,7 +1071,7 @@ def list_data_keys(self, apm_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'data_key_type' in kwargs: @@ -1191,7 +1191,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1305,7 +1305,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1525,7 +1525,7 @@ def remove_data_keys(self, apm_domain_id, remove_data_keys_list_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1634,7 +1634,7 @@ def update_apm_domain(self, apm_domain_id, update_apm_domain_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/apm_synthetics/apm_synthetic_client.py b/src/oci/apm_synthetics/apm_synthetic_client.py index 3eee29c23..9c7a8fc6a 100644 --- a/src/oci/apm_synthetics/apm_synthetic_client.py +++ b/src/oci/apm_synthetics/apm_synthetic_client.py @@ -187,7 +187,7 @@ def aggregate_network_data(self, apm_domain_id, monitor_id, aggregate_network_da path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -747,7 +747,7 @@ def create_worker(self, apm_domain_id, on_premise_vantage_point_id, create_worke path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -868,7 +868,7 @@ def delete_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -984,7 +984,7 @@ def delete_monitor(self, apm_domain_id, monitor_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1100,7 +1100,7 @@ def delete_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1216,7 +1216,7 @@ def delete_script(self, apm_domain_id, script_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1336,7 +1336,7 @@ def delete_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1444,7 +1444,7 @@ def get_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1553,7 +1553,7 @@ def get_monitor(self, apm_domain_id, monitor_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1675,7 +1675,7 @@ def get_monitor_result(self, apm_domain_id, monitor_id, vantage_point, result_ty path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1787,7 +1787,7 @@ def get_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_point_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1896,7 +1896,7 @@ def get_script(self, apm_domain_id, script_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2009,7 +2009,7 @@ def get_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2967,7 +2967,7 @@ def list_workers(self, apm_domain_id, on_premise_vantage_point_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'status' in kwargs: @@ -3116,7 +3116,7 @@ def update_dedicated_vantage_point(self, apm_domain_id, dedicated_vantage_point_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3239,7 +3239,7 @@ def update_monitor(self, apm_domain_id, monitor_id, update_monitor_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3362,7 +3362,7 @@ def update_on_premise_vantage_point(self, apm_domain_id, on_premise_vantage_poin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3485,7 +3485,7 @@ def update_script(self, apm_domain_id, script_id, update_script_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3612,7 +3612,7 @@ def update_worker(self, apm_domain_id, on_premise_vantage_point_id, worker_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apm_traces/scheduled_query_client.py b/src/oci/apm_traces/scheduled_query_client.py index 4bf1416c5..aee615dfd 100644 --- a/src/oci/apm_traces/scheduled_query_client.py +++ b/src/oci/apm_traces/scheduled_query_client.py @@ -305,7 +305,7 @@ def delete_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -421,7 +421,7 @@ def get_scheduled_query(self, apm_domain_id, scheduled_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -701,7 +701,7 @@ def update_scheduled_query(self, apm_domain_id, scheduled_query_id, update_sched path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/apm_traces/trace_client.py b/src/oci/apm_traces/trace_client.py index 2b87f5c8d..6fc9ce6f8 100644 --- a/src/oci/apm_traces/trace_client.py +++ b/src/oci/apm_traces/trace_client.py @@ -192,7 +192,7 @@ def get_aggregated_snapshot(self, apm_domain_id, trace_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -317,7 +317,7 @@ def get_log(self, apm_domain_id, log_key, time_log_started_greater_than_or_equal path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -446,7 +446,7 @@ def get_span(self, apm_domain_id, span_key, trace_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'span_namespace' in kwargs: @@ -577,7 +577,7 @@ def get_trace(self, apm_domain_id, trace_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'trace_namespace' in kwargs: @@ -706,7 +706,7 @@ def get_trace_snapshot(self, apm_domain_id, trace_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/appmgmt_control/appmgmt_control_client.py b/src/oci/appmgmt_control/appmgmt_control_client.py index e60c74f88..9c3bbdde6 100644 --- a/src/oci/appmgmt_control/appmgmt_control_client.py +++ b/src/oci/appmgmt_control/appmgmt_control_client.py @@ -182,7 +182,7 @@ def activate_monitoring_plugin(self, monitored_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -277,7 +277,7 @@ def get_monitored_instance(self, monitored_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -375,7 +375,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -617,7 +617,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -731,7 +731,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -953,7 +953,7 @@ def publish_top_processes_metrics(self, monitored_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/artifacts/artifacts_client.py b/src/oci/artifacts/artifacts_client.py index 3e5cbdf50..9e1f313f1 100644 --- a/src/oci/artifacts/artifacts_client.py +++ b/src/oci/artifacts/artifacts_client.py @@ -204,7 +204,7 @@ def change_container_repository_compartment(self, repository_id, change_containe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -331,7 +331,7 @@ def change_repository_compartment(self, repository_id, change_repository_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -745,7 +745,7 @@ def delete_container_image(self, image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -853,7 +853,7 @@ def delete_container_image_signature(self, image_signature_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -961,7 +961,7 @@ def delete_container_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1071,7 +1071,7 @@ def delete_generic_artifact(self, artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1191,7 +1191,7 @@ def delete_generic_artifact_by_path(self, repository_id, artifact_path, version, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1299,7 +1299,7 @@ def delete_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1497,7 +1497,7 @@ def get_container_image(self, image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1600,7 +1600,7 @@ def get_container_image_signature(self, image_signature_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1703,7 +1703,7 @@ def get_container_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1808,7 +1808,7 @@ def get_generic_artifact(self, artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1923,7 +1923,7 @@ def get_generic_artifact_by_path(self, repository_id, artifact_path, version, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2026,7 +2026,7 @@ def get_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3203,7 +3203,7 @@ def remove_container_version(self, image_id, remove_container_version_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3328,7 +3328,7 @@ def restore_container_image(self, image_id, restore_container_image_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3553,7 +3553,7 @@ def update_container_image(self, image_id, update_container_image_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3668,7 +3668,7 @@ def update_container_image_signature(self, image_signature_id, update_container_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3783,7 +3783,7 @@ def update_container_repository(self, repository_id, update_container_repository path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3902,7 +3902,7 @@ def update_generic_artifact(self, artifact_id, update_generic_artifact_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4029,7 +4029,7 @@ def update_generic_artifact_by_path(self, repository_id, artifact_path, version, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4144,7 +4144,7 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/autoscaling/auto_scaling_client.py b/src/oci/autoscaling/auto_scaling_client.py index 3d4cf9430..1a25507af 100644 --- a/src/oci/autoscaling/auto_scaling_client.py +++ b/src/oci/autoscaling/auto_scaling_client.py @@ -199,7 +199,7 @@ def change_auto_scaling_configuration_compartment(self, auto_scaling_configurati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -417,7 +417,7 @@ def create_auto_scaling_policy(self, auto_scaling_configuration_id, create_auto_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -526,7 +526,7 @@ def delete_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -634,7 +634,7 @@ def delete_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -732,7 +732,7 @@ def get_auto_scaling_configuration(self, auto_scaling_configuration_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -835,7 +835,7 @@ def get_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling_po path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1125,7 +1125,7 @@ def list_auto_scaling_policies(self, auto_scaling_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1267,7 +1267,7 @@ def update_auto_scaling_configuration(self, auto_scaling_configuration_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1392,7 +1392,7 @@ def update_auto_scaling_policy(self, auto_scaling_configuration_id, auto_scaling path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/base_client.py b/src/oci/base_client.py index 72f8a33bc..a21cbfe72 100644 --- a/src/oci/base_client.py +++ b/src/oci/base_client.py @@ -51,7 +51,7 @@ # Expect header is enabled by default enable_expect_header = True expect_header_env_var = os.environ.get('OCI_PYSDK_USING_EXPECT_HEADER', True) -if isinstance(expect_header_env_var, six.string_types) and expect_header_env_var.lower() == "false": +if isinstance(expect_header_env_var, str) and expect_header_env_var.lower() == "false": enable_expect_header = False oke_workload_refresh_enabled = os.environ.get('OCI_OKE_WORKLOAD_REFRESH_ENABLED', "True").lower() == "true" @@ -844,10 +844,10 @@ def sanitize_for_serialization(self, obj, declared_type=None, field_name=None): :param obj: The data to serialize. :return: The serialized form of data. """ - types = (six.string_types, six.integer_types, float, bool, type(None)) + types = (str, six.integer_types, float, bool, type(None)) declared_swagger_type_to_acceptable_python_types = { - 'str': six.string_types, + 'str': str, 'bool': bool, 'int': (float, six.integer_types), 'float': (float, six.integer_types) diff --git a/src/oci/bastion/bastion_client.py b/src/oci/bastion/bastion_client.py index fd1a3f95c..198d1d103 100644 --- a/src/oci/bastion/bastion_client.py +++ b/src/oci/bastion/bastion_client.py @@ -183,7 +183,7 @@ def change_bastion_compartment(self, bastion_id, change_bastion_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -480,7 +480,7 @@ def delete_bastion(self, bastion_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -583,7 +583,7 @@ def delete_session(self, session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -678,7 +678,7 @@ def get_bastion(self, bastion_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -776,7 +776,7 @@ def get_session(self, session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -874,7 +874,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1284,7 +1284,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1396,7 +1396,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1612,7 +1612,7 @@ def update_bastion(self, bastion_id, update_bastion_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1722,7 +1722,7 @@ def update_session(self, session_id, update_session_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/bds/bds_client.py b/src/oci/bds/bds_client.py index 220d8529b..ee150566e 100644 --- a/src/oci/bds/bds_client.py +++ b/src/oci/bds/bds_client.py @@ -195,7 +195,7 @@ def activate_bds_metastore_configuration(self, bds_instance_id, metastore_config path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -317,7 +317,7 @@ def activate_iam_user_sync_configuration(self, bds_instance_id, identity_configu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -439,7 +439,7 @@ def activate_upst_configuration(self, bds_instance_id, identity_configuration_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -557,7 +557,7 @@ def add_auto_scaling_configuration(self, bds_instance_id, add_auto_scaling_confi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -675,7 +675,7 @@ def add_block_storage(self, bds_instance_id, add_block_storage_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -793,7 +793,7 @@ def add_cloud_sql(self, bds_instance_id, add_cloud_sql_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -911,7 +911,7 @@ def add_kafka(self, bds_instance_id, add_kafka_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1029,7 +1029,7 @@ def add_master_nodes(self, bds_instance_id, add_master_nodes_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1147,7 +1147,7 @@ def add_utility_nodes(self, bds_instance_id, add_utility_nodes_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1265,7 +1265,7 @@ def add_worker_nodes(self, bds_instance_id, add_worker_nodes_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1383,7 +1383,7 @@ def backup_node(self, bds_instance_id, backup_node_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1501,7 +1501,7 @@ def certificate_service_info(self, bds_instance_id, certificate_service_info_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1621,7 +1621,7 @@ def change_bds_instance_compartment(self, bds_instance_id, change_bds_instance_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1739,7 +1739,7 @@ def change_shape(self, bds_instance_id, change_shape_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1849,7 +1849,7 @@ def create_bds_api_key(self, bds_instance_id, create_bds_api_key_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2148,7 +2148,7 @@ def create_bds_metastore_configuration(self, bds_instance_id, create_bds_metasto path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2257,7 +2257,7 @@ def create_identity_configuration(self, bds_instance_id, create_identity_configu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2366,7 +2366,7 @@ def create_node_backup_configuration(self, bds_instance_id, create_node_backup_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2475,7 +2475,7 @@ def create_node_replace_configuration(self, bds_instance_id, create_node_replace path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2584,7 +2584,7 @@ def create_resource_principal_configuration(self, bds_instance_id, create_resour path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2705,7 +2705,7 @@ def deactivate_iam_user_sync_configuration(self, bds_instance_id, identity_confi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2827,7 +2827,7 @@ def deactivate_upst_configuration(self, bds_instance_id, identity_configuration_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2938,7 +2938,7 @@ def delete_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3041,7 +3041,7 @@ def delete_bds_instance(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3148,7 +3148,7 @@ def delete_bds_metastore_configuration(self, bds_instance_id, metastore_config_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3255,7 +3255,7 @@ def delete_identity_configuration(self, bds_instance_id, identity_configuration_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3362,7 +3362,7 @@ def delete_node_backup(self, bds_instance_id, node_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3469,7 +3469,7 @@ def delete_node_backup_configuration(self, bds_instance_id, node_backup_configur path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3583,7 +3583,7 @@ def disable_certificate(self, bds_instance_id, disable_certificate_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3701,7 +3701,7 @@ def enable_certificate(self, bds_instance_id, enable_certificate_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3819,7 +3819,7 @@ def execute_bootstrap_script(self, bds_instance_id, execute_bootstrap_script_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3941,7 +3941,7 @@ def force_refresh_resource_principal(self, bds_instance_id, resource_principal_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4044,7 +4044,7 @@ def get_auto_scaling_configuration(self, bds_instance_id, auto_scaling_configura path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4144,7 +4144,7 @@ def get_bds_api_key(self, bds_instance_id, api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4240,7 +4240,7 @@ def get_bds_instance(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4340,7 +4340,7 @@ def get_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4460,7 +4460,7 @@ def get_identity_configuration(self, bds_instance_id, identity_configuration_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4584,7 +4584,7 @@ def get_node_backup(self, bds_instance_id, node_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4684,7 +4684,7 @@ def get_node_backup_configuration(self, bds_instance_id, node_backup_configurati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4784,7 +4784,7 @@ def get_node_replace_configuration(self, bds_instance_id, node_replace_configura path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4899,7 +4899,7 @@ def get_os_patch_details(self, bds_instance_id, os_patch_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5009,7 +5009,7 @@ def get_resource_principal_configuration(self, bds_instance_id, resource_princip path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5125,7 +5125,7 @@ def get_software_update(self, bds_instance_id, software_update_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5224,7 +5224,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5339,7 +5339,7 @@ def install_os_patch(self, bds_instance_id, install_os_patch_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5457,7 +5457,7 @@ def install_patch(self, bds_instance_id, install_patch_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5575,7 +5575,7 @@ def install_software_updates(self, bds_instance_id, install_software_updates_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5707,7 +5707,7 @@ def list_auto_scaling_configurations(self, compartment_id, bds_instance_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -5871,7 +5871,7 @@ def list_bds_api_keys(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -6318,7 +6318,7 @@ def list_bds_metastore_configurations(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'metastore_type' in kwargs: @@ -6490,7 +6490,7 @@ def list_identity_configurations(self, bds_instance_id, compartment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -6650,7 +6650,7 @@ def list_node_backup_configurations(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -6813,7 +6813,7 @@ def list_node_backups(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -6973,7 +6973,7 @@ def list_node_replace_configurations(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7138,7 +7138,7 @@ def list_os_patches(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7297,7 +7297,7 @@ def list_patch_histories(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -7442,7 +7442,7 @@ def list_patches(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7576,7 +7576,7 @@ def list_resource_principal_configurations(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7741,7 +7741,7 @@ def list_software_updates(self, bds_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7884,7 +7884,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -8024,7 +8024,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -8301,7 +8301,7 @@ def refresh_confidential_application(self, bds_instance_id, identity_configurati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8423,7 +8423,7 @@ def refresh_upst_token_exchange_keytab(self, bds_instance_id, identity_configura path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8545,7 +8545,7 @@ def remove_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8663,7 +8663,7 @@ def remove_cloud_sql(self, bds_instance_id, remove_cloud_sql_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8781,7 +8781,7 @@ def remove_kafka(self, bds_instance_id, remove_kafka_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8891,7 +8891,7 @@ def remove_node(self, bds_instance_id, remove_node_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9011,7 +9011,7 @@ def remove_node_replace_configuration(self, bds_instance_id, node_replace_config path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9125,7 +9125,7 @@ def remove_resource_principal_configuration(self, bds_instance_id, resource_prin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9241,7 +9241,7 @@ def renew_certificate(self, bds_instance_id, renew_certificate_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9359,7 +9359,7 @@ def replace_node(self, bds_instance_id, replace_node_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9477,7 +9477,7 @@ def restart_node(self, bds_instance_id, restart_node_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9587,7 +9587,7 @@ def start_bds_instance(self, bds_instance_id, start_bds_instance_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9695,7 +9695,7 @@ def stop_bds_instance(self, bds_instance_id, stop_bds_instance_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9807,7 +9807,7 @@ def test_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9911,7 +9911,7 @@ def test_bds_object_storage_connection(self, bds_instance_id, api_key_id, test_b path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10030,7 +10030,7 @@ def update_auto_scaling_configuration(self, bds_instance_id, auto_scaling_config path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10140,7 +10140,7 @@ def update_bds_instance(self, bds_instance_id, update_bds_instance_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10252,7 +10252,7 @@ def update_bds_metastore_configuration(self, bds_instance_id, metastore_config_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10372,7 +10372,7 @@ def update_identity_configuration(self, bds_instance_id, identity_configuration_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10494,7 +10494,7 @@ def update_node_backup_configuration(self, bds_instance_id, node_backup_configur path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10616,7 +10616,7 @@ def update_node_replace_configuration(self, bds_instance_id, node_replace_config path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10738,7 +10738,7 @@ def update_resource_principal_configuration(self, bds_instance_id, resource_prin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/blockchain/blockchain_platform_client.py b/src/oci/blockchain/blockchain_platform_client.py index d3582927c..475964fd2 100644 --- a/src/oci/blockchain/blockchain_platform_client.py +++ b/src/oci/blockchain/blockchain_platform_client.py @@ -191,7 +191,7 @@ def change_blockchain_platform_compartment(self, blockchain_platform_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -403,7 +403,7 @@ def create_osn(self, blockchain_platform_id, create_osn_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -513,7 +513,7 @@ def create_peer(self, blockchain_platform_id, create_peer_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -627,7 +627,7 @@ def delete_blockchain_platform(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -736,7 +736,7 @@ def delete_osn(self, blockchain_platform_id, osn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -851,7 +851,7 @@ def delete_peer(self, blockchain_platform_id, peer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -956,7 +956,7 @@ def delete_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1051,7 +1051,7 @@ def get_blockchain_platform(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1151,7 +1151,7 @@ def get_osn(self, blockchain_platform_id, osn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1251,7 +1251,7 @@ def get_peer(self, blockchain_platform_id, peer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1347,7 +1347,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1451,7 +1451,7 @@ def list_blockchain_platform_patches(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1738,7 +1738,7 @@ def list_osns(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1894,7 +1894,7 @@ def list_peers(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2025,7 +2025,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2137,7 +2137,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2377,7 +2377,7 @@ def preview_scale_blockchain_platform(self, blockchain_platform_id, scale_blockc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2494,7 +2494,7 @@ def scale_blockchain_platform(self, blockchain_platform_id, scale_blockchain_pla path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2609,7 +2609,7 @@ def start_blockchain_platform(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2722,7 +2722,7 @@ def stop_blockchain_platform(self, blockchain_platform_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2838,7 +2838,7 @@ def update_blockchain_platform(self, update_blockchain_platform_details, blockch path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2960,7 +2960,7 @@ def update_osn(self, blockchain_platform_id, osn_id, update_osn_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3082,7 +3082,7 @@ def update_peer(self, blockchain_platform_id, peer_id, update_peer_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3200,7 +3200,7 @@ def upgrade_blockchain_platform(self, upgrade_blockchain_platform_details, block path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/budget/budget_client.py b/src/oci/budget/budget_client.py index 2924daea4..8108aaf44 100644 --- a/src/oci/budget/budget_client.py +++ b/src/oci/budget/budget_client.py @@ -183,7 +183,7 @@ def create_alert_rule(self, budget_id, create_alert_rule_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -395,7 +395,7 @@ def delete_alert_rule(self, budget_id, alert_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -500,7 +500,7 @@ def delete_budget(self, budget_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -601,7 +601,7 @@ def get_alert_rule(self, budget_id, alert_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -699,7 +699,7 @@ def get_budget(self, budget_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -831,7 +831,7 @@ def list_alert_rules(self, budget_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1154,7 +1154,7 @@ def update_alert_rule(self, budget_id, alert_rule_id, update_alert_rule_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1266,7 +1266,7 @@ def update_budget(self, budget_id, update_budget_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/capacity_management/capacity_management_client.py b/src/oci/capacity_management/capacity_management_client.py index bd1177138..efb5bb249 100644 --- a/src/oci/capacity_management/capacity_management_client.py +++ b/src/oci/capacity_management/capacity_management_client.py @@ -383,7 +383,7 @@ def create_occ_customer(self, create_occ_customer_details, occ_customer_group_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -593,7 +593,7 @@ def delete_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -699,7 +699,7 @@ def delete_occ_capacity_request(self, occ_capacity_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -809,7 +809,7 @@ def delete_occ_customer(self, occ_customer_group_id, occ_customer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -915,7 +915,7 @@ def delete_occ_customer_group(self, occ_customer_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1013,7 +1013,7 @@ def get_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1128,7 +1128,7 @@ def get_occ_availability_catalog_content(self, occ_availability_catalog_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1230,7 +1230,7 @@ def get_occ_capacity_request(self, occ_capacity_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1329,7 +1329,7 @@ def get_occ_customer_group(self, occ_customer_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1468,7 +1468,7 @@ def list_internal_namespace_occ_overviews(self, namespace, compartment_id, occ_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1939,7 +1939,7 @@ def list_occ_availabilities(self, occ_availability_catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3263,7 +3263,7 @@ def list_occ_overviews(self, namespace, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3401,7 +3401,7 @@ def patch_internal_occ_capacity_request(self, patch_occ_capacity_request_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3514,7 +3514,7 @@ def patch_occ_capacity_request(self, patch_occ_capacity_request_details, occ_cap path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3632,7 +3632,7 @@ def publish_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3743,7 +3743,7 @@ def update_internal_occ_capacity_request(self, update_internal_occ_capacity_requ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3856,7 +3856,7 @@ def update_occ_availability_catalog(self, update_occ_availability_catalog_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3969,7 +3969,7 @@ def update_occ_capacity_request(self, update_occ_capacity_request_details, occ_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4086,7 +4086,7 @@ def update_occ_customer(self, update_occ_customer_details, occ_customer_group_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4199,7 +4199,7 @@ def update_occ_customer_group(self, update_occ_customer_group_details, occ_custo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/capacity_management/demand_signal_client.py b/src/oci/capacity_management/demand_signal_client.py index 0ec0bd9f6..4ef0140a3 100644 --- a/src/oci/capacity_management/demand_signal_client.py +++ b/src/oci/capacity_management/demand_signal_client.py @@ -477,7 +477,7 @@ def delete_occm_demand_signal(self, occm_demand_signal_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -583,7 +583,7 @@ def delete_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -681,7 +681,7 @@ def get_occm_demand_signal(self, occm_demand_signal_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -780,7 +780,7 @@ def get_occm_demand_signal_item(self, occm_demand_signal_item_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1486,7 +1486,7 @@ def update_occm_demand_signal(self, update_occm_demand_signal_details, occm_dema path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1599,7 +1599,7 @@ def update_occm_demand_signal_item(self, update_occm_demand_signal_item_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/capacity_management/internal_demand_signal_client.py b/src/oci/capacity_management/internal_demand_signal_client.py index 96a73a1f1..741d81a96 100644 --- a/src/oci/capacity_management/internal_demand_signal_client.py +++ b/src/oci/capacity_management/internal_demand_signal_client.py @@ -283,7 +283,7 @@ def delete_internal_occm_demand_signal_delivery(self, occm_demand_signal_deliver path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -381,7 +381,7 @@ def get_internal_occm_demand_signal(self, occm_demand_signal_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -480,7 +480,7 @@ def get_internal_occm_demand_signal_catalog(self, occm_demand_signal_catalog_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -579,7 +579,7 @@ def get_internal_occm_demand_signal_delivery(self, occm_demand_signal_delivery_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1446,7 +1446,7 @@ def update_internal_occm_demand_signal(self, update_internal_occm_demand_signal_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1559,7 +1559,7 @@ def update_internal_occm_demand_signal_delivery(self, update_internal_occm_deman path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/certificates/certificates_client.py b/src/oci/certificates/certificates_client.py index 959c0ca92..4f7020c5e 100644 --- a/src/oci/certificates/certificates_client.py +++ b/src/oci/certificates/certificates_client.py @@ -173,7 +173,7 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -285,7 +285,7 @@ def get_certificate_authority_bundle(self, certificate_authority_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'stage' in kwargs: @@ -422,7 +422,7 @@ def get_certificate_bundle(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'stage' in kwargs: @@ -556,7 +556,7 @@ def list_certificate_authority_bundle_versions(self, certificate_authority_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -688,7 +688,7 @@ def list_certificate_bundle_versions(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/certificates_management/certificates_management_client.py b/src/oci/certificates_management/certificates_management_client.py index 8fd0871d4..7ac9fc3fa 100644 --- a/src/oci/certificates_management/certificates_management_client.py +++ b/src/oci/certificates_management/certificates_management_client.py @@ -182,7 +182,7 @@ def cancel_certificate_authority_deletion(self, certificate_authority_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -293,7 +293,7 @@ def cancel_certificate_authority_version_deletion(self, certificate_authority_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -400,7 +400,7 @@ def cancel_certificate_deletion(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -509,7 +509,7 @@ def cancel_certificate_version_deletion(self, certificate_id, certificate_versio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -631,7 +631,7 @@ def change_ca_bundle_compartment(self, ca_bundle_id, change_ca_bundle_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -757,7 +757,7 @@ def change_certificate_authority_compartment(self, certificate_authority_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -883,7 +883,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1289,7 +1289,7 @@ def delete_ca_bundle(self, ca_bundle_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1386,7 +1386,7 @@ def get_association(self, association_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1484,7 +1484,7 @@ def get_ca_bundle(self, ca_bundle_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1582,7 +1582,7 @@ def get_certificate(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1680,7 +1680,7 @@ def get_certificate_authority(self, certificate_authority_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1782,7 +1782,7 @@ def get_certificate_authority_version(self, certificate_authority_id, certificat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1884,7 +1884,7 @@ def get_certificate_version(self, certificate_id, certificate_version_number, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2501,7 +2501,7 @@ def list_certificate_authority_versions(self, certificate_authority_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2650,7 +2650,7 @@ def list_certificate_versions(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2962,7 +2962,7 @@ def revoke_certificate_authority_version(self, certificate_authority_id, certifi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3087,7 +3087,7 @@ def revoke_certificate_version(self, certificate_id, certificate_version_number, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3199,7 +3199,7 @@ def schedule_certificate_authority_deletion(self, certificate_authority_id, sche path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3315,7 +3315,7 @@ def schedule_certificate_authority_version_deletion(self, certificate_authority_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3430,7 +3430,7 @@ def schedule_certificate_deletion(self, certificate_id, schedule_certificate_del path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3547,7 +3547,7 @@ def schedule_certificate_version_deletion(self, certificate_id, certificate_vers path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3657,7 +3657,7 @@ def update_ca_bundle(self, ca_bundle_id, update_ca_bundle_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3769,7 +3769,7 @@ def update_certificate(self, certificate_id, update_certificate_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3881,7 +3881,7 @@ def update_certificate_authority(self, certificate_authority_id, update_certific path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/cims/incident_client.py b/src/oci/cims/incident_client.py index 63405aa5b..f14d55f73 100644 --- a/src/oci/cims/incident_client.py +++ b/src/oci/cims/incident_client.py @@ -339,7 +339,7 @@ def get_incident(self, incident_key, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -878,7 +878,7 @@ def put_attachment(self, put_attachment_details, incident_key, attachment_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -910,7 +910,7 @@ def put_attachment(self, put_attachment_details, incident_key, attachment_name, put_attachment_details = kwargs.get("put_attachment_details", missing) if put_attachment_details is not missing and put_attachment_details is not None: - if (not isinstance(put_attachment_details, (six.binary_type, six.string_types)) and + if (not isinstance(put_attachment_details, (bytes, str)) and not hasattr(put_attachment_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1058,7 +1058,7 @@ def update_incident(self, incident_key, update_incident_details, compartment_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/cloud_bridge/common_client.py b/src/oci/cloud_bridge/common_client.py index ebf42133c..f2ad9c781 100644 --- a/src/oci/cloud_bridge/common_client.py +++ b/src/oci/cloud_bridge/common_client.py @@ -180,7 +180,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -277,7 +277,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -395,7 +395,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -537,7 +537,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/cloud_bridge/discovery_client.py b/src/oci/cloud_bridge/discovery_client.py index 03a6cc1f9..437aa9b2c 100644 --- a/src/oci/cloud_bridge/discovery_client.py +++ b/src/oci/cloud_bridge/discovery_client.py @@ -193,7 +193,7 @@ def change_asset_source_compartment(self, asset_source_id, change_asset_source_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -315,7 +315,7 @@ def change_discovery_schedule_compartment(self, discovery_schedule_id, change_di path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -622,7 +622,7 @@ def delete_asset_source(self, asset_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -729,7 +729,7 @@ def delete_discovery_schedule(self, discovery_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -828,7 +828,7 @@ def get_asset_source(self, asset_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -928,7 +928,7 @@ def get_discovery_schedule(self, discovery_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1036,7 +1036,7 @@ def list_asset_source_connections(self, asset_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1612,7 +1612,7 @@ def refresh_asset_source(self, asset_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1723,7 +1723,7 @@ def update_asset_source(self, asset_source_id, update_asset_source_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1835,7 +1835,7 @@ def update_discovery_schedule(self, update_discovery_schedule_details, discovery path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/cloud_bridge/inventory_client.py b/src/oci/cloud_bridge/inventory_client.py index 4f18402b6..6392ee253 100644 --- a/src/oci/cloud_bridge/inventory_client.py +++ b/src/oci/cloud_bridge/inventory_client.py @@ -361,7 +361,7 @@ def change_asset_compartment(self, asset_id, change_asset_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -481,7 +481,7 @@ def change_asset_tags(self, asset_id, change_asset_tags_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -786,7 +786,7 @@ def delete_asset(self, asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -891,7 +891,7 @@ def delete_inventory(self, inventory_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -988,7 +988,7 @@ def get_asset(self, asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1086,7 +1086,7 @@ def get_inventory(self, inventory_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1195,7 +1195,7 @@ def import_inventory(self, import_inventory_details, inventory_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1499,7 +1499,7 @@ def list_historical_metrics(self, asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1777,7 +1777,7 @@ def submit_historical_metrics(self, submit_historical_metrics_details, asset_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1889,7 +1889,7 @@ def update_asset(self, asset_id, update_asset_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2001,7 +2001,7 @@ def update_inventory(self, inventory_id, update_inventory_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/cloud_bridge/ocb_agent_svc_client.py b/src/oci/cloud_bridge/ocb_agent_svc_client.py index 356082393..b69dedd25 100644 --- a/src/oci/cloud_bridge/ocb_agent_svc_client.py +++ b/src/oci/cloud_bridge/ocb_agent_svc_client.py @@ -191,7 +191,7 @@ def add_agent_dependency(self, environment_id, add_agent_dependency_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -313,7 +313,7 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -433,7 +433,7 @@ def change_agent_dependency_compartment(self, agent_dependency_id, change_agent_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -553,7 +553,7 @@ def change_environment_compartment(self, environment_id, change_environment_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -964,7 +964,7 @@ def delete_agent(self, agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1071,7 +1071,7 @@ def delete_agent_dependency(self, agent_dependency_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1176,7 +1176,7 @@ def delete_environment(self, environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1273,7 +1273,7 @@ def get_agent(self, agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1371,7 +1371,7 @@ def get_agent_dependency(self, agent_dependency_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1469,7 +1469,7 @@ def get_environment(self, environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1571,7 +1571,7 @@ def get_plugin(self, agent_id, plugin_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2299,7 +2299,7 @@ def remove_agent_dependency(self, environment_id, remove_agent_dependency_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2421,7 +2421,7 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2543,7 +2543,7 @@ def update_agent_dependency(self, agent_dependency_id, update_agent_dependency_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2663,7 +2663,7 @@ def update_environment(self, environment_id, update_environment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2781,7 +2781,7 @@ def update_plugin(self, agent_id, plugin_name, update_plugin_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/cloud_guard/cloud_guard_client.py b/src/oci/cloud_guard/cloud_guard_client.py index ccce76b1a..8d662b520 100644 --- a/src/oci/cloud_guard/cloud_guard_client.py +++ b/src/oci/cloud_guard/cloud_guard_client.py @@ -197,7 +197,7 @@ def add_compartment(self, security_zone_id, add_compartment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -422,7 +422,7 @@ def change_data_source_compartment(self, data_source_id, change_data_source_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -543,7 +543,7 @@ def change_detector_recipe_compartment(self, detector_recipe_id, change_detector path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -661,7 +661,7 @@ def change_managed_list_compartment(self, managed_list_id, change_managed_list_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -781,7 +781,7 @@ def change_responder_recipe_compartment(self, responder_recipe_id, change_respon path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -899,7 +899,7 @@ def change_saved_query_compartment(self, saved_query_id, change_saved_query_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1019,7 +1019,7 @@ def change_security_recipe_compartment(self, security_recipe_id, change_security path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1139,7 +1139,7 @@ def change_security_zone_compartment(self, security_zone_id, change_security_zon path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1632,7 +1632,7 @@ def create_detector_recipe_detector_rule(self, detector_recipe_id, create_detect path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2324,7 +2324,7 @@ def create_target_detector_recipe(self, target_id, attach_target_detector_recipe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2435,7 +2435,7 @@ def create_target_responder_recipe(self, target_id, attach_target_responder_reci path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2648,7 +2648,7 @@ def delete_adhoc_query(self, adhoc_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2753,7 +2753,7 @@ def delete_data_mask_rule(self, data_mask_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2864,7 +2864,7 @@ def delete_data_source(self, data_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2977,7 +2977,7 @@ def delete_detector_recipe(self, detector_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3086,7 +3086,7 @@ def delete_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3197,7 +3197,7 @@ def delete_detector_recipe_detector_rule_data_source(self, detector_recipe_id, d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3308,7 +3308,7 @@ def delete_managed_list(self, managed_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3413,7 +3413,7 @@ def delete_responder_recipe(self, responder_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3524,7 +3524,7 @@ def delete_saved_query(self, saved_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3629,7 +3629,7 @@ def delete_security_recipe(self, security_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3732,7 +3732,7 @@ def delete_security_zone(self, security_zone_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3835,7 +3835,7 @@ def delete_target(self, target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3943,7 +3943,7 @@ def delete_target_detector_recipe(self, target_id, target_detector_recipe_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4052,7 +4052,7 @@ def delete_target_responder_recipe(self, target_id, target_responder_recipe_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4195,7 +4195,7 @@ def delete_wlp_agent(self, wlp_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4316,7 +4316,7 @@ def execute_responder_execution(self, responder_execution_id, compartment_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4422,7 +4422,7 @@ def get_adhoc_query(self, adhoc_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4518,7 +4518,7 @@ def get_adhoc_query_result_content(self, adhoc_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4624,7 +4624,7 @@ def get_condition_metadata_type(self, condition_metadata_type_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4820,7 +4820,7 @@ def get_data_mask_rule(self, data_mask_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4916,7 +4916,7 @@ def get_data_source(self, data_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5012,7 +5012,7 @@ def get_detector(self, detector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5108,7 +5108,7 @@ def get_detector_recipe(self, detector_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5208,7 +5208,7 @@ def get_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5308,7 +5308,7 @@ def get_detector_rule(self, detector_id, detector_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5404,7 +5404,7 @@ def get_managed_list(self, managed_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5500,7 +5500,7 @@ def get_problem(self, problem_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5596,7 +5596,7 @@ def get_resource(self, resource_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5692,7 +5692,7 @@ def get_resource_profile(self, resource_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5792,7 +5792,7 @@ def get_resource_vulnerability(self, resource_id, vulnerability_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5888,7 +5888,7 @@ def get_responder_execution(self, responder_execution_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5984,7 +5984,7 @@ def get_responder_recipe(self, responder_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6084,7 +6084,7 @@ def get_responder_recipe_responder_rule(self, responder_recipe_id, responder_rul path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6180,7 +6180,7 @@ def get_responder_rule(self, responder_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6276,7 +6276,7 @@ def get_saved_query(self, saved_query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6374,7 +6374,7 @@ def get_security_policy(self, security_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6470,7 +6470,7 @@ def get_security_recipe(self, security_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6566,7 +6566,7 @@ def get_security_zone(self, security_zone_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6662,7 +6662,7 @@ def get_sighting(self, sighting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6758,7 +6758,7 @@ def get_target(self, target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6858,7 +6858,7 @@ def get_target_detector_recipe(self, target_id, target_detector_recipe_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6962,7 +6962,7 @@ def get_target_detector_recipe_detector_rule(self, target_id, target_detector_re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7063,7 +7063,7 @@ def get_target_responder_recipe(self, target_id, target_responder_recipe_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7170,7 +7170,7 @@ def get_target_responder_recipe_responder_rule(self, target_id, target_responder path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7266,7 +7266,7 @@ def get_wlp_agent(self, wlp_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7362,7 +7362,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7676,7 +7676,7 @@ def list_adhoc_query_results(self, adhoc_query_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8161,7 +8161,7 @@ def list_data_source_events(self, data_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8533,7 +8533,7 @@ def list_detector_recipe_detector_rules(self, detector_recipe_id, compartment_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -8891,7 +8891,7 @@ def list_detector_rules(self, detector_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -9184,7 +9184,7 @@ def list_impacted_resources(self, problem_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -9804,7 +9804,7 @@ def list_problem_endpoints(self, problem_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -9944,7 +9944,7 @@ def list_problem_entities(self, problem_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10087,7 +10087,7 @@ def list_problem_histories(self, compartment_id, problem_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10716,7 +10716,7 @@ def list_resource_ports(self, resource_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10858,7 +10858,7 @@ def list_resource_profile_endpoints(self, resource_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11000,7 +11000,7 @@ def list_resource_profile_impacted_resources(self, resource_profile_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11519,7 +11519,7 @@ def list_resource_vulnerabilities(self, resource_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11895,7 +11895,7 @@ def list_responder_activities(self, problem_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12283,7 +12283,7 @@ def list_responder_recipe_responder_rules(self, responder_recipe_id, compartment path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13412,7 +13412,7 @@ def list_sighting_endpoints(self, sighting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13553,7 +13553,7 @@ def list_sighting_impacted_resources(self, sighting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14040,7 +14040,7 @@ def list_target_detector_recipe_detector_rules(self, target_id, target_detector_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14205,7 +14205,7 @@ def list_target_detector_recipes(self, target_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14375,7 +14375,7 @@ def list_target_responder_recipe_responder_rules(self, target_id, target_respond path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14540,7 +14540,7 @@ def list_target_responder_recipes(self, target_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -15163,7 +15163,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15304,7 +15304,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15595,7 +15595,7 @@ def remove_compartment(self, security_zone_id, remove_compartment_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17508,7 +17508,7 @@ def skip_responder_execution(self, responder_execution_id, compartment_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -17632,7 +17632,7 @@ def trigger_responder(self, problem_id, trigger_responder_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17942,7 +17942,7 @@ def update_data_mask_rule(self, data_mask_rule_id, update_data_mask_rule_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18061,7 +18061,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18179,7 +18179,7 @@ def update_detector_recipe(self, detector_recipe_id, update_detector_recipe_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18295,7 +18295,7 @@ def update_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18413,7 +18413,7 @@ def update_managed_list(self, managed_list_id, update_managed_list_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18533,7 +18533,7 @@ def update_problem_status(self, problem_id, update_problem_status_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18646,7 +18646,7 @@ def update_responder_recipe(self, responder_recipe_id, update_responder_recipe_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18761,7 +18761,7 @@ def update_responder_recipe_responder_rule(self, responder_recipe_id, responder_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18879,7 +18879,7 @@ def update_saved_query(self, saved_query_id, update_saved_query_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18992,7 +18992,7 @@ def update_security_recipe(self, security_recipe_id, update_security_recipe_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19103,7 +19103,7 @@ def update_security_zone(self, security_zone_id, update_security_zone_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19214,7 +19214,7 @@ def update_target(self, target_id, update_target_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19329,7 +19329,7 @@ def update_target_detector_recipe(self, target_id, target_detector_recipe_id, up path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19447,7 +19447,7 @@ def update_target_detector_recipe_detector_rule(self, target_id, target_detector path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19564,7 +19564,7 @@ def update_target_responder_recipe(self, target_id, target_responder_recipe_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19686,7 +19686,7 @@ def update_target_responder_recipe_responder_rule(self, target_id, target_respon path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19804,7 +19804,7 @@ def update_wlp_agent(self, wlp_agent_id, update_wlp_agent_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/cloud_migrations/migration_client.py b/src/oci/cloud_migrations/migration_client.py index 5f454c0c4..a998ba691 100644 --- a/src/oci/cloud_migrations/migration_client.py +++ b/src/oci/cloud_migrations/migration_client.py @@ -181,7 +181,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -297,7 +297,7 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -417,7 +417,7 @@ def change_migration_plan_compartment(self, migration_plan_id, change_migration_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -537,7 +537,7 @@ def change_replication_schedule_compartment(self, replication_schedule_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1136,7 +1136,7 @@ def delete_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1241,7 +1241,7 @@ def delete_migration_asset(self, migration_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1346,7 +1346,7 @@ def delete_migration_plan(self, migration_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1451,7 +1451,7 @@ def delete_replication_schedule(self, replication_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1556,7 +1556,7 @@ def delete_target_asset(self, target_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1669,7 +1669,7 @@ def execute_migration_plan(self, migration_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1768,7 +1768,7 @@ def export_migration_plan(self, migration_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1866,7 +1866,7 @@ def get_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1964,7 +1964,7 @@ def get_migration_asset(self, migration_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2062,7 +2062,7 @@ def get_migration_plan(self, migration_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2160,7 +2160,7 @@ def get_replication_progress(self, migration_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2258,7 +2258,7 @@ def get_replication_schedule(self, replication_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2356,7 +2356,7 @@ def get_target_asset(self, target_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2454,7 +2454,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2579,7 +2579,7 @@ def import_migration_plan(self, migration_plan_id, import_migration_plan_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2597,7 +2597,7 @@ def import_migration_plan(self, migration_plan_id, import_migration_plan_details import_migration_plan_details = kwargs.get("import_migration_plan_details", missing) if import_migration_plan_details is not missing and import_migration_plan_details is not None: - if (not isinstance(import_migration_plan_details, (six.binary_type, six.string_types)) and + if (not isinstance(import_migration_plan_details, (bytes, str)) and not hasattr(import_migration_plan_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -2736,7 +2736,7 @@ def list_available_shapes(self, migration_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3667,7 +3667,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3809,7 +3809,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4117,7 +4117,7 @@ def refresh_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4232,7 +4232,7 @@ def refresh_migration_asset(self, migration_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4347,7 +4347,7 @@ def refresh_migration_plan(self, migration_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4462,7 +4462,7 @@ def start_asset_replication(self, migration_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4577,7 +4577,7 @@ def start_migration_replication(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4687,7 +4687,7 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4799,7 +4799,7 @@ def update_migration_asset(self, migration_asset_id, update_migration_asset_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4919,7 +4919,7 @@ def update_migration_plan(self, migration_plan_id, update_migration_plan_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5039,7 +5039,7 @@ def update_replication_schedule(self, replication_schedule_id, update_replicatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5159,7 +5159,7 @@ def update_target_asset(self, target_asset_id, update_target_asset_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py b/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py index 787b14a8a..148b53e37 100644 --- a/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +++ b/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py @@ -188,7 +188,7 @@ def activate_cluster_placement_group(self, cluster_placement_group_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -297,7 +297,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -418,7 +418,7 @@ def change_cluster_placement_group_compartment(self, cluster_placement_group_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -638,7 +638,7 @@ def deactivate_cluster_placement_group(self, cluster_placement_group_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -747,7 +747,7 @@ def delete_cluster_placement_group(self, cluster_placement_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -844,7 +844,7 @@ def get_cluster_placement_group(self, cluster_placement_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -942,7 +942,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1228,7 +1228,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1370,7 +1370,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1661,7 +1661,7 @@ def update_cluster_placement_group(self, cluster_placement_group_id, update_clus path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py b/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py index 2af509d62..ae10a370e 100644 --- a/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +++ b/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py @@ -200,7 +200,7 @@ def change_ccc_infrastructure_compartment(self, ccc_infrastructure_id, change_cc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -331,7 +331,7 @@ def change_ccc_upgrade_schedule_compartment(self, ccc_upgrade_schedule_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -649,7 +649,7 @@ def delete_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -760,7 +760,7 @@ def delete_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -863,7 +863,7 @@ def get_ccc_infrastructure(self, ccc_infrastructure_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -969,7 +969,7 @@ def get_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1471,7 +1471,7 @@ def update_ccc_infrastructure(self, ccc_infrastructure_id, update_ccc_infrastruc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1586,7 +1586,7 @@ def update_ccc_upgrade_schedule(self, ccc_upgrade_schedule_id, update_ccc_upgrad path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/compute_instance_agent/compute_instance_agent_client.py b/src/oci/compute_instance_agent/compute_instance_agent_client.py index 61a346c81..510cb93be 100644 --- a/src/oci/compute_instance_agent/compute_instance_agent_client.py +++ b/src/oci/compute_instance_agent/compute_instance_agent_client.py @@ -186,7 +186,7 @@ def cancel_instance_agent_command(self, instance_agent_command_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -387,7 +387,7 @@ def get_instance_agent_command(self, instance_agent_command_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -491,7 +491,7 @@ def get_instance_agent_command_execution(self, instance_agent_command_id, instan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/compute_instance_agent/plugin_client.py b/src/oci/compute_instance_agent/plugin_client.py index c5a455211..897d65da7 100644 --- a/src/oci/compute_instance_agent/plugin_client.py +++ b/src/oci/compute_instance_agent/plugin_client.py @@ -185,7 +185,7 @@ def get_instance_agent_plugin(self, instanceagent_id, compartment_id, plugin_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -342,7 +342,7 @@ def list_instance_agent_plugins(self, compartment_id, instanceagent_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'status' in kwargs: diff --git a/src/oci/container_engine/container_engine_client.py b/src/oci/container_engine/container_engine_client.py index 0095cdbc2..c6e1400ba 100644 --- a/src/oci/container_engine/container_engine_client.py +++ b/src/oci/container_engine/container_engine_client.py @@ -184,7 +184,7 @@ def cluster_migrate_to_native_vcn(self, cluster_id, cluster_migrate_to_native_vc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def complete_credential_rotation(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -493,7 +493,7 @@ def create_kubeconfig(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -790,7 +790,7 @@ def create_workload_mapping(self, cluster_id, create_workload_mapping_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -899,7 +899,7 @@ def delete_cluster(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1020,7 +1020,7 @@ def delete_node(self, node_pool_id, node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1142,7 +1142,7 @@ def delete_node_pool(self, node_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1263,7 +1263,7 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1375,7 +1375,7 @@ def delete_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1483,7 +1483,7 @@ def delete_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1594,7 +1594,7 @@ def disable_addon(self, cluster_id, addon_name, is_remove_existing_add_on, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1703,7 +1703,7 @@ def get_addon(self, cluster_id, addon_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1806,7 +1806,7 @@ def get_cluster(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1912,7 +1912,7 @@ def get_cluster_migrate_to_native_vcn_status(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2019,7 +2019,7 @@ def get_cluster_options(self, cluster_option_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2126,7 +2126,7 @@ def get_credential_rotation_status(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2225,7 +2225,7 @@ def get_node_pool(self, node_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2348,7 +2348,7 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'node_pool_os_type' in kwargs: @@ -2476,7 +2476,7 @@ def get_virtual_node(self, virtual_node_pool_id, virtual_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2575,7 +2575,7 @@ def get_virtual_node_pool(self, virtual_node_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2674,7 +2674,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2777,7 +2777,7 @@ def get_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2890,7 +2890,7 @@ def install_addon(self, cluster_id, install_addon_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3169,7 +3169,7 @@ def list_addons(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3963,7 +3963,7 @@ def list_virtual_nodes(self, virtual_node_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -4090,7 +4090,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4199,7 +4199,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4500,7 +4500,7 @@ def list_workload_mappings(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -4635,7 +4635,7 @@ def reboot_cluster_node(self, cluster_id, node_id, reboot_cluster_node_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4748,7 +4748,7 @@ def replace_boot_volume_cluster_node(self, cluster_id, node_id, replace_boot_vol path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4863,7 +4863,7 @@ def start_credential_rotation(self, cluster_id, start_credential_rotation_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4978,7 +4978,7 @@ def update_addon(self, cluster_id, addon_name, update_addon_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5087,7 +5087,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5196,7 +5196,7 @@ def update_cluster_endpoint_config(self, cluster_id, update_cluster_endpoint_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5314,7 +5314,7 @@ def update_node_pool(self, node_pool_id, update_node_pool_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5431,7 +5431,7 @@ def update_virtual_node_pool(self, virtual_node_pool_id, update_virtual_node_poo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5544,7 +5544,7 @@ def update_workload_mapping(self, cluster_id, workload_mapping_id, update_worklo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/container_instances/container_instance_client.py b/src/oci/container_instances/container_instance_client.py index e8b32d33b..c3d31feae 100644 --- a/src/oci/container_instances/container_instance_client.py +++ b/src/oci/container_instances/container_instance_client.py @@ -185,7 +185,7 @@ def change_container_instance_compartment(self, container_instance_id, change_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -392,7 +392,7 @@ def delete_container_instance(self, container_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -491,7 +491,7 @@ def get_container(self, container_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -591,7 +591,7 @@ def get_container_instance(self, container_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -689,7 +689,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1260,7 +1260,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1406,7 +1406,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1706,7 +1706,7 @@ def restart_container_instance(self, container_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1810,7 +1810,7 @@ def retrieve_logs(self, container_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1925,7 +1925,7 @@ def start_container_instance(self, container_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2032,7 +2032,7 @@ def stop_container_instance(self, container_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2142,7 +2142,7 @@ def update_container(self, container_id, update_container_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2254,7 +2254,7 @@ def update_container_instance(self, container_instance_id, update_container_inst path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/core/blockstorage_client.py b/src/oci/core/blockstorage_client.py index 8ccb2a1a3..a5d6ccce2 100644 --- a/src/oci/core/blockstorage_client.py +++ b/src/oci/core/blockstorage_client.py @@ -188,7 +188,7 @@ def change_boot_volume_backup_compartment(self, boot_volume_backup_id, change_bo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -292,7 +292,7 @@ def change_boot_volume_compartment(self, boot_volume_id, change_boot_volume_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -396,7 +396,7 @@ def change_volume_backup_compartment(self, volume_backup_id, change_volume_backu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -500,7 +500,7 @@ def change_volume_compartment(self, volume_id, change_volume_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -604,7 +604,7 @@ def change_volume_group_backup_compartment(self, volume_group_backup_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -708,7 +708,7 @@ def change_volume_group_compartment(self, volume_group_id, change_volume_group_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -819,7 +819,7 @@ def copy_boot_volume_backup(self, boot_volume_backup_id, copy_boot_volume_backup path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -934,7 +934,7 @@ def copy_volume_backup(self, volume_backup_id, copy_volume_backup_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1049,7 +1049,7 @@ def copy_volume_group_backup(self, volume_group_backup_id, copy_volume_group_bac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1929,7 +1929,7 @@ def delete_boot_volume(self, boot_volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2025,7 +2025,7 @@ def delete_boot_volume_backup(self, boot_volume_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2121,7 +2121,7 @@ def delete_boot_volume_kms_key(self, boot_volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2222,7 +2222,7 @@ def delete_volume(self, volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2318,7 +2318,7 @@ def delete_volume_backup(self, volume_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2425,7 +2425,7 @@ def delete_volume_backup_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2522,7 +2522,7 @@ def delete_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2621,7 +2621,7 @@ def delete_volume_group(self, volume_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2720,7 +2720,7 @@ def delete_volume_group_backup(self, volume_group_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2816,7 +2816,7 @@ def delete_volume_kms_key(self, volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2902,7 +2902,7 @@ def get_block_volume_replica(self, block_volume_replica_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2988,7 +2988,7 @@ def get_boot_volume(self, boot_volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3074,7 +3074,7 @@ def get_boot_volume_backup(self, boot_volume_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3170,7 +3170,7 @@ def get_boot_volume_kms_key(self, boot_volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3258,7 +3258,7 @@ def get_boot_volume_replica(self, boot_volume_replica_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3344,7 +3344,7 @@ def get_volume(self, volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3430,7 +3430,7 @@ def get_volume_backup(self, volume_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3516,7 +3516,7 @@ def get_volume_backup_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3709,7 +3709,7 @@ def get_volume_backup_policy_assignment(self, policy_assignment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3797,7 +3797,7 @@ def get_volume_group(self, volume_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3885,7 +3885,7 @@ def get_volume_group_backup(self, volume_group_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3971,7 +3971,7 @@ def get_volume_group_replica(self, volume_group_replica_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4067,7 +4067,7 @@ def get_volume_kms_key(self, volume_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5777,7 +5777,7 @@ def update_boot_volume(self, boot_volume_id, update_boot_volume_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5881,7 +5881,7 @@ def update_boot_volume_backup(self, boot_volume_backup_id, update_boot_volume_ba path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5984,7 +5984,7 @@ def update_boot_volume_kms_key(self, boot_volume_id, update_boot_volume_kms_key_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6088,7 +6088,7 @@ def update_volume(self, volume_id, update_volume_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6192,7 +6192,7 @@ def update_volume_backup(self, volume_backup_id, update_volume_backup_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6314,7 +6314,7 @@ def update_volume_backup_policy(self, policy_id, update_volume_backup_policy_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6433,7 +6433,7 @@ def update_volume_group(self, volume_group_id, update_volume_group_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6545,7 +6545,7 @@ def update_volume_group_backup(self, volume_group_backup_id, update_volume_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6648,7 +6648,7 @@ def update_volume_kms_key(self, volume_id, update_volume_kms_key_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/core/compute_client.py b/src/oci/core/compute_client.py index 8bdf36258..e85c2cb7d 100644 --- a/src/oci/core/compute_client.py +++ b/src/oci/core/compute_client.py @@ -195,7 +195,7 @@ def accept_shielded_integrity_policy(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -298,7 +298,7 @@ def add_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -507,7 +507,7 @@ def attach_compute_host_group_host(self, compute_host_id, attach_compute_host_gr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -925,7 +925,7 @@ def change_compute_capacity_reservation_compartment(self, capacity_reservation_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1047,7 +1047,7 @@ def change_compute_capacity_topology_compartment(self, compute_capacity_topology path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1178,7 +1178,7 @@ def change_compute_cluster_compartment(self, compute_cluster_id, change_compute_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1298,7 +1298,7 @@ def change_compute_gpu_memory_cluster_compartment(self, compute_gpu_memory_clust path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1420,7 +1420,7 @@ def change_compute_gpu_memory_fabric_compartment(self, compute_gpu_memory_fabric path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1544,7 +1544,7 @@ def change_compute_host_compartment(self, compute_host_id, change_compute_host_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1668,7 +1668,7 @@ def change_compute_host_group_compartment(self, compute_host_group_id, change_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1791,7 +1791,7 @@ def change_compute_image_capability_schema_compartment(self, compute_image_capab path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1910,7 +1910,7 @@ def change_dedicated_vm_host_compartment(self, dedicated_vm_host_id, change_dedi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2033,7 +2033,7 @@ def change_image_compartment(self, image_id, change_image_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2161,7 +2161,7 @@ def change_instance_compartment(self, instance_id, change_instance_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3494,7 +3494,7 @@ def delete_compute_capacity_reservation(self, capacity_reservation_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3598,7 +3598,7 @@ def delete_compute_capacity_topology(self, compute_capacity_topology_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3713,7 +3713,7 @@ def delete_compute_cluster(self, compute_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3815,7 +3815,7 @@ def delete_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3921,7 +3921,7 @@ def delete_compute_host_group(self, compute_host_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4018,7 +4018,7 @@ def delete_compute_image_capability_schema(self, compute_image_capability_schema path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4114,7 +4114,7 @@ def delete_console_history(self, instance_console_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4212,7 +4212,7 @@ def delete_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4310,7 +4310,7 @@ def delete_image(self, image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4406,7 +4406,7 @@ def delete_instance_console_connection(self, instance_console_connection_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4505,7 +4505,7 @@ def detach_boot_volume(self, boot_volume_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4621,7 +4621,7 @@ def detach_compute_host_group_host(self, compute_host_id, detach_compute_host_gr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4735,7 +4735,7 @@ def detach_vnic(self, vnic_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4834,7 +4834,7 @@ def detach_volume(self, volume_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4957,7 +4957,7 @@ def export_image(self, image_id, export_image_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5051,7 +5051,7 @@ def get_app_catalog_listing(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5143,7 +5143,7 @@ def get_app_catalog_listing_agreements(self, listing_id, resource_version, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5235,7 +5235,7 @@ def get_app_catalog_listing_resource_version(self, listing_id, resource_version, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5323,7 +5323,7 @@ def get_boot_volume_attachment(self, boot_volume_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5418,7 +5418,7 @@ def get_compute_capacity_reservation(self, capacity_reservation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5517,7 +5517,7 @@ def get_compute_capacity_topology(self, compute_capacity_topology_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5624,7 +5624,7 @@ def get_compute_cluster(self, compute_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5714,7 +5714,7 @@ def get_compute_global_image_capability_schema(self, compute_global_image_capabi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5808,7 +5808,7 @@ def get_compute_global_image_capability_schema_version(self, compute_global_imag path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5905,7 +5905,7 @@ def get_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6002,7 +6002,7 @@ def get_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6103,7 +6103,7 @@ def get_compute_host(self, compute_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6204,7 +6204,7 @@ def get_compute_host_group(self, compute_host_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6302,7 +6302,7 @@ def get_compute_image_capability_schema(self, compute_image_capability_schema_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6399,7 +6399,7 @@ def get_console_history(self, instance_console_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6499,7 +6499,7 @@ def get_console_history_content(self, instance_console_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6602,7 +6602,7 @@ def get_dedicated_vm_host(self, dedicated_vm_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6692,7 +6692,7 @@ def get_image(self, image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6795,7 +6795,7 @@ def get_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6890,7 +6890,7 @@ def get_instance(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6976,7 +6976,7 @@ def get_instance_console_connection(self, instance_console_connection_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7071,7 +7071,7 @@ def get_instance_maintenance_event(self, instance_maintenance_event_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7173,7 +7173,7 @@ def get_instance_maintenance_reboot(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7272,7 +7272,7 @@ def get_measured_boot_report(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7360,7 +7360,7 @@ def get_vnic_attachment(self, vnic_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7446,7 +7446,7 @@ def get_volume_attachment(self, volume_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7535,7 +7535,7 @@ def get_windows_instance_initial_credentials(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7696,7 +7696,7 @@ def instance_action(self, instance_id, action, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7968,7 +7968,7 @@ def list_app_catalog_listing_resource_versions(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8700,7 +8700,7 @@ def list_compute_capacity_reservation_instances(self, capacity_reservation_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9237,7 +9237,7 @@ def list_compute_capacity_topology_compute_bare_metal_hosts(self, compute_capaci path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9417,7 +9417,7 @@ def list_compute_capacity_topology_compute_hpc_islands(self, compute_capacity_to path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9600,7 +9600,7 @@ def list_compute_capacity_topology_compute_network_blocks(self, compute_capacity path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9930,7 +9930,7 @@ def list_compute_global_image_capability_schema_versions(self, compute_global_im path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -10239,7 +10239,7 @@ def list_compute_gpu_memory_cluster_instances(self, compute_gpu_memory_cluster_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11572,7 +11572,7 @@ def list_dedicated_vm_host_instances(self, compartment_id, dedicated_vm_host_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -12041,7 +12041,7 @@ def list_image_shape_compatibility_entries(self, image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12509,7 +12509,7 @@ def list_instance_devices(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -13388,7 +13388,7 @@ def remove_image_shape_compatibility_entry(self, image_id, shape_name, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13514,7 +13514,7 @@ def terminate_instance(self, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'recycle_level' in kwargs: @@ -13636,7 +13636,7 @@ def update_compute_capacity_reservation(self, capacity_reservation_id, update_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13745,7 +13745,7 @@ def update_compute_capacity_topology(self, compute_capacity_topology_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13876,7 +13876,7 @@ def update_compute_cluster(self, compute_cluster_id, update_compute_cluster_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13995,7 +13995,7 @@ def update_compute_gpu_memory_cluster(self, compute_gpu_memory_cluster_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14117,7 +14117,7 @@ def update_compute_gpu_memory_fabric(self, compute_gpu_memory_fabric_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14240,7 +14240,7 @@ def update_compute_host(self, compute_host_id, update_compute_host_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14361,7 +14361,7 @@ def update_compute_host_group(self, compute_host_group_id, update_compute_host_g path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14469,7 +14469,7 @@ def update_compute_image_capability_schema(self, compute_image_capability_schema path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14572,7 +14572,7 @@ def update_console_history(self, instance_console_history_id, update_console_his path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14689,7 +14689,7 @@ def update_dedicated_vm_host(self, dedicated_vm_host_id, update_dedicated_vm_hos path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14805,7 +14805,7 @@ def update_image(self, image_id, update_image_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14926,7 +14926,7 @@ def update_instance(self, instance_id, update_instance_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15036,7 +15036,7 @@ def update_instance_console_connection(self, instance_console_connection_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15153,7 +15153,7 @@ def update_instance_maintenance_event(self, instance_maintenance_event_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15264,7 +15264,7 @@ def update_volume_attachment(self, volume_attachment_id, update_volume_attachmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/core/compute_management_client.py b/src/oci/core/compute_management_client.py index ebe02a81e..7ad05fade 100644 --- a/src/oci/core/compute_management_client.py +++ b/src/oci/core/compute_management_client.py @@ -193,7 +193,7 @@ def attach_instance_pool_instance(self, instance_pool_id, attach_instance_pool_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -307,7 +307,7 @@ def attach_load_balancer(self, instance_pool_id, attach_load_balancer_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -436,7 +436,7 @@ def change_cluster_network_compartment(self, cluster_network_id, change_cluster_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -568,7 +568,7 @@ def change_instance_configuration_compartment(self, instance_configuration_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -694,7 +694,7 @@ def change_instance_pool_compartment(self, instance_pool_id, change_instance_poo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1089,7 +1089,7 @@ def delete_instance_configuration(self, instance_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1192,7 +1192,7 @@ def detach_instance_pool_instance(self, instance_pool_id, detach_instance_pool_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1304,7 +1304,7 @@ def detach_load_balancer(self, instance_pool_id, detach_load_balancer_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1400,7 +1400,7 @@ def get_cluster_network(self, cluster_network_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1486,7 +1486,7 @@ def get_instance_configuration(self, instance_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1574,7 +1574,7 @@ def get_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1668,7 +1668,7 @@ def get_instance_pool_instance(self, instance_pool_id, instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1760,7 +1760,7 @@ def get_instance_pool_load_balancer_attachment(self, instance_pool_id, instance_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1871,7 +1871,7 @@ def launch_instance_configuration(self, instance_configuration_id, instance_conf path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2017,7 +2017,7 @@ def list_cluster_network_instances(self, compartment_id, cluster_network_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2491,7 +2491,7 @@ def list_instance_pool_instances(self, compartment_id, instance_pool_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2787,7 +2787,7 @@ def reset_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2901,7 +2901,7 @@ def softreset_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3015,7 +3015,7 @@ def softstop_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3126,7 +3126,7 @@ def start_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3237,7 +3237,7 @@ def stop_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3344,7 +3344,7 @@ def terminate_cluster_network(self, cluster_network_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3449,7 +3449,7 @@ def terminate_instance_pool(self, instance_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3552,7 +3552,7 @@ def termination_proceed_instance_pool_instance(self, instance_pool_id, terminati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3667,7 +3667,7 @@ def update_cluster_network(self, cluster_network_id, update_cluster_network_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3780,7 +3780,7 @@ def update_instance_configuration(self, instance_configuration_id, update_instan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3897,7 +3897,7 @@ def update_instance_pool(self, instance_pool_id, update_instance_pool_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/core/virtual_network_client.py b/src/oci/core/virtual_network_client.py index e137a4a47..a799d2409 100644 --- a/src/oci/core/virtual_network_client.py +++ b/src/oci/core/virtual_network_client.py @@ -177,7 +177,7 @@ def add_drg_route_distribution_statements(self, drg_route_distribution_id, add_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -282,7 +282,7 @@ def add_drg_route_rules(self, drg_route_table_id, add_drg_route_rules_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -401,7 +401,7 @@ def add_ipv4_subnet_cidr(self, subnet_id, add_ipv4_subnet_cidr_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -522,7 +522,7 @@ def add_ipv6_subnet_cidr(self, subnet_id, add_subnet_ipv6_cidr_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -643,7 +643,7 @@ def add_ipv6_vcn_cidr(self, vcn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -739,7 +739,7 @@ def add_network_security_group_security_rules(self, network_security_group_id, a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -851,7 +851,7 @@ def add_public_ip_pool_capacity(self, public_ip_pool_id, add_public_ip_pool_capa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -977,7 +977,7 @@ def add_vcn_cidr(self, vcn_id, add_vcn_cidr_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1080,7 +1080,7 @@ def advertise_byoip_range(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1190,7 +1190,7 @@ def attach_service_id(self, service_gateway_id, attach_service_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1288,7 +1288,7 @@ def bulk_add_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_add_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1384,7 +1384,7 @@ def bulk_delete_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1504,7 +1504,7 @@ def change_byoasn_compartment(self, byoasn_id, change_byoasn_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1623,7 +1623,7 @@ def change_byoip_range_compartment(self, byoip_range_id, change_byoip_range_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1745,7 +1745,7 @@ def change_capture_filter_compartment(self, capture_filter_id, change_capture_fi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1862,7 +1862,7 @@ def change_cpe_compartment(self, cpe_id, change_cpe_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1980,7 +1980,7 @@ def change_cross_connect_compartment(self, cross_connect_id, change_cross_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2098,7 +2098,7 @@ def change_cross_connect_group_compartment(self, cross_connect_group_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2216,7 +2216,7 @@ def change_dhcp_options_compartment(self, dhcp_id, change_dhcp_options_compartme path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2332,7 +2332,7 @@ def change_drg_compartment(self, drg_id, change_drg_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2448,7 +2448,7 @@ def change_internet_gateway_compartment(self, ig_id, change_internet_gateway_com path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2564,7 +2564,7 @@ def change_ip_sec_connection_compartment(self, ipsc_id, change_ip_sec_connection path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2682,7 +2682,7 @@ def change_local_peering_gateway_compartment(self, local_peering_gateway_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2798,7 +2798,7 @@ def change_nat_gateway_compartment(self, nat_gateway_id, change_nat_gateway_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2913,7 +2913,7 @@ def change_network_security_group_compartment(self, network_security_group_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3032,7 +3032,7 @@ def change_public_ip_compartment(self, public_ip_id, change_public_ip_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3148,7 +3148,7 @@ def change_public_ip_pool_compartment(self, public_ip_pool_id, change_public_ip_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3264,7 +3264,7 @@ def change_remote_peering_connection_compartment(self, remote_peering_connection path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3382,7 +3382,7 @@ def change_route_table_compartment(self, rt_id, change_route_table_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3498,7 +3498,7 @@ def change_security_list_compartment(self, security_list_id, change_security_lis path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3614,7 +3614,7 @@ def change_service_gateway_compartment(self, service_gateway_id, change_service_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3730,7 +3730,7 @@ def change_subnet_compartment(self, subnet_id, change_subnet_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3846,7 +3846,7 @@ def change_vcn_compartment(self, vcn_id, change_vcn_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3962,7 +3962,7 @@ def change_virtual_circuit_compartment(self, virtual_circuit_id, change_virtual_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4086,7 +4086,7 @@ def change_vlan_compartment(self, vlan_id, change_vlan_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4209,7 +4209,7 @@ def change_vtap_compartment(self, vtap_id, change_vtap_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4314,7 +4314,7 @@ def connect_local_peering_gateways(self, local_peering_gateway_id, connect_local path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4414,7 +4414,7 @@ def connect_remote_peering_connections(self, remote_peering_connection_id, conne path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7598,7 +7598,7 @@ def delete_byoasn(self, byoasn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7708,7 +7708,7 @@ def delete_byoip_range(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7813,7 +7813,7 @@ def delete_capture_filter(self, capture_filter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7914,7 +7914,7 @@ def delete_cpe(self, cpe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8015,7 +8015,7 @@ def delete_cross_connect(self, cross_connect_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8117,7 +8117,7 @@ def delete_cross_connect_group(self, cross_connect_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8221,7 +8221,7 @@ def delete_dhcp_options(self, dhcp_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8322,7 +8322,7 @@ def delete_drg(self, drg_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8422,7 +8422,7 @@ def delete_drg_attachment(self, drg_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8522,7 +8522,7 @@ def delete_drg_route_distribution(self, drg_route_distribution_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8620,7 +8620,7 @@ def delete_drg_route_table(self, drg_route_table_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8722,7 +8722,7 @@ def delete_internet_gateway(self, ig_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8827,7 +8827,7 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8935,7 +8935,7 @@ def delete_ipv6(self, ipv6_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9037,7 +9037,7 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9139,7 +9139,7 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9246,7 +9246,7 @@ def delete_network_security_group(self, network_security_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9357,7 +9357,7 @@ def delete_private_ip(self, private_ip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9471,7 +9471,7 @@ def delete_public_ip(self, public_ip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9578,7 +9578,7 @@ def delete_public_ip_pool(self, public_ip_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9680,7 +9680,7 @@ def delete_remote_peering_connection(self, remote_peering_connection_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9784,7 +9784,7 @@ def delete_route_table(self, rt_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9886,7 +9886,7 @@ def delete_security_list(self, security_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9985,7 +9985,7 @@ def delete_service_gateway(self, service_gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10085,7 +10085,7 @@ def delete_subnet(self, subnet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10188,7 +10188,7 @@ def delete_vcn(self, vcn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10290,7 +10290,7 @@ def delete_virtual_circuit(self, virtual_circuit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10395,7 +10395,7 @@ def delete_vlan(self, vlan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10500,7 +10500,7 @@ def delete_vtap(self, vtap_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10613,7 +10613,7 @@ def detach_service_id(self, service_gateway_id, detach_service_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10742,7 +10742,7 @@ def get_all_drg_attachments(self, drg_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attachment_type' in kwargs: @@ -10944,7 +10944,7 @@ def get_byoasn(self, byoasn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11047,7 +11047,7 @@ def get_byoip_range(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11146,7 +11146,7 @@ def get_capture_filter(self, capture_filter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11236,7 +11236,7 @@ def get_cpe(self, cpe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11352,7 +11352,7 @@ def get_cpe_device_config_content(self, cpe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11461,7 +11461,7 @@ def get_cpe_device_shape(self, cpe_device_shape_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11553,7 +11553,7 @@ def get_cross_connect(self, cross_connect_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11643,7 +11643,7 @@ def get_cross_connect_group(self, cross_connect_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11733,7 +11733,7 @@ def get_cross_connect_letter_of_authority(self, cross_connect_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11823,7 +11823,7 @@ def get_cross_connect_status(self, cross_connect_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11913,7 +11913,7 @@ def get_dhcp_options(self, dhcp_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12001,7 +12001,7 @@ def get_drg(self, drg_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12089,7 +12089,7 @@ def get_drg_attachment(self, drg_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12189,7 +12189,7 @@ def get_drg_redundancy_status(self, drg_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12281,7 +12281,7 @@ def get_drg_route_distribution(self, drg_route_distribution_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12369,7 +12369,7 @@ def get_drg_route_table(self, drg_route_table_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12460,7 +12460,7 @@ def get_fast_connect_provider_service(self, provider_service_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12558,7 +12558,7 @@ def get_fast_connect_provider_service_key(self, provider_service_id, provider_se path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12648,7 +12648,7 @@ def get_internet_gateway(self, ig_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12738,7 +12738,7 @@ def get_ip_sec_connection(self, ipsc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12831,7 +12831,7 @@ def get_ip_sec_connection_device_config(self, ipsc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12922,7 +12922,7 @@ def get_ip_sec_connection_device_status(self, ipsc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13020,7 +13020,7 @@ def get_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13116,7 +13116,7 @@ def get_ip_sec_connection_tunnel_error(self, ipsc_id, tunnel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13213,7 +13213,7 @@ def get_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13330,7 +13330,7 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13437,7 +13437,7 @@ def get_ipv6(self, ipv6_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13527,7 +13527,7 @@ def get_local_peering_gateway(self, local_peering_gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13615,7 +13615,7 @@ def get_nat_gateway(self, nat_gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13709,7 +13709,7 @@ def get_network_security_group(self, network_security_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13940,7 +13940,7 @@ def get_private_ip(self, private_ip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14042,7 +14042,7 @@ def get_public_ip(self, public_ip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14313,7 +14313,7 @@ def get_public_ip_pool(self, public_ip_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14403,7 +14403,7 @@ def get_remote_peering_connection(self, remote_peering_connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14500,7 +14500,7 @@ def get_resource_ip_inventory(self, data_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14590,7 +14590,7 @@ def get_route_table(self, rt_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14678,7 +14678,7 @@ def get_security_list(self, security_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14766,7 +14766,7 @@ def get_service(self, service_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14854,7 +14854,7 @@ def get_service_gateway(self, service_gateway_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14942,7 +14942,7 @@ def get_subnet(self, subnet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15041,7 +15041,7 @@ def get_subnet_cidr_utilization(self, subnet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15142,7 +15142,7 @@ def get_subnet_ip_inventory(self, subnet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15394,7 +15394,7 @@ def get_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15518,7 +15518,7 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15619,7 +15619,7 @@ def get_upgrade_status(self, drg_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15709,7 +15709,7 @@ def get_vcn(self, vcn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15806,7 +15806,7 @@ def get_vcn_dns_resolver_association(self, vcn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15918,7 +15918,7 @@ def get_vcn_overlap(self, vcn_id, get_vcn_overlap_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16155,7 +16155,7 @@ def get_virtual_circuit(self, virtual_circuit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16254,7 +16254,7 @@ def get_vlan(self, vlan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16349,7 +16349,7 @@ def get_vnic(self, vnic_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16446,7 +16446,7 @@ def get_vtap(self, vtap_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16561,7 +16561,7 @@ def ipv6_vnic_detach(self, ipv6_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16914,7 +16914,7 @@ def list_byoip_allocated_ranges(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -17875,7 +17875,7 @@ def list_cross_connect_mappings(self, virtual_circuit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18671,7 +18671,7 @@ def list_drg_route_distribution_statements(self, drg_route_distribution_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -18978,7 +18978,7 @@ def list_drg_route_rules(self, drg_route_table_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'route_type' in kwargs: @@ -19506,7 +19506,7 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -19898,7 +19898,7 @@ def list_ip_sec_connection_tunnel_routes(self, ipsc_id, tunnel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'advertiser' in kwargs: @@ -20032,7 +20032,7 @@ def list_ip_sec_connection_tunnel_security_associations(self, ipsc_id, tunnel_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -20152,7 +20152,7 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -20853,7 +20853,7 @@ def list_network_security_group_security_rules(self, network_security_group_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'direction' in kwargs: @@ -21008,7 +21008,7 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -22878,7 +22878,7 @@ def list_virtual_circuit_associated_tunnels(self, virtual_circuit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -23101,7 +23101,7 @@ def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'verification_state' in kwargs: @@ -23783,7 +23783,7 @@ def modify_ipv4_subnet_cidr(self, subnet_id, modify_ipv4_subnet_cidr_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23912,7 +23912,7 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24030,7 +24030,7 @@ def private_ip_vnic_detach(self, private_ip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24126,7 +24126,7 @@ def remove_drg_route_distribution_statements(self, drg_route_distribution_id, re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24217,7 +24217,7 @@ def remove_drg_route_rules(self, drg_route_table_id, remove_drg_route_rules_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24320,7 +24320,7 @@ def remove_export_drg_route_distribution(self, drg_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24427,7 +24427,7 @@ def remove_import_drg_route_distribution(self, drg_route_table_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24544,7 +24544,7 @@ def remove_ipv4_subnet_cidr(self, subnet_id, remove_ipv4_subnet_cidr_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24665,7 +24665,7 @@ def remove_ipv6_subnet_cidr(self, subnet_id, remove_subnet_ipv6_cidr_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24785,7 +24785,7 @@ def remove_ipv6_vcn_cidr(self, vcn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24882,7 +24882,7 @@ def remove_network_security_group_security_rules(self, network_security_group_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24990,7 +24990,7 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25114,7 +25114,7 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25233,7 +25233,7 @@ def set_origin_asn(self, byoip_range_id, set_origin_asn_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25343,7 +25343,7 @@ def set_origin_asn_to_oracle(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25450,7 +25450,7 @@ def update_byoasn(self, byoasn_id, update_byoasn_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25561,7 +25561,7 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25672,7 +25672,7 @@ def update_capture_filter(self, capture_filter_id, update_capture_filter_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25779,7 +25779,7 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25886,7 +25886,7 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25994,7 +25994,7 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26104,7 +26104,7 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26209,7 +26209,7 @@ def update_drg(self, drg_id, update_drg_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26315,7 +26315,7 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26420,7 +26420,7 @@ def update_drg_route_distribution(self, drg_route_distribution_id, update_drg_ro path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26515,7 +26515,7 @@ def update_drg_route_distribution_statements(self, drg_route_distribution_id, up path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26608,7 +26608,7 @@ def update_drg_route_rules(self, drg_route_table_id, update_drg_route_rules_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26711,7 +26711,7 @@ def update_drg_route_table(self, drg_route_table_id, update_drg_route_table_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26820,7 +26820,7 @@ def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26928,7 +26928,7 @@ def update_ip_sec_connection(self, ipsc_id, update_ip_sec_connection_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27057,7 +27057,7 @@ def update_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, update_ip_sec_conn path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27173,7 +27173,7 @@ def update_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, upda path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27293,7 +27293,7 @@ def update_ipv6(self, ipv6_id, update_ipv6_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27399,7 +27399,7 @@ def update_local_peering_gateway(self, local_peering_gateway_id, update_local_pe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27504,7 +27504,7 @@ def update_nat_gateway(self, nat_gateway_id, update_nat_gateway_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27625,7 +27625,7 @@ def update_network_security_group(self, network_security_group_id, update_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27721,7 +27721,7 @@ def update_network_security_group_security_rules(self, network_security_group_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27835,7 +27835,7 @@ def update_private_ip(self, private_ip_id, update_private_ip_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27981,7 +27981,7 @@ def update_public_ip(self, public_ip_id, update_public_ip_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28091,7 +28091,7 @@ def update_public_ip_pool(self, public_ip_pool_id, update_public_ip_pool_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28197,7 +28197,7 @@ def update_remote_peering_connection(self, remote_peering_connection_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28307,7 +28307,7 @@ def update_route_table(self, rt_id, update_route_table_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28416,7 +28416,7 @@ def update_security_list(self, security_list_id, update_security_list_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28522,7 +28522,7 @@ def update_service_gateway(self, service_gateway_id, update_service_gateway_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28627,7 +28627,7 @@ def update_subnet(self, subnet_id, update_subnet_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28753,7 +28753,7 @@ def update_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, update_tunnel_cpe_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28863,7 +28863,7 @@ def update_vcn(self, vcn_id, update_vcn_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28993,7 +28993,7 @@ def update_virtual_circuit(self, virtual_circuit_id, update_virtual_circuit_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29106,7 +29106,7 @@ def update_vlan(self, vlan_id, update_vlan_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29212,7 +29212,7 @@ def update_vnic(self, vnic_id, update_vnic_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29322,7 +29322,7 @@ def update_vtap(self, vtap_id, update_vtap_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29433,7 +29433,7 @@ def upgrade_drg(self, drg_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29549,7 +29549,7 @@ def validate_byoasn(self, byoasn_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29654,7 +29654,7 @@ def validate_byoip_range(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29751,7 +29751,7 @@ def withdraw_byoip_range(self, byoip_range_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dashboard_service/dashboard_client.py b/src/oci/dashboard_service/dashboard_client.py index cb158c50a..e44ad1bdd 100644 --- a/src/oci/dashboard_service/dashboard_client.py +++ b/src/oci/dashboard_service/dashboard_client.py @@ -192,7 +192,7 @@ def change_dashboard_group(self, dashboard_id, change_dashboard_group_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -417,7 +417,7 @@ def delete_dashboard(self, dashboard_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def get_dashboard(self, dashboard_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -814,7 +814,7 @@ def update_dashboard(self, dashboard_id, update_dashboard_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dashboard_service/dashboard_group_client.py b/src/oci/dashboard_service/dashboard_group_client.py index 05e0003fe..7dff55acf 100644 --- a/src/oci/dashboard_service/dashboard_group_client.py +++ b/src/oci/dashboard_service/dashboard_group_client.py @@ -192,7 +192,7 @@ def change_dashboard_group_compartment(self, dashboard_group_id, change_dashboar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -417,7 +417,7 @@ def delete_dashboard_group(self, dashboard_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def get_dashboard_group(self, dashboard_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -814,7 +814,7 @@ def update_dashboard_group(self, dashboard_group_id, update_dashboard_group_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/data_catalog/data_catalog_client.py b/src/oci/data_catalog/data_catalog_client.py index 1907439f1..f0e28f2a7 100644 --- a/src/oci/data_catalog/data_catalog_client.py +++ b/src/oci/data_catalog/data_catalog_client.py @@ -183,7 +183,7 @@ def add_catalog_lock(self, catalog_id, add_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -292,7 +292,7 @@ def add_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, add_res path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -414,7 +414,7 @@ def add_data_selector_patterns(self, catalog_id, data_asset_key, data_selector_p path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -525,7 +525,7 @@ def add_metastore_lock(self, metastore_id, add_resource_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -647,7 +647,7 @@ def associate_custom_property(self, catalog_id, type_key, associate_custom_prope path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -768,7 +768,7 @@ def asynchronous_export_data_asset(self, catalog_id, data_asset_key, asynchronou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') export_type_allowed_values = ["CUSTOM_PROPERTY_VALUES", "ALL"] @@ -897,7 +897,7 @@ def asynchronous_export_glossary(self, catalog_id, glossary_key, asynchronous_ex path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1020,7 +1020,7 @@ def attach_catalog_private_endpoint(self, attach_catalog_private_endpoint_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1141,7 +1141,7 @@ def change_catalog_compartment(self, change_catalog_compartment_details, catalog path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1260,7 +1260,7 @@ def change_catalog_private_endpoint_compartment(self, change_catalog_private_end path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1379,7 +1379,7 @@ def change_metastore_compartment(self, change_metastore_compartment_details, met path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1502,7 +1502,7 @@ def create_attribute(self, catalog_id, data_asset_key, entity_key, create_attrib path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1625,7 +1625,7 @@ def create_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1929,7 +1929,7 @@ def create_connection(self, catalog_id, data_asset_key, create_connection_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2044,7 +2044,7 @@ def create_custom_property(self, catalog_id, namespace_id, create_custom_propert path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2155,7 +2155,7 @@ def create_data_asset(self, catalog_id, create_data_asset_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2270,7 +2270,7 @@ def create_data_asset_tag(self, catalog_id, data_asset_key, create_data_asset_ta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2385,7 +2385,7 @@ def create_entity(self, catalog_id, data_asset_key, create_entity_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2504,7 +2504,7 @@ def create_entity_tag(self, catalog_id, data_asset_key, entity_key, create_entit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2619,7 +2619,7 @@ def create_folder(self, catalog_id, data_asset_key, create_folder_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2738,7 +2738,7 @@ def create_folder_tag(self, catalog_id, data_asset_key, folder_key, create_folde path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2849,7 +2849,7 @@ def create_glossary(self, catalog_id, create_glossary_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2960,7 +2960,7 @@ def create_job(self, catalog_id, create_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3071,7 +3071,7 @@ def create_job_definition(self, catalog_id, create_job_definition_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3186,7 +3186,7 @@ def create_job_execution(self, catalog_id, job_key, create_job_execution_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3391,7 +3391,7 @@ def create_namespace(self, catalog_id, create_namespace_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3502,7 +3502,7 @@ def create_pattern(self, catalog_id, create_pattern_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3617,7 +3617,7 @@ def create_term(self, catalog_id, glossary_key, create_term_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3736,7 +3736,7 @@ def create_term_relationship(self, catalog_id, glossary_key, term_key, create_te path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3856,7 +3856,7 @@ def delete_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3975,7 +3975,7 @@ def delete_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4082,7 +4082,7 @@ def delete_catalog(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4196,7 +4196,7 @@ def delete_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4314,7 +4314,7 @@ def delete_connection(self, catalog_id, data_asset_key, connection_key, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4425,7 +4425,7 @@ def delete_custom_property(self, catalog_id, namespace_id, custom_property_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4532,7 +4532,7 @@ def delete_data_asset(self, catalog_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4643,7 +4643,7 @@ def delete_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4754,7 +4754,7 @@ def delete_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4869,7 +4869,7 @@ def delete_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4980,7 +4980,7 @@ def delete_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5095,7 +5095,7 @@ def delete_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5202,7 +5202,7 @@ def delete_glossary(self, catalog_id, glossary_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5309,7 +5309,7 @@ def delete_job(self, catalog_id, job_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5416,7 +5416,7 @@ def delete_job_definition(self, catalog_id, job_definition_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5523,7 +5523,7 @@ def delete_metastore(self, metastore_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5637,7 +5637,7 @@ def delete_namespace(self, catalog_id, namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5744,7 +5744,7 @@ def delete_pattern(self, catalog_id, pattern_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5855,7 +5855,7 @@ def delete_term(self, catalog_id, glossary_key, term_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5970,7 +5970,7 @@ def delete_term_relationship(self, catalog_id, glossary_key, term_key, term_rela path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6080,7 +6080,7 @@ def detach_catalog_private_endpoint(self, detach_catalog_private_endpoint_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6207,7 +6207,7 @@ def disassociate_custom_property(self, catalog_id, type_key, disassociate_custom path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6320,7 +6320,7 @@ def expand_tree_for_glossary(self, catalog_id, glossary_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6436,7 +6436,7 @@ def export_glossary(self, catalog_id, glossary_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6568,7 +6568,7 @@ def fetch_entity_lineage(self, catalog_id, data_asset_key, entity_key, fetch_ent path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6699,7 +6699,7 @@ def get_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -6835,7 +6835,7 @@ def get_attribute_tag(self, catalog_id, data_asset_key, entity_key, attribute_ke path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -6948,7 +6948,7 @@ def get_catalog(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7046,7 +7046,7 @@ def get_catalog_private_endpoint(self, catalog_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7158,7 +7158,7 @@ def get_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7285,7 +7285,7 @@ def get_custom_property(self, catalog_id, namespace_id, custom_property_key, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7408,7 +7408,7 @@ def get_data_asset(self, catalog_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7535,7 +7535,7 @@ def get_data_asset_tag(self, catalog_id, data_asset_key, tag_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7666,7 +7666,7 @@ def get_entity(self, catalog_id, data_asset_key, entity_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7798,7 +7798,7 @@ def get_entity_tag(self, catalog_id, data_asset_key, entity_key, tag_key, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7929,7 +7929,7 @@ def get_folder(self, catalog_id, data_asset_key, folder_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8061,7 +8061,7 @@ def get_folder_tag(self, catalog_id, data_asset_key, folder_key, tag_key, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8184,7 +8184,7 @@ def get_glossary(self, catalog_id, glossary_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8307,7 +8307,7 @@ def get_job(self, catalog_id, job_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8430,7 +8430,7 @@ def get_job_definition(self, catalog_id, job_definition_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8557,7 +8557,7 @@ def get_job_execution(self, catalog_id, job_key, job_execution_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8688,7 +8688,7 @@ def get_job_log(self, catalog_id, job_key, job_execution_key, job_log_key, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8819,7 +8819,7 @@ def get_job_metrics(self, catalog_id, job_key, job_execution_key, job_metrics_ke path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -8932,7 +8932,7 @@ def get_metastore(self, metastore_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9040,7 +9040,7 @@ def get_namespace(self, catalog_id, namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -9163,7 +9163,7 @@ def get_pattern(self, catalog_id, pattern_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -9290,7 +9290,7 @@ def get_term(self, catalog_id, glossary_key, term_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -9421,7 +9421,7 @@ def get_term_relationship(self, catalog_id, glossary_key, term_key, term_relatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -9544,7 +9544,7 @@ def get_type(self, catalog_id, type_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -9657,7 +9657,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9778,7 +9778,7 @@ def import_connection(self, catalog_id, data_asset_key, import_connection_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9903,7 +9903,7 @@ def import_data_asset(self, catalog_id, data_asset_key, import_data_asset_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') import_type_allowed_values = ["CUSTOM_PROPERTY_VALUES", "ALL"] @@ -10037,7 +10037,7 @@ def import_glossary(self, catalog_id, glossary_key, import_glossary_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10157,7 +10157,7 @@ def import_lineage(self, catalog_id, data_asset_key, import_lineage_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10303,7 +10303,7 @@ def list_aggregated_physical_entities(self, catalog_id, data_asset_key, entity_k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -10502,7 +10502,7 @@ def list_attribute_tags(self, catalog_id, data_asset_key, entity_key, attribute_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -10763,7 +10763,7 @@ def list_attributes(self, catalog_id, data_asset_key, entity_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -11299,7 +11299,7 @@ def list_connections(self, catalog_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -11525,7 +11525,7 @@ def list_custom_properties(self, catalog_id, namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'data_types' in kwargs: @@ -11746,7 +11746,7 @@ def list_data_asset_tags(self, catalog_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -11960,7 +11960,7 @@ def list_data_assets(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -12153,7 +12153,7 @@ def list_derived_logical_entities(self, catalog_id, pattern_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -12408,7 +12408,7 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -12636,7 +12636,7 @@ def list_entity_tags(self, catalog_id, data_asset_key, entity_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -12842,7 +12842,7 @@ def list_folder_tags(self, catalog_id, data_asset_key, folder_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13089,7 +13089,7 @@ def list_folders(self, catalog_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13311,7 +13311,7 @@ def list_glossaries(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13550,7 +13550,7 @@ def list_job_definitions(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'job_execution_state' in kwargs: @@ -13824,7 +13824,7 @@ def list_job_executions(self, catalog_id, job_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14049,7 +14049,7 @@ def list_job_logs(self, catalog_id, job_key, job_execution_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14284,7 +14284,7 @@ def list_job_metrics(self, catalog_id, job_key, job_execution_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -14546,7 +14546,7 @@ def list_jobs(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14928,7 +14928,7 @@ def list_namespaces(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -15135,7 +15135,7 @@ def list_patterns(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -15366,7 +15366,7 @@ def list_rules(self, catalog_id, data_asset_key, entity_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'rule_type' in kwargs: @@ -15570,7 +15570,7 @@ def list_tags(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -15761,7 +15761,7 @@ def list_term_relationships(self, catalog_id, glossary_key, term_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -15966,7 +15966,7 @@ def list_terms(self, catalog_id, glossary_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -16174,7 +16174,7 @@ def list_types(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -16339,7 +16339,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16481,7 +16481,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16726,7 +16726,7 @@ def object_stats(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16867,7 +16867,7 @@ def parse_connection(self, catalog_id, data_asset_key, parse_connection_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -16986,7 +16986,7 @@ def process_recommendation(self, catalog_id, process_recommendation_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17106,7 +17106,7 @@ def recommendations(self, catalog_id, recommendation_type, source_object_key, so path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') recommendation_type_allowed_values = ["LINK_GLOSSARY_TERM"] @@ -17242,7 +17242,7 @@ def remove_catalog_lock(self, catalog_id, remove_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17351,7 +17351,7 @@ def remove_catalog_private_endpoint_lock(self, catalog_private_endpoint_id, remo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17473,7 +17473,7 @@ def remove_data_selector_patterns(self, catalog_id, data_asset_key, data_selecto path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17584,7 +17584,7 @@ def remove_metastore_lock(self, metastore_id, remove_resource_lock_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17727,7 +17727,7 @@ def search_criteria(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -17875,7 +17875,7 @@ def suggest_matches(self, catalog_id, input_text, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18002,7 +18002,7 @@ def synchronous_export_data_asset(self, catalog_id, data_asset_key, synchronous_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') export_type_allowed_values = ["CUSTOM_PROPERTY_VALUES", "ALL"] @@ -18132,7 +18132,7 @@ def test_connection(self, catalog_id, data_asset_key, connection_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18255,7 +18255,7 @@ def update_attribute(self, catalog_id, data_asset_key, entity_key, attribute_key path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18369,7 +18369,7 @@ def update_catalog(self, catalog_id, update_catalog_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18490,7 +18490,7 @@ def update_catalog_private_endpoint(self, catalog_private_endpoint_id, update_ca path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18613,7 +18613,7 @@ def update_connection(self, catalog_id, data_asset_key, connection_key, update_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18731,7 +18731,7 @@ def update_custom_property(self, catalog_id, namespace_id, custom_property_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18845,7 +18845,7 @@ def update_data_asset(self, catalog_id, data_asset_key, update_data_asset_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18963,7 +18963,7 @@ def update_entity(self, catalog_id, data_asset_key, entity_key, update_entity_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19081,7 +19081,7 @@ def update_folder(self, catalog_id, data_asset_key, folder_key, update_folder_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19195,7 +19195,7 @@ def update_glossary(self, catalog_id, glossary_key, update_glossary_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19309,7 +19309,7 @@ def update_job(self, catalog_id, job_key, update_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19423,7 +19423,7 @@ def update_job_definition(self, catalog_id, job_definition_key, update_job_defin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19537,7 +19537,7 @@ def update_metastore(self, metastore_id, update_metastore_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -19658,7 +19658,7 @@ def update_namespace(self, catalog_id, namespace_id, update_namespace_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19772,7 +19772,7 @@ def update_pattern(self, catalog_id, pattern_key, update_pattern_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19890,7 +19890,7 @@ def update_term(self, catalog_id, glossary_key, term_key, update_term_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20012,7 +20012,7 @@ def update_term_relationship(self, catalog_id, glossary_key, term_key, term_rela path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20138,7 +20138,7 @@ def upload_credentials(self, catalog_id, data_asset_key, connection_key, upload_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20259,7 +20259,7 @@ def users(self, catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -20396,7 +20396,7 @@ def validate_connection(self, catalog_id, data_asset_key, validate_connection_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20513,7 +20513,7 @@ def validate_pattern(self, catalog_id, pattern_key, validate_pattern_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/data_flow/data_flow_client.py b/src/oci/data_flow/data_flow_client.py index 47a90b298..9e2f6b6af 100644 --- a/src/oci/data_flow/data_flow_client.py +++ b/src/oci/data_flow/data_flow_client.py @@ -179,7 +179,7 @@ def cascading_delete_application(self, application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -292,7 +292,7 @@ def change_application_compartment(self, application_id, change_application_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -411,7 +411,7 @@ def change_pool_compartment(self, pool_id, change_pool_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -522,7 +522,7 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -639,7 +639,7 @@ def change_run_compartment(self, run_id, change_run_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -755,7 +755,7 @@ def change_sql_endpoint_compartment(self, sql_endpoint_id, change_sql_endpoint_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1346,7 +1346,7 @@ def create_statement(self, create_statement_details, run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1451,7 +1451,7 @@ def delete_application(self, application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1553,7 +1553,7 @@ def delete_pool(self, pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1655,7 +1655,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1758,7 +1758,7 @@ def delete_run(self, run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1860,7 +1860,7 @@ def delete_sql_endpoint(self, sql_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1966,7 +1966,7 @@ def delete_statement(self, run_id, statement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2064,7 +2064,7 @@ def get_application(self, application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2163,7 +2163,7 @@ def get_pool(self, pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2262,7 +2262,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2361,7 +2361,7 @@ def get_run(self, run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2464,7 +2464,7 @@ def get_run_log(self, run_id, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2563,7 +2563,7 @@ def get_sql_endpoint(self, sql_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2666,7 +2666,7 @@ def get_statement(self, run_id, statement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2765,7 +2765,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3350,7 +3350,7 @@ def list_run_logs(self, run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3820,7 +3820,7 @@ def list_statements(self, run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -3960,7 +3960,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4076,7 +4076,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4301,7 +4301,7 @@ def start_pool(self, pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4414,7 +4414,7 @@ def start_sql_endpoint(self, sql_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4527,7 +4527,7 @@ def stop_pool(self, pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4640,7 +4640,7 @@ def stop_sql_endpoint(self, sql_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4749,7 +4749,7 @@ def update_application(self, update_application_details, application_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4860,7 +4860,7 @@ def update_pool(self, update_pool_details, pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4969,7 +4969,7 @@ def update_private_endpoint(self, update_private_endpoint_details, private_endpo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5076,7 +5076,7 @@ def update_run(self, update_run_details, run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5185,7 +5185,7 @@ def update_sql_endpoint(self, update_sql_endpoint_details, sql_endpoint_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/data_integration/data_integration_client.py b/src/oci/data_integration/data_integration_client.py index a18aeb7f5..300cbdbdf 100644 --- a/src/oci/data_integration/data_integration_client.py +++ b/src/oci/data_integration/data_integration_client.py @@ -187,7 +187,7 @@ def change_compartment(self, workspace_id, change_compartment_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -305,7 +305,7 @@ def change_dis_application_compartment(self, workspace_id, dis_application_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -413,7 +413,7 @@ def create_application(self, workspace_id, create_application_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -526,7 +526,7 @@ def create_application_detailed_description(self, workspace_id, application_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -635,7 +635,7 @@ def create_connection(self, workspace_id, create_connection_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -744,7 +744,7 @@ def create_connection_validation(self, workspace_id, create_connection_validatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -853,7 +853,7 @@ def create_copy_object_request(self, workspace_id, create_copy_object_request_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -962,7 +962,7 @@ def create_data_asset(self, workspace_id, create_data_asset_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1071,7 +1071,7 @@ def create_data_flow(self, workspace_id, create_data_flow_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1180,7 +1180,7 @@ def create_data_flow_validation(self, workspace_id, create_data_flow_validation_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1289,7 +1289,7 @@ def create_dis_application(self, workspace_id, create_dis_application_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1402,7 +1402,7 @@ def create_dis_application_detailed_description(self, workspace_id, application_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1525,7 +1525,7 @@ def create_entity_shape(self, workspace_id, connection_key, schema_resource_name path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1635,7 +1635,7 @@ def create_export_request(self, workspace_id, create_export_request_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1748,7 +1748,7 @@ def create_external_publication(self, workspace_id, task_key, create_external_pu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1861,7 +1861,7 @@ def create_external_publication_validation(self, workspace_id, task_key, create_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1971,7 +1971,7 @@ def create_folder(self, workspace_id, create_folder_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2081,7 +2081,7 @@ def create_function_library(self, workspace_id, create_function_library_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2190,7 +2190,7 @@ def create_import_request(self, workspace_id, create_import_request_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2303,7 +2303,7 @@ def create_patch(self, workspace_id, application_key, create_patch_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2412,7 +2412,7 @@ def create_pipeline(self, workspace_id, create_pipeline_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2521,7 +2521,7 @@ def create_pipeline_validation(self, workspace_id, create_pipeline_validation_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2630,7 +2630,7 @@ def create_project(self, workspace_id, create_project_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2743,7 +2743,7 @@ def create_schedule(self, workspace_id, application_key, create_schedule_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2852,7 +2852,7 @@ def create_task(self, workspace_id, create_task_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2965,7 +2965,7 @@ def create_task_run(self, workspace_id, application_key, create_task_run_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3078,7 +3078,7 @@ def create_task_schedule(self, workspace_id, application_key, create_task_schedu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3187,7 +3187,7 @@ def create_task_validation(self, workspace_id, create_task_validation_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3296,7 +3296,7 @@ def create_user_defined_function(self, workspace_id, create_user_defined_functio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3405,7 +3405,7 @@ def create_user_defined_function_validation(self, workspace_id, create_user_defi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3609,7 +3609,7 @@ def delete_application(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3716,7 +3716,7 @@ def delete_application_detailed_description(self, workspace_id, application_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3823,7 +3823,7 @@ def delete_connection(self, workspace_id, connection_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3930,7 +3930,7 @@ def delete_connection_validation(self, workspace_id, connection_validation_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4037,7 +4037,7 @@ def delete_copy_object_request(self, workspace_id, copy_object_request_key, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4144,7 +4144,7 @@ def delete_data_asset(self, workspace_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4251,7 +4251,7 @@ def delete_data_flow(self, workspace_id, data_flow_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4358,7 +4358,7 @@ def delete_data_flow_validation(self, workspace_id, data_flow_validation_key, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4465,7 +4465,7 @@ def delete_dis_application(self, workspace_id, dis_application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4572,7 +4572,7 @@ def delete_dis_application_detailed_description(self, workspace_id, application_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4679,7 +4679,7 @@ def delete_export_request(self, workspace_id, export_request_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4790,7 +4790,7 @@ def delete_external_publication(self, workspace_id, task_key, external_publicati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4901,7 +4901,7 @@ def delete_external_publication_validation(self, workspace_id, task_key, externa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5008,7 +5008,7 @@ def delete_folder(self, workspace_id, folder_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5115,7 +5115,7 @@ def delete_function_library(self, workspace_id, function_library_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5222,7 +5222,7 @@ def delete_import_request(self, import_request_key, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5333,7 +5333,7 @@ def delete_patch(self, workspace_id, application_key, patch_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5440,7 +5440,7 @@ def delete_pipeline(self, workspace_id, pipeline_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5547,7 +5547,7 @@ def delete_pipeline_validation(self, workspace_id, pipeline_validation_key, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5654,7 +5654,7 @@ def delete_project(self, workspace_id, project_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5765,7 +5765,7 @@ def delete_schedule(self, workspace_id, application_key, schedule_key, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5872,7 +5872,7 @@ def delete_task(self, workspace_id, task_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5983,7 +5983,7 @@ def delete_task_run(self, workspace_id, application_key, task_run_key, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6094,7 +6094,7 @@ def delete_task_schedule(self, workspace_id, application_key, task_schedule_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6201,7 +6201,7 @@ def delete_task_validation(self, workspace_id, task_validation_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6308,7 +6308,7 @@ def delete_user_defined_function(self, workspace_id, user_defined_function_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6415,7 +6415,7 @@ def delete_user_defined_function_validation(self, workspace_id, user_defined_fun path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6526,7 +6526,7 @@ def delete_workspace(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6635,7 +6635,7 @@ def get_application(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6737,7 +6737,7 @@ def get_application_detailed_description(self, workspace_id, application_key, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6842,7 +6842,7 @@ def get_composite_state(self, workspace_id, application_key, aggregator_key, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6951,7 +6951,7 @@ def get_connection(self, workspace_id, connection_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7053,7 +7053,7 @@ def get_connection_validation(self, workspace_id, connection_validation_key, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7155,7 +7155,7 @@ def get_copy_object_request(self, workspace_id, copy_object_request_key, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7258,7 +7258,7 @@ def get_count_statistic(self, workspace_id, count_statistic_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7360,7 +7360,7 @@ def get_data_asset(self, workspace_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7470,7 +7470,7 @@ def get_data_entity(self, workspace_id, connection_key, schema_resource_name, da path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7576,7 +7576,7 @@ def get_data_flow(self, workspace_id, data_flow_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7685,7 +7685,7 @@ def get_data_flow_validation(self, workspace_id, data_flow_validation_key, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7791,7 +7791,7 @@ def get_dependent_object(self, workspace_id, application_key, dependent_object_k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7893,7 +7893,7 @@ def get_dis_application(self, workspace_id, dis_application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7995,7 +7995,7 @@ def get_dis_application_detailed_description(self, workspace_id, application_key path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8097,7 +8097,7 @@ def get_export_request(self, workspace_id, export_request_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8203,7 +8203,7 @@ def get_external_publication(self, workspace_id, task_key, external_publications path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8309,7 +8309,7 @@ def get_external_publication_validation(self, workspace_id, task_key, external_p path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8417,7 +8417,7 @@ def get_folder(self, workspace_id, folder_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'projection' in kwargs: @@ -8540,7 +8540,7 @@ def get_function_library(self, workspace_id, function_library_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'projection' in kwargs: @@ -8669,7 +8669,7 @@ def get_import_request(self, workspace_id, import_request_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8783,7 +8783,7 @@ def get_patch(self, workspace_id, application_key, patch_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8889,7 +8889,7 @@ def get_pipeline(self, workspace_id, pipeline_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8998,7 +8998,7 @@ def get_pipeline_validation(self, workspace_id, pipeline_validation_key, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9106,7 +9106,7 @@ def get_project(self, workspace_id, project_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'projection' in kwargs: @@ -9231,7 +9231,7 @@ def get_published_object(self, workspace_id, application_key, published_object_k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9344,7 +9344,7 @@ def get_reference(self, workspace_id, application_key, reference_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9454,7 +9454,7 @@ def get_runtime_operator(self, workspace_id, application_key, runtime_pipeline_k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9564,7 +9564,7 @@ def get_runtime_pipeline(self, workspace_id, application_key, runtime_pipeline_k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9677,7 +9677,7 @@ def get_schedule(self, workspace_id, application_key, schedule_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9783,7 +9783,7 @@ def get_schema(self, workspace_id, connection_key, schema_resource_name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9889,7 +9889,7 @@ def get_task(self, workspace_id, task_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10002,7 +10002,7 @@ def get_task_run(self, workspace_id, application_key, task_run_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10108,7 +10108,7 @@ def get_task_schedule(self, workspace_id, application_key, task_schedule_key, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10210,7 +10210,7 @@ def get_task_validation(self, workspace_id, task_validation_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10312,7 +10312,7 @@ def get_template(self, workspace_id, template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10414,7 +10414,7 @@ def get_user_defined_function(self, workspace_id, user_defined_function_key, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10516,7 +10516,7 @@ def get_user_defined_function_validation(self, workspace_id, user_defined_functi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10614,7 +10614,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10712,7 +10712,7 @@ def get_workspace(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10850,7 +10850,7 @@ def list_applications(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11016,7 +11016,7 @@ def list_connection_validations(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11181,7 +11181,7 @@ def list_connections(self, workspace_id, data_asset_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11355,7 +11355,7 @@ def list_copy_object_requests(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11532,7 +11532,7 @@ def list_data_assets(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11713,7 +11713,7 @@ def list_data_entities(self, workspace_id, connection_key, schema_resource_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11881,7 +11881,7 @@ def list_data_flow_validations(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -12047,7 +12047,7 @@ def list_data_flows(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12229,7 +12229,7 @@ def list_dependent_objects(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12409,7 +12409,7 @@ def list_dis_application_task_run_lineages(self, workspace_id, dis_application_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12580,7 +12580,7 @@ def list_dis_applications(self, workspace_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12755,7 +12755,7 @@ def list_export_requests(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12936,7 +12936,7 @@ def list_external_publication_validations(self, workspace_id, task_key, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13097,7 +13097,7 @@ def list_external_publications(self, workspace_id, task_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13265,7 +13265,7 @@ def list_folders(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13432,7 +13432,7 @@ def list_function_libraries(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13606,7 +13606,7 @@ def list_import_requests(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13787,7 +13787,7 @@ def list_patch_changes(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13952,7 +13952,7 @@ def list_patches(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14117,7 +14117,7 @@ def list_pipeline_validations(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -14283,7 +14283,7 @@ def list_pipelines(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14449,7 +14449,7 @@ def list_projects(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14635,7 +14635,7 @@ def list_published_objects(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14796,7 +14796,7 @@ def list_references(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14971,7 +14971,7 @@ def list_runtime_operators(self, workspace_id, application_key, runtime_pipeline path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -15154,7 +15154,7 @@ def list_runtime_pipelines(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -15327,7 +15327,7 @@ def list_schedules(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15500,7 +15500,7 @@ def list_schemas(self, workspace_id, connection_key, schema_resource_name, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15679,7 +15679,7 @@ def list_task_run_lineages(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -15839,7 +15839,7 @@ def list_task_run_logs(self, workspace_id, application_key, task_run_key, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -16021,7 +16021,7 @@ def list_task_runs(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -16199,7 +16199,7 @@ def list_task_schedules(self, workspace_id, application_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16366,7 +16366,7 @@ def list_task_validations(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16540,7 +16540,7 @@ def list_tasks(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -16704,7 +16704,7 @@ def list_templates(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -16869,7 +16869,7 @@ def list_user_defined_function_validations(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17035,7 +17035,7 @@ def list_user_defined_functions(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -17185,7 +17185,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -17331,7 +17331,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -17771,7 +17771,7 @@ def start_workspace(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17888,7 +17888,7 @@ def stop_workspace(self, workspace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18008,7 +18008,7 @@ def update_application(self, workspace_id, application_key, update_application_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18122,7 +18122,7 @@ def update_application_detailed_description(self, workspace_id, application_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18236,7 +18236,7 @@ def update_connection(self, workspace_id, connection_key, update_connection_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18350,7 +18350,7 @@ def update_copy_object_request(self, workspace_id, copy_object_request_key, upda path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18464,7 +18464,7 @@ def update_data_asset(self, workspace_id, data_asset_key, update_data_asset_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18578,7 +18578,7 @@ def update_data_flow(self, workspace_id, data_flow_key, update_data_flow_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18692,7 +18692,7 @@ def update_dis_application(self, workspace_id, dis_application_id, update_dis_ap path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18806,7 +18806,7 @@ def update_dis_application_detailed_description(self, workspace_id, application_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18920,7 +18920,7 @@ def update_export_request(self, workspace_id, export_request_key, update_export_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19038,7 +19038,7 @@ def update_external_publication(self, workspace_id, task_key, external_publicati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19152,7 +19152,7 @@ def update_folder(self, workspace_id, folder_key, update_folder_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19266,7 +19266,7 @@ def update_function_library(self, workspace_id, function_library_key, update_fun path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19380,7 +19380,7 @@ def update_import_request(self, workspace_id, import_request_key, update_import_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19494,7 +19494,7 @@ def update_pipeline(self, workspace_id, pipeline_key, update_pipeline_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19608,7 +19608,7 @@ def update_project(self, workspace_id, project_key, update_project_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19730,7 +19730,7 @@ def update_reference(self, workspace_id, application_key, reference_key, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19850,7 +19850,7 @@ def update_schedule(self, workspace_id, application_key, schedule_key, update_sc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19964,7 +19964,7 @@ def update_task(self, workspace_id, task_key, update_task_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20082,7 +20082,7 @@ def update_task_run(self, workspace_id, application_key, task_run_key, update_ta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20200,7 +20200,7 @@ def update_task_schedule(self, workspace_id, application_key, task_schedule_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20314,7 +20314,7 @@ def update_user_defined_function(self, workspace_id, user_defined_function_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20424,7 +20424,7 @@ def update_workspace(self, workspace_id, update_workspace_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/data_labeling_service/data_labeling_management_client.py b/src/oci/data_labeling_service/data_labeling_management_client.py index 6a73d2993..a3a8d1f7b 100644 --- a/src/oci/data_labeling_service/data_labeling_management_client.py +++ b/src/oci/data_labeling_service/data_labeling_management_client.py @@ -191,7 +191,7 @@ def add_dataset_labels(self, dataset_id, add_dataset_labels_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -303,7 +303,7 @@ def change_dataset_compartment(self, dataset_id, change_dataset_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -508,7 +508,7 @@ def delete_dataset(self, dataset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -624,7 +624,7 @@ def generate_dataset_records(self, dataset_id, generate_dataset_records_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -725,7 +725,7 @@ def get_dataset(self, dataset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -823,7 +823,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -940,7 +940,7 @@ def import_pre_annotated_data(self, dataset_id, import_pre_annotated_data_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1326,7 +1326,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1440,7 +1440,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1673,7 +1673,7 @@ def remove_dataset_labels(self, dataset_id, remove_dataset_labels_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1793,7 +1793,7 @@ def rename_dataset_labels(self, dataset_id, rename_dataset_labels_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1914,7 +1914,7 @@ def snapshot_dataset(self, dataset_id, snapshot_dataset_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2026,7 +2026,7 @@ def update_dataset(self, dataset_id, update_dataset_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/data_labeling_service_dataplane/data_labeling_client.py b/src/oci/data_labeling_service_dataplane/data_labeling_client.py index 3d81a71e0..f5e003d53 100644 --- a/src/oci/data_labeling_service_dataplane/data_labeling_client.py +++ b/src/oci/data_labeling_service_dataplane/data_labeling_client.py @@ -376,7 +376,7 @@ def delete_annotation(self, annotation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -481,7 +481,7 @@ def delete_record(self, record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -578,7 +578,7 @@ def get_annotation(self, annotation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -676,7 +676,7 @@ def get_dataset(self, dataset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -774,7 +774,7 @@ def get_record(self, record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -880,7 +880,7 @@ def get_record_content(self, record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -987,7 +987,7 @@ def get_record_preview_content(self, record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1771,7 +1771,7 @@ def update_annotation(self, annotation_id, update_annotation_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1883,7 +1883,7 @@ def update_record(self, record_id, update_record_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/data_safe/data_safe_client.py b/src/oci/data_safe/data_safe_client.py index 7ee229dcf..bd7527769 100644 --- a/src/oci/data_safe/data_safe_client.py +++ b/src/oci/data_safe/data_safe_client.py @@ -191,7 +191,7 @@ def activate_target_database(self, activate_target_database_details, target_data path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -303,7 +303,7 @@ def add_masking_columns_from_sdm(self, masking_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -547,7 +547,7 @@ def apply_discovery_job_results(self, sensitive_data_model_id, apply_discovery_j path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -669,7 +669,7 @@ def apply_sdm_masking_policy_difference(self, masking_policy_id, apply_sdm_maski path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -788,7 +788,7 @@ def apply_security_assessment_template(self, security_assessment_id, security_as path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -907,7 +907,7 @@ def bulk_create_sensitive_types(self, bulk_create_sensitive_types_details, opc_c bulk_create_sensitive_types_details = kwargs.get("bulk_create_sensitive_types_details", missing) if bulk_create_sensitive_types_details is not missing and bulk_create_sensitive_types_details is not None: - if (not isinstance(bulk_create_sensitive_types_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_create_sensitive_types_details, (bytes, str)) and not hasattr(bulk_create_sensitive_types_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1301,7 +1301,7 @@ def calculate_audit_volume_available(self, audit_profile_id, calculate_audit_vol path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1420,7 +1420,7 @@ def calculate_audit_volume_collected(self, audit_profile_id, calculate_audit_vol path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1529,7 +1529,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1644,7 +1644,7 @@ def change_alert_compartment(self, alert_id, change_alert_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1763,7 +1763,7 @@ def change_alert_policy_compartment(self, alert_policy_id, change_alert_policy_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1882,7 +1882,7 @@ def change_attribute_set_compartment(self, attribute_set_id, change_attribute_se path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2001,7 +2001,7 @@ def change_audit_archive_retrieval_compartment(self, audit_archive_retrieval_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2120,7 +2120,7 @@ def change_audit_policy_compartment(self, audit_policy_id, change_audit_policy_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2239,7 +2239,7 @@ def change_audit_profile_compartment(self, audit_profile_id, change_audit_profil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2351,7 +2351,7 @@ def change_data_safe_private_endpoint_compartment(self, data_safe_private_endpoi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2468,7 +2468,7 @@ def change_database_security_config_compartment(self, database_security_config_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2587,7 +2587,7 @@ def change_discovery_job_compartment(self, discovery_job_id, change_discovery_jo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2706,7 +2706,7 @@ def change_library_masking_format_compartment(self, library_masking_format_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2825,7 +2825,7 @@ def change_masking_policy_compartment(self, masking_policy_id, change_masking_po path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2944,7 +2944,7 @@ def change_masking_policy_health_report_compartment(self, masking_policy_health_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3063,7 +3063,7 @@ def change_on_prem_connector_compartment(self, on_prem_connector_id, change_on_p path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3182,7 +3182,7 @@ def change_report_compartment(self, report_id, change_report_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3301,7 +3301,7 @@ def change_report_definition_compartment(self, report_definition_id, change_repo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3420,7 +3420,7 @@ def change_retention(self, audit_profile_id, change_retention_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3539,7 +3539,7 @@ def change_sdm_masking_policy_difference_compartment(self, sdm_masking_policy_di path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3662,7 +3662,7 @@ def change_security_assessment_compartment(self, security_assessment_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3781,7 +3781,7 @@ def change_security_policy_compartment(self, security_policy_id, change_security path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3900,7 +3900,7 @@ def change_security_policy_config_compartment(self, security_policy_config_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4019,7 +4019,7 @@ def change_security_policy_deployment_compartment(self, security_policy_deployme path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4138,7 +4138,7 @@ def change_sensitive_data_model_compartment(self, sensitive_data_model_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4257,7 +4257,7 @@ def change_sensitive_type_compartment(self, sensitive_type_id, change_sensitive_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4376,7 +4376,7 @@ def change_sensitive_type_group_compartment(self, sensitive_type_group_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4495,7 +4495,7 @@ def change_sensitive_types_export_compartment(self, sensitive_types_export_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4614,7 +4614,7 @@ def change_sql_collection_compartment(self, sql_collection_id, change_sql_collec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4733,7 +4733,7 @@ def change_sql_firewall_policy_compartment(self, sql_firewall_policy_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4852,7 +4852,7 @@ def change_target_alert_policy_association_compartment(self, target_alert_policy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4971,7 +4971,7 @@ def change_target_database_compartment(self, target_database_id, change_target_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5090,7 +5090,7 @@ def change_target_database_group_compartment(self, target_database_group_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5209,7 +5209,7 @@ def change_unified_audit_policy_compartment(self, unified_audit_policy_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5328,7 +5328,7 @@ def change_unified_audit_policy_definition_compartment(self, unified_audit_polic path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5451,7 +5451,7 @@ def change_user_assessment_compartment(self, user_assessment_id, change_user_ass path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5571,7 +5571,7 @@ def compare_security_assessment(self, security_assessment_id, compare_security_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5690,7 +5690,7 @@ def compare_to_template_baseline(self, security_assessment_id, compare_to_templa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5810,7 +5810,7 @@ def compare_user_assessment(self, user_assessment_id, compare_user_assessment_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6018,7 +6018,7 @@ def create_alert_policy_rule(self, create_alert_policy_rule_details, alert_polic path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6741,7 +6741,7 @@ def create_masking_column(self, create_masking_column_details, masking_policy_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7069,7 +7069,7 @@ def create_peer_target_database(self, target_database_id, create_peer_target_dat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7182,7 +7182,7 @@ def create_referential_relation(self, sensitive_data_model_id, create_referentia path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7882,7 +7882,7 @@ def create_sensitive_column(self, sensitive_data_model_id, create_sensitive_colu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8977,7 +8977,7 @@ def deactivate_target_database(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9084,7 +9084,7 @@ def delete_alert_policy(self, alert_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9193,7 +9193,7 @@ def delete_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9298,7 +9298,7 @@ def delete_attribute_set(self, attribute_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9404,7 +9404,7 @@ def delete_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9510,7 +9510,7 @@ def delete_audit_profile(self, audit_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9615,7 +9615,7 @@ def delete_audit_trail(self, audit_trail_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9720,7 +9720,7 @@ def delete_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9825,7 +9825,7 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9934,7 +9934,7 @@ def delete_discovery_job_result(self, discovery_job_id, result_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10039,7 +10039,7 @@ def delete_library_masking_format(self, library_masking_format_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10148,7 +10148,7 @@ def delete_masking_column(self, masking_column_key, masking_policy_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10253,7 +10253,7 @@ def delete_masking_policy(self, masking_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10358,7 +10358,7 @@ def delete_masking_policy_health_report(self, masking_policy_health_report_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10463,7 +10463,7 @@ def delete_masking_report(self, masking_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10568,7 +10568,7 @@ def delete_on_prem_connector(self, on_prem_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10677,7 +10677,7 @@ def delete_peer_target_database(self, target_database_id, peer_target_database_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10786,7 +10786,7 @@ def delete_referential_relation(self, sensitive_data_model_id, referential_relat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10891,7 +10891,7 @@ def delete_report_definition(self, report_definition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10996,7 +10996,7 @@ def delete_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11104,7 +11104,7 @@ def delete_security_assessment(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11209,7 +11209,7 @@ def delete_security_policy(self, security_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11314,7 +11314,7 @@ def delete_security_policy_config(self, security_policy_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11419,7 +11419,7 @@ def delete_security_policy_deployment(self, security_policy_deployment_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11528,7 +11528,7 @@ def delete_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11633,7 +11633,7 @@ def delete_sensitive_data_model(self, sensitive_data_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11738,7 +11738,7 @@ def delete_sensitive_type(self, sensitive_type_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11843,7 +11843,7 @@ def delete_sensitive_type_group(self, sensitive_type_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11948,7 +11948,7 @@ def delete_sensitive_types_export(self, sensitive_types_export_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12053,7 +12053,7 @@ def delete_sql_collection(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12158,7 +12158,7 @@ def delete_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12263,7 +12263,7 @@ def delete_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12368,7 +12368,7 @@ def delete_target_alert_policy_association(self, target_alert_policy_association path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12473,7 +12473,7 @@ def delete_target_database(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12578,7 +12578,7 @@ def delete_target_database_group(self, target_database_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12683,7 +12683,7 @@ def delete_unified_audit_policy(self, unified_audit_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12788,7 +12788,7 @@ def delete_unified_audit_policy_definition(self, unified_audit_policy_definition path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12896,7 +12896,7 @@ def delete_user_assessment(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13008,7 +13008,7 @@ def deploy_security_policy_deployment(self, security_policy_deployment_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13125,7 +13125,7 @@ def discover_audit_trails(self, audit_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13230,7 +13230,7 @@ def download_discovery_report(self, sensitive_data_model_id, download_discovery_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13333,7 +13333,7 @@ def download_masking_log(self, masking_policy_id, download_masking_log_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13439,7 +13439,7 @@ def download_masking_policy(self, masking_policy_id, download_masking_policy_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13544,7 +13544,7 @@ def download_masking_report(self, masking_policy_id, download_masking_report_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13764,7 +13764,7 @@ def download_security_assessment_report(self, security_assessment_id, download_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13873,7 +13873,7 @@ def download_sensitive_data_model(self, sensitive_data_model_id, download_sensit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13978,7 +13978,7 @@ def download_sensitive_types_export(self, sensitive_types_export_id, download_se path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14097,7 +14097,7 @@ def download_user_assessment_report(self, user_assessment_id, download_user_asse path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14312,7 +14312,7 @@ def generate_discovery_report_for_download(self, sensitive_data_model_id, genera path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14420,7 +14420,7 @@ def generate_health_report(self, masking_policy_id, generate_health_report_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14527,7 +14527,7 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14631,7 +14631,7 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14747,7 +14747,7 @@ def generate_on_prem_connector_configuration(self, generate_on_prem_connector_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14880,7 +14880,7 @@ def generate_report(self, report_definition_id, generate_report_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15007,7 +15007,7 @@ def generate_security_assessment_report(self, security_assessment_id, generate_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15114,7 +15114,7 @@ def generate_sensitive_data_model_for_download(self, sensitive_data_model_id, ge path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15227,7 +15227,7 @@ def generate_sql_firewall_policy(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15345,7 +15345,7 @@ def generate_user_assessment_report(self, user_assessment_id, generate_user_asse path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15446,7 +15446,7 @@ def get_alert(self, alert_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15544,7 +15544,7 @@ def get_alert_policy(self, alert_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15646,7 +15646,7 @@ def get_alert_policy_rule(self, alert_policy_id, rule_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15752,7 +15752,7 @@ def get_attribute_set(self, attribute_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15859,7 +15859,7 @@ def get_audit_archive_retrieval(self, audit_archive_retrieval_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15958,7 +15958,7 @@ def get_audit_policy(self, audit_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16056,7 +16056,7 @@ def get_audit_profile(self, audit_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16154,7 +16154,7 @@ def get_audit_trail(self, audit_trail_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16588,7 +16588,7 @@ def get_data_safe_private_endpoint(self, data_safe_private_endpoint_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16686,7 +16686,7 @@ def get_database_security_config(self, database_security_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16788,7 +16788,7 @@ def get_database_table_access_entry(self, security_policy_report_id, database_ta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16890,7 +16890,7 @@ def get_database_view_access_entry(self, security_policy_report_id, database_vie path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16992,7 +16992,7 @@ def get_difference_column(self, sdm_masking_policy_difference_id, difference_col path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17090,7 +17090,7 @@ def get_discovery_job(self, discovery_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17192,7 +17192,7 @@ def get_discovery_job_result(self, discovery_job_id, result_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17306,7 +17306,7 @@ def get_group_members(self, target_database_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -17413,7 +17413,7 @@ def get_library_masking_format(self, library_masking_format_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17515,7 +17515,7 @@ def get_masking_column(self, masking_policy_id, masking_column_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17613,7 +17613,7 @@ def get_masking_policy(self, masking_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17711,7 +17711,7 @@ def get_masking_policy_health_report(self, masking_policy_health_report_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17809,7 +17809,7 @@ def get_masking_report(self, masking_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17907,7 +17907,7 @@ def get_on_prem_connector(self, on_prem_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18009,7 +18009,7 @@ def get_peer_target_database(self, target_database_id, peer_target_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18114,7 +18114,7 @@ def get_profile(self, user_assessment_id, profile_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18216,7 +18216,7 @@ def get_referential_relation(self, sensitive_data_model_id, referential_relation path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18314,7 +18314,7 @@ def get_report(self, report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18412,7 +18412,7 @@ def get_report_content(self, report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18510,7 +18510,7 @@ def get_report_definition(self, report_definition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18608,7 +18608,7 @@ def get_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18706,7 +18706,7 @@ def get_security_assessment(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18808,7 +18808,7 @@ def get_security_assessment_comparison(self, security_assessment_id, comparison_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18906,7 +18906,7 @@ def get_security_policy(self, security_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19004,7 +19004,7 @@ def get_security_policy_config(self, security_policy_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19102,7 +19102,7 @@ def get_security_policy_deployment(self, security_policy_deployment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19207,7 +19207,7 @@ def get_security_policy_entry_state(self, security_policy_deployment_id, securit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19305,7 +19305,7 @@ def get_security_policy_report(self, security_policy_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19407,7 +19407,7 @@ def get_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19505,7 +19505,7 @@ def get_sensitive_data_model(self, sensitive_data_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19603,7 +19603,7 @@ def get_sensitive_type(self, sensitive_type_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19701,7 +19701,7 @@ def get_sensitive_type_group(self, sensitive_type_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19799,7 +19799,7 @@ def get_sensitive_types_export(self, sensitive_types_export_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19897,7 +19897,7 @@ def get_sql_collection(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19995,7 +19995,7 @@ def get_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20093,7 +20093,7 @@ def get_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20191,7 +20191,7 @@ def get_target_alert_policy_association(self, target_alert_policy_association_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20289,7 +20289,7 @@ def get_target_database(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20387,7 +20387,7 @@ def get_target_database_group(self, target_database_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20501,7 +20501,7 @@ def get_template_baseline_comparison(self, security_assessment_id, comparison_se path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -20608,7 +20608,7 @@ def get_unified_audit_policy(self, unified_audit_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20706,7 +20706,7 @@ def get_unified_audit_policy_definition(self, unified_audit_policy_definition_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20804,7 +20804,7 @@ def get_user_assessment(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20906,7 +20906,7 @@ def get_user_assessment_comparison(self, user_assessment_id, comparison_user_ass path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21004,7 +21004,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21593,7 +21593,7 @@ def list_alert_policy_rules(self, alert_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -21942,7 +21942,7 @@ def list_associated_resources(self, attribute_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'associated_resource_type' in kwargs: @@ -24221,7 +24221,7 @@ def list_available_audit_volumes(self, audit_profile_id, work_request_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -24408,7 +24408,7 @@ def list_checks(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -24615,7 +24615,7 @@ def list_collected_audit_volumes(self, audit_profile_id, work_request_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -24792,7 +24792,7 @@ def list_columns(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -25371,7 +25371,7 @@ def list_database_table_access_entries(self, security_policy_report_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -25536,7 +25536,7 @@ def list_database_view_access_entries(self, security_policy_report_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -25715,7 +25715,7 @@ def list_difference_columns(self, sdm_masking_policy_difference_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'difference_type' in kwargs: @@ -26113,7 +26113,7 @@ def list_discovery_job_results(self, discovery_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'discovery_type' in kwargs: @@ -26841,7 +26841,7 @@ def list_findings(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'severity' in kwargs: @@ -27114,7 +27114,7 @@ def list_findings_change_audit_logs(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'severity' in kwargs: @@ -27311,7 +27311,7 @@ def list_grants(self, user_assessment_id, user_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -27456,7 +27456,7 @@ def list_grouped_sensitive_types(self, sensitive_type_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -27831,7 +27831,7 @@ def list_masked_columns(self, masking_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -28254,7 +28254,7 @@ def list_masking_columns(self, masking_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -28443,7 +28443,7 @@ def list_masking_errors(self, masking_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'step_name' in kwargs: @@ -28612,7 +28612,7 @@ def list_masking_objects(self, masking_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -28989,7 +28989,7 @@ def list_masking_policy_health_report_logs(self, masking_policy_health_report_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -29357,7 +29357,7 @@ def list_masking_policy_referential_relations(self, masking_policy_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'relation_type' in kwargs: @@ -29693,7 +29693,7 @@ def list_masking_schemas(self, masking_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -30035,7 +30035,7 @@ def list_password_expiry_date_analytics(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'access_level' in kwargs: @@ -30177,7 +30177,7 @@ def list_peer_target_databases(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30351,7 +30351,7 @@ def list_profile_analytics(self, user_assessment_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'access_level' in kwargs: @@ -30604,7 +30604,7 @@ def list_profile_summaries(self, user_assessment_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'access_level' in kwargs: @@ -30801,7 +30801,7 @@ def list_referential_relations(self, sensitive_data_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'relation_type' in kwargs: @@ -31415,7 +31415,7 @@ def list_role_grant_paths(self, security_policy_report_id, grantee, granted_role path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31563,7 +31563,7 @@ def list_roles(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -31725,7 +31725,7 @@ def list_schemas(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -33438,7 +33438,7 @@ def list_security_policy_entry_states(self, security_policy_deployment_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'deployment_status' in kwargs: @@ -34094,7 +34094,7 @@ def list_sensitive_columns(self, sensitive_data_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sensitive_column_lifecycle_state' in kwargs: @@ -34309,7 +34309,7 @@ def list_sensitive_data_model_sensitive_types(self, sensitive_data_model_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -34680,7 +34680,7 @@ def list_sensitive_objects(self, sensitive_data_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'object_type' in kwargs: @@ -34842,7 +34842,7 @@ def list_sensitive_schemas(self, sensitive_data_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -35851,7 +35851,7 @@ def list_sql_collection_log_insights(self, time_started, time_ended, sql_collect path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'group_by' in kwargs: @@ -37430,7 +37430,7 @@ def list_tables(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -38226,7 +38226,7 @@ def list_target_overrides(self, audit_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -39169,7 +39169,7 @@ def list_user_access_analytics(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -39426,7 +39426,7 @@ def list_user_analytics(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'access_level' in kwargs: @@ -40000,7 +40000,7 @@ def list_users(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'access_level' in kwargs: @@ -40162,7 +40162,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -40280,7 +40280,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -40570,7 +40570,7 @@ def mask_data(self, masking_policy_id, mask_data_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40688,7 +40688,7 @@ def modify_global_settings(self, modify_global_settings_details, compartment_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40925,7 +40925,7 @@ def patch_checks(self, security_assessment_id, patch_checks_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41036,7 +41036,7 @@ def patch_discovery_job_results(self, discovery_job_id, patch_discovery_job_resu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41146,7 +41146,7 @@ def patch_findings(self, security_assessment_id, patch_findings_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41257,7 +41257,7 @@ def patch_grouped_sensitive_types(self, sensitive_type_group_id, patch_grouped_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41369,7 +41369,7 @@ def patch_masking_columns(self, masking_policy_id, patch_masking_columns_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41480,7 +41480,7 @@ def patch_sdm_masking_policy_difference_columns(self, sdm_masking_policy_differe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41592,7 +41592,7 @@ def patch_sensitive_columns(self, sensitive_data_model_id, patch_sensitive_colum path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41900,7 +41900,7 @@ def provision_audit_policy(self, provision_audit_policy_details, audit_policy_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42016,7 +42016,7 @@ def purge_sql_collection_logs(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42130,7 +42130,7 @@ def refresh_database_security_configuration(self, database_security_config_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42248,7 +42248,7 @@ def refresh_security_assessment(self, security_assessment_id, run_security_asses path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42364,7 +42364,7 @@ def refresh_security_policy_deployment(self, security_policy_deployment_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42478,7 +42478,7 @@ def refresh_sql_collection_log_insights(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42592,7 +42592,7 @@ def refresh_target_database(self, target_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42711,7 +42711,7 @@ def refresh_user_assessment(self, user_assessment_id, run_user_assessment_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42827,7 +42827,7 @@ def remove_schedule_report(self, report_definition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42941,7 +42941,7 @@ def remove_security_assessment_template(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43048,7 +43048,7 @@ def resume_audit_trail(self, audit_trail_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43160,7 +43160,7 @@ def resume_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43274,7 +43274,7 @@ def retrieve_audit_policies(self, audit_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43391,7 +43391,7 @@ def schedule_report(self, report_definition_id, schedule_report_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43511,7 +43511,7 @@ def set_security_assessment_baseline(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43631,7 +43631,7 @@ def set_user_assessment_baseline(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43750,7 +43750,7 @@ def start_audit_trail(self, start_audit_trail_details, audit_trail_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43866,7 +43866,7 @@ def start_sql_collection(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43973,7 +43973,7 @@ def stop_audit_trail(self, audit_trail_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44085,7 +44085,7 @@ def stop_sql_collection(self, sql_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44199,7 +44199,7 @@ def suspend_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44319,7 +44319,7 @@ def unset_security_assessment_baseline(self, security_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44441,7 +44441,7 @@ def unset_user_assessment_baseline(self, user_assessment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44553,7 +44553,7 @@ def update_alert(self, alert_id, update_alert_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44665,7 +44665,7 @@ def update_alert_policy(self, alert_policy_id, update_alert_policy_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44779,7 +44779,7 @@ def update_alert_policy_rule(self, alert_policy_id, rule_key, update_alert_polic path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44889,7 +44889,7 @@ def update_attribute_set(self, attribute_set_id, update_attribute_set_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44999,7 +44999,7 @@ def update_audit_archive_retrieval(self, audit_archive_retrieval_id, update_audi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45109,7 +45109,7 @@ def update_audit_policy(self, audit_policy_id, update_audit_policy_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45219,7 +45219,7 @@ def update_audit_profile(self, audit_profile_id, update_audit_profile_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45329,7 +45329,7 @@ def update_audit_trail(self, audit_trail_id, update_audit_trail_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45439,7 +45439,7 @@ def update_data_safe_private_endpoint(self, data_safe_private_endpoint_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45549,7 +45549,7 @@ def update_database_security_config(self, database_security_config_id, update_da path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45670,7 +45670,7 @@ def update_finding(self, security_assessment_id, finding_key, update_finding_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45782,7 +45782,7 @@ def update_library_masking_format(self, library_masking_format_id, update_librar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45897,7 +45897,7 @@ def update_masking_column(self, masking_column_key, masking_policy_id, update_ma path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46007,7 +46007,7 @@ def update_masking_policy(self, masking_policy_id, update_masking_policy_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46117,7 +46117,7 @@ def update_on_prem_connector(self, on_prem_connector_id, update_on_prem_connecto path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46234,7 +46234,7 @@ def update_on_prem_connector_wallet(self, update_on_prem_connector_wallet_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46357,7 +46357,7 @@ def update_peer_target_database(self, target_database_id, peer_target_database_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46476,7 +46476,7 @@ def update_report(self, report_id, update_report_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46595,7 +46595,7 @@ def update_report_definition(self, report_definition_id, update_report_definitio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46707,7 +46707,7 @@ def update_sdm_masking_policy_difference(self, sdm_masking_policy_difference_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46817,7 +46817,7 @@ def update_security_assessment(self, security_assessment_id, update_security_ass path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46927,7 +46927,7 @@ def update_security_policy(self, security_policy_id, update_security_policy_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47037,7 +47037,7 @@ def update_security_policy_config(self, security_policy_config_id, update_securi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47147,7 +47147,7 @@ def update_security_policy_deployment(self, security_policy_deployment_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47261,7 +47261,7 @@ def update_sensitive_column(self, sensitive_data_model_id, sensitive_column_key, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47372,7 +47372,7 @@ def update_sensitive_data_model(self, sensitive_data_model_id, update_sensitive_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47482,7 +47482,7 @@ def update_sensitive_type(self, sensitive_type_id, update_sensitive_type_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47592,7 +47592,7 @@ def update_sensitive_type_group(self, sensitive_type_group_id, update_sensitive_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47702,7 +47702,7 @@ def update_sensitive_types_export(self, sensitive_types_export_id, update_sensit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47812,7 +47812,7 @@ def update_sql_collection(self, sql_collection_id, update_sql_collection_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47922,7 +47922,7 @@ def update_sql_firewall_policy(self, sql_firewall_policy_id, update_sql_firewall path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48032,7 +48032,7 @@ def update_target_alert_policy_association(self, target_alert_policy_association path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48149,7 +48149,7 @@ def update_target_database(self, target_database_id, update_target_database_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48268,7 +48268,7 @@ def update_target_database_group(self, target_database_group_id, update_target_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48380,7 +48380,7 @@ def update_unified_audit_policy(self, unified_audit_policy_id, update_unified_au path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48490,7 +48490,7 @@ def update_unified_audit_policy_definition(self, unified_audit_policy_definition path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48600,7 +48600,7 @@ def update_user_assessment(self, user_assessment_id, update_user_assessment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48722,7 +48722,7 @@ def upload_masking_policy(self, upload_masking_policy_details, masking_policy_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48739,7 +48739,7 @@ def upload_masking_policy(self, upload_masking_policy_details, masking_policy_id upload_masking_policy_details = kwargs.get("upload_masking_policy_details", missing) if upload_masking_policy_details is not missing and upload_masking_policy_details is not None: - if (not isinstance(upload_masking_policy_details, (six.binary_type, six.string_types)) and + if (not isinstance(upload_masking_policy_details, (bytes, str)) and not hasattr(upload_masking_policy_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -48863,7 +48863,7 @@ def upload_sensitive_data_model(self, sensitive_data_model_id, upload_sensitive_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48880,7 +48880,7 @@ def upload_sensitive_data_model(self, sensitive_data_model_id, upload_sensitive_ upload_sensitive_data_model_details = kwargs.get("upload_sensitive_data_model_details", missing) if upload_sensitive_data_model_details is not missing and upload_sensitive_data_model_details is not None: - if (not isinstance(upload_sensitive_data_model_details, (six.binary_type, six.string_types)) and + if (not isinstance(upload_sensitive_data_model_details, (bytes, str)) and not hasattr(upload_sensitive_data_model_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') diff --git a/src/oci/data_science/data_science_client.py b/src/oci/data_science/data_science_client.py index 4c1c3e626..5f298073c 100644 --- a/src/oci/data_science/data_science_client.py +++ b/src/oci/data_science/data_science_client.py @@ -183,7 +183,7 @@ def activate_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -292,7 +292,7 @@ def activate_model_deployment(self, model_deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -397,7 +397,7 @@ def activate_model_group(self, model_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -506,7 +506,7 @@ def activate_notebook_session(self, notebook_session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -613,7 +613,7 @@ def activate_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -722,7 +722,7 @@ def cancel_job_run(self, job_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -837,7 +837,7 @@ def cancel_pipeline_run(self, pipeline_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -953,7 +953,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1063,7 +1063,7 @@ def change_data_science_private_endpoint_compartment(self, data_science_private_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1177,7 +1177,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1287,7 +1287,7 @@ def change_job_run_compartment(self, job_run_id, change_job_run_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1399,7 +1399,7 @@ def change_ml_application_compartment(self, ml_application_id, change_ml_applica path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1515,7 +1515,7 @@ def change_ml_application_implementation_compartment(self, ml_application_implem path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1631,7 +1631,7 @@ def change_ml_application_instance_compartment(self, ml_application_instance_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1747,7 +1747,7 @@ def change_ml_application_instance_view_compartment(self, ml_application_instanc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1865,7 +1865,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1981,7 +1981,7 @@ def change_model_deployment_compartment(self, model_deployment_id, change_model_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2097,7 +2097,7 @@ def change_model_group_compartment(self, model_group_id, change_model_group_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2215,7 +2215,7 @@ def change_model_group_version_history_compartment(self, model_group_version_his path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2333,7 +2333,7 @@ def change_model_version_set_compartment(self, model_version_set_id, change_mode path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2449,7 +2449,7 @@ def change_notebook_session_compartment(self, notebook_session_id, change_notebo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2561,7 +2561,7 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2671,7 +2671,7 @@ def change_pipeline_run_compartment(self, pipeline_run_id, change_pipeline_run_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2785,7 +2785,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2899,7 +2899,7 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3214,7 +3214,7 @@ def create_job_artifact(self, job_id, job_artifact, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3233,7 +3233,7 @@ def create_job_artifact(self, job_id, job_artifact, **kwargs): job_artifact = kwargs.get("job_artifact", missing) if job_artifact is not missing and job_artifact is not None: - if (not isinstance(job_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(job_artifact, (bytes, str)) and not hasattr(job_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -3850,7 +3850,7 @@ def create_model_artifact(self, model_id, model_artifact, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3870,7 +3870,7 @@ def create_model_artifact(self, model_id, model_artifact, **kwargs): model_artifact = kwargs.get("model_artifact", missing) if model_artifact is not missing and model_artifact is not None: - if (not isinstance(model_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(model_artifact, (bytes, str)) and not hasattr(model_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -4014,7 +4014,7 @@ def create_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4033,7 +4033,7 @@ def create_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m model_custom_metadatum_artifact = kwargs.get("model_custom_metadatum_artifact", missing) if model_custom_metadatum_artifact is not missing and model_custom_metadatum_artifact is not None: - if (not isinstance(model_custom_metadatum_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(model_custom_metadatum_artifact, (bytes, str)) and not hasattr(model_custom_metadatum_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -4174,7 +4174,7 @@ def create_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4193,7 +4193,7 @@ def create_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, model_defined_metadatum_artifact = kwargs.get("model_defined_metadatum_artifact", missing) if model_defined_metadatum_artifact is not missing and model_defined_metadatum_artifact is not None: - if (not isinstance(model_defined_metadatum_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(model_defined_metadatum_artifact, (bytes, str)) and not hasattr(model_defined_metadatum_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -4527,7 +4527,7 @@ def create_model_group_artifact(self, model_group_id, model_group_artifact, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4547,7 +4547,7 @@ def create_model_group_artifact(self, model_group_id, model_group_artifact, **kw model_group_artifact = kwargs.get("model_group_artifact", missing) if model_group_artifact is not missing and model_group_artifact is not None: - if (not isinstance(model_group_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(model_group_artifact, (bytes, str)) and not hasattr(model_group_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -4755,7 +4755,7 @@ def create_model_provenance(self, model_id, create_model_provenance_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5461,7 +5461,7 @@ def create_step_artifact(self, pipeline_id, step_name, step_artifact, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5480,7 +5480,7 @@ def create_step_artifact(self, pipeline_id, step_name, step_artifact, **kwargs): step_artifact = kwargs.get("step_artifact", missing) if step_artifact is not missing and step_artifact is not None: - if (not isinstance(step_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(step_artifact, (bytes, str)) and not hasattr(step_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -5593,7 +5593,7 @@ def deactivate_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5702,7 +5702,7 @@ def deactivate_model_deployment(self, model_deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5807,7 +5807,7 @@ def deactivate_model_group(self, model_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5916,7 +5916,7 @@ def deactivate_notebook_session(self, notebook_session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6023,7 +6023,7 @@ def deactivate_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6130,7 +6130,7 @@ def delete_data_science_private_endpoint(self, data_science_private_endpoint_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6239,7 +6239,7 @@ def delete_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6353,7 +6353,7 @@ def delete_job_run(self, job_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6458,7 +6458,7 @@ def delete_ml_application(self, ml_application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6563,7 +6563,7 @@ def delete_ml_application_implementation(self, ml_application_implementation_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6668,7 +6668,7 @@ def delete_ml_application_instance(self, ml_application_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6775,7 +6775,7 @@ def delete_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6886,7 +6886,7 @@ def delete_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6997,7 +6997,7 @@ def delete_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7104,7 +7104,7 @@ def delete_model_deployment(self, model_deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7211,7 +7211,7 @@ def delete_model_group(self, model_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7316,7 +7316,7 @@ def delete_model_group_version_history(self, model_group_version_history_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7426,7 +7426,7 @@ def delete_model_version_set(self, model_version_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7540,7 +7540,7 @@ def delete_notebook_session(self, notebook_session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7655,7 +7655,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7772,7 +7772,7 @@ def delete_pipeline_run(self, pipeline_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7884,7 +7884,7 @@ def delete_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7989,7 +7989,7 @@ def delete_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8099,7 +8099,7 @@ def disable_ml_application_instance_view_trigger(self, disable_ml_application_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8217,7 +8217,7 @@ def enable_ml_application_instance_view_trigger(self, enable_ml_application_inst path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8337,7 +8337,7 @@ def export_model_artifact(self, model_id, export_model_artifact_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8438,7 +8438,7 @@ def get_data_science_private_endpoint(self, data_science_private_endpoint_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8538,7 +8538,7 @@ def get_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8645,7 +8645,7 @@ def get_job_artifact_content(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8746,7 +8746,7 @@ def get_job_run(self, job_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8844,7 +8844,7 @@ def get_ml_application(self, ml_application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8942,7 +8942,7 @@ def get_ml_application_historical_package_content(self, ml_application_implement path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9040,7 +9040,7 @@ def get_ml_application_implementation(self, ml_application_implementation_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9138,7 +9138,7 @@ def get_ml_application_implementation_version(self, ml_application_implementatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9236,7 +9236,7 @@ def get_ml_application_instance(self, ml_application_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9334,7 +9334,7 @@ def get_ml_application_instance_view(self, ml_application_instance_view_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9432,7 +9432,7 @@ def get_ml_application_package_content(self, ml_application_implementation_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9532,7 +9532,7 @@ def get_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9639,7 +9639,7 @@ def get_model_artifact_content(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9751,7 +9751,7 @@ def get_model_custom_metadatum_artifact_content(self, model_id, metadatum_key_na path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9863,7 +9863,7 @@ def get_model_defined_metadatum_artifact_content(self, model_id, metadatum_key_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9964,7 +9964,7 @@ def get_model_deployment(self, model_deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10064,7 +10064,7 @@ def get_model_group(self, model_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10171,7 +10171,7 @@ def get_model_group_artifact_content(self, model_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10272,7 +10272,7 @@ def get_model_group_version_history(self, model_group_version_history_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10372,7 +10372,7 @@ def get_model_provenance(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10472,7 +10472,7 @@ def get_model_version_set(self, model_version_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10572,7 +10572,7 @@ def get_notebook_session(self, notebook_session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10672,7 +10672,7 @@ def get_pipeline(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10772,7 +10772,7 @@ def get_pipeline_run(self, pipeline_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10872,7 +10872,7 @@ def get_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10970,7 +10970,7 @@ def get_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11081,7 +11081,7 @@ def get_step_artifact_content(self, pipeline_id, step_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11184,7 +11184,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11284,7 +11284,7 @@ def head_job_artifact(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11382,7 +11382,7 @@ def head_model_artifact(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11484,7 +11484,7 @@ def head_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11586,7 +11586,7 @@ def head_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11684,7 +11684,7 @@ def head_model_group_artifact(self, model_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11786,7 +11786,7 @@ def head_step_artifact(self, pipeline_id, step_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11895,7 +11895,7 @@ def import_model_artifact(self, model_id, import_model_artifact_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13880,7 +13880,7 @@ def list_model_deployment_model_states(self, model_deployment_id, compartment_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14379,7 +14379,7 @@ def list_model_group_models(self, model_group_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -16369,7 +16369,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -16497,7 +16497,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -16816,7 +16816,7 @@ def put_ml_application_package(self, ml_application_implementation_id, put_ml_ap path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16836,7 +16836,7 @@ def put_ml_application_package(self, ml_application_implementation_id, put_ml_ap put_ml_application_package = kwargs.get("put_ml_application_package", missing) if put_ml_application_package is not missing and put_ml_application_package is not None: - if (not isinstance(put_ml_application_package, (six.binary_type, six.string_types)) and + if (not isinstance(put_ml_application_package, (bytes, str)) and not hasattr(put_ml_application_package, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -16952,7 +16952,7 @@ def recover_ml_application_instance_view(self, ml_application_instance_view_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17068,7 +17068,7 @@ def register_model_artifact_reference(self, register_model_artifact_reference_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17187,7 +17187,7 @@ def restore_archived_model_artifact(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -17300,7 +17300,7 @@ def trigger_ml_application_instance_flow(self, trigger_ml_application_instance_f path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17407,7 +17407,7 @@ def trigger_ml_application_instance_view_flow(self, trigger_ml_application_insta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17520,7 +17520,7 @@ def update_data_science_private_endpoint(self, data_science_private_endpoint_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17632,7 +17632,7 @@ def update_job(self, job_id, update_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17746,7 +17746,7 @@ def update_job_run(self, job_run_id, update_job_run_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17858,7 +17858,7 @@ def update_ml_application(self, ml_application_id, update_ml_application_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17970,7 +17970,7 @@ def update_ml_application_implementation(self, ml_application_implementation_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18080,7 +18080,7 @@ def update_ml_application_implementation_version(self, ml_application_implementa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18192,7 +18192,7 @@ def update_ml_application_instance(self, ml_application_instance_id, update_ml_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18302,7 +18302,7 @@ def update_ml_application_instance_view(self, ml_application_instance_view_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18414,7 +18414,7 @@ def update_model(self, model_id, update_model_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18554,7 +18554,7 @@ def update_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18573,7 +18573,7 @@ def update_model_custom_metadatum_artifact(self, model_id, metadatum_key_name, m model_custom_metadatum_artifact = kwargs.get("model_custom_metadatum_artifact", missing) if model_custom_metadatum_artifact is not missing and model_custom_metadatum_artifact is not None: - if (not isinstance(model_custom_metadatum_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(model_custom_metadatum_artifact, (bytes, str)) and not hasattr(model_custom_metadatum_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -18716,7 +18716,7 @@ def update_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18735,7 +18735,7 @@ def update_model_defined_metadatum_artifact(self, model_id, metadatum_key_name, model_defined_metadatum_artifact = kwargs.get("model_defined_metadatum_artifact", missing) if model_defined_metadatum_artifact is not missing and model_defined_metadatum_artifact is not None: - if (not isinstance(model_defined_metadatum_artifact, (six.binary_type, six.string_types)) and + if (not isinstance(model_defined_metadatum_artifact, (bytes, str)) and not hasattr(model_defined_metadatum_artifact, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -18858,7 +18858,7 @@ def update_model_deployment(self, model_deployment_id, update_model_deployment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18970,7 +18970,7 @@ def update_model_group(self, model_group_id, update_model_group_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19082,7 +19082,7 @@ def update_model_group_version_history(self, model_group_version_history_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19194,7 +19194,7 @@ def update_model_provenance(self, model_id, update_model_provenance_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19308,7 +19308,7 @@ def update_model_version_set(self, model_version_set_id, update_model_version_se path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19425,7 +19425,7 @@ def update_notebook_session(self, notebook_session_id, update_notebook_session_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19539,7 +19539,7 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19651,7 +19651,7 @@ def update_pipeline_run(self, pipeline_run_id, update_pipeline_run_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19763,7 +19763,7 @@ def update_project(self, project_id, update_project_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19875,7 +19875,7 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py index 983456010..08fa7ff85 100644 --- a/src/oci/database/database_client.py +++ b/src/oci/database/database_client.py @@ -187,7 +187,7 @@ def activate_exadata_infrastructure(self, exadata_infrastructure_id, activate_ex path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def add_dbnode_snapshots_for_exadb_vm_cluster(self, add_dbnode_snapshots_for_exa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -429,7 +429,7 @@ def add_standby_autonomous_container_database(self, add_standby_autonomous_conta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -546,7 +546,7 @@ def add_storage_capacity_cloud_exadata_infrastructure(self, cloud_exadata_infras path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -661,7 +661,7 @@ def add_storage_capacity_exadata_infrastructure(self, exadata_infrastructure_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -779,7 +779,7 @@ def add_virtual_machine_to_cloud_vm_cluster(self, add_virtual_machine_to_cloud_v path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -899,7 +899,7 @@ def add_virtual_machine_to_vm_cluster(self, add_virtual_machine_to_vm_cluster_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1024,7 +1024,7 @@ def autonomous_database_manual_refresh(self, autonomous_database_id, autonomous_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1142,7 +1142,7 @@ def cancel_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1258,7 +1258,7 @@ def cancel_execution_window(self, execution_window_id, cancel_execution_window_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1375,7 +1375,7 @@ def cascading_delete_scheduling_plan(self, scheduling_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1495,7 +1495,7 @@ def change_autonomous_container_database_compartment(self, change_compartment_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1622,7 +1622,7 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1741,7 +1741,7 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1864,7 +1864,7 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1987,7 +1987,7 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2105,7 +2105,7 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2227,7 +2227,7 @@ def change_backup_destination_compartment(self, change_compartment_details, back path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2345,7 +2345,7 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2463,7 +2463,7 @@ def change_cloud_autonomous_vm_cluster_subscription(self, change_cloud_autonomou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2581,7 +2581,7 @@ def change_cloud_db_system_subscription(self, change_cloud_db_system_subscriptio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2701,7 +2701,7 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2819,7 +2819,7 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2937,7 +2937,7 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3055,7 +3055,7 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3177,7 +3177,7 @@ def change_database_software_image_compartment(self, change_compartment_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3300,7 +3300,7 @@ def change_dataguard_role(self, change_dataguard_role_details, autonomous_contai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3431,7 +3431,7 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3546,7 +3546,7 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3665,7 +3665,7 @@ def change_encryption_key_location(self, database_id, encryption_key_location_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3784,7 +3784,7 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3902,7 +3902,7 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4020,7 +4020,7 @@ def change_exadb_vm_cluster_subscription(self, change_exadb_vm_cluster_subscript path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4138,7 +4138,7 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4256,7 +4256,7 @@ def change_exascale_db_storage_vault_subscription(self, change_exascale_db_stora path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4379,7 +4379,7 @@ def change_external_container_database_compartment(self, change_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4501,7 +4501,7 @@ def change_external_non_container_database_compartment(self, change_compartment_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4626,7 +4626,7 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4748,7 +4748,7 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4866,7 +4866,7 @@ def change_key_store_type(self, database_id, change_key_store_type_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4984,7 +4984,7 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5102,7 +5102,7 @@ def change_scheduling_plan_compartment(self, change_scheduling_plan_compartment_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5220,7 +5220,7 @@ def change_scheduling_policy_compartment(self, change_scheduling_policy_compartm path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5339,7 +5339,7 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5456,7 +5456,7 @@ def check_external_database_connector_connection_status(self, external_database_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5572,7 +5572,7 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5700,7 +5700,7 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5819,7 +5819,7 @@ def configure_exascale_cloud_exadata_infrastructure(self, cloud_exadata_infrastr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5939,7 +5939,7 @@ def configure_exascale_exadata_infrastructure(self, exadata_infrastructure_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6056,7 +6056,7 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6173,7 +6173,7 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6293,7 +6293,7 @@ def convert_standby_autonomous_container_database(self, convert_standby_autonomo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6416,7 +6416,7 @@ def convert_standby_database_type(self, database_id, convert_standby_database_ty path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6528,7 +6528,7 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6647,7 +6647,7 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6771,7 +6771,7 @@ def convert_to_standalone(self, database_id, convert_to_standalone_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7071,7 +7071,7 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8076,7 +8076,7 @@ def create_console_connection(self, create_console_connection_details, db_node_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8188,7 +8188,7 @@ def create_console_history(self, create_console_history_details, db_node_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8307,7 +8307,7 @@ def create_data_guard_association(self, database_id, create_data_guard_associati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10439,7 +10439,7 @@ def create_scheduling_window(self, scheduling_policy_id, create_scheduling_windo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10650,7 +10650,7 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10779,7 +10779,7 @@ def db_node_action(self, db_node_id, action, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10892,7 +10892,7 @@ def delete_application_vip(self, application_vip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11004,7 +11004,7 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11120,7 +11120,7 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11224,7 +11224,7 @@ def delete_autonomous_database_software_image(self, autonomous_database_software path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11327,7 +11327,7 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11426,7 +11426,7 @@ def delete_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11528,7 +11528,7 @@ def delete_backup_destination(self, backup_destination_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11631,7 +11631,7 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11738,7 +11738,7 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11848,7 +11848,7 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11951,7 +11951,7 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12057,7 +12057,7 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12170,7 +12170,7 @@ def delete_database(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12276,7 +12276,7 @@ def delete_database_software_image(self, database_software_image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12384,7 +12384,7 @@ def delete_db_home(self, db_home_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12493,7 +12493,7 @@ def delete_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12596,7 +12596,7 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12699,7 +12699,7 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12802,7 +12802,7 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12905,7 +12905,7 @@ def delete_execution_action(self, execution_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13008,7 +13008,7 @@ def delete_execution_window(self, execution_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13113,7 +13113,7 @@ def delete_external_container_database(self, external_container_database_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13219,7 +13219,7 @@ def delete_external_database_connector(self, external_database_connector_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13322,7 +13322,7 @@ def delete_external_non_container_database(self, external_non_container_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13426,7 +13426,7 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13529,7 +13529,7 @@ def delete_key_store(self, key_store_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13632,7 +13632,7 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13735,7 +13735,7 @@ def delete_pluggable_database(self, pluggable_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13838,7 +13838,7 @@ def delete_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13941,7 +13941,7 @@ def delete_scheduled_action(self, scheduled_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14044,7 +14044,7 @@ def delete_scheduling_plan(self, scheduling_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14147,7 +14147,7 @@ def delete_scheduling_policy(self, scheduling_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14256,7 +14256,7 @@ def delete_scheduling_window(self, scheduling_policy_id, scheduling_window_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14359,7 +14359,7 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14469,7 +14469,7 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14575,7 +14575,7 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14679,7 +14679,7 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14781,7 +14781,7 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14892,7 +14892,7 @@ def disable_database_management(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15007,7 +15007,7 @@ def disable_external_container_database_database_management(self, external_conta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15120,7 +15120,7 @@ def disable_external_container_database_stack_monitoring(self, external_containe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15237,7 +15237,7 @@ def disable_external_non_container_database_database_management(self, external_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15350,7 +15350,7 @@ def disable_external_non_container_database_operations_insights(self, external_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15463,7 +15463,7 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15580,7 +15580,7 @@ def disable_external_pluggable_database_database_management(self, external_plugg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15693,7 +15693,7 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15806,7 +15806,7 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15919,7 +15919,7 @@ def disable_pluggable_database_management(self, pluggable_database_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16028,7 +16028,7 @@ def download_exadata_infrastructure_config_file(self, exadata_infrastructure_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16142,7 +16142,7 @@ def download_oneoff_patch(self, oneoff_patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16257,7 +16257,7 @@ def download_validation_report(self, exadata_infrastructure_id, vm_cluster_netwo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16371,7 +16371,7 @@ def download_vm_cluster_network_config_file(self, exadata_infrastructure_id, vm_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16491,7 +16491,7 @@ def edit_autonomous_container_database_dataguard(self, edit_autonomous_container path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16599,7 +16599,7 @@ def enable_autonomous_database_management(self, autonomous_database_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16701,7 +16701,7 @@ def enable_autonomous_database_operations_insights(self, autonomous_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16815,7 +16815,7 @@ def enable_database_management(self, database_id, enable_database_management_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16939,7 +16939,7 @@ def enable_external_container_database_database_management(self, external_contai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17057,7 +17057,7 @@ def enable_external_container_database_stack_monitoring(self, external_container path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17179,7 +17179,7 @@ def enable_external_non_container_database_database_management(self, external_no path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17297,7 +17297,7 @@ def enable_external_non_container_database_operations_insights(self, external_no path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17415,7 +17415,7 @@ def enable_external_non_container_database_stack_monitoring(self, external_non_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17537,7 +17537,7 @@ def enable_external_pluggable_database_database_management(self, external_plugga path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17655,7 +17655,7 @@ def enable_external_pluggable_database_operations_insights(self, external_plugga path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17773,7 +17773,7 @@ def enable_external_pluggable_database_stack_monitoring(self, external_pluggable path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17891,7 +17891,7 @@ def enable_pluggable_database_management(self, pluggable_database_id, enable_plu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18022,7 +18022,7 @@ def fail_over_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18140,7 +18140,7 @@ def failover_autonomous_container_database_dataguard(self, autonomous_container_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18249,7 +18249,7 @@ def failover_autonomous_container_database_dataguard_association(self, autonomou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18370,7 +18370,7 @@ def failover_data_guard(self, database_id, failover_data_guard_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18488,7 +18488,7 @@ def failover_data_guard_association(self, database_id, data_guard_association_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18604,7 +18604,7 @@ def generate_autonomous_database_wallet(self, autonomous_database_id, generate_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18718,7 +18718,7 @@ def generate_recommended_vm_cluster_network(self, exadata_infrastructure_id, gen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18820,7 +18820,7 @@ def get_application_vip(self, application_vip_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -18910,7 +18910,7 @@ def get_autonomous_container_database(self, autonomous_container_database_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19004,7 +19004,7 @@ def get_autonomous_container_database_dataguard_association(self, autonomous_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19100,7 +19100,7 @@ def get_autonomous_container_database_resource_usage(self, autonomous_container_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19198,7 +19198,7 @@ def get_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19296,7 +19296,7 @@ def get_autonomous_database_backup(self, autonomous_database_backup_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19400,7 +19400,7 @@ def get_autonomous_database_dataguard_association(self, autonomous_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19579,7 +19579,7 @@ def get_autonomous_database_software_image(self, autonomous_database_software_im path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19677,7 +19677,7 @@ def get_autonomous_database_wallet(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19767,7 +19767,7 @@ def get_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastructur path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19855,7 +19855,7 @@ def get_autonomous_patch(self, autonomous_patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19951,7 +19951,7 @@ def get_autonomous_virtual_machine(self, autonomous_virtual_machine_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20049,7 +20049,7 @@ def get_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20147,7 +20147,7 @@ def get_autonomous_vm_cluster_resource_usage(self, autonomous_vm_cluster_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20237,7 +20237,7 @@ def get_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20333,7 +20333,7 @@ def get_backup_destination(self, backup_destination_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20431,7 +20431,7 @@ def get_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20529,7 +20529,7 @@ def get_cloud_autonomous_vm_cluster_resource_usage(self, cloud_autonomous_vm_clu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20627,7 +20627,7 @@ def get_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20731,7 +20731,7 @@ def get_cloud_exadata_infrastructure_unallocated_resources(self, cloud_exadata_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -20836,7 +20836,7 @@ def get_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20935,7 +20935,7 @@ def get_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21039,7 +21039,7 @@ def get_cloud_vm_cluster_update(self, cloud_vm_cluster_id, update_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21143,7 +21143,7 @@ def get_cloud_vm_cluster_update_history_entry(self, cloud_vm_cluster_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21237,7 +21237,7 @@ def get_console_connection(self, db_node_id, console_connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21337,7 +21337,7 @@ def get_console_history(self, db_node_id, console_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21439,7 +21439,7 @@ def get_console_history_content(self, db_node_id, console_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21535,7 +21535,7 @@ def get_data_guard_association(self, database_id, data_guard_association_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21623,7 +21623,7 @@ def get_database(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21711,7 +21711,7 @@ def get_database_software_image(self, database_software_image_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21813,7 +21813,7 @@ def get_database_upgrade_history_entry(self, database_id, upgrade_history_entry_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21903,7 +21903,7 @@ def get_db_home(self, db_home_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21997,7 +21997,7 @@ def get_db_home_patch(self, db_home_id, patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22091,7 +22091,7 @@ def get_db_home_patch_history_entry(self, db_home_id, patch_history_entry_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22179,7 +22179,7 @@ def get_db_node(self, db_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22280,7 +22280,7 @@ def get_db_server(self, exadata_infrastructure_id, db_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -22384,7 +22384,7 @@ def get_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22478,7 +22478,7 @@ def get_db_system_patch(self, db_system_id, patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22572,7 +22572,7 @@ def get_db_system_patch_history_entry(self, db_system_id, patch_history_entry_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22674,7 +22674,7 @@ def get_db_system_upgrade_history_entry(self, db_system_id, upgrade_history_entr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22772,7 +22772,7 @@ def get_dbnode_snapshot(self, dbnode_snapshot_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22877,7 +22877,7 @@ def get_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'excluded_fields' in kwargs: @@ -22990,7 +22990,7 @@ def get_exadata_infrastructure_ocpus(self, autonomous_exadata_infrastructure_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23094,7 +23094,7 @@ def get_exadata_infrastructure_un_allocated_resources(self, exadata_infrastructu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -23210,7 +23210,7 @@ def get_exadata_iorm_config(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23308,7 +23308,7 @@ def get_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23412,7 +23412,7 @@ def get_exadb_vm_cluster_update(self, exadb_vm_cluster_id, update_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23516,7 +23516,7 @@ def get_exadb_vm_cluster_update_history_entry(self, exadb_vm_cluster_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23614,7 +23614,7 @@ def get_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23712,7 +23712,7 @@ def get_execution_action(self, execution_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23810,7 +23810,7 @@ def get_execution_window(self, execution_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23904,7 +23904,7 @@ def get_external_backup_job(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24000,7 +24000,7 @@ def get_external_container_database(self, external_container_database_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24099,7 +24099,7 @@ def get_external_database_connector(self, external_database_connector_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24197,7 +24197,7 @@ def get_external_non_container_database(self, external_non_container_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24296,7 +24296,7 @@ def get_external_pluggable_database(self, external_pluggable_database_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24507,7 +24507,7 @@ def get_key_store(self, key_store_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24595,7 +24595,7 @@ def get_maintenance_run(self, maintenance_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24681,7 +24681,7 @@ def get_maintenance_run_history(self, maintenance_run_history_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24777,7 +24777,7 @@ def get_oneoff_patch(self, oneoff_patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24881,7 +24881,7 @@ def get_pdb_conversion_history_entry(self, database_id, pdb_conversion_history_e path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24971,7 +24971,7 @@ def get_pluggable_database(self, pluggable_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25067,7 +25067,7 @@ def get_pluggable_database_snapshot(self, pluggable_database_snapshot_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25165,7 +25165,7 @@ def get_scheduled_action(self, scheduled_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25263,7 +25263,7 @@ def get_scheduling_plan(self, scheduling_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25361,7 +25361,7 @@ def get_scheduling_policy(self, scheduling_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25465,7 +25465,7 @@ def get_scheduling_window(self, scheduling_policy_id, scheduling_window_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25563,7 +25563,7 @@ def get_vm_cluster(self, vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25668,7 +25668,7 @@ def get_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25764,7 +25764,7 @@ def get_vm_cluster_patch(self, vm_cluster_id, patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25858,7 +25858,7 @@ def get_vm_cluster_patch_history_entry(self, vm_cluster_id, patch_history_entry_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25960,7 +25960,7 @@ def get_vm_cluster_update(self, vm_cluster_id, update_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26064,7 +26064,7 @@ def get_vm_cluster_update_history_entry(self, vm_cluster_id, update_history_entr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26708,7 +26708,7 @@ def list_autonomous_container_database_dataguard_associations(self, autonomous_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -27475,7 +27475,7 @@ def list_autonomous_database_clones(self, compartment_id, autonomous_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -27619,7 +27619,7 @@ def list_autonomous_database_dataguard_associations(self, autonomous_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -27731,7 +27731,7 @@ def list_autonomous_database_peers(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -27845,7 +27845,7 @@ def list_autonomous_database_refreshable_clones(self, autonomous_database_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -29008,7 +29008,7 @@ def list_autonomous_vm_cluster_acd_resource_usage(self, autonomous_vm_cluster_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -29551,7 +29551,7 @@ def list_cloud_autonomous_vm_cluster_acd_resource_usage(self, cloud_autonomous_v path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -29987,7 +29987,7 @@ def list_cloud_vm_cluster_update_history_entries(self, cloud_vm_cluster_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'update_type' in kwargs: @@ -30115,7 +30115,7 @@ def list_cloud_vm_cluster_updates(self, cloud_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'update_type' in kwargs: @@ -30390,7 +30390,7 @@ def list_console_connections(self, db_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -30516,7 +30516,7 @@ def list_console_histories(self, db_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -30662,7 +30662,7 @@ def list_container_database_patches(self, autonomous_container_database_id, comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'autonomous_patch_type' in kwargs: @@ -30779,7 +30779,7 @@ def list_data_guard_associations(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31105,7 +31105,7 @@ def list_database_upgrade_history_entries(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'upgrade_action' in kwargs: @@ -31405,7 +31405,7 @@ def list_db_home_patch_history_entries(self, db_home_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31513,7 +31513,7 @@ def list_db_home_patches(self, db_home_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -32199,7 +32199,7 @@ def list_db_system_patch_history_entries(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -32307,7 +32307,7 @@ def list_db_system_patches(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -32677,7 +32677,7 @@ def list_db_system_upgrade_history_entries(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -32819,7 +32819,7 @@ def list_db_system_upgrades(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -33568,7 +33568,7 @@ def list_exadb_vm_cluster_update_history_entries(self, exadb_vm_cluster_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'update_type' in kwargs: @@ -33700,7 +33700,7 @@ def list_exadb_vm_cluster_updates(self, exadb_vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'update_type' in kwargs: @@ -35268,7 +35268,7 @@ def list_gi_version_minor_versions(self, version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'shape_family' in kwargs: @@ -36318,7 +36318,7 @@ def list_pdb_conversion_history_entries(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'pdb_conversion_action' in kwargs: @@ -36789,7 +36789,7 @@ def list_recommended_scheduled_actions(self, scheduling_policy_id, scheduling_po path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') plan_intent_allowed_values = ["EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"] @@ -36911,7 +36911,7 @@ def list_resource_pool_members(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -37533,7 +37533,7 @@ def list_scheduling_windows(self, scheduling_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -37697,7 +37697,7 @@ def list_system_version_minor_versions(self, major_version, compartment_id, gi_v path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -37987,7 +37987,7 @@ def list_vm_cluster_networks(self, exadata_infrastructure_id, compartment_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -38123,7 +38123,7 @@ def list_vm_cluster_patch_history_entries(self, vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -38231,7 +38231,7 @@ def list_vm_cluster_patches(self, vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -38355,7 +38355,7 @@ def list_vm_cluster_update_history_entries(self, vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'update_type' in kwargs: @@ -38497,7 +38497,7 @@ def list_vm_cluster_updates(self, vm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'update_type' in kwargs: @@ -38807,7 +38807,7 @@ def local_clone_pluggable_database(self, local_clone_pluggable_database_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -38922,7 +38922,7 @@ def migrate_autonomous_container_database_dataguard_association(self, autonomous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39043,7 +39043,7 @@ def migrate_data_guard_association_to_multi_data_guards(self, database_id, data_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39161,7 +39161,7 @@ def migrate_exadata_db_system_resource_model(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39281,7 +39281,7 @@ def migrate_vault_key(self, database_id, migrate_vault_key_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39401,7 +39401,7 @@ def modify_database_management(self, database_id, modify_database_management_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39521,7 +39521,7 @@ def modify_pluggable_database_management(self, pluggable_database_id, modify_plu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39641,7 +39641,7 @@ def mount_dbnode_snapshot(self, mount_dbnode_snapshot_details, dbnode_snapshot_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39761,7 +39761,7 @@ def move_execution_action_member(self, execution_action_id, move_execution_actio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39878,7 +39878,7 @@ def refresh_data_guard_health_status(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -39993,7 +39993,7 @@ def refresh_pluggable_database(self, pluggable_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40103,7 +40103,7 @@ def register_autonomous_database_data_safe(self, autonomous_database_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40219,7 +40219,7 @@ def register_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, register_cloud_vm_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40329,7 +40329,7 @@ def reinstate_autonomous_container_database_dataguard(self, autonomous_container path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40436,7 +40436,7 @@ def reinstate_autonomous_container_database_dataguard_association(self, autonomo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40553,7 +40553,7 @@ def reinstate_data_guard(self, database_id, reinstate_data_guard_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40667,7 +40667,7 @@ def reinstate_data_guard_association(self, database_id, data_guard_association_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40786,7 +40786,7 @@ def remote_clone_pluggable_database(self, remote_clone_pluggable_database_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -40906,7 +40906,7 @@ def remove_virtual_machine_from_cloud_vm_cluster(self, remove_virtual_machine_fr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41026,7 +41026,7 @@ def remove_virtual_machine_from_exadb_vm_cluster(self, remove_virtual_machine_fr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41146,7 +41146,7 @@ def remove_virtual_machine_from_vm_cluster(self, remove_virtual_machine_from_vm_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41266,7 +41266,7 @@ def reorder_execution_actions(self, execution_window_id, reorder_execution_actio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41386,7 +41386,7 @@ def reorder_scheduled_actions(self, reorder_scheduled_actions_details, schedulin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41513,7 +41513,7 @@ def resize_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41736,7 +41736,7 @@ def restart_autonomous_container_database(self, autonomous_container_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41842,7 +41842,7 @@ def restart_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -41951,7 +41951,7 @@ def restore_autonomous_database(self, autonomous_database_id, restore_autonomous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42057,7 +42057,7 @@ def restore_database(self, database_id, restore_database_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42177,7 +42177,7 @@ def rotate_autonomous_container_database_encryption_key(self, autonomous_contain path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42300,7 +42300,7 @@ def rotate_autonomous_database_encryption_key(self, autonomous_database_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42420,7 +42420,7 @@ def rotate_autonomous_vm_cluster_ords_certs(self, rotate_autonomous_vm_cluster_o path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42538,7 +42538,7 @@ def rotate_autonomous_vm_cluster_ssl_certs(self, rotate_autonomous_vm_cluster_ss path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42657,7 +42657,7 @@ def rotate_cloud_autonomous_vm_cluster_ords_certs(self, cloud_autonomous_vm_clus path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42776,7 +42776,7 @@ def rotate_cloud_autonomous_vm_cluster_ssl_certs(self, cloud_autonomous_vm_clust path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -42891,7 +42891,7 @@ def rotate_ords_certs(self, autonomous_exadata_infrastructure_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43004,7 +43004,7 @@ def rotate_pluggable_database_encryption_key(self, pluggable_database_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43117,7 +43117,7 @@ def rotate_ssl_certs(self, autonomous_exadata_infrastructure_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43232,7 +43232,7 @@ def rotate_vault_key(self, database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43333,7 +43333,7 @@ def saas_admin_user_status(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43446,7 +43446,7 @@ def scan_external_container_database_pluggable_databases(self, external_containe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -43570,7 +43570,7 @@ def set_db_key_version(self, database_id, set_key_version_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43692,7 +43692,7 @@ def set_pdb_key_version(self, pluggable_database_id, set_key_version_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43802,7 +43802,7 @@ def shrink_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -43908,7 +43908,7 @@ def start_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44021,7 +44021,7 @@ def start_pluggable_database(self, pluggable_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44133,7 +44133,7 @@ def stop_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44247,7 +44247,7 @@ def stop_pluggable_database(self, pluggable_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44370,7 +44370,7 @@ def switch_over_data_guard(self, database_id, switch_over_data_guard_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44482,7 +44482,7 @@ def switchover_autonomous_container_database_dataguard(self, autonomous_containe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44591,7 +44591,7 @@ def switchover_autonomous_container_database_dataguard_association(self, autonom path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44717,7 +44717,7 @@ def switchover_autonomous_database(self, autonomous_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -44840,7 +44840,7 @@ def switchover_data_guard_association(self, database_id, data_guard_association_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -44942,7 +44942,7 @@ def terminate_autonomous_container_database(self, autonomous_container_database_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45040,7 +45040,7 @@ def terminate_autonomous_exadata_infrastructure(self, autonomous_exadata_infrast path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45145,7 +45145,7 @@ def terminate_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45258,7 +45258,7 @@ def unmount_dbnode_snapshot(self, unmount_dbnode_snapshot_details, dbnode_snapsh path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45378,7 +45378,7 @@ def unregister_cloud_vm_cluster_pkcs(self, cloud_vm_cluster_id, unregister_cloud path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45484,7 +45484,7 @@ def update_autonomous_container_database(self, autonomous_container_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45599,7 +45599,7 @@ def update_autonomous_container_database_dataguard_association(self, autonomous_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45714,7 +45714,7 @@ def update_autonomous_database(self, autonomous_database_id, update_autonomous_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -45830,7 +45830,7 @@ def update_autonomous_database_backup(self, autonomous_database_backup_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46031,7 +46031,7 @@ def update_autonomous_database_software_image(self, autonomous_database_software path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46140,7 +46140,7 @@ def update_autonomous_database_wallet(self, autonomous_database_id, update_auton path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46244,7 +46244,7 @@ def update_autonomous_exadata_infrastructure(self, autonomous_exadata_infrastruc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46353,7 +46353,7 @@ def update_autonomous_vm_cluster(self, autonomous_vm_cluster_id, update_autonomo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46463,7 +46463,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46576,7 +46576,7 @@ def update_backup_destination(self, backup_destination_id, update_backup_destina path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46691,7 +46691,7 @@ def update_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46802,7 +46802,7 @@ def update_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -46912,7 +46912,7 @@ def update_cloud_vm_cluster(self, cloud_vm_cluster_id, update_cloud_vm_cluster_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47022,7 +47022,7 @@ def update_cloud_vm_cluster_iorm_config(self, cloud_vm_cluster_id, cloud_vm_clus path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47136,7 +47136,7 @@ def update_console_connection(self, db_node_id, console_connection_id, update_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47250,7 +47250,7 @@ def update_console_history(self, db_node_id, console_history_id, update_console_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47371,7 +47371,7 @@ def update_data_guard(self, database_id, update_data_guard_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47489,7 +47489,7 @@ def update_data_guard_association(self, database_id, data_guard_association_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47595,7 +47595,7 @@ def update_database(self, database_id, update_database_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47700,7 +47700,7 @@ def update_database_software_image(self, database_software_image_id, update_data path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47805,7 +47805,7 @@ def update_db_home(self, db_home_id, update_db_home_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -47914,7 +47914,7 @@ def update_db_node(self, db_node_id, update_db_node_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48032,7 +48032,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48143,7 +48143,7 @@ def update_exadata_infrastructure(self, exadata_infrastructure_id, update_exadat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48263,7 +48263,7 @@ def update_exadata_iorm_config(self, db_system_id, exadata_iorm_config_update_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48373,7 +48373,7 @@ def update_exadb_vm_cluster(self, exadb_vm_cluster_id, update_exadb_vm_cluster_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48483,7 +48483,7 @@ def update_exascale_db_storage_vault(self, exascale_db_storage_vault_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48593,7 +48593,7 @@ def update_execution_action(self, execution_action_id, update_execution_action_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48703,7 +48703,7 @@ def update_execution_window(self, execution_window_id, update_execution_window_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48816,7 +48816,7 @@ def update_external_container_database(self, external_container_database_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -48927,7 +48927,7 @@ def update_external_database_connector(self, external_database_connector_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49037,7 +49037,7 @@ def update_external_non_container_database(self, external_non_container_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49149,7 +49149,7 @@ def update_external_pluggable_database(self, external_pluggable_database_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49259,7 +49259,7 @@ def update_key_store(self, key_store_id, update_key_store_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49363,7 +49363,7 @@ def update_maintenance_run(self, maintenance_run_id, update_maintenance_run_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49472,7 +49472,7 @@ def update_oneoff_patch(self, oneoff_patch_id, update_oneoff_patch_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49578,7 +49578,7 @@ def update_pluggable_database(self, pluggable_database_id, update_pluggable_data path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49687,7 +49687,7 @@ def update_scheduled_action(self, scheduled_action_id, update_scheduled_action_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49797,7 +49797,7 @@ def update_scheduling_policy(self, scheduling_policy_id, update_scheduling_polic path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -49913,7 +49913,7 @@ def update_scheduling_window(self, scheduling_policy_id, scheduling_window_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -50023,7 +50023,7 @@ def update_vm_cluster(self, vm_cluster_id, update_vm_cluster_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -50140,7 +50140,7 @@ def update_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -50250,7 +50250,7 @@ def upgrade_database(self, database_id, upgrade_database_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -50368,7 +50368,7 @@ def upgrade_db_system(self, db_system_id, upgrade_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -50485,7 +50485,7 @@ def validate_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_netw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/database_management/db_management_client.py b/src/oci/database_management/db_management_client.py index 16d5d5636..71baf561c 100644 --- a/src/oci/database_management/db_management_client.py +++ b/src/oci/database_management/db_management_client.py @@ -191,7 +191,7 @@ def add_data_files(self, managed_database_id, tablespace_name, add_data_files_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def add_managed_database_to_managed_database_group(self, managed_database_group_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -438,7 +438,7 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -586,7 +586,7 @@ def change_database_parameters(self, managed_database_id, change_database_parame path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -707,7 +707,7 @@ def change_db_management_private_endpoint_compartment(self, db_management_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -829,7 +829,7 @@ def change_external_db_system_compartment(self, external_db_system_id, change_ex path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -951,7 +951,7 @@ def change_external_exadata_infrastructure_compartment(self, external_exadata_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1073,7 +1073,7 @@ def change_job_compartment(self, job_id, change_job_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1197,7 +1197,7 @@ def change_managed_database_group_compartment(self, managed_database_group_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1321,7 +1321,7 @@ def change_named_credential_compartment(self, named_credential_id, change_named_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1429,7 +1429,7 @@ def change_plan_retention(self, managed_database_id, change_plan_retention_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1531,7 +1531,7 @@ def change_space_budget(self, managed_database_id, change_space_budget_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1632,7 +1632,7 @@ def change_sql_plan_baselines_attributes(self, managed_database_id, change_sql_p path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1747,7 +1747,7 @@ def check_cloud_db_system_connector_connection_status(self, cloud_db_system_conn path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1867,7 +1867,7 @@ def check_external_db_system_connector_connection_status(self, external_db_syste path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1986,7 +1986,7 @@ def check_external_exadata_storage_connector(self, external_exadata_storage_conn path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2104,7 +2104,7 @@ def check_external_my_sql_database_connector_connection_status(self, external_my path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2209,7 +2209,7 @@ def configure_automatic_capture_filters(self, managed_database_id, configure_aut path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2312,7 +2312,7 @@ def configure_automatic_spm_evolve_advisor_task(self, managed_database_id, confi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3803,7 +3803,7 @@ def create_tablespace(self, managed_database_id, create_tablespace_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3913,7 +3913,7 @@ def delete_cloud_db_system(self, cloud_db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4018,7 +4018,7 @@ def delete_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4123,7 +4123,7 @@ def delete_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4228,7 +4228,7 @@ def delete_db_management_private_endpoint(self, db_management_private_endpoint_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4333,7 +4333,7 @@ def delete_external_db_system(self, external_db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4438,7 +4438,7 @@ def delete_external_db_system_connector(self, external_db_system_connector_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4543,7 +4543,7 @@ def delete_external_db_system_discovery(self, external_db_system_discovery_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4648,7 +4648,7 @@ def delete_external_exadata_infrastructure(self, external_exadata_infrastructure path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4753,7 +4753,7 @@ def delete_external_exadata_storage_connector(self, external_exadata_storage_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4856,7 +4856,7 @@ def delete_external_my_sql_database(self, external_my_sql_database_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4959,7 +4959,7 @@ def delete_external_my_sql_database_connector(self, external_my_sql_database_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5062,7 +5062,7 @@ def delete_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5168,7 +5168,7 @@ def delete_managed_database_group(self, managed_database_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5273,7 +5273,7 @@ def delete_named_credential(self, named_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5374,7 +5374,7 @@ def delete_preferred_credential(self, managed_database_id, credential_name, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5473,7 +5473,7 @@ def disable_automatic_initial_plan_capture(self, managed_database_id, disable_au path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5577,7 +5577,7 @@ def disable_automatic_spm_evolve_advisor_task(self, managed_database_id, disable path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5694,7 +5694,7 @@ def disable_autonomous_database_management_feature(self, autonomous_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5814,7 +5814,7 @@ def disable_cloud_db_system_database_management(self, cloud_db_system_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5932,7 +5932,7 @@ def disable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6052,7 +6052,7 @@ def disable_database_management_feature(self, database_id, disable_database_mana path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6174,7 +6174,7 @@ def disable_external_container_database_management_feature(self, external_contai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6294,7 +6294,7 @@ def disable_external_db_system_database_management(self, external_db_system_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6412,7 +6412,7 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6536,7 +6536,7 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6651,7 +6651,7 @@ def disable_external_my_sql_database_management(self, external_my_sql_database_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6771,7 +6771,7 @@ def disable_external_non_container_database_management_feature(self, external_no path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6893,7 +6893,7 @@ def disable_external_pluggable_database_management_feature(self, external_plugga path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7002,7 +7002,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7119,7 +7119,7 @@ def disable_pluggable_database_management_feature(self, pluggable_database_id, d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7227,7 +7227,7 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7453,7 +7453,7 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7566,7 +7566,7 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7678,7 +7678,7 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7791,7 +7791,7 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7908,7 +7908,7 @@ def enable_autonomous_database_management_feature(self, autonomous_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8031,7 +8031,7 @@ def enable_cloud_db_system_database_management(self, cloud_db_system_id, enable_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8154,7 +8154,7 @@ def enable_cloud_db_system_stack_monitoring(self, cloud_db_system_id, enable_clo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8276,7 +8276,7 @@ def enable_database_management_feature(self, database_id, enable_database_manage path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8398,7 +8398,7 @@ def enable_external_container_database_management_feature(self, external_contain path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8521,7 +8521,7 @@ def enable_external_db_system_database_management(self, external_db_system_id, e path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8644,7 +8644,7 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8771,7 +8771,7 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8891,7 +8891,7 @@ def enable_external_my_sql_database_management(self, external_my_sql_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9013,7 +9013,7 @@ def enable_external_non_container_database_management_feature(self, external_non path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9135,7 +9135,7 @@ def enable_external_pluggable_database_management_feature(self, external_pluggab path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9249,7 +9249,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9366,7 +9366,7 @@ def enable_pluggable_database_management_feature(self, pluggable_database_id, en path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9475,7 +9475,7 @@ def enable_sql_plan_baselines_usage(self, managed_database_id, enable_sql_plan_b path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9585,7 +9585,7 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9742,7 +9742,7 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'report_type' in kwargs: @@ -9924,7 +9924,7 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'report_format' in kwargs: @@ -10046,7 +10046,7 @@ def get_cloud_asm(self, cloud_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10150,7 +10150,7 @@ def get_cloud_asm_configuration(self, cloud_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10251,7 +10251,7 @@ def get_cloud_asm_instance(self, cloud_asm_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10351,7 +10351,7 @@ def get_cloud_cluster(self, cloud_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10451,7 +10451,7 @@ def get_cloud_cluster_instance(self, cloud_cluster_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10551,7 +10551,7 @@ def get_cloud_db_home(self, cloud_db_home_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10651,7 +10651,7 @@ def get_cloud_db_node(self, cloud_db_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10751,7 +10751,7 @@ def get_cloud_db_system(self, cloud_db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10851,7 +10851,7 @@ def get_cloud_db_system_connector(self, cloud_db_system_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10951,7 +10951,7 @@ def get_cloud_db_system_discovery(self, cloud_db_system_discovery_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11051,7 +11051,7 @@ def get_cloud_listener(self, cloud_listener_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11161,7 +11161,7 @@ def get_cluster_cache_metric(self, managed_database_id, start_time, end_time, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12063,7 +12063,7 @@ def get_database_ha_backup_details(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12288,7 +12288,7 @@ def get_dataguard_performance_metrics(self, managed_database_id, start_time, end path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12396,7 +12396,7 @@ def get_db_management_private_endpoint(self, db_management_private_endpoint_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12494,7 +12494,7 @@ def get_external_asm(self, external_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12598,7 +12598,7 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12699,7 +12699,7 @@ def get_external_asm_instance(self, external_asm_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12799,7 +12799,7 @@ def get_external_cluster(self, external_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12899,7 +12899,7 @@ def get_external_cluster_instance(self, external_cluster_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12999,7 +12999,7 @@ def get_external_db_home(self, external_db_home_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13099,7 +13099,7 @@ def get_external_db_node(self, external_db_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13199,7 +13199,7 @@ def get_external_db_system(self, external_db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13299,7 +13299,7 @@ def get_external_db_system_connector(self, external_db_system_connector_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13399,7 +13399,7 @@ def get_external_db_system_discovery(self, external_db_system_discovery_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13500,7 +13500,7 @@ def get_external_exadata_infrastructure(self, external_exadata_infrastructure_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13600,7 +13600,7 @@ def get_external_exadata_storage_connector(self, external_exadata_storage_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13700,7 +13700,7 @@ def get_external_exadata_storage_grid(self, external_exadata_storage_grid_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13800,7 +13800,7 @@ def get_external_exadata_storage_server(self, external_exadata_storage_server_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13900,7 +13900,7 @@ def get_external_listener(self, external_listener_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13998,7 +13998,7 @@ def get_external_my_sql_database(self, external_my_sql_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14096,7 +14096,7 @@ def get_external_my_sql_database_connector(self, external_my_sql_database_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14196,7 +14196,7 @@ def get_iorm_plan(self, external_exadata_storage_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14294,7 +14294,7 @@ def get_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14390,7 +14390,7 @@ def get_job_execution(self, job_execution_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14486,7 +14486,7 @@ def get_job_run(self, job_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14584,7 +14584,7 @@ def get_managed_database(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14682,7 +14682,7 @@ def get_managed_database_group(self, managed_database_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14780,7 +14780,7 @@ def get_named_credential(self, named_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14880,7 +14880,7 @@ def get_open_alert_history(self, external_exadata_storage_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14992,7 +14992,7 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15109,7 +15109,7 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15223,7 +15223,7 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15349,7 +15349,7 @@ def get_pdb_metrics(self, managed_database_id, start_time, end_time, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'compare_type' in kwargs: @@ -15492,7 +15492,7 @@ def get_peer_database_metrics(self, managed_database_id, start_time, end_time, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'compare_type' in kwargs: @@ -15612,7 +15612,7 @@ def get_preferred_credential(self, managed_database_id, credential_name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15718,7 +15718,7 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15825,7 +15825,7 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15934,7 +15934,7 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16033,7 +16033,7 @@ def get_top_sql_cpu_activity(self, external_exadata_storage_server_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16141,7 +16141,7 @@ def get_user(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16240,7 +16240,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16345,7 +16345,7 @@ def implement_optimizer_statistics_advisor_recommendations(self, managed_databas path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16472,7 +16472,7 @@ def list_asm_properties(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16621,7 +16621,7 @@ def list_associated_databases(self, db_management_private_endpoint_id, compartme path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -16809,7 +16809,7 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16985,7 +16985,7 @@ def list_awr_dbs(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17139,7 +17139,7 @@ def list_cloud_asm_disk_groups(self, cloud_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17439,7 +17439,7 @@ def list_cloud_asm_users(self, cloud_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -18955,7 +18955,7 @@ def list_cloud_listener_services(self, cloud_listener_id, managed_database_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -19264,7 +19264,7 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -19419,7 +19419,7 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -19579,7 +19579,7 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -19737,7 +19737,7 @@ def list_database_parameters(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'source' in kwargs: @@ -20065,7 +20065,7 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -20365,7 +20365,7 @@ def list_external_asm_users(self, external_asm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -22289,7 +22289,7 @@ def list_external_listener_services(self, external_listener_id, managed_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -23924,7 +23924,7 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -24064,7 +24064,7 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -24210,7 +24210,7 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'task_type' in kwargs: @@ -24388,7 +24388,7 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'task_type' in kwargs: @@ -24522,7 +24522,7 @@ def list_preferred_credentials(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24654,7 +24654,7 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -24812,7 +24812,7 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -24970,7 +24970,7 @@ def list_roles(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -25125,7 +25125,7 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -25341,7 +25341,7 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'origin' in kwargs: @@ -25520,7 +25520,7 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -25649,7 +25649,7 @@ def list_table_statistics(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25779,7 +25779,7 @@ def list_tablespaces(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -25934,7 +25934,7 @@ def list_users(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -26079,7 +26079,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -26222,7 +26222,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -26511,7 +26511,7 @@ def load_sql_plan_baselines_from_awr(self, managed_database_id, load_sql_plan_ba path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26616,7 +26616,7 @@ def load_sql_plan_baselines_from_cursor_cache(self, managed_database_id, load_sq path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26735,7 +26735,7 @@ def modify_autonomous_database_management_feature(self, autonomous_database_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26857,7 +26857,7 @@ def modify_database_management_feature(self, database_id, modify_database_manage path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26979,7 +26979,7 @@ def modify_external_container_database_management_feature(self, external_contain path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27101,7 +27101,7 @@ def modify_pluggable_database_management_feature(self, pluggable_database_id, mo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27215,7 +27215,7 @@ def patch_cloud_db_system_discovery(self, cloud_db_system_discovery_id, patch_cl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27327,7 +27327,7 @@ def patch_external_db_system_discovery(self, external_db_system_discovery_id, pa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27443,7 +27443,7 @@ def remove_data_file(self, managed_database_id, tablespace_name, remove_data_fil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27559,7 +27559,7 @@ def remove_managed_database_from_managed_database_group(self, managed_database_g path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27670,7 +27670,7 @@ def reset_database_parameters(self, managed_database_id, reset_database_paramete path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27787,7 +27787,7 @@ def resize_data_file(self, managed_database_id, tablespace_name, resize_data_fil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -27905,7 +27905,7 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28079,7 +28079,7 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'session_type' in kwargs: @@ -28286,7 +28286,7 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -28490,7 +28490,7 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -28723,7 +28723,7 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'value_changed' in kwargs: @@ -28925,7 +28925,7 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -29121,7 +29121,7 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -29319,7 +29319,7 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'session_type' in kwargs: @@ -29537,7 +29537,7 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -29747,7 +29747,7 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'session_type' in kwargs: @@ -29908,7 +29908,7 @@ def summarize_cloud_asm_metrics(self, cloud_asm_id, start_time, end_time, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30040,7 +30040,7 @@ def summarize_cloud_cluster_metrics(self, cloud_cluster_id, start_time, end_time path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30172,7 +30172,7 @@ def summarize_cloud_db_node_metrics(self, cloud_db_node_id, start_time, end_time path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30304,7 +30304,7 @@ def summarize_cloud_db_system_availability_metrics(self, cloud_db_system_id, sta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30436,7 +30436,7 @@ def summarize_cloud_listener_metrics(self, cloud_listener_id, start_time, end_ti path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30568,7 +30568,7 @@ def summarize_external_asm_metrics(self, external_asm_id, start_time, end_time, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30700,7 +30700,7 @@ def summarize_external_cluster_metrics(self, external_cluster_id, start_time, en path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30832,7 +30832,7 @@ def summarize_external_db_node_metrics(self, external_db_node_id, start_time, en path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -30964,7 +30964,7 @@ def summarize_external_db_system_availability_metrics(self, external_db_system_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31096,7 +31096,7 @@ def summarize_external_listener_metrics(self, external_listener_id, start_time, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31382,7 +31382,7 @@ def summarize_managed_database_availability_metrics(self, managed_database_id, s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31501,7 +31501,7 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31618,7 +31618,7 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -31731,7 +31731,7 @@ def test_named_credential(self, named_credential_id, test_named_credential_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -31839,7 +31839,7 @@ def test_preferred_credential(self, managed_database_id, credential_name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -31950,7 +31950,7 @@ def update_cloud_asm(self, cloud_asm_id, update_cloud_asm_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32060,7 +32060,7 @@ def update_cloud_asm_instance(self, cloud_asm_instance_id, update_cloud_asm_inst path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32172,7 +32172,7 @@ def update_cloud_cluster(self, cloud_cluster_id, update_cloud_cluster_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32282,7 +32282,7 @@ def update_cloud_cluster_instance(self, cloud_cluster_instance_id, update_cloud_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32392,7 +32392,7 @@ def update_cloud_db_home(self, cloud_db_home_id, update_cloud_db_home_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32504,7 +32504,7 @@ def update_cloud_db_node(self, cloud_db_node_id, update_cloud_db_node_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32614,7 +32614,7 @@ def update_cloud_db_system(self, cloud_db_system_id, update_cloud_db_system_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32726,7 +32726,7 @@ def update_cloud_db_system_connector(self, cloud_db_system_connector_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32836,7 +32836,7 @@ def update_cloud_db_system_discovery(self, cloud_db_system_discovery_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32948,7 +32948,7 @@ def update_cloud_listener(self, cloud_listener_id, update_cloud_listener_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33058,7 +33058,7 @@ def update_db_management_private_endpoint(self, db_management_private_endpoint_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33170,7 +33170,7 @@ def update_external_asm(self, external_asm_id, update_external_asm_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33280,7 +33280,7 @@ def update_external_asm_instance(self, external_asm_instance_id, update_external path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33392,7 +33392,7 @@ def update_external_cluster(self, external_cluster_id, update_external_cluster_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33502,7 +33502,7 @@ def update_external_cluster_instance(self, external_cluster_instance_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33612,7 +33612,7 @@ def update_external_db_home(self, external_db_home_id, update_external_db_home_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33724,7 +33724,7 @@ def update_external_db_node(self, external_db_node_id, update_external_db_node_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33834,7 +33834,7 @@ def update_external_db_system(self, external_db_system_id, update_external_db_sy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -33946,7 +33946,7 @@ def update_external_db_system_connector(self, external_db_system_connector_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34056,7 +34056,7 @@ def update_external_db_system_discovery(self, external_db_system_discovery_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34176,7 +34176,7 @@ def update_external_exadata_infrastructure(self, external_exadata_infrastructure path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34292,7 +34292,7 @@ def update_external_exadata_storage_connector(self, external_exadata_storage_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34404,7 +34404,7 @@ def update_external_exadata_storage_grid(self, external_exadata_storage_grid_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34516,7 +34516,7 @@ def update_external_exadata_storage_server(self, external_exadata_storage_server path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34628,7 +34628,7 @@ def update_external_listener(self, external_listener_id, update_external_listene path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34736,7 +34736,7 @@ def update_external_mysql_database(self, external_my_sql_database_id, update_ext path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34846,7 +34846,7 @@ def update_external_mysql_database_connector(self, external_my_sql_database_conn path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -34956,7 +34956,7 @@ def update_job(self, job_id, update_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -35068,7 +35068,7 @@ def update_managed_database(self, managed_database_id, update_managed_database_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -35180,7 +35180,7 @@ def update_managed_database_group(self, managed_database_group_id, update_manage path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -35292,7 +35292,7 @@ def update_named_credential(self, named_credential_id, update_named_credential_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -35408,7 +35408,7 @@ def update_preferred_credential(self, managed_database_id, credential_name, upda path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -35516,7 +35516,7 @@ def update_tablespace(self, managed_database_id, tablespace_name, update_tablesp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/database_management/diagnosability_client.py b/src/oci/database_management/diagnosability_client.py index 2dad6b5d7..3e1abe3e4 100644 --- a/src/oci/database_management/diagnosability_client.py +++ b/src/oci/database_management/diagnosability_client.py @@ -229,7 +229,7 @@ def list_alert_logs(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'level_filter' in kwargs: @@ -425,7 +425,7 @@ def list_attention_logs(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'urgency_filter' in kwargs: @@ -615,7 +615,7 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'level_filter' in kwargs: @@ -797,7 +797,7 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'urgency_filter' in kwargs: diff --git a/src/oci/database_management/managed_my_sql_databases_client.py b/src/oci/database_management/managed_my_sql_databases_client.py index 0dbd18045..0252e0a4d 100644 --- a/src/oci/database_management/managed_my_sql_databases_client.py +++ b/src/oci/database_management/managed_my_sql_databases_client.py @@ -194,7 +194,7 @@ def change_mysql_database_management_type(self, managed_my_sql_database_id, chan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def get_binary_log_information(self, managed_my_sql_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -393,7 +393,7 @@ def get_general_replication_information(self, managed_my_sql_database_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -623,7 +623,7 @@ def get_managed_my_sql_database(self, managed_my_sql_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -896,7 +896,7 @@ def get_my_sql_query_details(self, managed_my_sql_database_id, digest, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1025,7 +1025,7 @@ def list_high_availability_members(self, managed_my_sql_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1171,7 +1171,7 @@ def list_inbound_replications(self, managed_my_sql_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1316,7 +1316,7 @@ def list_managed_my_sql_database_configuration_data(self, managed_my_sql_databas path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1487,7 +1487,7 @@ def list_managed_my_sql_database_sql_data(self, managed_my_sql_database_id, star path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1786,7 +1786,7 @@ def list_my_sql_digest_errors(self, managed_my_sql_database_id, digest, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1933,7 +1933,7 @@ def list_outbound_replications(self, managed_my_sql_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2072,7 +2072,7 @@ def summarize_managed_my_sql_database_availability_metrics(self, managed_my_sql_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/database_management/perfhub_client.py b/src/oci/database_management/perfhub_client.py index 6b758cb32..87c364af4 100644 --- a/src/oci/database_management/perfhub_client.py +++ b/src/oci/database_management/perfhub_client.py @@ -183,7 +183,7 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/database_management/sql_tuning_client.py b/src/oci/database_management/sql_tuning_client.py index f382ae643..98a384803 100644 --- a/src/oci/database_management/sql_tuning_client.py +++ b/src/oci/database_management/sql_tuning_client.py @@ -187,7 +187,7 @@ def clone_sql_tuning_task(self, managed_database_id, clone_sql_tuning_task_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -300,7 +300,7 @@ def create_sql_tuning_set(self, managed_database_id, create_sql_tuning_set_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -419,7 +419,7 @@ def drop_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, drop_sql_t path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -534,7 +534,7 @@ def drop_sql_tuning_task(self, managed_database_id, drop_sql_tuning_task_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -650,7 +650,7 @@ def drop_sqls_in_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, dr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -769,7 +769,7 @@ def fetch_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, fetch_sql path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -895,7 +895,7 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1022,7 +1022,7 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') attribute_allowed_values = ["ORIGINAL", "ORIGINAL_WITH_ADJUSTED_COST", "USING_SQL_PROFILE", "USING_NEW_INDICES", "USING_PARALLEL_EXECUTION"] @@ -1167,7 +1167,7 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'search_period' in kwargs: @@ -1344,7 +1344,7 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'search_period' in kwargs: @@ -1529,7 +1529,7 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1697,7 +1697,7 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'status' in kwargs: @@ -1864,7 +1864,7 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2004,7 +2004,7 @@ def load_sql_tuning_set(self, managed_database_id, sql_tuning_set_id, load_sql_t path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2123,7 +2123,7 @@ def save_sql_tuning_set_as(self, managed_database_id, sql_tuning_set_id, save_sq path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2238,7 +2238,7 @@ def start_sql_tuning_task(self, managed_database_id, start_sql_tuning_task_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2355,7 +2355,7 @@ def validate_basic_filter(self, managed_database_id, sql_tuning_set_id, validate path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/database_migration/database_migration_client.py b/src/oci/database_migration/database_migration_client.py index d11d7181c..7516fc94d 100644 --- a/src/oci/database_migration/database_migration_client.py +++ b/src/oci/database_migration/database_migration_client.py @@ -189,7 +189,7 @@ def abort_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -302,7 +302,7 @@ def add_migration_objects(self, migration_id, add_migration_objects_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -421,7 +421,7 @@ def change_connection_compartment(self, connection_id, change_connection_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -542,7 +542,7 @@ def change_migration_compartment(self, migration_id, change_migration_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -663,7 +663,7 @@ def clone_migration(self, migration_id, clone_migration_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -778,7 +778,7 @@ def collect_traces(self, job_id, collect_traces_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -896,7 +896,7 @@ def connection_diagnostics(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1218,7 +1218,7 @@ def create_parameter_file_version(self, job_id, create_parameter_file_version_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1328,7 +1328,7 @@ def delete_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1434,7 +1434,7 @@ def delete_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1540,7 +1540,7 @@ def delete_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1650,7 +1650,7 @@ def delete_parameter_file_version(self, job_id, parameter_file_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1764,7 +1764,7 @@ def evaluate_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1866,7 +1866,7 @@ def get_advisor_report(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1965,7 +1965,7 @@ def get_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2064,7 +2064,7 @@ def get_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2163,7 +2163,7 @@ def get_job_output_content(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2270,7 +2270,7 @@ def get_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2375,7 +2375,7 @@ def get_parameter_file_version(self, parameter_file_name, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2474,7 +2474,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2812,7 +2812,7 @@ def list_excluded_objects(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2957,7 +2957,7 @@ def list_job_outputs(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3374,7 +3374,7 @@ def list_migration_objects(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3832,7 +3832,7 @@ def list_parameter_file_versions(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3976,7 +3976,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4119,7 +4119,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4415,7 +4415,7 @@ def make_current_parameter_file_version(self, job_id, parameter_file_name, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4528,7 +4528,7 @@ def remove_migration_objects(self, migration_id, remove_migration_objects_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4648,7 +4648,7 @@ def resume_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4752,7 +4752,7 @@ def retrieve_supported_phases(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4871,7 +4871,7 @@ def start_migration(self, migration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4991,7 +4991,7 @@ def suspend_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5104,7 +5104,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5215,7 +5215,7 @@ def update_job(self, job_id, update_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5328,7 +5328,7 @@ def update_migration(self, migration_id, update_migration_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/database_tools/database_tools_client.py b/src/oci/database_tools/database_tools_client.py index 67978fb92..145da940e 100644 --- a/src/oci/database_tools/database_tools_client.py +++ b/src/oci/database_tools/database_tools_client.py @@ -184,7 +184,7 @@ def add_database_tools_connection_lock(self, database_tools_connection_id, add_r path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def add_database_tools_identity_lock(self, database_tools_identity_id, add_resou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def add_database_tools_private_endpoint_lock(self, database_tools_private_endpoi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -526,7 +526,7 @@ def change_database_tools_connection_compartment(self, database_tools_connection path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -651,7 +651,7 @@ def change_database_tools_identity_compartment(self, database_tools_identity_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -776,7 +776,7 @@ def change_database_tools_private_endpoint_compartment(self, database_tools_priv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1194,7 +1194,7 @@ def delete_database_tools_connection(self, database_tools_connection_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1310,7 +1310,7 @@ def delete_database_tools_identity(self, database_tools_identity_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1426,7 +1426,7 @@ def delete_database_tools_private_endpoint(self, database_tools_private_endpoint path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1530,7 +1530,7 @@ def get_database_tools_connection(self, database_tools_connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1630,7 +1630,7 @@ def get_database_tools_endpoint_service(self, database_tools_endpoint_service_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1730,7 +1730,7 @@ def get_database_tools_identity(self, database_tools_identity_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1830,7 +1830,7 @@ def get_database_tools_private_endpoint(self, database_tools_private_endpoint_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1930,7 +1930,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2745,7 +2745,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2889,7 +2889,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3164,7 +3164,7 @@ def refresh_database_tools_identity_credential(self, database_tools_identity_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3273,7 +3273,7 @@ def remove_database_tools_connection_lock(self, database_tools_connection_id, re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3384,7 +3384,7 @@ def remove_database_tools_identity_lock(self, database_tools_identity_id, remove path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3495,7 +3495,7 @@ def remove_database_tools_private_endpoint_lock(self, database_tools_private_end path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3611,7 +3611,7 @@ def update_database_tools_connection(self, database_tools_connection_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3732,7 +3732,7 @@ def update_database_tools_identity(self, database_tools_identity_id, update_data path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3853,7 +3853,7 @@ def update_database_tools_private_endpoint(self, database_tools_private_endpoint path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3970,7 +3970,7 @@ def validate_database_tools_connection(self, database_tools_connection_id, valid path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4083,7 +4083,7 @@ def validate_database_tools_identity_credential(self, database_tools_identity_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dblm/db_life_cycle_management_client.py b/src/oci/dblm/db_life_cycle_management_client.py index ea71e5f16..23408ffa1 100644 --- a/src/oci/dblm/db_life_cycle_management_client.py +++ b/src/oci/dblm/db_life_cycle_management_client.py @@ -506,7 +506,7 @@ def get_vulnerability_scan(self, vulnerability_scan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -604,7 +604,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1730,7 +1730,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1872,7 +1872,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py b/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py index 35ec337d3..4caf5680c 100644 --- a/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py +++ b/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py @@ -227,7 +227,7 @@ def change_oracle_db_aws_identity_connector_compartment(self, oracle_db_aws_iden path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -349,7 +349,7 @@ def change_oracle_db_aws_key_compartment(self, oracle_db_aws_key_id, change_orac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -665,7 +665,7 @@ def delete_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -772,7 +772,7 @@ def delete_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -873,7 +873,7 @@ def get_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connector_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -989,7 +989,7 @@ def get_oracle_db_aws_key(self, oracle_db_aws_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1444,7 +1444,7 @@ def refresh_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1564,7 +1564,7 @@ def refresh_oracle_db_aws_key(self, oracle_db_aws_key_id, refresh_oracle_db_aws_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1680,7 +1680,7 @@ def update_oracle_db_aws_identity_connector(self, oracle_db_aws_identity_connect path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1794,7 +1794,7 @@ def update_oracle_db_aws_key(self, oracle_db_aws_key_id, update_oracle_db_aws_ke path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py b/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py index 39a1dde28..8581b9cc4 100644 --- a/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py +++ b/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py @@ -227,7 +227,7 @@ def change_oracle_db_gcp_identity_connector_compartment(self, oracle_db_gcp_iden path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -349,7 +349,7 @@ def change_oracle_db_gcp_key_ring_compartment(self, oracle_db_gcp_key_ring_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -665,7 +665,7 @@ def delete_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -772,7 +772,7 @@ def delete_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -873,7 +873,7 @@ def get_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connector_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -975,7 +975,7 @@ def get_oracle_db_gcp_key(self, oracle_db_gcp_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1091,7 +1091,7 @@ def get_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1709,7 +1709,7 @@ def refresh_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1829,7 +1829,7 @@ def refresh_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, refresh_orac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1945,7 +1945,7 @@ def update_oracle_db_gcp_identity_connector(self, oracle_db_gcp_identity_connect path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2059,7 +2059,7 @@ def update_oracle_db_gcp_key_ring(self, oracle_db_gcp_key_ring_id, update_oracle path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py b/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py index 03a7add3d..a5b8b8cb5 100644 --- a/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py +++ b/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py @@ -227,7 +227,7 @@ def change_multi_cloud_resource_discovery_compartment(self, multi_cloud_resource path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -445,7 +445,7 @@ def delete_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -560,7 +560,7 @@ def get_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -872,7 +872,7 @@ def update_multi_cloud_resource_discovery(self, multi_cloud_resource_discovery_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py b/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py index 5d5da4b4a..96ef5dca3 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py @@ -227,7 +227,7 @@ def change_oracle_db_azure_blob_container_compartment(self, oracle_db_azure_blob path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -445,7 +445,7 @@ def delete_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -560,7 +560,7 @@ def get_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -856,7 +856,7 @@ def update_oracle_db_azure_blob_container(self, oracle_db_azure_blob_container_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py b/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py index 0ea3ee558..e510edac4 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py @@ -227,7 +227,7 @@ def change_oracle_db_azure_blob_mount_compartment(self, oracle_db_azure_blob_mou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -445,7 +445,7 @@ def delete_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -560,7 +560,7 @@ def get_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -858,7 +858,7 @@ def update_oracle_db_azure_blob_mount(self, oracle_db_azure_blob_mount_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/oracle_db_azure_connector_client.py b/src/oci/dbmulticloud/oracle_db_azure_connector_client.py index 3ef170d29..4a405a63f 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_connector_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_connector_client.py @@ -227,7 +227,7 @@ def change_oracle_db_azure_connector_compartment(self, oracle_db_azure_connector path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -437,7 +437,7 @@ def delete_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -552,7 +552,7 @@ def get_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -843,7 +843,7 @@ def patch_oracle_db_azure_connector(self, oracle_db_azure_connector_id, patch_or path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -960,7 +960,7 @@ def refresh_oracle_db_azure_connector(self, oracle_db_azure_connector_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1074,7 +1074,7 @@ def update_oracle_db_azure_connector(self, oracle_db_azure_connector_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/oracle_db_azure_key_client.py b/src/oci/dbmulticloud/oracle_db_azure_key_client.py index 75025d4f2..1dfa00f62 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_key_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_key_client.py @@ -224,7 +224,7 @@ def get_oracle_db_azure_key(self, oracle_db_azure_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: diff --git a/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py b/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py index 92ebbb55f..69a17f52a 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py @@ -224,7 +224,7 @@ def cascading_delete_oracle_db_azure_vault_association(self, oracle_db_azure_vau path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -344,7 +344,7 @@ def change_oracle_db_azure_vault_association_compartment(self, oracle_db_azure_v path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -562,7 +562,7 @@ def delete_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -677,7 +677,7 @@ def get_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -975,7 +975,7 @@ def update_oracle_db_azure_vault_association(self, oracle_db_azure_vault_associa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/oracle_db_azure_vault_client.py b/src/oci/dbmulticloud/oracle_db_azure_vault_client.py index 3564f23a2..e7d600cbd 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_vault_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_vault_client.py @@ -227,7 +227,7 @@ def change_oracle_db_azure_vault_compartment(self, oracle_db_azure_vault_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -445,7 +445,7 @@ def delete_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -560,7 +560,7 @@ def get_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -865,7 +865,7 @@ def refresh_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -981,7 +981,7 @@ def update_oracle_db_azure_vault(self, oracle_db_azure_vault_id, update_oracle_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dbmulticloud/work_request_client.py b/src/oci/dbmulticloud/work_request_client.py index ff669cbba..f450e1983 100644 --- a/src/oci/dbmulticloud/work_request_client.py +++ b/src/oci/dbmulticloud/work_request_client.py @@ -214,7 +214,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -311,7 +311,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -429,7 +429,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -571,7 +571,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/delegate_access_control/delegate_access_control_client.py b/src/oci/delegate_access_control/delegate_access_control_client.py index 1f41abc04..e3de3c13f 100644 --- a/src/oci/delegate_access_control/delegate_access_control_client.py +++ b/src/oci/delegate_access_control/delegate_access_control_client.py @@ -195,7 +195,7 @@ def approve_delegated_resource_access_request(self, delegated_resource_access_re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -315,7 +315,7 @@ def change_delegation_control_compartment(self, delegation_control_id, change_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -435,7 +435,7 @@ def change_delegation_subscription_compartment(self, delegation_subscription_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -748,7 +748,7 @@ def delete_delegation_control(self, delegation_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -860,7 +860,7 @@ def delete_delegation_subscription(self, delegation_subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -957,7 +957,7 @@ def get_delegated_resource_access_request(self, delegated_resource_access_reques path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1059,7 +1059,7 @@ def get_delegated_resource_access_request_audit_log_report(self, delegated_resou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1164,7 +1164,7 @@ def get_delegation_control(self, delegation_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1262,7 +1262,7 @@ def get_delegation_subscription(self, delegation_subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1360,7 +1360,7 @@ def get_service_provider(self, service_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1458,7 +1458,7 @@ def get_service_provider_action(self, service_provider_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1576,7 +1576,7 @@ def list_delegated_resource_access_request_histories(self, delegated_resource_ac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1891,7 +1891,7 @@ def list_delegation_control_resources(self, delegation_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2509,7 +2509,7 @@ def list_service_provider_interactions(self, delegated_resource_access_request_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2814,7 +2814,7 @@ def reject_delegated_resource_access_request(self, delegated_resource_access_req path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2934,7 +2934,7 @@ def revoke_delegated_resource_access_request(self, delegated_resource_access_req path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3054,7 +3054,7 @@ def service_provider_interaction_request(self, delegated_resource_access_request path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3166,7 +3166,7 @@ def update_delegation_control(self, delegation_control_id, update_delegation_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3278,7 +3278,7 @@ def update_delegation_subscription(self, delegation_subscription_id, update_dele path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/delegate_access_control/work_request_client.py b/src/oci/delegate_access_control/work_request_client.py index 9a72aeca3..554be03ce 100644 --- a/src/oci/delegate_access_control/work_request_client.py +++ b/src/oci/delegate_access_control/work_request_client.py @@ -176,7 +176,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -294,7 +294,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -436,7 +436,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/demand_signal/occ_demand_signal_client.py b/src/oci/demand_signal/occ_demand_signal_client.py index d684e8498..c1ed54bfd 100644 --- a/src/oci/demand_signal/occ_demand_signal_client.py +++ b/src/oci/demand_signal/occ_demand_signal_client.py @@ -191,7 +191,7 @@ def change_occ_demand_signal_compartment(self, occ_demand_signal_id, change_occ_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -403,7 +403,7 @@ def delete_occ_demand_signal(self, occ_demand_signal_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -505,7 +505,7 @@ def get_occ_demand_signal(self, occ_demand_signal_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -791,7 +791,7 @@ def patch_occ_demand_signal(self, occ_demand_signal_id, patch_occ_demand_signal_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -907,7 +907,7 @@ def update_occ_demand_signal(self, occ_demand_signal_id, update_occ_demand_signa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/desktops/desktop_service_client.py b/src/oci/desktops/desktop_service_client.py index c46f74166..5d103f0c0 100644 --- a/src/oci/desktops/desktop_service_client.py +++ b/src/oci/desktops/desktop_service_client.py @@ -176,7 +176,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -284,7 +284,7 @@ def change_desktop_pool_compartment(self, desktop_pool_id, change_desktop_pool_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -483,7 +483,7 @@ def delete_desktop(self, desktop_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -588,7 +588,7 @@ def delete_desktop_pool(self, desktop_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -692,7 +692,7 @@ def get_desktop(self, desktop_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -790,7 +790,7 @@ def get_desktop_pool(self, desktop_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -888,7 +888,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1025,7 +1025,7 @@ def list_desktop_pool_desktops(self, compartment_id, desktop_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1191,7 +1191,7 @@ def list_desktop_pool_volumes(self, desktop_pool_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1645,7 +1645,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1787,7 +1787,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2072,7 +2072,7 @@ def start_desktop(self, desktop_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2179,7 +2179,7 @@ def start_desktop_pool(self, desktop_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2290,7 +2290,7 @@ def stop_desktop(self, desktop_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2404,7 +2404,7 @@ def stop_desktop_pool(self, desktop_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2510,7 +2510,7 @@ def update_desktop(self, desktop_id, update_desktop_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2616,7 +2616,7 @@ def update_desktop_pool(self, desktop_pool_id, update_desktop_pool_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/devops/devops_client.py b/src/oci/devops/devops_client.py index 534596908..9eed6370d 100644 --- a/src/oci/devops/devops_client.py +++ b/src/oci/devops/devops_client.py @@ -184,7 +184,7 @@ def approve_deployment(self, deployment_id, approve_deployment_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -298,7 +298,7 @@ def cancel_build_run(self, cancel_build_run_details, build_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -412,7 +412,7 @@ def cancel_deployment(self, deployment_id, cancel_deployment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def cancel_scheduled_cascading_project_deletion(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -633,7 +633,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1596,7 +1596,7 @@ def create_or_update_git_ref(self, repository_id, create_or_update_git_ref_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1710,7 +1710,7 @@ def create_or_update_protected_branch(self, repository_id, create_or_update_prot path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2019,7 +2019,7 @@ def create_pull_request_attachment(self, pull_request_id, content_disposition, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2037,7 +2037,7 @@ def create_pull_request_attachment(self, pull_request_id, content_disposition, c create_pull_request_attachment_body = kwargs.get("create_pull_request_attachment_body", missing) if create_pull_request_attachment_body is not missing and create_pull_request_attachment_body is not None: - if (not isinstance(create_pull_request_attachment_body, (six.binary_type, six.string_types)) and + if (not isinstance(create_pull_request_attachment_body, (bytes, str)) and not hasattr(create_pull_request_attachment_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -2149,7 +2149,7 @@ def create_pull_request_comment(self, pull_request_id, create_pull_request_comme path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2443,7 +2443,7 @@ def decline_pull_request(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2546,7 +2546,7 @@ def delete_build_pipeline(self, build_pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2647,7 +2647,7 @@ def delete_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2748,7 +2748,7 @@ def delete_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2849,7 +2849,7 @@ def delete_deploy_artifact(self, deploy_artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2950,7 +2950,7 @@ def delete_deploy_environment(self, deploy_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3051,7 +3051,7 @@ def delete_deploy_pipeline(self, deploy_pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3152,7 +3152,7 @@ def delete_deploy_stage(self, deploy_stage_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3260,7 +3260,7 @@ def delete_git_ref(self, repository_id, delete_git_ref_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3365,7 +3365,7 @@ def delete_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3470,7 +3470,7 @@ def delete_project_repository_settings(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3580,7 +3580,7 @@ def delete_protected_branch(self, repository_id, delete_protected_branch_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3685,7 +3685,7 @@ def delete_pull_request(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3790,7 +3790,7 @@ def delete_pull_request_attachment(self, pull_request_id, attachment_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3895,7 +3895,7 @@ def delete_pull_request_comment(self, pull_request_id, comment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4004,7 +4004,7 @@ def delete_ref(self, repository_id, ref_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4107,7 +4107,7 @@ def delete_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4212,7 +4212,7 @@ def delete_repository_settings(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4315,7 +4315,7 @@ def delete_trigger(self, trigger_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4412,7 +4412,7 @@ def get_build_pipeline(self, build_pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4510,7 +4510,7 @@ def get_build_pipeline_stage(self, build_pipeline_stage_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4608,7 +4608,7 @@ def get_build_run(self, build_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4710,7 +4710,7 @@ def get_commit(self, repository_id, commit_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4823,7 +4823,7 @@ def get_commit_diff(self, repository_id, target_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4931,7 +4931,7 @@ def get_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5029,7 +5029,7 @@ def get_deploy_artifact(self, deploy_artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5127,7 +5127,7 @@ def get_deploy_environment(self, deploy_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5225,7 +5225,7 @@ def get_deploy_pipeline(self, deploy_pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5323,7 +5323,7 @@ def get_deploy_stage(self, deploy_stage_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5421,7 +5421,7 @@ def get_deployment(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5533,7 +5533,7 @@ def get_file_diff(self, repository_id, file_path, base_version, target_version, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5648,7 +5648,7 @@ def get_mirror_record(self, repository_id, mirror_record_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5754,7 +5754,7 @@ def get_object(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5868,7 +5868,7 @@ def get_object_content(self, repository_id, sha, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5973,7 +5973,7 @@ def get_project(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6075,7 +6075,7 @@ def get_project_notification_preference(self, project_id, principal_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6173,7 +6173,7 @@ def get_project_repository_settings(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6271,7 +6271,7 @@ def get_pull_request(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6373,7 +6373,7 @@ def get_pull_request_attachment(self, pull_request_id, attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6475,7 +6475,7 @@ def get_pull_request_attachment_content(self, pull_request_id, attachment_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6573,7 +6573,7 @@ def get_pull_request_change_summary_metrics(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6675,7 +6675,7 @@ def get_pull_request_comment(self, pull_request_id, comment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6777,7 +6777,7 @@ def get_pull_request_notification_preference(self, pull_request_id, principal_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6879,7 +6879,7 @@ def get_ref(self, repository_id, ref_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6991,7 +6991,7 @@ def get_repo_file_diff(self, repository_id, base_version, target_version, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7114,7 +7114,7 @@ def get_repo_file_lines(self, repository_id, revision, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7228,7 +7228,7 @@ def get_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -7349,7 +7349,7 @@ def get_repository_archive_content(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7470,7 +7470,7 @@ def get_repository_file_lines(self, repository_id, file_path, revision, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7581,7 +7581,7 @@ def get_repository_notification_preference(self, repository_id, principal_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7679,7 +7679,7 @@ def get_repository_settings(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7777,7 +7777,7 @@ def get_trigger(self, trigger_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7875,7 +7875,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7981,7 +7981,7 @@ def like_pull_request_comment(self, pull_request_id, comment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8098,7 +8098,7 @@ def list_authors(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8567,7 +8567,7 @@ def list_build_run_snapshots(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8880,7 +8880,7 @@ def list_commit_diffs(self, repository_id, base_version, target_version, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9026,7 +9026,7 @@ def list_commits(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10145,7 +10145,7 @@ def list_fork_sync_statuses(self, repository_id, branch_name_query_param, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10265,7 +10265,7 @@ def list_mirror_records(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10416,7 +10416,7 @@ def list_paths(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10562,7 +10562,7 @@ def list_project_commit_analytics_authors(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10863,7 +10863,7 @@ def list_protected_branches(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11006,7 +11006,7 @@ def list_pull_request_activities(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'activity_type' in kwargs: @@ -11156,7 +11156,7 @@ def list_pull_request_attachments(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11294,7 +11294,7 @@ def list_pull_request_authors(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11444,7 +11444,7 @@ def list_pull_request_comments(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11578,7 +11578,7 @@ def list_pull_request_commits(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11696,7 +11696,7 @@ def list_pull_request_file_changes(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12037,7 +12037,7 @@ def list_refs(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'ref_type' in kwargs: @@ -12350,7 +12350,7 @@ def list_repository_commit_analytics_authors(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12653,7 +12653,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -12795,7 +12795,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13088,7 +13088,7 @@ def merge_pull_request(self, pull_request_id, merge_pull_request_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13195,7 +13195,7 @@ def mirror_repository(self, repository_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13299,7 +13299,7 @@ def patch_pull_request(self, pull_request_id, patch_pull_request_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13415,7 +13415,7 @@ def put_repository_ref(self, repository_id, ref_name, put_repository_ref_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13522,7 +13522,7 @@ def reopen_pull_request(self, pull_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13629,7 +13629,7 @@ def reopen_pull_request_comment(self, pull_request_id, comment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13736,7 +13736,7 @@ def resolve_pull_request_comment(self, pull_request_id, comment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13846,7 +13846,7 @@ def review_pull_request(self, pull_request_id, review_pull_request_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13957,7 +13957,7 @@ def schedule_cascading_project_deletion(self, project_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14067,7 +14067,7 @@ def summarize_project_repository_analytics(self, project_id, summarize_project_r path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -14186,7 +14186,7 @@ def summarize_repository_analytics(self, repository_id, summarize_repository_ana path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -14311,7 +14311,7 @@ def sync_repository(self, repository_id, sync_merge_strategy, sync_repository_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') sync_merge_strategy_allowed_values = ["FETCH_AND_MERGE", "DISCARD"] @@ -14527,7 +14527,7 @@ def unlike_pull_request_comment(self, pull_request_id, comment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14633,7 +14633,7 @@ def unsubscribe_pull_request(self, pull_request_id, token, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -14746,7 +14746,7 @@ def update_build_pipeline(self, build_pipeline_id, update_build_pipeline_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14854,7 +14854,7 @@ def update_build_pipeline_stage(self, build_pipeline_stage_id, update_build_pipe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14962,7 +14962,7 @@ def update_build_run(self, build_run_id, update_build_run_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15070,7 +15070,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15178,7 +15178,7 @@ def update_deploy_artifact(self, deploy_artifact_id, update_deploy_artifact_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15286,7 +15286,7 @@ def update_deploy_environment(self, deploy_environment_id, update_deploy_environ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15394,7 +15394,7 @@ def update_deploy_pipeline(self, deploy_pipeline_id, update_deploy_pipeline_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15502,7 +15502,7 @@ def update_deploy_stage(self, deploy_stage_id, update_deploy_stage_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15610,7 +15610,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15718,7 +15718,7 @@ def update_project(self, project_id, update_project_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15830,7 +15830,7 @@ def update_project_notification_preference(self, update_project_notification_pre path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15942,7 +15942,7 @@ def update_project_repository_settings(self, project_id, update_project_reposito path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16052,7 +16052,7 @@ def update_pull_request(self, pull_request_id, update_pull_request_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16164,7 +16164,7 @@ def update_pull_request_comment(self, pull_request_id, comment_id, update_pull_r path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16276,7 +16276,7 @@ def update_pull_request_notification_preference(self, update_pull_request_notifi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16384,7 +16384,7 @@ def update_repository(self, repository_id, update_repository_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16496,7 +16496,7 @@ def update_repository_notification_preference(self, update_repository_notificati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16608,7 +16608,7 @@ def update_repository_settings(self, repository_id, update_repository_settings_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16718,7 +16718,7 @@ def update_trigger(self, trigger_id, update_trigger_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16827,7 +16827,7 @@ def validate_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/dif/stack_client.py b/src/oci/dif/stack_client.py index 28f79ca58..9a9710af4 100644 --- a/src/oci/dif/stack_client.py +++ b/src/oci/dif/stack_client.py @@ -187,7 +187,7 @@ def add_service(self, stack_id, add_service_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -298,7 +298,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -413,7 +413,7 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -625,7 +625,7 @@ def delete_stack(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -745,7 +745,7 @@ def deploy_artifacts(self, stack_id, deploy_artifacts_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -851,7 +851,7 @@ def get_stack(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -954,7 +954,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1258,7 +1258,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1413,7 +1413,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1723,7 +1723,7 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/disaster_recovery/disaster_recovery_client.py b/src/oci/disaster_recovery/disaster_recovery_client.py index 382932bd5..336361de0 100644 --- a/src/oci/disaster_recovery/disaster_recovery_client.py +++ b/src/oci/disaster_recovery/disaster_recovery_client.py @@ -197,7 +197,7 @@ def associate_dr_protection_group(self, associate_dr_protection_group_details, d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -319,7 +319,7 @@ def cancel_dr_plan_execution(self, cancel_dr_plan_execution_details, dr_plan_exe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -430,7 +430,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -548,7 +548,7 @@ def change_dr_protection_group_compartment(self, change_dr_protection_group_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1051,7 +1051,7 @@ def delete_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1158,7 +1158,7 @@ def delete_dr_plan(self, dr_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1265,7 +1265,7 @@ def delete_dr_plan_execution(self, dr_plan_execution_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1372,7 +1372,7 @@ def delete_dr_protection_group(self, dr_protection_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1491,7 +1491,7 @@ def disassociate_dr_protection_group(self, disassociate_dr_protection_group_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1594,7 +1594,7 @@ def get_automatic_dr_configuration(self, automatic_dr_configuration_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1694,7 +1694,7 @@ def get_dr_plan(self, dr_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1794,7 +1794,7 @@ def get_dr_plan_execution(self, dr_plan_execution_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1894,7 +1894,7 @@ def get_dr_protection_group(self, dr_protection_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1994,7 +1994,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2113,7 +2113,7 @@ def ignore_dr_plan_execution(self, ignore_dr_plan_execution_details, dr_plan_exe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3038,7 +3038,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3198,7 +3198,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3519,7 +3519,7 @@ def pause_dr_plan_execution(self, pause_dr_plan_execution_details, dr_plan_execu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3641,7 +3641,7 @@ def refresh_dr_plan(self, refresh_dr_plan_details, dr_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3763,7 +3763,7 @@ def resume_dr_plan_execution(self, resume_dr_plan_execution_details, dr_plan_exe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3885,7 +3885,7 @@ def retry_dr_plan_execution(self, retry_dr_plan_execution_details, dr_plan_execu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3999,7 +3999,7 @@ def update_automatic_dr_configuration(self, update_automatic_dr_configuration_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4111,7 +4111,7 @@ def update_dr_plan(self, update_dr_plan_details, dr_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4223,7 +4223,7 @@ def update_dr_plan_execution(self, update_dr_plan_execution_details, dr_plan_exe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4335,7 +4335,7 @@ def update_dr_protection_group(self, update_dr_protection_group_details, dr_prot path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4455,7 +4455,7 @@ def update_dr_protection_group_role(self, update_dr_protection_group_role_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4577,7 +4577,7 @@ def verify_dr_plan(self, verify_dr_plan_details, dr_plan_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/distributed_database/distributed_autonomous_db_service_client.py b/src/oci/distributed_database/distributed_autonomous_db_service_client.py index 807bc7f80..05ed9a170 100644 --- a/src/oci/distributed_database/distributed_autonomous_db_service_client.py +++ b/src/oci/distributed_database/distributed_autonomous_db_service_client.py @@ -191,7 +191,7 @@ def add_distributed_autonomous_database_gds_control_node(self, distributed_auton path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -311,7 +311,7 @@ def change_distributed_autonomous_database_compartment(self, change_distributed_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -431,7 +431,7 @@ def change_distributed_autonomous_db_backup_config(self, distributed_autonomous_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -551,7 +551,7 @@ def configure_distributed_autonomous_database_gsms(self, configure_distributed_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -677,7 +677,7 @@ def configure_distributed_autonomous_database_sharding(self, distributed_autonom path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -897,7 +897,7 @@ def delete_distributed_autonomous_database(self, distributed_autonomous_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1015,7 +1015,7 @@ def download_distributed_autonomous_database_gsm_certificate_signing_request(sel path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1137,7 +1137,7 @@ def generate_distributed_autonomous_database_gsm_certificate_signing_request(sel path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1262,7 +1262,7 @@ def generate_distributed_autonomous_database_wallet(self, distributed_autonomous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1377,7 +1377,7 @@ def get_distributed_autonomous_database(self, distributed_autonomous_database_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1673,7 +1673,7 @@ def patch_distributed_autonomous_database(self, distributed_autonomous_database_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1790,7 +1790,7 @@ def rotate_distributed_autonomous_database_passwords(self, distributed_autonomou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1905,7 +1905,7 @@ def start_distributed_autonomous_database(self, distributed_autonomous_database_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2020,7 +2020,7 @@ def stop_distributed_autonomous_database(self, distributed_autonomous_database_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2130,7 +2130,7 @@ def update_distributed_autonomous_database(self, distributed_autonomous_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2253,7 +2253,7 @@ def upload_distributed_autonomous_database_signed_certificate_and_generate_walle path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2382,7 +2382,7 @@ def validate_distributed_autonomous_database_network(self, distributed_autonomou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py b/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py index b244212f4..dd7216b35 100644 --- a/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py +++ b/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py @@ -191,7 +191,7 @@ def change_distributed_database_private_endpoint_compartment(self, change_distri path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def delete_distributed_database_private_endpoint(self, distributed_database_priv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -513,7 +513,7 @@ def get_distributed_database_private_endpoint(self, distributed_database_private path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -778,7 +778,7 @@ def reinstate_proxy_instance(self, distributed_database_private_endpoint_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -896,7 +896,7 @@ def update_distributed_database_private_endpoint(self, distributed_database_priv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/distributed_database/distributed_db_service_client.py b/src/oci/distributed_database/distributed_db_service_client.py index 35cbe7792..efa02e986 100644 --- a/src/oci/distributed_database/distributed_db_service_client.py +++ b/src/oci/distributed_database/distributed_db_service_client.py @@ -191,7 +191,7 @@ def add_distributed_database_gds_control_node(self, distributed_database_id, add path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -311,7 +311,7 @@ def change_distributed_database_compartment(self, change_distributed_database_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -431,7 +431,7 @@ def change_distributed_db_backup_config(self, distributed_database_id, change_di path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -551,7 +551,7 @@ def configure_distributed_database_gsms(self, configure_distributed_database_gsm path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -677,7 +677,7 @@ def configure_distributed_database_sharding(self, distributed_database_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -897,7 +897,7 @@ def delete_distributed_database(self, distributed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1015,7 +1015,7 @@ def download_distributed_database_gsm_certificate_signing_request(self, distribu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1137,7 +1137,7 @@ def generate_distributed_database_gsm_certificate_signing_request(self, distribu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1262,7 +1262,7 @@ def generate_distributed_database_wallet(self, distributed_database_id, generate path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1377,7 +1377,7 @@ def get_distributed_database(self, distributed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1673,7 +1673,7 @@ def patch_distributed_database(self, distributed_database_id, patch_distributed_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1790,7 +1790,7 @@ def rotate_distributed_database_passwords(self, distributed_database_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1905,7 +1905,7 @@ def start_distributed_database(self, distributed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2020,7 +2020,7 @@ def stop_distributed_database(self, distributed_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2130,7 +2130,7 @@ def update_distributed_database(self, distributed_database_id, update_distribute path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2253,7 +2253,7 @@ def upload_distributed_database_signed_certificate_and_generate_wallet(self, dis path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2382,7 +2382,7 @@ def validate_distributed_database_network(self, distributed_database_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/distributed_database/distributed_db_work_request_service_client.py b/src/oci/distributed_database/distributed_db_work_request_service_client.py index 79f241212..d6a5459c6 100644 --- a/src/oci/distributed_database/distributed_db_work_request_service_client.py +++ b/src/oci/distributed_database/distributed_db_work_request_service_client.py @@ -172,7 +172,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -290,7 +290,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -432,7 +432,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/dns/dns_client.py b/src/oci/dns/dns_client.py index e211ecfc2..27357d591 100644 --- a/src/oci/dns/dns_client.py +++ b/src/oci/dns/dns_client.py @@ -206,7 +206,7 @@ def change_resolver_compartment(self, resolver_id, change_resolver_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -349,7 +349,7 @@ def change_steering_policy_compartment(self, steering_policy_id, change_steering path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -492,7 +492,7 @@ def change_tsig_key_compartment(self, tsig_key_id, change_tsig_key_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -637,7 +637,7 @@ def change_view_compartment(self, view_id, change_view_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -787,7 +787,7 @@ def change_zone_compartment(self, zone_id, change_zone_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -922,7 +922,7 @@ def create_resolver_endpoint(self, resolver_id, create_resolver_endpoint_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -1686,7 +1686,7 @@ def create_zone_from_zone_file(self, compartment_id, create_zone_from_zone_file_ create_zone_from_zone_file_details = kwargs.get("create_zone_from_zone_file_details", missing) if create_zone_from_zone_file_details is not missing and create_zone_from_zone_file_details is not None: - if (not isinstance(create_zone_from_zone_file_details, (six.binary_type, six.string_types)) and + if (not isinstance(create_zone_from_zone_file_details, (bytes, str)) and not hasattr(create_zone_from_zone_file_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1829,7 +1829,7 @@ def delete_domain_records(self, zone_name_or_id, domain, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -1975,7 +1975,7 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -2130,7 +2130,7 @@ def delete_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -2272,7 +2272,7 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -2407,7 +2407,7 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -2541,7 +2541,7 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -2680,7 +2680,7 @@ def delete_view(self, view_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -2828,7 +2828,7 @@ def delete_zone(self, zone_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3011,7 +3011,7 @@ def get_domain_records(self, zone_name_or_id, domain, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3172,7 +3172,7 @@ def get_resolver(self, resolver_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3315,7 +3315,7 @@ def get_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3484,7 +3484,7 @@ def get_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3625,7 +3625,7 @@ def get_steering_policy(self, steering_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3761,7 +3761,7 @@ def get_steering_policy_attachment(self, steering_policy_attachment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -3897,7 +3897,7 @@ def get_tsig_key(self, tsig_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -4037,7 +4037,7 @@ def get_view(self, view_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -4186,7 +4186,7 @@ def get_zone(self, zone_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -4328,7 +4328,7 @@ def get_zone_content(self, zone_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -4523,7 +4523,7 @@ def get_zone_records(self, zone_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4702,7 +4702,7 @@ def list_resolver_endpoints(self, resolver_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -6173,7 +6173,7 @@ def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -6339,7 +6339,7 @@ def patch_rr_set(self, zone_name_or_id, domain, rtype, patch_rr_set_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -6499,7 +6499,7 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -6664,7 +6664,7 @@ def promote_zone_dnssec_key_version(self, zone_id, promote_zone_dnssec_key_versi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -6822,7 +6822,7 @@ def stage_zone_dnssec_key_version(self, zone_id, stage_zone_dnssec_key_version_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -6984,7 +6984,7 @@ def update_domain_records(self, zone_name_or_id, domain, update_domain_records_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -7129,7 +7129,7 @@ def update_resolver(self, resolver_id, update_resolver_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -7276,7 +7276,7 @@ def update_resolver_endpoint(self, resolver_id, resolver_endpoint_name, update_r path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -7440,7 +7440,7 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -7585,7 +7585,7 @@ def update_steering_policy(self, steering_policy_id, update_steering_policy_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -7728,7 +7728,7 @@ def update_steering_policy_attachment(self, steering_policy_attachment_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -7871,7 +7871,7 @@ def update_tsig_key(self, tsig_key_id, update_tsig_key_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -8014,7 +8014,7 @@ def update_view(self, view_id, update_view_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -8174,7 +8174,7 @@ def update_zone(self, zone_name_or_id, update_zone_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -8335,7 +8335,7 @@ def update_zone_records(self, zone_name_or_id, update_zone_records_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: diff --git a/src/oci/em_warehouse/em_warehouse_client.py b/src/oci/em_warehouse/em_warehouse_client.py index 15ba58eeb..0b9f66b07 100644 --- a/src/oci/em_warehouse/em_warehouse_client.py +++ b/src/oci/em_warehouse/em_warehouse_client.py @@ -180,7 +180,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -294,7 +294,7 @@ def change_em_warehouse_compartment(self, em_warehouse_id, change_em_warehouse_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -495,7 +495,7 @@ def delete_em_warehouse(self, em_warehouse_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -590,7 +590,7 @@ def get_em_warehouse(self, em_warehouse_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -686,7 +686,7 @@ def get_em_warehouse_resource_usage(self, em_warehouse_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -782,7 +782,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1065,7 +1065,7 @@ def list_etl_runs(self, em_warehouse_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1207,7 +1207,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1347,7 +1347,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1632,7 +1632,7 @@ def update_em_warehouse(self, em_warehouse_id, update_em_warehouse_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/email/email_client.py b/src/oci/email/email_client.py index 3c1976282..902b5b60a 100644 --- a/src/oci/email/email_client.py +++ b/src/oci/email/email_client.py @@ -187,7 +187,7 @@ def add_email_domain_lock(self, email_domain_id, add_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -297,7 +297,7 @@ def add_email_ip_pool_lock(self, email_ip_pool_id, add_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -415,7 +415,7 @@ def add_email_outbound_ip(self, add_email_outbound_ip_details, email_ip_pool_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -525,7 +525,7 @@ def add_return_path_lock(self, email_return_path_id, add_lock_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -633,7 +633,7 @@ def add_sender_lock(self, sender_id, add_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -762,7 +762,7 @@ def change_email_domain_compartment(self, email_domain_id, change_email_domain_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -891,7 +891,7 @@ def change_email_ip_pool_compartment(self, email_ip_pool_id, change_email_ip_poo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1010,7 +1010,7 @@ def change_sender_compartment(self, sender_id, change_sender_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1690,7 +1690,7 @@ def delete_dkim(self, dkim_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1797,7 +1797,7 @@ def delete_email_domain(self, email_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1911,7 +1911,7 @@ def delete_email_ip_pool(self, email_ip_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2025,7 +2025,7 @@ def delete_email_return_path(self, email_return_path_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2138,7 +2138,7 @@ def delete_sender(self, sender_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2241,7 +2241,7 @@ def delete_suppression(self, suppression_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2337,7 +2337,7 @@ def get_dkim(self, dkim_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2526,7 +2526,7 @@ def get_email_domain(self, email_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2624,7 +2624,7 @@ def get_email_ip_pool(self, email_ip_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2722,7 +2722,7 @@ def get_email_return_path(self, email_return_path_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2818,7 +2818,7 @@ def get_sender(self, sender_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2915,7 +2915,7 @@ def get_suppression(self, suppression_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3011,7 +3011,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4315,7 +4315,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4435,7 +4435,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4664,7 +4664,7 @@ def remove_email_domain_lock(self, email_domain_id, remove_lock_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4774,7 +4774,7 @@ def remove_email_ip_pool_lock(self, email_ip_pool_id, remove_lock_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4892,7 +4892,7 @@ def remove_email_outbound_ip(self, remove_email_outbound_ip_details, email_ip_po path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5002,7 +5002,7 @@ def remove_return_path_lock(self, email_return_path_id, remove_lock_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5110,7 +5110,7 @@ def remove_sender_lock(self, sender_id, remove_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5220,7 +5220,7 @@ def update_dkim(self, dkim_id, update_dkim_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5332,7 +5332,7 @@ def update_email_domain(self, email_domain_id, update_email_domain_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5451,7 +5451,7 @@ def update_email_ip_pool(self, email_ip_pool_id, update_email_ip_pool_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5570,7 +5570,7 @@ def update_email_return_path(self, email_return_path_id, update_email_return_pat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5692,7 +5692,7 @@ def update_sender(self, sender_id, update_sender_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/email_data_plane/email_dp_client.py b/src/oci/email_data_plane/email_dp_client.py index 2130b24d0..725090657 100644 --- a/src/oci/email_data_plane/email_dp_client.py +++ b/src/oci/email_data_plane/email_dp_client.py @@ -301,7 +301,7 @@ def submit_raw_email(self, content_type, compartment_id, sender, recipients, raw raw_message = kwargs.get("raw_message", missing) if raw_message is not missing and raw_message is not None: - if (not isinstance(raw_message, (six.binary_type, six.string_types)) and + if (not isinstance(raw_message, (bytes, str)) and not hasattr(raw_message, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') diff --git a/src/oci/encryption/internal/streaming.py b/src/oci/encryption/internal/streaming.py index 52d769e76..7f5503407 100644 --- a/src/oci/encryption/internal/streaming.py +++ b/src/oci/encryption/internal/streaming.py @@ -70,12 +70,12 @@ def _validate_encryption_context(encryption_context): for key, value in six.iteritems(encryption_context): # keys and values must be str and not bytes # in python 2 'bytes' is just an alias for 'str' so it is okay - if (str != bytes and isinstance(key, bytes)) or not isinstance(key, six.string_types): + if (str != bytes and isinstance(key, bytes)) or not isinstance(key, str): invalid_keys.append(key) elif key.startswith("oci-"): invalid_prefix_keys.append(key) - if (str != bytes and isinstance(value, bytes)) or not isinstance(value, six.string_types): + if (str != bytes and isinstance(value, bytes)) or not isinstance(value, str): invalid_values.append(value) if invalid_keys or invalid_values: diff --git a/src/oci/encryption/internal/utils.py b/src/oci/encryption/internal/utils.py index 2cd97b155..e7da0692c 100644 --- a/src/oci/encryption/internal/utils.py +++ b/src/oci/encryption/internal/utils.py @@ -11,7 +11,7 @@ def convert_to_bytes(data): - if isinstance(data, six.string_types) and not isinstance(data, bytes): + if isinstance(data, str) and not isinstance(data, bytes): return data.encode(DEFAULT_ENCODING) return data @@ -30,7 +30,7 @@ def convert_bytes_to_base64_encoded_string(data): def convert_base64_encoded_string_to_bytes(data): - if not isinstance(data, six.string_types) or isinstance(data, bytes): + if not isinstance(data, str) or isinstance(data, bytes): raise TypeError("Cannot convert non string like object") return base64.b64decode(data) diff --git a/src/oci/events/events_client.py b/src/oci/events/events_client.py index 2db309ba0..cf0077fc0 100644 --- a/src/oci/events/events_client.py +++ b/src/oci/events/events_client.py @@ -195,7 +195,7 @@ def change_rule_compartment(self, rule_id, change_rule_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -400,7 +400,7 @@ def delete_rule(self, rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -498,7 +498,7 @@ def get_rule(self, rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -776,7 +776,7 @@ def update_rule(self, rule_id, update_rule_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/file_storage/file_storage_client.py b/src/oci/file_storage/file_storage_client.py index 10cf20b7c..0a4cfcd8b 100644 --- a/src/oci/file_storage/file_storage_client.py +++ b/src/oci/file_storage/file_storage_client.py @@ -188,7 +188,7 @@ def add_export_lock(self, export_id, add_export_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -301,7 +301,7 @@ def add_file_system_lock(self, file_system_id, add_file_system_lock_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -414,7 +414,7 @@ def add_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, add path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -527,7 +527,7 @@ def add_mount_target_lock(self, mount_target_id, add_mount_target_lock_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -640,7 +640,7 @@ def add_outbound_connector_lock(self, outbound_connector_id, add_outbound_connec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -753,7 +753,7 @@ def add_replication_lock(self, replication_id, add_replication_lock_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -866,7 +866,7 @@ def add_snapshot_lock(self, snapshot_id, add_snapshot_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -976,7 +976,7 @@ def cancel_downgrade_shape_mount_target(self, mount_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1093,7 +1093,7 @@ def change_file_system_compartment(self, file_system_id, change_file_system_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1217,7 +1217,7 @@ def change_filesystem_snapshot_policy_compartment(self, filesystem_snapshot_poli path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1341,7 +1341,7 @@ def change_mount_target_compartment(self, mount_target_id, change_mount_target_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1467,7 +1467,7 @@ def change_outbound_connector_compartment(self, outbound_connector_id, change_ou path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1592,7 +1592,7 @@ def change_replication_compartment(self, replication_id, change_replication_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2311,7 +2311,7 @@ def create_quota_rule(self, create_quota_rule_details, file_system_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2653,7 +2653,7 @@ def delete_export(self, export_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2777,7 +2777,7 @@ def delete_file_system(self, file_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2895,7 +2895,7 @@ def delete_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3013,7 +3013,7 @@ def delete_mount_target(self, mount_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3130,7 +3130,7 @@ def delete_outbound_connector(self, outbound_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3247,7 +3247,7 @@ def delete_quota_rule(self, file_system_id, quota_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3366,7 +3366,7 @@ def delete_replication(self, replication_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'delete_mode' in kwargs: @@ -3494,7 +3494,7 @@ def delete_replication_target(self, replication_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3611,7 +3611,7 @@ def delete_snapshot(self, snapshot_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3724,7 +3724,7 @@ def detach_clone(self, file_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3834,7 +3834,7 @@ def estimate_replication(self, file_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3941,7 +3941,7 @@ def get_export(self, export_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4040,7 +4040,7 @@ def get_export_set(self, export_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4139,7 +4139,7 @@ def get_file_system(self, file_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4238,7 +4238,7 @@ def get_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4337,7 +4337,7 @@ def get_mount_target(self, mount_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4436,7 +4436,7 @@ def get_outbound_connector(self, outbound_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4547,7 +4547,7 @@ def get_quota_rule(self, file_system_id, quota_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4647,7 +4647,7 @@ def get_replication(self, replication_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4746,7 +4746,7 @@ def get_replication_target(self, replication_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4845,7 +4845,7 @@ def get_snapshot(self, snapshot_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6164,7 +6164,7 @@ def list_quota_rules(self, file_system_id, principal_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') principal_type_allowed_values = ["FILE_SYSTEM_LEVEL", "DEFAULT_GROUP", "DEFAULT_USER", "INDIVIDUAL_GROUP", "INDIVIDUAL_USER"] @@ -6869,7 +6869,7 @@ def pause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6987,7 +6987,7 @@ def remove_export_lock(self, export_id, remove_export_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7100,7 +7100,7 @@ def remove_file_system_lock(self, file_system_id, remove_file_system_lock_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7213,7 +7213,7 @@ def remove_filesystem_snapshot_policy_lock(self, filesystem_snapshot_policy_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7326,7 +7326,7 @@ def remove_mount_target_lock(self, mount_target_id, remove_mount_target_lock_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7439,7 +7439,7 @@ def remove_outbound_connector_lock(self, outbound_connector_id, remove_outbound_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7552,7 +7552,7 @@ def remove_replication_lock(self, replication_id, remove_replication_lock_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7665,7 +7665,7 @@ def remove_snapshot_lock(self, snapshot_id, remove_snapshot_lock_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7778,7 +7778,7 @@ def schedule_downgrade_shape_mount_target(self, mount_target_id, schedule_downgr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7901,7 +7901,7 @@ def toggle_quota_rules(self, file_system_id, toggle_quota_rules_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8019,7 +8019,7 @@ def unpause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8141,7 +8141,7 @@ def update_export(self, export_id, update_export_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8261,7 +8261,7 @@ def update_export_set(self, export_set_id, update_export_set_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8379,7 +8379,7 @@ def update_file_system(self, file_system_id, update_file_system_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8503,7 +8503,7 @@ def update_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8627,7 +8627,7 @@ def update_mount_target(self, mount_target_id, update_mount_target_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8751,7 +8751,7 @@ def update_outbound_connector(self, outbound_connector_id, update_outbound_conne path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8875,7 +8875,7 @@ def update_quota_rule(self, update_quota_rule_details, file_system_id, quota_rul path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8992,7 +8992,7 @@ def update_replication(self, replication_id, update_replication_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9116,7 +9116,7 @@ def update_snapshot(self, snapshot_id, update_snapshot_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9236,7 +9236,7 @@ def upgrade_shape_mount_target(self, mount_target_id, upgrade_shape_mount_target path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py b/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py index 5f328664c..2230b05b8 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py @@ -194,7 +194,7 @@ def change_platform_configuration_compartment(self, platform_configuration_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -317,7 +317,7 @@ def change_property_compartment(self, property_id, change_property_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -819,7 +819,7 @@ def delete_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -924,7 +924,7 @@ def delete_onboarding(self, onboarding_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1029,7 +1029,7 @@ def delete_platform_configuration(self, platform_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1134,7 +1134,7 @@ def delete_property(self, property_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1250,7 +1250,7 @@ def enable_latest_policy(self, onboarding_id, enable_latest_policy_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1351,7 +1351,7 @@ def get_compliance_policy(self, compliance_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1449,7 +1449,7 @@ def get_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1547,7 +1547,7 @@ def get_onboarding(self, onboarding_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1645,7 +1645,7 @@ def get_platform_configuration(self, platform_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1743,7 +1743,7 @@ def get_property(self, property_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2868,7 +2868,7 @@ def manage_settings(self, onboarding_id, manage_settings_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2980,7 +2980,7 @@ def update_compliance_policy_rule(self, compliance_policy_rule_id, update_compli path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3090,7 +3090,7 @@ def update_onboarding(self, onboarding_id, update_onboarding_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3200,7 +3200,7 @@ def update_platform_configuration(self, platform_configuration_id, update_platfo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3310,7 +3310,7 @@ def update_property(self, property_id, update_property_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py b/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py index 52478a193..b7cc0e5c4 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py @@ -196,7 +196,7 @@ def change_catalog_item_compartment(self, catalog_item_id, change_catalog_item_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -321,7 +321,7 @@ def clone_catalog_item(self, catalog_item_id, clone_catalog_item_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -445,7 +445,7 @@ def configure_catalog_item(self, catalog_item_id, configure_catalog_item_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -656,7 +656,7 @@ def delete_catalog_item(self, catalog_item_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -755,7 +755,7 @@ def get_catalog_item(self, catalog_item_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -855,7 +855,7 @@ def get_catalog_item_variables_definition(self, catalog_item_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1164,7 +1164,7 @@ def update_catalog_item(self, catalog_item_id, update_catalog_item_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_client.py b/src/oci/fleet_apps_management/fleet_apps_management_client.py index 0d771edb3..7aae17cc8 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_client.py @@ -194,7 +194,7 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -405,7 +405,7 @@ def confirm_targets(self, confirm_targets_details, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -614,7 +614,7 @@ def create_fleet_credential(self, create_fleet_credential_details, fleet_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -727,7 +727,7 @@ def create_fleet_property(self, create_fleet_property_details, fleet_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -840,7 +840,7 @@ def create_fleet_resource(self, create_fleet_resource_details, fleet_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -950,7 +950,7 @@ def delete_fleet(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1059,7 +1059,7 @@ def delete_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1168,7 +1168,7 @@ def delete_fleet_property(self, fleet_property_id, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1277,7 +1277,7 @@ def delete_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1385,7 +1385,7 @@ def generate_compliance_report(self, generate_compliance_report_details, fleet_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1485,7 +1485,7 @@ def get_compliance(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1587,7 +1587,7 @@ def get_compliance_report(self, fleet_id, compliance_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1685,7 +1685,7 @@ def get_fleet(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1787,7 +1787,7 @@ def get_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1889,7 +1889,7 @@ def get_fleet_property(self, fleet_property_id, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1991,7 +1991,7 @@ def get_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2279,7 +2279,7 @@ def list_fleet_credentials(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -2458,7 +2458,7 @@ def list_fleet_products(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2618,7 +2618,7 @@ def list_fleet_properties(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -2788,7 +2788,7 @@ def list_fleet_resources(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -2963,7 +2963,7 @@ def list_fleet_targets(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3494,7 +3494,7 @@ def list_targets(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3629,7 +3629,7 @@ def request_resource_validation(self, request_resource_validation_details, fleet path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3740,7 +3740,7 @@ def request_target_discovery(self, request_target_discovery_details, fleet_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3851,7 +3851,7 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3967,7 +3967,7 @@ def update_fleet_credential(self, fleet_credential_id, fleet_id, update_fleet_cr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4081,7 +4081,7 @@ def update_fleet_property(self, fleet_property_id, fleet_id, update_fleet_proper path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4197,7 +4197,7 @@ def update_fleet_resource(self, fleet_resource_id, fleet_id, update_fleet_resour path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py b/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py index 8a68bc614..d9f91f398 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py @@ -278,7 +278,7 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -375,7 +375,7 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -648,7 +648,7 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py b/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py index 0be58f56d..42a79947f 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py @@ -194,7 +194,7 @@ def change_patch_compartment(self, patch_id, change_patch_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -499,7 +499,7 @@ def delete_patch(self, patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -604,7 +604,7 @@ def delete_scheduler_definition(self, scheduler_definition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -709,7 +709,7 @@ def delete_scheduler_job(self, scheduler_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -925,7 +925,7 @@ def get_execution(self, scheduler_job_id, job_activity_id, resource_id, executio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1031,7 +1031,7 @@ def get_job_activity(self, scheduler_job_id, job_activity_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1136,7 +1136,7 @@ def get_patch(self, patch_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1234,7 +1234,7 @@ def get_scheduler_definition(self, scheduler_definition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1332,7 +1332,7 @@ def get_scheduler_job(self, scheduler_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1641,7 +1641,7 @@ def list_executions(self, scheduler_job_id, job_activity_id, resource_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2643,7 +2643,7 @@ def list_resources(self, scheduler_job_id, job_activity_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2793,7 +2793,7 @@ def list_scheduled_fleets(self, scheduler_definition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3534,7 +3534,7 @@ def list_steps(self, scheduler_job_id, job_activity_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3994,7 +3994,7 @@ def manage_job_execution(self, manage_job_execution_details, scheduler_job_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4614,7 +4614,7 @@ def update_patch(self, patch_id, update_patch_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4724,7 +4724,7 @@ def update_scheduler_definition(self, scheduler_definition_id, update_scheduler_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4834,7 +4834,7 @@ def update_scheduler_job(self, scheduler_job_id, update_scheduler_job_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py b/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py index f76db93d7..a6ad03307 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py @@ -188,7 +188,7 @@ def change_provision_compartment(self, provision_id, change_provision_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -395,7 +395,7 @@ def delete_provision(self, provision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -494,7 +494,7 @@ def get_provision(self, provision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -770,7 +770,7 @@ def update_provision(self, provision_id, update_provision_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py b/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py index 698639612..8d49488ca 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py @@ -194,7 +194,7 @@ def change_runbook_compartment(self, runbook_id, change_runbook_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -317,7 +317,7 @@ def change_task_record_compartment(self, task_record_id, change_task_record_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -720,7 +720,7 @@ def delete_runbook(self, runbook_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -825,7 +825,7 @@ def delete_runbook_version(self, runbook_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -930,7 +930,7 @@ def delete_task_record(self, task_record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1046,7 +1046,7 @@ def export_runbook(self, export_runbook_details, runbook_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1166,7 +1166,7 @@ def export_runbook_version(self, export_runbook_version_details, runbook_version path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1475,7 +1475,7 @@ def get_runbook(self, runbook_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1577,7 +1577,7 @@ def get_runbook_export(self, runbook_id, export_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1679,7 +1679,7 @@ def get_runbook_import(self, runbook_id, import_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1777,7 +1777,7 @@ def get_runbook_version(self, runbook_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1875,7 +1875,7 @@ def get_task_record(self, task_record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3316,7 +3316,7 @@ def update_runbook(self, runbook_id, update_runbook_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3426,7 +3426,7 @@ def update_runbook_version(self, runbook_version_id, update_runbook_version_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3536,7 +3536,7 @@ def update_task_record(self, task_record_id, update_task_record_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py b/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py index 70557aeea..0ed01c59f 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py @@ -172,7 +172,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -290,7 +290,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -432,7 +432,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/fleet_software_update/fleet_software_update_client.py b/src/oci/fleet_software_update/fleet_software_update_client.py index 7fbbdb055..9844a13d6 100644 --- a/src/oci/fleet_software_update/fleet_software_update_client.py +++ b/src/oci/fleet_software_update/fleet_software_update_client.py @@ -189,7 +189,7 @@ def abort_fsu_discovery(self, fsu_discovery_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -310,7 +310,7 @@ def add_fsu_collection_targets(self, fsu_collection_id, add_fsu_collection_targe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -427,7 +427,7 @@ def cancel_fsu_action(self, fsu_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -546,7 +546,7 @@ def change_fsu_action_compartment(self, fsu_action_id, change_fsu_action_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -667,7 +667,7 @@ def change_fsu_collection_compartment(self, fsu_collection_id, change_fsu_collec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -788,7 +788,7 @@ def change_fsu_cycle_compartment(self, fsu_cycle_id, change_fsu_cycle_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -909,7 +909,7 @@ def change_fsu_discovery_compartment(self, fsu_discovery_id, change_fsu_discover path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1021,7 +1021,7 @@ def clone_fsu_cycle(self, fsu_cycle_id, clone_fsu_cycle_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1524,7 +1524,7 @@ def delete_fsu_action(self, fsu_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1629,7 +1629,7 @@ def delete_fsu_collection(self, fsu_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1740,7 +1740,7 @@ def delete_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1845,7 +1845,7 @@ def delete_fsu_cycle(self, fsu_cycle_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1950,7 +1950,7 @@ def delete_fsu_discovery(self, fsu_discovery_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2055,7 +2055,7 @@ def delete_fsu_job(self, fsu_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2152,7 +2152,7 @@ def get_fsu_action(self, fsu_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2251,7 +2251,7 @@ def get_fsu_action_output_content(self, fsu_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2349,7 +2349,7 @@ def get_fsu_collection(self, fsu_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2451,7 +2451,7 @@ def get_fsu_collection_target(self, fsu_collection_id, target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2549,7 +2549,7 @@ def get_fsu_cycle(self, fsu_cycle_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2647,7 +2647,7 @@ def get_fsu_discovery(self, fsu_discovery_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2745,7 +2745,7 @@ def get_fsu_job(self, fsu_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2843,7 +2843,7 @@ def get_fsu_job_output_content(self, fsu_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2941,7 +2941,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3244,7 +3244,7 @@ def list_fsu_collection_targets(self, fsu_collection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'status' in kwargs: @@ -3902,7 +3902,7 @@ def list_fsu_discovery_targets(self, fsu_discovery_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'status' in kwargs: @@ -4043,7 +4043,7 @@ def list_fsu_job_outputs(self, fsu_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4321,7 +4321,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4464,7 +4464,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4763,7 +4763,7 @@ def remove_fsu_collection_targets(self, fsu_collection_id, remove_fsu_collection path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4880,7 +4880,7 @@ def resume_fsu_action(self, fsu_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4996,7 +4996,7 @@ def retry_fsu_job(self, fsu_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5106,7 +5106,7 @@ def update_fsu_action(self, fsu_action_id, update_fsu_action_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5216,7 +5216,7 @@ def update_fsu_collection(self, fsu_collection_id, update_fsu_collection_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5326,7 +5326,7 @@ def update_fsu_cycle(self, fsu_cycle_id, update_fsu_cycle_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5436,7 +5436,7 @@ def update_fsu_discovery(self, fsu_discovery_id, update_fsu_discovery_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5546,7 +5546,7 @@ def update_fsu_job(self, fsu_job_id, update_fsu_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/functions/functions_invoke_client.py b/src/oci/functions/functions_invoke_client.py index 79e1179ef..b1e9e0a26 100644 --- a/src/oci/functions/functions_invoke_client.py +++ b/src/oci/functions/functions_invoke_client.py @@ -206,7 +206,7 @@ def invoke_function(self, function_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -225,7 +225,7 @@ def invoke_function(self, function_id, **kwargs): invoke_function_body = kwargs.get("invoke_function_body", missing) if invoke_function_body is not missing and invoke_function_body is not None: - if (not isinstance(invoke_function_body, (six.binary_type, six.string_types)) and + if (not isinstance(invoke_function_body, (bytes, str)) and not hasattr(invoke_function_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') diff --git a/src/oci/functions/functions_management_client.py b/src/oci/functions/functions_management_client.py index 2f36cdcdc..84f79c1fe 100644 --- a/src/oci/functions/functions_management_client.py +++ b/src/oci/functions/functions_management_client.py @@ -187,7 +187,7 @@ def change_application_compartment(self, application_id, change_application_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -473,7 +473,7 @@ def delete_application(self, application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -579,7 +579,7 @@ def delete_function(self, function_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -679,7 +679,7 @@ def get_application(self, application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -780,7 +780,7 @@ def get_function(self, function_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -879,7 +879,7 @@ def get_pbf_listing(self, pbf_listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -978,7 +978,7 @@ def get_pbf_listing_version(self, pbf_listing_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1897,7 +1897,7 @@ def update_application(self, application_id, update_application_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2010,7 +2010,7 @@ def update_function(self, function_id, update_function_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/fusion_apps/fusion_applications_client.py b/src/oci/fusion_apps/fusion_applications_client.py index 32d50deee..8d0e3bde1 100644 --- a/src/oci/fusion_apps/fusion_applications_client.py +++ b/src/oci/fusion_apps/fusion_applications_client.py @@ -192,7 +192,7 @@ def change_fusion_environment_compartment(self, fusion_environment_id, change_fu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -313,7 +313,7 @@ def change_fusion_environment_family_compartment(self, fusion_environment_family path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -425,7 +425,7 @@ def create_data_masking_activity(self, fusion_environment_id, create_data_maskin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -632,7 +632,7 @@ def create_fusion_environment_admin_user(self, create_fusion_environment_admin_u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -839,7 +839,7 @@ def create_refresh_activity(self, fusion_environment_id, create_refresh_activity path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -950,7 +950,7 @@ def create_service_attachment(self, create_service_attachment_details, fusion_en path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1058,7 +1058,7 @@ def delete_fusion_environment(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1167,7 +1167,7 @@ def delete_fusion_environment_admin_user(self, admin_username, fusion_environmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1272,7 +1272,7 @@ def delete_fusion_environment_family(self, fusion_environment_family_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1381,7 +1381,7 @@ def delete_refresh_activity(self, fusion_environment_id, refresh_activity_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1490,7 +1490,7 @@ def delete_service_attachment(self, fusion_environment_id, service_attachment_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1587,7 +1587,7 @@ def generate_extract_details(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1689,7 +1689,7 @@ def get_data_masking_activity(self, fusion_environment_id, data_masking_activity path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1787,7 +1787,7 @@ def get_fusion_environment(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1885,7 +1885,7 @@ def get_fusion_environment_family(self, fusion_environment_family_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1983,7 +1983,7 @@ def get_fusion_environment_family_limits_and_usage(self, fusion_environment_fami path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2081,7 +2081,7 @@ def get_fusion_environment_family_subscription_detail(self, fusion_environment_f path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2179,7 +2179,7 @@ def get_fusion_environment_status(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2281,7 +2281,7 @@ def get_refresh_activity(self, fusion_environment_id, refresh_activity_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2383,7 +2383,7 @@ def get_scheduled_activity(self, fusion_environment_id, scheduled_activity_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2485,7 +2485,7 @@ def get_service_attachment(self, fusion_environment_id, service_attachment_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2583,7 +2583,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2681,7 +2681,7 @@ def initiate_extract(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2777,7 +2777,7 @@ def list_admin_users(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2901,7 +2901,7 @@ def list_data_masking_activities(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -3379,7 +3379,7 @@ def list_refresh_activities(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -3566,7 +3566,7 @@ def list_scheduled_activities(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'run_cycle' in kwargs: @@ -3752,7 +3752,7 @@ def list_service_attachments(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -3911,7 +3911,7 @@ def list_time_available_for_refreshes(self, fusion_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -4053,7 +4053,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4195,7 +4195,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4490,7 +4490,7 @@ def reset_fusion_environment_password(self, reset_fusion_environment_password_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4602,7 +4602,7 @@ def update_fusion_environment(self, fusion_environment_id, update_fusion_environ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4712,7 +4712,7 @@ def update_fusion_environment_family(self, fusion_environment_family_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4826,7 +4826,7 @@ def update_refresh_activity(self, fusion_environment_id, refresh_activity_id, up path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4930,7 +4930,7 @@ def verify_service_attachment(self, verify_service_attachment_details, fusion_en path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/generative_ai/generative_ai_client.py b/src/oci/generative_ai/generative_ai_client.py index 0e4b6371e..b33e3580c 100644 --- a/src/oci/generative_ai/generative_ai_client.py +++ b/src/oci/generative_ai/generative_ai_client.py @@ -203,7 +203,7 @@ def change_dedicated_ai_cluster_compartment(self, dedicated_ai_cluster_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -329,7 +329,7 @@ def change_endpoint_compartment(self, endpoint_id, change_endpoint_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -451,7 +451,7 @@ def change_generative_ai_private_endpoint_compartment(self, generative_ai_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -575,7 +575,7 @@ def change_imported_model_compartment(self, imported_model_id, change_imported_m path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -699,7 +699,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1325,7 +1325,7 @@ def delete_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1434,7 +1434,7 @@ def delete_endpoint(self, endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1541,7 +1541,7 @@ def delete_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1648,7 +1648,7 @@ def delete_imported_model(self, imported_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1755,7 +1755,7 @@ def delete_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1857,7 +1857,7 @@ def get_dedicated_ai_cluster(self, dedicated_ai_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1960,7 +1960,7 @@ def get_endpoint(self, endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2061,7 +2061,7 @@ def get_generative_ai_private_endpoint(self, generative_ai_private_endpoint_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2162,7 +2162,7 @@ def get_imported_model(self, imported_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2263,7 +2263,7 @@ def get_model(self, model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2366,7 +2366,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3392,7 +3392,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3547,7 +3547,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3856,7 +3856,7 @@ def update_dedicated_ai_cluster(self, dedicated_ai_cluster_id, update_dedicated_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3972,7 +3972,7 @@ def update_endpoint(self, endpoint_id, update_endpoint_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4086,7 +4086,7 @@ def update_generative_ai_private_endpoint(self, generative_ai_private_endpoint_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4200,7 +4200,7 @@ def update_imported_model(self, imported_model_id, update_imported_model_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4314,7 +4314,7 @@ def update_model(self, model_id, update_model_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/generative_ai_agent/generative_ai_agent_client.py b/src/oci/generative_ai_agent/generative_ai_agent_client.py index 864a09a4b..b73c9b94b 100644 --- a/src/oci/generative_ai_agent/generative_ai_agent_client.py +++ b/src/oci/generative_ai_agent/generative_ai_agent_client.py @@ -192,7 +192,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -315,7 +315,7 @@ def change_agent_compartment(self, agent_id, change_agent_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -442,7 +442,7 @@ def change_agent_endpoint_compartment(self, agent_endpoint_id, change_agent_endp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -569,7 +569,7 @@ def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1288,7 +1288,7 @@ def delete_agent(self, agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1397,7 +1397,7 @@ def delete_agent_endpoint(self, agent_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1506,7 +1506,7 @@ def delete_data_ingestion_job(self, data_ingestion_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1615,7 +1615,7 @@ def delete_data_source(self, data_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1724,7 +1724,7 @@ def delete_knowledge_base(self, knowledge_base_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1833,7 +1833,7 @@ def delete_tool(self, tool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1935,7 +1935,7 @@ def get_agent(self, agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2038,7 +2038,7 @@ def get_agent_endpoint(self, agent_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2141,7 +2141,7 @@ def get_data_ingestion_job(self, data_ingestion_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2244,7 +2244,7 @@ def get_data_ingestion_job_log_content(self, data_ingestion_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2347,7 +2347,7 @@ def get_data_source(self, data_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2450,7 +2450,7 @@ def get_knowledge_base(self, knowledge_base_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2553,7 +2553,7 @@ def get_tool(self, tool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2656,7 +2656,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3811,7 +3811,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3966,7 +3966,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4276,7 +4276,7 @@ def update_agent(self, agent_id, update_agent_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4390,7 +4390,7 @@ def update_agent_endpoint(self, agent_endpoint_id, update_agent_endpoint_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4504,7 +4504,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4618,7 +4618,7 @@ def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4732,7 +4732,7 @@ def update_tool(self, tool_id, update_tool_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py index 3d6e0c823..37fa644cb 100644 --- a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +++ b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py @@ -199,7 +199,7 @@ def chat(self, agent_endpoint_id, chat_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -315,7 +315,7 @@ def create_session(self, create_session_details, agent_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -429,7 +429,7 @@ def delete_session(self, agent_endpoint_id, session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -530,7 +530,7 @@ def get_session(self, agent_endpoint_id, session_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -647,7 +647,7 @@ def retrieve_metadata(self, knowledge_base_id, retrieve_metadata_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -765,7 +765,7 @@ def update_session(self, agent_endpoint_id, session_id, update_session_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/generic_artifacts_content/generic_artifacts_content_client.py b/src/oci/generic_artifacts_content/generic_artifacts_content_client.py index 9f7790158..18b583254 100644 --- a/src/oci/generic_artifacts_content/generic_artifacts_content_client.py +++ b/src/oci/generic_artifacts_content/generic_artifacts_content_client.py @@ -183,7 +183,7 @@ def get_generic_artifact_content(self, artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -300,7 +300,7 @@ def get_generic_artifact_content_by_path(self, repository_id, artifact_path, ver path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -432,7 +432,7 @@ def put_generic_artifact_content_by_path(self, repository_id, artifact_path, ver path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -449,7 +449,7 @@ def put_generic_artifact_content_by_path(self, repository_id, artifact_path, ver generic_artifact_content_body = kwargs.get("generic_artifact_content_body", missing) if generic_artifact_content_body is not missing and generic_artifact_content_body is not None: - if (not isinstance(generic_artifact_content_body, (six.binary_type, six.string_types)) and + if (not isinstance(generic_artifact_content_body, (bytes, str)) and not hasattr(generic_artifact_content_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') diff --git a/src/oci/globally_distributed_database/sharded_database_service_client.py b/src/oci/globally_distributed_database/sharded_database_service_client.py index 96f93fe3f..195c6aaea 100644 --- a/src/oci/globally_distributed_database/sharded_database_service_client.py +++ b/src/oci/globally_distributed_database/sharded_database_service_client.py @@ -191,7 +191,7 @@ def change_private_endpoint_compartment(self, change_private_endpoint_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -311,7 +311,7 @@ def change_sharded_database_compartment(self, change_sharded_database_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -434,7 +434,7 @@ def configure_sharded_database_gsms(self, configure_sharded_database_gsms_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -560,7 +560,7 @@ def configure_sharding(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -878,7 +878,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -993,7 +993,7 @@ def delete_sharded_database(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1111,7 +1111,7 @@ def download_gsm_certificate_signing_request(self, sharded_database_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1228,7 +1228,7 @@ def fetch_connection_string(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1449,7 +1449,7 @@ def generate_gsm_certificate_signing_request(self, sharded_database_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1574,7 +1574,7 @@ def generate_wallet(self, sharded_database_id, generate_wallet_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1685,7 +1685,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1797,7 +1797,7 @@ def get_sharded_database(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1903,7 +1903,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2321,7 +2321,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2463,7 +2463,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2753,7 +2753,7 @@ def patch_sharded_database(self, sharded_database_id, patch_sharded_database_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2976,7 +2976,7 @@ def reinstate_proxy_instance(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3091,7 +3091,7 @@ def start_sharded_database(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3206,7 +3206,7 @@ def stop_sharded_database(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3324,7 +3324,7 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3438,7 +3438,7 @@ def update_sharded_database(self, sharded_database_id, update_sharded_database_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3561,7 +3561,7 @@ def upload_signed_certificate_and_generate_wallet(self, sharded_database_id, upl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3690,7 +3690,7 @@ def validate_network(self, sharded_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/golden_gate/golden_gate_client.py b/src/oci/golden_gate/golden_gate_client.py index 17f085465..96f5534ed 100644 --- a/src/oci/golden_gate/golden_gate_client.py +++ b/src/oci/golden_gate/golden_gate_client.py @@ -184,7 +184,7 @@ def add_connection_lock(self, connection_id, add_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def add_deployment_backup_lock(self, deployment_backup_id, add_resource_lock_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -413,7 +413,7 @@ def add_deployment_local_peer(self, deployment_id, add_deployment_local_peer_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -524,7 +524,7 @@ def add_deployment_lock(self, deployment_id, add_resource_lock_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -646,7 +646,7 @@ def cancel_deployment_backup(self, deployment_backup_id, cancel_deployment_backu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -771,7 +771,7 @@ def cancel_deployment_upgrade(self, deployment_upgrade_id, cancel_deployment_upg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -891,7 +891,7 @@ def cancel_snooze_deployment_upgrade(self, deployment_upgrade_id, cancel_snooze_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1013,7 +1013,7 @@ def change_connection_compartment(self, connection_id, change_connection_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1138,7 +1138,7 @@ def change_connection_subscription(self, change_connection_subscription_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1262,7 +1262,7 @@ def change_database_registration_compartment(self, database_registration_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1389,7 +1389,7 @@ def change_deployment_backup_compartment(self, deployment_backup_id, change_depl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1523,7 +1523,7 @@ def change_deployment_compartment(self, deployment_id, change_deployment_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1648,7 +1648,7 @@ def change_deployment_subscription(self, change_deployment_subscription_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1777,7 +1777,7 @@ def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1902,7 +1902,7 @@ def collect_deployment_diagnostic(self, deployment_id, collect_deployment_diagno path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2022,7 +2022,7 @@ def collect_pipeline_diagnostic(self, pipeline_id, collect_pipeline_diagnostic_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2140,7 +2140,7 @@ def copy_deployment_backup(self, deployment_backup_id, copy_deployment_backup_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2257,7 +2257,7 @@ def create_certificate(self, create_certificate_details, deployment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2973,7 +2973,7 @@ def delete_certificate(self, deployment_id, certificate_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3090,7 +3090,7 @@ def delete_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3207,7 +3207,7 @@ def delete_connection_assignment(self, connection_assignment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3319,7 +3319,7 @@ def delete_database_registration(self, database_registration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3427,7 +3427,7 @@ def delete_deployment(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3542,7 +3542,7 @@ def delete_deployment_backup(self, deployment_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3659,7 +3659,7 @@ def delete_pipeline(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3780,7 +3780,7 @@ def deployment_wallet_exists(self, deployment_id, deployment_wallet_exists_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3900,7 +3900,7 @@ def export_deployment_wallet(self, deployment_id, export_deployment_wallet_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4018,7 +4018,7 @@ def generate_library_url(self, deployment_id, generate_library_url_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4125,7 +4125,7 @@ def get_certificate(self, deployment_id, certificate_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4231,7 +4231,7 @@ def get_connection(self, connection_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'view' in kwargs: @@ -4345,7 +4345,7 @@ def get_connection_assignment(self, connection_assignment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4444,7 +4444,7 @@ def get_database_registration(self, database_registration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4542,7 +4542,7 @@ def get_deployment(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4640,7 +4640,7 @@ def get_deployment_backup(self, deployment_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4738,7 +4738,7 @@ def get_deployment_upgrade(self, deployment_upgrade_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4838,7 +4838,7 @@ def get_pipeline(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4938,7 +4938,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5057,7 +5057,7 @@ def import_deployment_wallet(self, deployment_id, import_deployment_wallet_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5194,7 +5194,7 @@ def list_certificates(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -6194,7 +6194,7 @@ def list_deployment_peers(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -6833,7 +6833,7 @@ def list_deployment_wallets_operations(self, deployment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7275,7 +7275,7 @@ def list_pipeline_initialization_steps(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7398,7 +7398,7 @@ def list_pipeline_running_processes(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7555,7 +7555,7 @@ def list_pipeline_schema_tables(self, pipeline_id, source_schema_name, target_sc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7709,7 +7709,7 @@ def list_pipeline_schemas(self, pipeline_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8463,7 +8463,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8580,7 +8580,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8823,7 +8823,7 @@ def pause_pipeline(self, pipeline_id, pause_pipeline_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8947,7 +8947,7 @@ def refresh_connection(self, connection_id, refresh_connection_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9065,7 +9065,7 @@ def remove_connection_lock(self, connection_id, remove_resource_lock_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9176,7 +9176,7 @@ def remove_deployment_backup_lock(self, deployment_backup_id, remove_resource_lo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9294,7 +9294,7 @@ def remove_deployment_local_peer(self, deployment_id, remove_deployment_local_pe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9405,7 +9405,7 @@ def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9523,7 +9523,7 @@ def reschedule_deployment_upgrade(self, deployment_upgrade_id, reschedule_deploy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9647,7 +9647,7 @@ def restore_deployment(self, deployment_backup_id, restore_deployment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9776,7 +9776,7 @@ def rollback_deployment_upgrade(self, deployment_upgrade_id, rollback_deployment path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9901,7 +9901,7 @@ def snooze_deployment_upgrade(self, deployment_upgrade_id, snooze_deployment_upg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10023,7 +10023,7 @@ def start_deployment(self, deployment_id, start_deployment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10154,7 +10154,7 @@ def start_pipeline(self, pipeline_id, start_pipeline_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10283,7 +10283,7 @@ def stop_deployment(self, deployment_id, stop_deployment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10414,7 +10414,7 @@ def stop_pipeline(self, pipeline_id, stop_pipeline_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10539,7 +10539,7 @@ def switchover_deployment_peer(self, deployment_id, switchover_deployment_peer_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10660,7 +10660,7 @@ def test_connection_assignment(self, connection_assignment_id, test_connection_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10783,7 +10783,7 @@ def test_pipeline_connection(self, pipeline_id, test_pipeline_connection_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10902,7 +10902,7 @@ def update_connection(self, connection_id, update_connection_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11019,7 +11019,7 @@ def update_database_registration(self, database_registration_id, update_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11132,7 +11132,7 @@ def update_deployment(self, deployment_id, update_deployment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11252,7 +11252,7 @@ def update_deployment_backup(self, deployment_backup_id, update_deployment_backu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11376,7 +11376,7 @@ def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11503,7 +11503,7 @@ def upgrade_deployment(self, deployment_id, upgrade_deployment_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11632,7 +11632,7 @@ def upgrade_deployment_upgrade(self, deployment_upgrade_id, upgrade_deployment_u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/governance_rules_control_plane/governance_rule_client.py b/src/oci/governance_rules_control_plane/governance_rule_client.py index 5be7a7087..f0cbeca88 100644 --- a/src/oci/governance_rules_control_plane/governance_rule_client.py +++ b/src/oci/governance_rules_control_plane/governance_rule_client.py @@ -372,7 +372,7 @@ def delete_governance_rule(self, governance_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -475,7 +475,7 @@ def delete_inclusion_criterion(self, inclusion_criterion_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -570,7 +570,7 @@ def get_enforced_governance_rule(self, enforced_governance_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -666,7 +666,7 @@ def get_governance_rule(self, governance_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -762,7 +762,7 @@ def get_inclusion_criterion(self, inclusion_criterion_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -858,7 +858,7 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1605,7 +1605,7 @@ def retry_governance_rule(self, governance_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1719,7 +1719,7 @@ def retry_tenancy_attachment(self, tenancy_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1827,7 +1827,7 @@ def update_governance_rule(self, governance_rule_id, update_governance_rule_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/governance_rules_control_plane/work_request_client.py b/src/oci/governance_rules_control_plane/work_request_client.py index 6e6d68934..6b99a9b4c 100644 --- a/src/oci/governance_rules_control_plane/work_request_client.py +++ b/src/oci/governance_rules_control_plane/work_request_client.py @@ -180,7 +180,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -275,7 +275,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -391,7 +391,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -531,7 +531,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/healthchecks/health_checks_client.py b/src/oci/healthchecks/health_checks_client.py index 7821adc37..b6183b6af 100644 --- a/src/oci/healthchecks/health_checks_client.py +++ b/src/oci/healthchecks/health_checks_client.py @@ -195,7 +195,7 @@ def change_http_monitor_compartment(self, monitor_id, change_http_monitor_compar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -315,7 +315,7 @@ def change_ping_monitor_compartment(self, monitor_id, change_ping_monitor_compar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -803,7 +803,7 @@ def delete_http_monitor(self, monitor_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -907,7 +907,7 @@ def delete_ping_monitor(self, monitor_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1010,7 +1010,7 @@ def get_http_monitor(self, monitor_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1115,7 +1115,7 @@ def get_ping_monitor(self, monitor_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1520,7 +1520,7 @@ def list_http_probe_results(self, probe_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1813,7 +1813,7 @@ def list_ping_probe_results(self, probe_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1941,7 +1941,7 @@ def update_http_monitor(self, monitor_id, update_http_monitor_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2053,7 +2053,7 @@ def update_ping_monitor(self, monitor_id, update_ping_monitor_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/identity/identity_client.py b/src/oci/identity/identity_client.py index c293c9d78..f10311f57 100644 --- a/src/oci/identity/identity_client.py +++ b/src/oci/identity/identity_client.py @@ -193,7 +193,7 @@ def activate_domain(self, domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -309,7 +309,7 @@ def activate_mfa_totp_device(self, user_id, mfa_totp_device_id, mfa_totp_token, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -429,7 +429,7 @@ def add_tag_default_lock(self, tag_default_id, add_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -550,7 +550,7 @@ def add_tag_namespace_lock(self, tag_namespace_id, add_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -871,7 +871,7 @@ def bulk_delete_resources(self, compartment_id, bulk_delete_resources_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1228,7 +1228,7 @@ def bulk_move_resources(self, compartment_id, bulk_move_resources_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1365,7 +1365,7 @@ def cascade_delete_tag_namespace(self, tag_namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1492,7 +1492,7 @@ def change_domain_compartment(self, domain_id, change_domain_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1619,7 +1619,7 @@ def change_domain_license_type(self, domain_id, change_domain_license_type_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1738,7 +1738,7 @@ def change_tag_namespace_compartment(self, tag_namespace_id, change_tag_namespac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1862,7 +1862,7 @@ def create_auth_token(self, create_auth_token_details, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2094,7 +2094,7 @@ def create_customer_secret_key(self, create_customer_secret_key_details, user_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2207,7 +2207,7 @@ def create_db_credential(self, create_db_credential_details, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2770,7 +2770,7 @@ def create_idp_group_mapping(self, create_idp_group_mapping_details, identity_pr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2875,7 +2875,7 @@ def create_mfa_totp_device(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3098,7 +3098,7 @@ def create_o_auth_client_credential(self, user_id, create_o_auth2_client_credent path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3219,7 +3219,7 @@ def create_or_reset_ui_password(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3438,7 +3438,7 @@ def create_region_subscription(self, create_region_subscription_details, tenancy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3549,7 +3549,7 @@ def create_smtp_credential(self, create_smtp_credential_details, user_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3670,7 +3670,7 @@ def create_swift_password(self, create_swift_password_details, user_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3803,7 +3803,7 @@ def create_tag(self, tag_namespace_id, create_tag_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4277,7 +4277,7 @@ def deactivate_domain(self, domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4387,7 +4387,7 @@ def delete_api_key(self, user_id, fingerprint, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4489,7 +4489,7 @@ def delete_auth_token(self, user_id, auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4587,7 +4587,7 @@ def delete_compartment(self, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4689,7 +4689,7 @@ def delete_customer_secret_key(self, user_id, customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4796,7 +4796,7 @@ def delete_db_credential(self, user_id, db_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4906,7 +4906,7 @@ def delete_domain(self, domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5005,7 +5005,7 @@ def delete_dynamic_group(self, dynamic_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5103,7 +5103,7 @@ def delete_group(self, group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5206,7 +5206,7 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5312,7 +5312,7 @@ def delete_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5414,7 +5414,7 @@ def delete_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5512,7 +5512,7 @@ def delete_network_source(self, network_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5614,7 +5614,7 @@ def delete_o_auth_client_credential(self, user_id, oauth2_client_credential_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5712,7 +5712,7 @@ def delete_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5814,7 +5814,7 @@ def delete_smtp_credential(self, user_id, smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5918,7 +5918,7 @@ def delete_swift_password(self, user_id, swift_password_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6043,7 +6043,7 @@ def delete_tag(self, tag_namespace_id, tag_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6157,7 +6157,7 @@ def delete_tag_default(self, tag_default_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6278,7 +6278,7 @@ def delete_tag_namespace(self, tag_namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6384,7 +6384,7 @@ def delete_user(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6507,7 +6507,7 @@ def enable_replication_to_region(self, domain_id, enable_replication_to_region_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6614,7 +6614,7 @@ def generate_totp_seed(self, user_id, mfa_totp_device_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6705,7 +6705,7 @@ def get_authentication_policy(self, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6800,7 +6800,7 @@ def get_compartment(self, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6897,7 +6897,7 @@ def get_domain(self, domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6987,7 +6987,7 @@ def get_dynamic_group(self, dynamic_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7079,7 +7079,7 @@ def get_group(self, group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7176,7 +7176,7 @@ def get_iam_work_request(self, iam_work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7270,7 +7270,7 @@ def get_identity_provider(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7366,7 +7366,7 @@ def get_idp_group_mapping(self, identity_provider_id, mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7458,7 +7458,7 @@ def get_mfa_totp_device(self, user_id, mfa_totp_device_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7546,7 +7546,7 @@ def get_network_source(self, network_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7634,7 +7634,7 @@ def get_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7725,7 +7725,7 @@ def get_standard_tag_template(self, compartment_id, standard_tag_namespace_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7824,7 +7824,7 @@ def get_tag(self, tag_namespace_id, tag_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7912,7 +7912,7 @@ def get_tag_default(self, tag_default_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8000,7 +8000,7 @@ def get_tag_namespace(self, tag_namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8089,7 +8089,7 @@ def get_tagging_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8177,7 +8177,7 @@ def get_tenancy(self, tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8265,7 +8265,7 @@ def get_user(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8353,7 +8353,7 @@ def get_user_group_membership(self, user_group_membership_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8442,7 +8442,7 @@ def get_user_ui_password_information(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8531,7 +8531,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8820,7 +8820,7 @@ def list_api_keys(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8909,7 +8909,7 @@ def list_auth_tokens(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9593,7 +9593,7 @@ def list_customer_secret_keys(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9728,7 +9728,7 @@ def list_db_credentials(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -10467,7 +10467,7 @@ def list_iam_work_request_errors(self, iam_work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10597,7 +10597,7 @@ def list_iam_work_request_logs(self, iam_work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10838,7 +10838,7 @@ def list_identity_provider_groups(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -11125,7 +11125,7 @@ def list_idp_group_mappings(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11254,7 +11254,7 @@ def list_mfa_totp_devices(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11540,7 +11540,7 @@ def list_o_auth_client_credentials(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -11802,7 +11802,7 @@ def list_region_subscriptions(self, tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11964,7 +11964,7 @@ def list_smtp_credentials(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12152,7 +12152,7 @@ def list_swift_passwords(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12491,7 +12491,7 @@ def list_tagging_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12599,7 +12599,7 @@ def list_tagging_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12815,7 +12815,7 @@ def list_tags(self, tag_namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13340,7 +13340,7 @@ def move_compartment(self, compartment_id, move_compartment_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13448,7 +13448,7 @@ def recover_compartment(self, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13565,7 +13565,7 @@ def remove_tag_default_lock(self, tag_default_id, remove_lock_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13686,7 +13686,7 @@ def remove_tag_namespace_lock(self, tag_namespace_id, remove_lock_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13791,7 +13791,7 @@ def remove_user_from_group(self, user_group_membership_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13879,7 +13879,7 @@ def reset_idp_scim_client(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13984,7 +13984,7 @@ def update_auth_token(self, user_id, auth_token_id, update_auth_token_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14089,7 +14089,7 @@ def update_authentication_policy(self, compartment_id, update_authentication_pol path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14194,7 +14194,7 @@ def update_compartment(self, compartment_id, update_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14303,7 +14303,7 @@ def update_customer_secret_key(self, user_id, customer_secret_key_id, update_cus path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14416,7 +14416,7 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14520,7 +14520,7 @@ def update_dynamic_group(self, dynamic_group_id, update_dynamic_group_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14625,7 +14625,7 @@ def update_group(self, group_id, update_group_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14734,7 +14734,7 @@ def update_identity_provider(self, identity_provider_id, update_identity_provide path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14847,7 +14847,7 @@ def update_idp_group_mapping(self, identity_provider_id, mapping_id, update_idp_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14952,7 +14952,7 @@ def update_network_source(self, network_source_id, update_network_source_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15061,7 +15061,7 @@ def update_o_auth_client_credential(self, user_id, oauth2_client_credential_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15168,7 +15168,7 @@ def update_policy(self, policy_id, update_policy_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15277,7 +15277,7 @@ def update_smtp_credential(self, user_id, smtp_credential_id, update_smtp_creden path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15388,7 +15388,7 @@ def update_swift_password(self, user_id, swift_password_id, update_swift_passwor path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15510,7 +15510,7 @@ def update_tag(self, tag_namespace_id, tag_name, update_tag_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15636,7 +15636,7 @@ def update_tag_default(self, tag_default_id, update_tag_default_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15757,7 +15757,7 @@ def update_tag_namespace(self, tag_namespace_id, update_tag_namespace_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15867,7 +15867,7 @@ def update_user(self, user_id, update_user_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15972,7 +15972,7 @@ def update_user_capabilities(self, user_id, update_user_capabilities_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16077,7 +16077,7 @@ def update_user_state(self, user_id, update_state_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16198,7 +16198,7 @@ def upload_api_key(self, user_id, create_api_key_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/identity_domains/identity_domains_client.py b/src/oci/identity_domains/identity_domains_client.py index 332d0702b..99506cd4b 100644 --- a/src/oci/identity_domains/identity_domains_client.py +++ b/src/oci/identity_domains/identity_domains_client.py @@ -5794,7 +5794,7 @@ def delete_api_key(self, api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5915,7 +5915,7 @@ def delete_app(self, app_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6036,7 +6036,7 @@ def delete_app_role(self, app_role_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6157,7 +6157,7 @@ def delete_approval_workflow(self, approval_workflow_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6278,7 +6278,7 @@ def delete_approval_workflow_assignment(self, approval_workflow_assignment_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6399,7 +6399,7 @@ def delete_approval_workflow_step(self, approval_workflow_step_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6520,7 +6520,7 @@ def delete_auth_token(self, auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6641,7 +6641,7 @@ def delete_cloud_gate(self, cloud_gate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6762,7 +6762,7 @@ def delete_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6883,7 +6883,7 @@ def delete_cloud_gate_server(self, cloud_gate_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7004,7 +7004,7 @@ def delete_condition(self, condition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7125,7 +7125,7 @@ def delete_customer_secret_key(self, customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7246,7 +7246,7 @@ def delete_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7367,7 +7367,7 @@ def delete_grant(self, grant_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7488,7 +7488,7 @@ def delete_group(self, group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7609,7 +7609,7 @@ def delete_identity_propagation_trust(self, identity_propagation_trust_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7730,7 +7730,7 @@ def delete_identity_provider(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7851,7 +7851,7 @@ def delete_my_api_key(self, my_api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7972,7 +7972,7 @@ def delete_my_auth_token(self, my_auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8093,7 +8093,7 @@ def delete_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8214,7 +8214,7 @@ def delete_my_device(self, my_device_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8335,7 +8335,7 @@ def delete_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8456,7 +8456,7 @@ def delete_my_smtp_credential(self, my_smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8577,7 +8577,7 @@ def delete_my_support_account(self, my_support_account_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8698,7 +8698,7 @@ def delete_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8819,7 +8819,7 @@ def delete_my_user_db_credential(self, my_user_db_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8940,7 +8940,7 @@ def delete_network_perimeter(self, network_perimeter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9061,7 +9061,7 @@ def delete_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9182,7 +9182,7 @@ def delete_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9303,7 +9303,7 @@ def delete_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9424,7 +9424,7 @@ def delete_password_policy(self, password_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9545,7 +9545,7 @@ def delete_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9666,7 +9666,7 @@ def delete_rule(self, rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9787,7 +9787,7 @@ def delete_security_question(self, security_question_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9908,7 +9908,7 @@ def delete_self_registration_profile(self, self_registration_profile_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10029,7 +10029,7 @@ def delete_smtp_credential(self, smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10150,7 +10150,7 @@ def delete_social_identity_provider(self, social_identity_provider_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10271,7 +10271,7 @@ def delete_user(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10392,7 +10392,7 @@ def delete_user_db_credential(self, user_db_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10515,7 +10515,7 @@ def get_account_mgmt_info(self, account_mgmt_info_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -10648,7 +10648,7 @@ def get_account_recovery_setting(self, account_recovery_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -10781,7 +10781,7 @@ def get_api_key(self, api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -10914,7 +10914,7 @@ def get_app(self, app_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11047,7 +11047,7 @@ def get_app_role(self, app_role_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11180,7 +11180,7 @@ def get_approval_workflow(self, approval_workflow_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11313,7 +11313,7 @@ def get_approval_workflow_assignment(self, approval_workflow_assignment_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11446,7 +11446,7 @@ def get_approval_workflow_step(self, approval_workflow_step_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11579,7 +11579,7 @@ def get_auth_token(self, auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11712,7 +11712,7 @@ def get_authentication_factor_setting(self, authentication_factor_setting_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11845,7 +11845,7 @@ def get_branding_setting(self, branding_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -11978,7 +11978,7 @@ def get_cloud_gate(self, cloud_gate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12111,7 +12111,7 @@ def get_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12244,7 +12244,7 @@ def get_cloud_gate_server(self, cloud_gate_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12377,7 +12377,7 @@ def get_condition(self, condition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12510,7 +12510,7 @@ def get_customer_secret_key(self, customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12643,7 +12643,7 @@ def get_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12776,7 +12776,7 @@ def get_grant(self, grant_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -12909,7 +12909,7 @@ def get_group(self, group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -13042,7 +13042,7 @@ def get_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -13175,7 +13175,7 @@ def get_identity_provider(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -13308,7 +13308,7 @@ def get_identity_setting(self, identity_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -13441,7 +13441,7 @@ def get_kmsi_setting(self, kmsi_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -13682,7 +13682,7 @@ def get_my_api_key(self, my_api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13789,7 +13789,7 @@ def get_my_auth_token(self, my_auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -13896,7 +13896,7 @@ def get_my_completed_approval(self, my_completed_approval_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14003,7 +14003,7 @@ def get_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14120,7 +14120,7 @@ def get_my_device(self, my_device_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -14243,7 +14243,7 @@ def get_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14350,7 +14350,7 @@ def get_my_pending_approval(self, my_pending_approval_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14467,7 +14467,7 @@ def get_my_request(self, my_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -14590,7 +14590,7 @@ def get_my_smtp_credential(self, my_smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14697,7 +14697,7 @@ def get_my_support_account(self, my_support_account_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -14814,7 +14814,7 @@ def get_my_trusted_user_agent(self, my_trusted_user_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -14937,7 +14937,7 @@ def get_my_user_db_credential(self, my_user_db_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15054,7 +15054,7 @@ def get_network_perimeter(self, network_perimeter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -15187,7 +15187,7 @@ def get_notification_setting(self, notification_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -15320,7 +15320,7 @@ def get_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -15443,7 +15443,7 @@ def get_o_auth_client_certificate(self, o_auth_client_certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15550,7 +15550,7 @@ def get_o_auth_partner_certificate(self, o_auth_partner_certificate_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15667,7 +15667,7 @@ def get_oci_console_sign_on_policy_consent(self, oci_console_sign_on_policy_cons path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -15800,7 +15800,7 @@ def get_password_policy(self, password_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -15933,7 +15933,7 @@ def get_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16066,7 +16066,7 @@ def get_rule(self, rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16189,7 +16189,7 @@ def get_schema(self, schema_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -16306,7 +16306,7 @@ def get_security_question(self, security_question_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16439,7 +16439,7 @@ def get_security_question_setting(self, security_question_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16572,7 +16572,7 @@ def get_self_registration_profile(self, self_registration_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16705,7 +16705,7 @@ def get_setting(self, setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16838,7 +16838,7 @@ def get_smtp_credential(self, smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -16961,7 +16961,7 @@ def get_social_identity_provider(self, social_identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17078,7 +17078,7 @@ def get_user(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -17211,7 +17211,7 @@ def get_user_attributes_setting(self, user_attributes_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -17344,7 +17344,7 @@ def get_user_db_credential(self, user_db_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -26380,7 +26380,7 @@ def patch_account_recovery_setting(self, account_recovery_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -26536,7 +26536,7 @@ def patch_api_key(self, api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -26692,7 +26692,7 @@ def patch_app(self, app_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -26848,7 +26848,7 @@ def patch_app_role(self, app_role_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27004,7 +27004,7 @@ def patch_approval_workflow(self, approval_workflow_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27160,7 +27160,7 @@ def patch_approval_workflow_step(self, approval_workflow_step_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27316,7 +27316,7 @@ def patch_auth_token(self, auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27472,7 +27472,7 @@ def patch_cloud_gate(self, cloud_gate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27628,7 +27628,7 @@ def patch_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27784,7 +27784,7 @@ def patch_cloud_gate_server(self, cloud_gate_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -27942,7 +27942,7 @@ def patch_condition(self, condition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -28098,7 +28098,7 @@ def patch_customer_secret_key(self, customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -28254,7 +28254,7 @@ def patch_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -28410,7 +28410,7 @@ def patch_grant(self, grant_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -28566,7 +28566,7 @@ def patch_group(self, group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -28724,7 +28724,7 @@ def patch_identity_propagation_trust(self, identity_propagation_trust_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -28880,7 +28880,7 @@ def patch_identity_provider(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -29036,7 +29036,7 @@ def patch_identity_setting(self, identity_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -29192,7 +29192,7 @@ def patch_kmsi_setting(self, kmsi_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -29479,7 +29479,7 @@ def patch_my_api_key(self, my_api_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29609,7 +29609,7 @@ def patch_my_auth_token(self, my_auth_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29739,7 +29739,7 @@ def patch_my_customer_secret_key(self, my_customer_secret_key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29879,7 +29879,7 @@ def patch_my_device(self, my_device_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -30025,7 +30025,7 @@ def patch_my_o_auth2_client_credential(self, my_o_auth2_client_credential_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -30155,7 +30155,7 @@ def patch_my_pending_approval(self, my_pending_approval_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -30295,7 +30295,7 @@ def patch_my_request(self, my_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -30441,7 +30441,7 @@ def patch_my_smtp_credential(self, my_smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -30581,7 +30581,7 @@ def patch_network_perimeter(self, network_perimeter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -30737,7 +30737,7 @@ def patch_o_auth2_client_credential(self, o_auth2_client_credential_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -30893,7 +30893,7 @@ def patch_password_policy(self, password_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -31051,7 +31051,7 @@ def patch_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -31209,7 +31209,7 @@ def patch_rule(self, rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -31355,7 +31355,7 @@ def patch_schema(self, schema_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -31495,7 +31495,7 @@ def patch_security_question(self, security_question_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -31651,7 +31651,7 @@ def patch_security_question_setting(self, security_question_setting_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -31807,7 +31807,7 @@ def patch_self_registration_profile(self, self_registration_profile_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -31963,7 +31963,7 @@ def patch_setting(self, setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -32119,7 +32119,7 @@ def patch_smtp_credential(self, smtp_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -32267,7 +32267,7 @@ def patch_social_identity_provider(self, social_identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -32407,7 +32407,7 @@ def patch_user(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -32563,7 +32563,7 @@ def patch_user_attributes_setting(self, user_attributes_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -32719,7 +32719,7 @@ def put_account_recovery_setting(self, account_recovery_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -32875,7 +32875,7 @@ def put_app(self, app_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33031,7 +33031,7 @@ def put_app_status_changer(self, app_status_changer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33187,7 +33187,7 @@ def put_approval_workflow(self, approval_workflow_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33343,7 +33343,7 @@ def put_authentication_factor_setting(self, authentication_factor_setting_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33499,7 +33499,7 @@ def put_cloud_gate(self, cloud_gate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33655,7 +33655,7 @@ def put_cloud_gate_mapping(self, cloud_gate_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33811,7 +33811,7 @@ def put_cloud_gate_server(self, cloud_gate_server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -33969,7 +33969,7 @@ def put_condition(self, condition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -34125,7 +34125,7 @@ def put_dynamic_resource_group(self, dynamic_resource_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -34281,7 +34281,7 @@ def put_group(self, group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -34439,7 +34439,7 @@ def put_identity_propagation_trust(self, identity_propagation_trust_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -34595,7 +34595,7 @@ def put_identity_provider(self, identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -34751,7 +34751,7 @@ def put_identity_setting(self, identity_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -34907,7 +34907,7 @@ def put_kmsi_setting(self, kmsi_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -35319,7 +35319,7 @@ def put_network_perimeter(self, network_perimeter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -35475,7 +35475,7 @@ def put_notification_setting(self, notification_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -35631,7 +35631,7 @@ def put_password_policy(self, password_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -35789,7 +35789,7 @@ def put_policy(self, policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -35947,7 +35947,7 @@ def put_rule(self, rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -36093,7 +36093,7 @@ def put_schema(self, schema_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -36233,7 +36233,7 @@ def put_security_question_setting(self, security_question_setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -36389,7 +36389,7 @@ def put_self_registration_profile(self, self_registration_profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -36545,7 +36545,7 @@ def put_setting(self, setting_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -36693,7 +36693,7 @@ def put_social_identity_provider(self, social_identity_provider_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -36833,7 +36833,7 @@ def put_user(self, user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: @@ -36979,7 +36979,7 @@ def put_user_capabilities_changer(self, user_capabilities_changer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -37109,7 +37109,7 @@ def put_user_password_changer(self, user_password_changer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -37239,7 +37239,7 @@ def put_user_password_resetter(self, user_password_resetter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -37379,7 +37379,7 @@ def put_user_status_changer(self, user_status_changer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'attribute_sets' in kwargs: diff --git a/src/oci/integration/integration_instance_client.py b/src/oci/integration/integration_instance_client.py index 6f6eb7d06..1bfb8689b 100644 --- a/src/oci/integration/integration_instance_client.py +++ b/src/oci/integration/integration_instance_client.py @@ -192,7 +192,7 @@ def add_oracle_managed_custom_endpoint(self, add_oracle_managed_custom_endpoint_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -313,7 +313,7 @@ def change_integration_instance_compartment(self, integration_instance_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -433,7 +433,7 @@ def change_integration_instance_network_endpoint(self, integration_instance_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -553,7 +553,7 @@ def change_private_endpoint_outbound_connection(self, integration_instance_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -757,7 +757,7 @@ def delete_integration_instance(self, integration_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -872,7 +872,7 @@ def disaster_recovery_failover(self, integration_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -988,7 +988,7 @@ def enable_process_automation(self, integration_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1105,7 +1105,7 @@ def extend_data_retention(self, integration_instance_id, extend_data_retention_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1206,7 +1206,7 @@ def get_integration_instance(self, integration_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1302,7 +1302,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1561,7 +1561,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1677,7 +1677,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1905,7 +1905,7 @@ def remove_oracle_managed_custom_endpoint(self, integration_instance_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2021,7 +2021,7 @@ def start_integration_instance(self, integration_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2135,7 +2135,7 @@ def stop_integration_instance(self, integration_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2243,7 +2243,7 @@ def update_integration_instance(self, integration_instance_id, update_integratio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/iot/iot_client.py b/src/oci/iot/iot_client.py index cdb5718e6..bdac9667f 100644 --- a/src/oci/iot/iot_client.py +++ b/src/oci/iot/iot_client.py @@ -198,7 +198,7 @@ def change_iot_domain_compartment(self, iot_domain_id, change_iot_domain_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -321,7 +321,7 @@ def change_iot_domain_data_retention_period(self, iot_domain_id, change_iot_doma path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -447,7 +447,7 @@ def change_iot_domain_group_compartment(self, iot_domain_group_id, change_iot_do path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -570,7 +570,7 @@ def configure_iot_domain_data_access(self, iot_domain_id, configure_iot_domain_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -693,7 +693,7 @@ def configure_iot_domain_group_data_access(self, iot_domain_group_id, configure_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1399,7 +1399,7 @@ def delete_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1507,7 +1507,7 @@ def delete_digital_twin_instance(self, digital_twin_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1615,7 +1615,7 @@ def delete_digital_twin_model(self, digital_twin_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1723,7 +1723,7 @@ def delete_digital_twin_relationship(self, digital_twin_relationship_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1831,7 +1831,7 @@ def delete_iot_domain(self, iot_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1939,7 +1939,7 @@ def delete_iot_domain_group(self, iot_domain_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2039,7 +2039,7 @@ def get_digital_twin_adapter(self, digital_twin_adapter_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2140,7 +2140,7 @@ def get_digital_twin_instance(self, digital_twin_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2245,7 +2245,7 @@ def get_digital_twin_instance_content(self, digital_twin_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2353,7 +2353,7 @@ def get_digital_twin_model(self, digital_twin_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2454,7 +2454,7 @@ def get_digital_twin_model_spec(self, digital_twin_model_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2555,7 +2555,7 @@ def get_digital_twin_relationship(self, digital_twin_relationship_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2656,7 +2656,7 @@ def get_iot_domain(self, iot_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2757,7 +2757,7 @@ def get_iot_domain_group(self, iot_domain_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2858,7 +2858,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2970,7 +2970,7 @@ def invoke_raw_command(self, digital_twin_instance_id, invoke_raw_command_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4154,7 +4154,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4307,7 +4307,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4613,7 +4613,7 @@ def update_digital_twin_adapter(self, digital_twin_adapter_id, update_digital_tw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4728,7 +4728,7 @@ def update_digital_twin_instance(self, digital_twin_instance_id, update_digital_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4843,7 +4843,7 @@ def update_digital_twin_model(self, digital_twin_model_id, update_digital_twin_m path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4958,7 +4958,7 @@ def update_digital_twin_relationship(self, digital_twin_relationship_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5073,7 +5073,7 @@ def update_iot_domain(self, iot_domain_id, update_iot_domain_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5186,7 +5186,7 @@ def update_iot_domain_group(self, iot_domain_group_id, update_iot_domain_group_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/jms/java_management_service_client.py b/src/oci/jms/java_management_service_client.py index 539964cb2..0b652db3a 100644 --- a/src/oci/jms/java_management_service_client.py +++ b/src/oci/jms/java_management_service_client.py @@ -193,7 +193,7 @@ def add_fleet_installation_sites(self, fleet_id, add_fleet_installation_sites_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -304,7 +304,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -422,7 +422,7 @@ def change_fleet_compartment(self, fleet_id, change_fleet_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -536,7 +536,7 @@ def create_blocklist(self, fleet_id, create_blocklist_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -659,7 +659,7 @@ def create_drs_file(self, fleet_id, create_drs_file_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1076,7 +1076,7 @@ def delete_blocklist(self, fleet_id, blocklist_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1187,7 +1187,7 @@ def delete_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1298,7 +1298,7 @@ def delete_drs_file(self, fleet_id, drs_file_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1405,7 +1405,7 @@ def delete_fleet(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1516,7 +1516,7 @@ def delete_java_migration_analysis_result(self, fleet_id, java_migration_analysi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1624,7 +1624,7 @@ def delete_jms_plugin(self, jms_plugin_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1735,7 +1735,7 @@ def delete_performance_tuning_analysis_result(self, fleet_id, performance_tuning path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1846,7 +1846,7 @@ def delete_task_schedule(self, task_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1971,7 +1971,7 @@ def disable_drs(self, fleet_id, disable_drs_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2093,7 +2093,7 @@ def enable_drs(self, fleet_id, enable_drs_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2199,7 +2199,7 @@ def generate_agent_deploy_script(self, fleet_id, generate_agent_deploy_script_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2392,7 +2392,7 @@ def generate_load_pipeline_script(self, fleet_id, generate_load_pipeline_script_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2498,7 +2498,7 @@ def get_crypto_analysis_result(self, fleet_id, crypto_analysis_result_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2606,7 +2606,7 @@ def get_drs_file(self, fleet_id, drs_file_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2713,7 +2713,7 @@ def get_export_setting(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2813,7 +2813,7 @@ def get_export_status(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2913,7 +2913,7 @@ def get_fleet(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3021,7 +3021,7 @@ def get_fleet_advanced_feature_configuration(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3122,7 +3122,7 @@ def get_fleet_agent_configuration(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3220,7 +3220,7 @@ def get_java_family(self, family_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3324,7 +3324,7 @@ def get_java_migration_analysis_result(self, fleet_id, java_migration_analysis_r path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3422,7 +3422,7 @@ def get_java_release(self, release_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3522,7 +3522,7 @@ def get_jms_plugin(self, jms_plugin_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3626,7 +3626,7 @@ def get_performance_tuning_analysis_result(self, fleet_id, performance_tuning_an path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3730,7 +3730,7 @@ def get_task_schedule(self, task_schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3837,7 +3837,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4285,7 +4285,7 @@ def list_blocklists(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'operation' in kwargs: @@ -4471,7 +4471,7 @@ def list_containers(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'jre_security_status' in kwargs: @@ -4676,7 +4676,7 @@ def list_crypto_analysis_results(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'aggregation_mode' in kwargs: @@ -4838,7 +4838,7 @@ def list_drs_files(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -4970,7 +4970,7 @@ def list_fleet_diagnoses(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5487,7 +5487,7 @@ def list_installation_sites(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -5828,7 +5828,7 @@ def list_java_migration_analysis_results(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -6581,7 +6581,7 @@ def list_library_application_usage(self, fleet_id, library_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -6766,7 +6766,7 @@ def list_library_managed_instance_usage(self, fleet_id, library_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -6949,7 +6949,7 @@ def list_performance_tuning_analysis_results(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7446,7 +7446,7 @@ def list_uncorrelated_package_application_usage(self, fleet_id, package_name, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7619,7 +7619,7 @@ def list_uncorrelated_package_managed_instance_usage(self, fleet_id, package_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7792,7 +7792,7 @@ def list_uncorrelated_package_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7929,7 +7929,7 @@ def list_work_items(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8045,7 +8045,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8161,7 +8161,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8440,7 +8440,7 @@ def remove_fleet_installation_sites(self, fleet_id, remove_fleet_installation_si path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8546,7 +8546,7 @@ def request_crypto_analyses(self, fleet_id, request_crypto_analyses_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8650,7 +8650,7 @@ def request_deployed_application_migration_analyses(self, fleet_id, request_depl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8754,7 +8754,7 @@ def request_java_migration_analyses(self, fleet_id, request_java_migration_analy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8857,7 +8857,7 @@ def request_jfr_recordings(self, fleet_id, request_jfr_recordings_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8961,7 +8961,7 @@ def request_performance_tuning_analyses(self, fleet_id, request_performance_tuni path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9080,7 +9080,7 @@ def scan_java_server_usage(self, fleet_id, scan_java_server_usage_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9202,7 +9202,7 @@ def scan_library_usage(self, fleet_id, scan_library_usage_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9395,7 +9395,7 @@ def summarize_application_installation_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'os_family' in kwargs: @@ -9632,7 +9632,7 @@ def summarize_application_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -9855,7 +9855,7 @@ def summarize_deployed_application_installation_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10051,7 +10051,7 @@ def summarize_deployed_application_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10372,7 +10372,7 @@ def summarize_installation_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -10584,7 +10584,7 @@ def summarize_java_server_instance_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10766,7 +10766,7 @@ def summarize_java_server_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -10977,7 +10977,7 @@ def summarize_jre_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -11155,7 +11155,7 @@ def summarize_library_inventory(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -11330,7 +11330,7 @@ def summarize_library_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11552,7 +11552,7 @@ def summarize_managed_instance_usage(self, fleet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'managed_instance_type' in kwargs: @@ -11961,7 +11961,7 @@ def update_drs_file(self, fleet_id, update_drs_file_details, drs_file_key, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12075,7 +12075,7 @@ def update_export_setting(self, fleet_id, update_export_setting_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12189,7 +12189,7 @@ def update_fleet(self, fleet_id, update_fleet_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12310,7 +12310,7 @@ def update_fleet_advanced_feature_configuration(self, fleet_id, update_fleet_adv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12426,7 +12426,7 @@ def update_fleet_agent_configuration(self, fleet_id, update_fleet_agent_configur path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12538,7 +12538,7 @@ def update_jms_plugin(self, jms_plugin_id, update_jms_plugin_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12660,7 +12660,7 @@ def update_task_schedule(self, update_task_schedule_details, task_schedule_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/jms_java_downloads/java_download_client.py b/src/oci/jms_java_downloads/java_download_client.py index 8bc081039..a8f3bf7d8 100644 --- a/src/oci/jms_java_downloads/java_download_client.py +++ b/src/oci/jms_java_downloads/java_download_client.py @@ -180,7 +180,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -579,7 +579,7 @@ def delete_java_download_report(self, java_download_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -684,7 +684,7 @@ def delete_java_download_token(self, java_download_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -789,7 +789,7 @@ def delete_java_license_acceptance_record(self, java_license_acceptance_record_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -979,7 +979,7 @@ def get_java_download_report(self, java_download_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1077,7 +1077,7 @@ def get_java_download_report_content(self, java_download_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1175,7 +1175,7 @@ def get_java_download_token(self, java_download_token_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1275,7 +1275,7 @@ def get_java_license(self, license_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1373,7 +1373,7 @@ def get_java_license_acceptance_record(self, java_license_acceptance_record_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1471,7 +1471,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2413,7 +2413,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2555,7 +2555,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2933,7 +2933,7 @@ def update_java_download_token(self, java_download_token_id, update_java_downloa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3043,7 +3043,7 @@ def update_java_license_acceptance_record(self, java_license_acceptance_record_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/jms_utils/jms_utils_client.py b/src/oci/jms_utils/jms_utils_client.py index cec824f91..3a116c660 100644 --- a/src/oci/jms_utils/jms_utils_client.py +++ b/src/oci/jms_utils/jms_utils_client.py @@ -184,7 +184,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -293,7 +293,7 @@ def delete_java_migration_analysis(self, java_migration_analysis_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -402,7 +402,7 @@ def delete_performance_tuning_analysis(self, performance_tuning_analysis_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -603,7 +603,7 @@ def get_java_migration_analysis(self, java_migration_analysis_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -706,7 +706,7 @@ def get_performance_tuning_analysis(self, performance_tuning_analysis_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -908,7 +908,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1331,7 +1331,7 @@ def list_work_items(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1462,7 +1462,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1609,7 +1609,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/key_management/ekm_client.py b/src/oci/key_management/ekm_client.py index 5922f97dc..47e2610ad 100644 --- a/src/oci/key_management/ekm_client.py +++ b/src/oci/key_management/ekm_client.py @@ -281,7 +281,7 @@ def delete_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -378,7 +378,7 @@ def get_ekms_private_endpoint(self, ekms_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -621,7 +621,7 @@ def update_ekms_private_endpoint(self, ekms_private_endpoint_id, update_ekms_pri path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/key_management/kms_hsm_cluster_client.py b/src/oci/key_management/kms_hsm_cluster_client.py index bfcd690b8..1746aa511 100644 --- a/src/oci/key_management/kms_hsm_cluster_client.py +++ b/src/oci/key_management/kms_hsm_cluster_client.py @@ -191,7 +191,7 @@ def cancel_hsm_cluster_deletion(self, hsm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -312,7 +312,7 @@ def change_hsm_cluster_compartment(self, hsm_cluster_id, change_hsm_cluster_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -529,7 +529,7 @@ def download_certificate_signing_request(self, hsm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -635,7 +635,7 @@ def get_hsm_cluster(self, hsm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -746,7 +746,7 @@ def get_hsm_partition(self, hsm_cluster_id, hsm_partition_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -855,7 +855,7 @@ def get_pre_co_user_credentials(self, hsm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1123,7 +1123,7 @@ def list_hsm_partitions(self, hsm_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1274,7 +1274,7 @@ def schedule_hsm_cluster_deletion(self, hsm_cluster_id, schedule_hsm_cluster_del path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1393,7 +1393,7 @@ def update_hsm_cluster(self, hsm_cluster_id, update_hsm_cluster_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1514,7 +1514,7 @@ def upload_partition_certificates(self, hsm_cluster_id, upload_partition_certifi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/key_management/kms_management_client.py b/src/oci/key_management/kms_management_client.py index 54e2d3650..c04925d1c 100644 --- a/src/oci/key_management/kms_management_client.py +++ b/src/oci/key_management/kms_management_client.py @@ -195,7 +195,7 @@ def backup_key(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -322,7 +322,7 @@ def cancel_key_deletion(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -451,7 +451,7 @@ def cancel_key_version_deletion(self, key_id, key_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -582,7 +582,7 @@ def change_key_compartment(self, key_id, change_key_compartment_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -808,7 +808,7 @@ def create_key_version(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -933,7 +933,7 @@ def disable_key(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1057,7 +1057,7 @@ def enable_key(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1163,7 +1163,7 @@ def get_key(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1270,7 +1270,7 @@ def get_key_version(self, key_id, key_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1371,7 +1371,7 @@ def get_replication_status(self, replication_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1674,7 +1674,7 @@ def import_key_version(self, key_id, import_key_version_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1807,7 +1807,7 @@ def list_key_versions(self, key_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2172,7 +2172,7 @@ def restore_key_from_file(self, restore_key_from_file_details, **kwargs): restore_key_from_file_details = kwargs.get("restore_key_from_file_details", missing) if restore_key_from_file_details is not missing and restore_key_from_file_details is not None: - if (not isinstance(restore_key_from_file_details, (six.binary_type, six.string_types)) and + if (not isinstance(restore_key_from_file_details, (bytes, str)) and not hasattr(restore_key_from_file_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -2412,7 +2412,7 @@ def schedule_key_deletion(self, key_id, schedule_key_deletion_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2545,7 +2545,7 @@ def schedule_key_version_deletion(self, key_id, key_version_id, schedule_key_ver path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2666,7 +2666,7 @@ def update_key(self, key_id, update_key_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/key_management/kms_vault_client.py b/src/oci/key_management/kms_vault_client.py index 13ef3321d..8a516a4d0 100644 --- a/src/oci/key_management/kms_vault_client.py +++ b/src/oci/key_management/kms_vault_client.py @@ -198,7 +198,7 @@ def backup_vault(self, vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -326,7 +326,7 @@ def cancel_vault_deletion(self, vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -457,7 +457,7 @@ def change_vault_compartment(self, vault_id, change_vault_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -694,7 +694,7 @@ def create_vault_replica(self, vault_id, create_vault_replica_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -820,7 +820,7 @@ def delete_vault_replica(self, vault_id, delete_vault_replica_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -926,7 +926,7 @@ def get_vault(self, vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1024,7 +1024,7 @@ def get_vault_usage(self, vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1167,7 +1167,7 @@ def list_vault_replicas(self, vault_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1490,7 +1490,7 @@ def restore_vault_from_file(self, compartment_id, restore_vault_from_file_detail restore_vault_from_file_details = kwargs.get("restore_vault_from_file_details", missing) if restore_vault_from_file_details is not missing and restore_vault_from_file_details is not None: - if (not isinstance(restore_vault_from_file_details, (six.binary_type, six.string_types)) and + if (not isinstance(restore_vault_from_file_details, (bytes, str)) and not hasattr(restore_vault_from_file_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1745,7 +1745,7 @@ def schedule_vault_deletion(self, vault_id, schedule_vault_deletion_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1866,7 +1866,7 @@ def update_vault(self, vault_id, update_vault_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/license_manager/license_manager_client.py b/src/oci/license_manager/license_manager_client.py index 59583db01..2c9075c66 100644 --- a/src/oci/license_manager/license_manager_client.py +++ b/src/oci/license_manager/license_manager_client.py @@ -474,7 +474,7 @@ def delete_license_record(self, license_record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -578,7 +578,7 @@ def delete_product_license(self, product_license_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -957,7 +957,7 @@ def get_license_record(self, license_record_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1056,7 +1056,7 @@ def get_product_license(self, product_license_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1998,7 +1998,7 @@ def update_license_record(self, license_record_id, update_license_record_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2109,7 +2109,7 @@ def update_product_license(self, product_license_id, update_product_license_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/limits/limits_client.py b/src/oci/limits/limits_client.py index 8e0cd8c5b..81d5c897a 100644 --- a/src/oci/limits/limits_client.py +++ b/src/oci/limits/limits_client.py @@ -198,7 +198,7 @@ def get_resource_availability(self, service_name, limit_name, compartment_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/limits/quotas_client.py b/src/oci/limits/quotas_client.py index 3c5c104da..bd568b7d1 100644 --- a/src/oci/limits/quotas_client.py +++ b/src/oci/limits/quotas_client.py @@ -181,7 +181,7 @@ def add_quota_lock(self, quota_id, add_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -390,7 +390,7 @@ def delete_quota(self, quota_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -495,7 +495,7 @@ def get_quota(self, quota_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -753,7 +753,7 @@ def remove_quota_lock(self, quota_id, remove_lock_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -866,7 +866,7 @@ def update_quota(self, quota_id, update_quota_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/load_balancer/load_balancer_client.py b/src/oci/load_balancer/load_balancer_client.py index 41d8c0716..f99824a12 100644 --- a/src/oci/load_balancer/load_balancer_client.py +++ b/src/oci/load_balancer/load_balancer_client.py @@ -203,7 +203,7 @@ def change_load_balancer_compartment(self, load_balancer_id, change_load_balance path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -335,7 +335,7 @@ def create_backend(self, create_backend_details, load_balancer_id, backend_set_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -461,7 +461,7 @@ def create_backend_set(self, create_backend_set_details, load_balancer_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -587,7 +587,7 @@ def create_certificate(self, create_certificate_details, load_balancer_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -716,7 +716,7 @@ def create_hostname(self, create_hostname_details, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -842,7 +842,7 @@ def create_listener(self, create_listener_details, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1097,7 +1097,7 @@ def create_path_route_set(self, create_path_route_set_details, load_balancer_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1226,7 +1226,7 @@ def create_routing_policy(self, create_routing_policy_details, load_balancer_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1355,7 +1355,7 @@ def create_rule_set(self, load_balancer_id, create_rule_set_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1481,7 +1481,7 @@ def create_ssl_cipher_suite(self, create_ssl_cipher_suite_details, load_balancer path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1608,7 +1608,7 @@ def delete_backend(self, load_balancer_id, backend_set_name, backend_name, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1727,7 +1727,7 @@ def delete_backend_set(self, load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1845,7 +1845,7 @@ def delete_certificate(self, load_balancer_id, certificate_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1962,7 +1962,7 @@ def delete_hostname(self, load_balancer_id, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2079,7 +2079,7 @@ def delete_listener(self, load_balancer_id, listener_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2190,7 +2190,7 @@ def delete_load_balancer(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2310,7 +2310,7 @@ def delete_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2430,7 +2430,7 @@ def delete_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2550,7 +2550,7 @@ def delete_rule_set(self, load_balancer_id, rule_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2667,7 +2667,7 @@ def delete_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2790,7 +2790,7 @@ def get_backend(self, load_balancer_id, backend_set_name, backend_name, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2915,7 +2915,7 @@ def get_backend_health(self, load_balancer_id, backend_set_name, backend_name, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3034,7 +3034,7 @@ def get_backend_set(self, load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3153,7 +3153,7 @@ def get_backend_set_health(self, load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3272,7 +3272,7 @@ def get_health_checker(self, load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3391,7 +3391,7 @@ def get_hostname(self, load_balancer_id, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3504,7 +3504,7 @@ def get_load_balancer(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3617,7 +3617,7 @@ def get_load_balancer_health(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3736,7 +3736,7 @@ def get_path_route_set(self, load_balancer_id, path_route_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3855,7 +3855,7 @@ def get_routing_policy(self, load_balancer_id, routing_policy_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3974,7 +3974,7 @@ def get_rule_set(self, load_balancer_id, rule_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4093,7 +4093,7 @@ def get_ssl_cipher_suite(self, load_balancer_id, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4193,7 +4193,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4305,7 +4305,7 @@ def list_backend_sets(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4424,7 +4424,7 @@ def list_backends(self, load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4538,7 +4538,7 @@ def list_certificates(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4652,7 +4652,7 @@ def list_hostnames(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4776,7 +4776,7 @@ def list_listener_rules(self, load_balancer_id, listener_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5177,7 +5177,7 @@ def list_path_route_sets(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5536,7 +5536,7 @@ def list_routing_policies(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5657,7 +5657,7 @@ def list_rule_sets(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5884,7 +5884,7 @@ def list_ssl_cipher_suites(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6002,7 +6002,7 @@ def list_work_requests(self, load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6145,7 +6145,7 @@ def update_backend(self, update_backend_details, load_balancer_id, backend_set_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6277,7 +6277,7 @@ def update_backend_set(self, update_backend_set_details, load_balancer_id, backe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6409,7 +6409,7 @@ def update_health_checker(self, health_checker, load_balancer_id, backend_set_na path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6543,7 +6543,7 @@ def update_hostname(self, update_hostname_details, load_balancer_id, name, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6675,7 +6675,7 @@ def update_listener(self, update_listener_details, load_balancer_id, listener_na path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6801,7 +6801,7 @@ def update_load_balancer(self, update_load_balancer_details, load_balancer_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6932,7 +6932,7 @@ def update_load_balancer_shape(self, load_balancer_id, update_load_balancer_shap path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7058,7 +7058,7 @@ def update_network_security_groups(self, update_network_security_groups_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7195,7 +7195,7 @@ def update_path_route_set(self, update_path_route_set_details, load_balancer_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7330,7 +7330,7 @@ def update_routing_policy(self, update_routing_policy_details, load_balancer_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7465,7 +7465,7 @@ def update_rule_set(self, load_balancer_id, rule_set_name, update_rule_set_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7597,7 +7597,7 @@ def update_ssl_cipher_suite(self, update_ssl_cipher_suite_details, load_balancer path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/lockbox/lockbox_client.py b/src/oci/lockbox/lockbox_client.py index cb10d0e1b..87c52df58 100644 --- a/src/oci/lockbox/lockbox_client.py +++ b/src/oci/lockbox/lockbox_client.py @@ -182,7 +182,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -298,7 +298,7 @@ def change_approval_template_compartment(self, approval_template_id, change_appr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -418,7 +418,7 @@ def change_lockbox_compartment(self, lockbox_id, change_lockbox_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -821,7 +821,7 @@ def delete_approval_template(self, approval_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -934,7 +934,7 @@ def delete_lockbox(self, lockbox_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1213,7 +1213,7 @@ def get_access_materials(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1311,7 +1311,7 @@ def get_access_request(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1409,7 +1409,7 @@ def get_access_request_internal(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1507,7 +1507,7 @@ def get_approval_template(self, approval_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1605,7 +1605,7 @@ def get_lockbox(self, lockbox_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1703,7 +1703,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1820,7 +1820,7 @@ def handle_access_request(self, access_request_id, handle_access_request_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2471,7 +2471,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2613,7 +2613,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2902,7 +2902,7 @@ def update_approval_template(self, approval_template_id, update_approval_templat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3014,7 +3014,7 @@ def update_lockbox(self, lockbox_id, update_lockbox_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/log_analytics/log_analytics_client.py b/src/oci/log_analytics/log_analytics_client.py index 75bc23d87..efc728a65 100644 --- a/src/oci/log_analytics/log_analytics_client.py +++ b/src/oci/log_analytics/log_analytics_client.py @@ -196,7 +196,7 @@ def add_entity_association(self, namespace_name, log_analytics_entity_id, add_en path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -316,7 +316,7 @@ def add_source_event_types(self, namespace_name, source_name, add_event_type_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -465,7 +465,7 @@ def append_lookup_data(self, namespace_name, lookup_name, append_lookup_file_bod path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -494,7 +494,7 @@ def append_lookup_data(self, namespace_name, lookup_name, append_lookup_file_bod append_lookup_file_body = kwargs.get("append_lookup_file_body", missing) if append_lookup_file_body is not missing and append_lookup_file_body is not None: - if (not isinstance(append_lookup_file_body, (six.binary_type, six.string_types)) and + if (not isinstance(append_lookup_file_body, (bytes, str)) and not hasattr(append_lookup_file_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -618,7 +618,7 @@ def assign_encryption_key(self, namespace_name, assign_encryption_key_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -747,7 +747,7 @@ def batch_get_basic_info(self, namespace_name, basic_details, is_include_deleted path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -890,7 +890,7 @@ def cancel_query_work_request(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1010,7 +1010,7 @@ def change_ingest_time_rule_compartment(self, namespace_name, ingest_time_rule_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1138,7 +1138,7 @@ def change_log_analytics_em_bridge_compartment(self, namespace_name, log_analyti path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1266,7 +1266,7 @@ def change_log_analytics_entity_compartment(self, namespace_name, log_analytics_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1394,7 +1394,7 @@ def change_log_analytics_log_group_compartment(self, namespace_name, log_analyti path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1516,7 +1516,7 @@ def change_log_analytics_object_collection_rule_compartment(self, namespace_name path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1640,7 +1640,7 @@ def change_lookup_compartment(self, namespace_name, lookup_name, change_lookup_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1769,7 +1769,7 @@ def change_scheduled_task_compartment(self, namespace_name, scheduled_task_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1896,7 +1896,7 @@ def clean(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2005,7 +2005,7 @@ def compare_content(self, namespace_name, compare_content_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2120,7 +2120,7 @@ def create_ingest_time_rule(self, namespace_name, create_ingest_time_rule_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2237,7 +2237,7 @@ def create_log_analytics_em_bridge(self, namespace_name, create_log_analytics_em path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2354,7 +2354,7 @@ def create_log_analytics_entity(self, namespace_name, create_log_analytics_entit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2471,7 +2471,7 @@ def create_log_analytics_entity_type(self, namespace_name, create_log_analytics_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2586,7 +2586,7 @@ def create_log_analytics_log_group(self, namespace_name, create_log_analytics_lo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2695,7 +2695,7 @@ def create_log_analytics_object_collection_rule(self, namespace_name, create_log path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2808,7 +2808,7 @@ def create_scheduled_task(self, namespace_name, create_scheduled_task_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2923,7 +2923,7 @@ def delete_associations(self, namespace_name, delete_log_analytics_association_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3047,7 +3047,7 @@ def delete_field(self, namespace_name, field_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3158,7 +3158,7 @@ def delete_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3275,7 +3275,7 @@ def delete_label(self, namespace_name, label_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3390,7 +3390,7 @@ def delete_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3508,7 +3508,7 @@ def delete_log_analytics_entity(self, namespace_name, log_analytics_entity_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3622,7 +3622,7 @@ def delete_log_analytics_entity_type(self, namespace_name, entity_type_name, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3729,7 +3729,7 @@ def delete_log_analytics_log_group(self, namespace_name, log_analytics_log_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3841,7 +3841,7 @@ def delete_log_analytics_object_collection_rule(self, namespace_name, log_analyt path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3960,7 +3960,7 @@ def delete_lookup(self, namespace_name, lookup_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4086,7 +4086,7 @@ def delete_parser(self, namespace_name, parser_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4198,7 +4198,7 @@ def delete_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4315,7 +4315,7 @@ def delete_source(self, namespace_name, source_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4427,7 +4427,7 @@ def delete_upload(self, namespace_name, upload_reference, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4531,7 +4531,7 @@ def delete_upload_file(self, namespace_name, upload_reference, file_reference, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4633,7 +4633,7 @@ def delete_upload_warning(self, namespace_name, upload_reference, warning_refere path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4735,7 +4735,7 @@ def disable_archiving(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4851,7 +4851,7 @@ def disable_auto_association(self, namespace_name, source_name, disable_auto_ass path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4967,7 +4967,7 @@ def disable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5079,7 +5079,7 @@ def disable_source_event_types(self, namespace_name, source_name, disable_event_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5191,7 +5191,7 @@ def enable_archiving(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5307,7 +5307,7 @@ def enable_auto_association(self, namespace_name, source_name, enable_auto_assoc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5423,7 +5423,7 @@ def enable_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5535,7 +5535,7 @@ def enable_source_event_types(self, namespace_name, source_name, enable_event_ty path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5658,7 +5658,7 @@ def estimate_purge_data_size(self, namespace_name, estimate_purge_data_size_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5768,7 +5768,7 @@ def estimate_recall_data_size(self, namespace_name, estimate_recall_data_size_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5875,7 +5875,7 @@ def estimate_release_data_size(self, namespace_name, estimate_release_data_size_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5990,7 +5990,7 @@ def export_custom_content(self, namespace_name, export_custom_content_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6099,7 +6099,7 @@ def export_query_result(self, namespace_name, export_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6220,7 +6220,7 @@ def extract_structured_log_field_paths(self, namespace_name, logan_parser_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'parser_type' in kwargs: @@ -6357,7 +6357,7 @@ def extract_structured_log_header_paths(self, namespace_name, logan_parser_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'parser_type' in kwargs: @@ -6480,7 +6480,7 @@ def filter(self, namespace_name, filter_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6587,7 +6587,7 @@ def get_association_summary(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6696,7 +6696,7 @@ def get_category(self, namespace_name, category_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6805,7 +6805,7 @@ def get_column_names(self, namespace_name, sql_query, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6918,7 +6918,7 @@ def get_config_work_request(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7020,7 +7020,7 @@ def get_field(self, namespace_name, field_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7122,7 +7122,7 @@ def get_field_usages(self, namespace_name, field_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7224,7 +7224,7 @@ def get_fields_summary(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7333,7 +7333,7 @@ def get_ingest_time_rule(self, namespace_name, ingest_time_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7435,7 +7435,7 @@ def get_label(self, namespace_name, label_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7533,7 +7533,7 @@ def get_label_summary(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7635,7 +7635,7 @@ def get_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7734,7 +7734,7 @@ def get_log_analytics_em_bridge_summary(self, namespace_name, compartment_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7840,7 +7840,7 @@ def get_log_analytics_entities_summary(self, namespace_name, compartment_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7951,7 +7951,7 @@ def get_log_analytics_entity(self, namespace_name, log_analytics_entity_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8058,7 +8058,7 @@ def get_log_analytics_entity_type(self, namespace_name, entity_type_name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8158,7 +8158,7 @@ def get_log_analytics_log_group(self, namespace_name, log_analytics_log_group_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8259,7 +8259,7 @@ def get_log_analytics_log_groups_summary(self, namespace_name, compartment_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8370,7 +8370,7 @@ def get_log_analytics_object_collection_rule(self, namespace_name, log_analytics path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8468,7 +8468,7 @@ def get_log_sets_count(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8570,7 +8570,7 @@ def get_lookup(self, namespace_name, lookup_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8672,7 +8672,7 @@ def get_lookup_summary(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -8777,7 +8777,7 @@ def get_namespace(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8879,7 +8879,7 @@ def get_parser(self, namespace_name, parser_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8977,7 +8977,7 @@ def get_parser_summary(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9095,7 +9095,7 @@ def get_preferences(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -9245,7 +9245,7 @@ def get_query_result(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'output_mode' in kwargs: @@ -9368,7 +9368,7 @@ def get_query_work_request(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9466,7 +9466,7 @@ def get_recall_count(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9572,7 +9572,7 @@ def get_recalled_data_size(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9681,7 +9681,7 @@ def get_rules_summary(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -9791,7 +9791,7 @@ def get_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9896,7 +9896,7 @@ def get_source(self, namespace_name, source_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10001,7 +10001,7 @@ def get_source_summary(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10099,7 +10099,7 @@ def get_storage(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10198,7 +10198,7 @@ def get_storage_usage(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10303,7 +10303,7 @@ def get_storage_work_request(self, work_request_id, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10405,7 +10405,7 @@ def get_template(self, namespace_name, template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10503,7 +10503,7 @@ def get_unprocessed_data_bucket(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10605,7 +10605,7 @@ def get_upload(self, namespace_name, upload_reference, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10709,7 +10709,7 @@ def get_work_request(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10835,7 +10835,7 @@ def import_custom_content(self, namespace_name, import_custom_content_file_body, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -10862,7 +10862,7 @@ def import_custom_content(self, namespace_name, import_custom_content_file_body, import_custom_content_file_body = kwargs.get("import_custom_content_file_body", missing) if import_custom_content_file_body is not missing and import_custom_content_file_body is not None: - if (not isinstance(import_custom_content_file_body, (six.binary_type, six.string_types)) and + if (not isinstance(import_custom_content_file_body, (bytes, str)) and not hasattr(import_custom_content_file_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -11007,7 +11007,7 @@ def list_associable_entities(self, namespace_name, source_name, compartment_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'type' in kwargs: @@ -11176,7 +11176,7 @@ def list_associated_entities(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11326,7 +11326,7 @@ def list_auto_associations(self, namespace_name, source_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -11483,7 +11483,7 @@ def list_categories(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11627,7 +11627,7 @@ def list_config_work_requests(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11796,7 +11796,7 @@ def list_effective_properties(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -11925,7 +11925,7 @@ def list_encryption_key_info(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -12054,7 +12054,7 @@ def list_entity_associations(self, namespace_name, log_analytics_entity_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'direct_or_all_associations' in kwargs: @@ -12230,7 +12230,7 @@ def list_entity_source_associations(self, namespace_name, compartment_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'life_cycle_state' in kwargs: @@ -12428,7 +12428,7 @@ def list_fields(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'parser_type' in kwargs: @@ -12617,7 +12617,7 @@ def list_ingest_time_rules(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -12767,7 +12767,7 @@ def list_label_priorities(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -12898,7 +12898,7 @@ def list_label_source_details(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13074,7 +13074,7 @@ def list_labels(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'is_system' in kwargs: @@ -13261,7 +13261,7 @@ def list_log_analytics_em_bridges(self, namespace_name, compartment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13523,7 +13523,7 @@ def list_log_analytics_entities(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13725,7 +13725,7 @@ def list_log_analytics_entity_topology(self, namespace_name, log_analytics_entit path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -13899,7 +13899,7 @@ def list_log_analytics_entity_types(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'cloud_type' in kwargs: @@ -14065,7 +14065,7 @@ def list_log_analytics_log_groups(self, namespace_name, compartment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14223,7 +14223,7 @@ def list_log_analytics_object_collection_rules(self, namespace_name, compartment path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -14373,7 +14373,7 @@ def list_log_sets(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -14544,7 +14544,7 @@ def list_lookups(self, namespace_name, type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') type_allowed_values = ["Lookup", "Dictionary", "Module"] @@ -14713,7 +14713,7 @@ def list_meta_source_types(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -14958,7 +14958,7 @@ def list_overlapping_recalls(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15110,7 +15110,7 @@ def list_parser_actions(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -15258,7 +15258,7 @@ def list_parser_functions(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15401,7 +15401,7 @@ def list_parser_meta_plugins(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15586,7 +15586,7 @@ def list_parsers(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'source_type' in kwargs: @@ -15773,7 +15773,7 @@ def list_properties_metadata(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -15928,7 +15928,7 @@ def list_query_work_requests(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'mode' in kwargs: @@ -16088,7 +16088,7 @@ def list_recalled_data(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16245,7 +16245,7 @@ def list_recalled_info(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -16409,7 +16409,7 @@ def list_resource_categories(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -16581,7 +16581,7 @@ def list_rules(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'kind' in kwargs: @@ -16772,7 +16772,7 @@ def list_scheduled_tasks(self, namespace_name, task_type, compartment_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') task_type_allowed_values = ["SAVED_SEARCH", "ACCELERATION", "PURGE"] @@ -16948,7 +16948,7 @@ def list_source_associations(self, namespace_name, source_name, compartment_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'life_cycle_state' in kwargs: @@ -17123,7 +17123,7 @@ def list_source_event_types(self, namespace_name, source_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'is_system' in kwargs: @@ -17279,7 +17279,7 @@ def list_source_extended_field_definitions(self, namespace_name, source_name, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17421,7 +17421,7 @@ def list_source_label_operators(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17563,7 +17563,7 @@ def list_source_meta_functions(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17713,7 +17713,7 @@ def list_source_patterns(self, namespace_name, source_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -17907,7 +17907,7 @@ def list_sources(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'is_system' in kwargs: @@ -18075,7 +18075,7 @@ def list_storage_work_request_errors(self, compartment_id, work_request_id, name path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -18250,7 +18250,7 @@ def list_storage_work_requests(self, compartment_id, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -18401,7 +18401,7 @@ def list_supported_char_encodings(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18515,7 +18515,7 @@ def list_supported_timezones(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -18669,7 +18669,7 @@ def list_templates(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -18839,7 +18839,7 @@ def list_upload_files(self, namespace_name, upload_reference, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -18983,7 +18983,7 @@ def list_upload_warnings(self, namespace_name, upload_reference, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -19126,7 +19126,7 @@ def list_uploads(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -19331,7 +19331,7 @@ def list_warnings(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'warning_state' in kwargs: @@ -19485,7 +19485,7 @@ def list_work_request_errors(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -19603,7 +19603,7 @@ def list_work_request_logs(self, namespace_name, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -19718,7 +19718,7 @@ def list_work_requests(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -19831,7 +19831,7 @@ def offboard_namespace(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -19935,7 +19935,7 @@ def onboard_namespace(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20034,7 +20034,7 @@ def parse_query(self, namespace_name, parse_query_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20151,7 +20151,7 @@ def pause_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20270,7 +20270,7 @@ def purge_storage_data(self, namespace_name, purge_storage_data_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20387,7 +20387,7 @@ def put_query_work_request_background(self, namespace_name, work_request_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20495,7 +20495,7 @@ def query(self, namespace_name, query_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -20626,7 +20626,7 @@ def recall_archived_data(self, namespace_name, recall_archived_data_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -20784,7 +20784,7 @@ def register_lookup(self, namespace_name, type, register_lookup_content_file_bod path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') type_allowed_values = ["Lookup", "Dictionary", "Module"] @@ -20822,7 +20822,7 @@ def register_lookup(self, namespace_name, type, register_lookup_content_file_bod register_lookup_content_file_body = kwargs.get("register_lookup_content_file_body", missing) if register_lookup_content_file_body is not missing and register_lookup_content_file_body is not None: - if (not isinstance(register_lookup_content_file_body, (six.binary_type, six.string_types)) and + if (not isinstance(register_lookup_content_file_body, (bytes, str)) and not hasattr(register_lookup_content_file_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -20948,7 +20948,7 @@ def release_recalled_data(self, namespace_name, release_recalled_data_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21074,7 +21074,7 @@ def remove_entity_associations(self, namespace_name, log_analytics_entity_id, re path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21190,7 +21190,7 @@ def remove_preferences(self, namespace_name, remove_preferences_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21297,7 +21297,7 @@ def remove_resource_categories(self, namespace_name, remove_resource_categories_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21414,7 +21414,7 @@ def remove_source_event_types(self, namespace_name, source_name, remove_event_ty path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21531,7 +21531,7 @@ def resume_scheduled_task(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21655,7 +21655,7 @@ def run(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -21769,7 +21769,7 @@ def set_unprocessed_data_bucket(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -21876,7 +21876,7 @@ def suggest(self, namespace_name, suggest_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -21994,7 +21994,7 @@ def suppress_warning(self, namespace_name, warning_reference_details, compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -22127,7 +22127,7 @@ def test_parser(self, namespace_name, test_parser_payload_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'scope' in kwargs: @@ -22262,7 +22262,7 @@ def unsuppress_warning(self, namespace_name, warning_reference_details, compartm path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -22388,7 +22388,7 @@ def update_ingest_time_rule(self, namespace_name, ingest_time_rule_id, update_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22508,7 +22508,7 @@ def update_log_analytics_em_bridge(self, namespace_name, log_analytics_em_bridge path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22626,7 +22626,7 @@ def update_log_analytics_entity(self, namespace_name, log_analytics_entity_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22744,7 +22744,7 @@ def update_log_analytics_entity_type(self, namespace_name, update_log_analytics_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22860,7 +22860,7 @@ def update_log_analytics_log_group(self, namespace_name, log_analytics_log_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -22982,7 +22982,7 @@ def update_log_analytics_object_collection_rule(self, namespace_name, log_analyt path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23108,7 +23108,7 @@ def update_lookup(self, namespace_name, lookup_name, update_lookup_metadata_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23260,7 +23260,7 @@ def update_lookup_data(self, namespace_name, lookup_name, update_lookup_file_bod path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -23289,7 +23289,7 @@ def update_lookup_data(self, namespace_name, lookup_name, update_lookup_file_bod update_lookup_file_body = kwargs.get("update_lookup_file_body", missing) if update_lookup_file_body is not missing and update_lookup_file_body is not None: - if (not isinstance(update_lookup_file_body, (six.binary_type, six.string_types)) and + if (not isinstance(update_lookup_file_body, (bytes, str)) and not hasattr(update_lookup_file_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -23405,7 +23405,7 @@ def update_preferences(self, namespace_name, update_preferences_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23512,7 +23512,7 @@ def update_resource_categories(self, namespace_name, update_resource_categories_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23631,7 +23631,7 @@ def update_scheduled_task(self, namespace_name, scheduled_task_id, update_schedu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23747,7 +23747,7 @@ def update_storage(self, namespace_name, update_storage_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -23901,7 +23901,7 @@ def upload_discovery_data(self, namespace_name, upload_discovery_data_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'discovery_data_type' in kwargs: @@ -23946,7 +23946,7 @@ def upload_discovery_data(self, namespace_name, upload_discovery_data_details, * upload_discovery_data_details = kwargs.get("upload_discovery_data_details", missing) if upload_discovery_data_details is not missing and upload_discovery_data_details is not None: - if (not isinstance(upload_discovery_data_details, (six.binary_type, six.string_types)) and + if (not isinstance(upload_discovery_data_details, (bytes, str)) and not hasattr(upload_discovery_data_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -24103,7 +24103,7 @@ def upload_log_events_file(self, namespace_name, log_group_id, upload_log_events path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'payload_type' in kwargs: @@ -24141,7 +24141,7 @@ def upload_log_events_file(self, namespace_name, log_group_id, upload_log_events upload_log_events_file_details = kwargs.get("upload_log_events_file_details", missing) if upload_log_events_file_details is not missing and upload_log_events_file_details is not None: - if (not isinstance(upload_log_events_file_details, (six.binary_type, six.string_types)) and + if (not isinstance(upload_log_events_file_details, (bytes, str)) and not hasattr(upload_log_events_file_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -24327,7 +24327,7 @@ def upload_log_file(self, namespace_name, log_source_name, filename, opc_meta_lo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -24366,7 +24366,7 @@ def upload_log_file(self, namespace_name, log_source_name, filename, opc_meta_lo upload_log_file_body = kwargs.get("upload_log_file_body", missing) if upload_log_file_body is not missing and upload_log_file_body is not None: - if (not isinstance(upload_log_file_body, (six.binary_type, six.string_types)) and + if (not isinstance(upload_log_file_body, (bytes, str)) and not hasattr(upload_log_file_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -24516,7 +24516,7 @@ def upload_otlp_logs(self, namespace_name, opc_meta_loggrpid, upload_otlp_logs_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24542,7 +24542,7 @@ def upload_otlp_logs(self, namespace_name, opc_meta_loggrpid, upload_otlp_logs_d upload_otlp_logs_details = kwargs.get("upload_otlp_logs_details", missing) if upload_otlp_logs_details is not missing and upload_otlp_logs_details is not None: - if (not isinstance(upload_otlp_logs_details, (six.binary_type, six.string_types)) and + if (not isinstance(upload_otlp_logs_details, (bytes, str)) and not hasattr(upload_otlp_logs_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -24662,7 +24662,7 @@ def upsert_associations(self, namespace_name, upsert_log_analytics_association_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -24792,7 +24792,7 @@ def upsert_field(self, namespace_name, upsert_log_analytics_field_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -24918,7 +24918,7 @@ def upsert_label(self, namespace_name, upsert_log_analytics_label_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25044,7 +25044,7 @@ def upsert_parser(self, namespace_name, upsert_log_analytics_parser_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25184,7 +25184,7 @@ def upsert_source(self, namespace_name, upsert_log_analytics_source_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -25331,7 +25331,7 @@ def validate_association_parameters(self, namespace_name, upsert_log_analytics_a path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -25464,7 +25464,7 @@ def validate_endpoint(self, namespace_name, validate_endpoint_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25574,7 +25574,7 @@ def validate_file(self, namespace_name, object_location, filename, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -25687,7 +25687,7 @@ def validate_label_condition(self, namespace_name, validate_label_condition_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -25816,7 +25816,7 @@ def validate_source(self, namespace_name, upsert_log_analytics_source_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -25942,7 +25942,7 @@ def validate_source_extended_field_details(self, namespace_name, log_analytics_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -26057,7 +26057,7 @@ def validate_source_mapping(self, namespace_name, object_location, filename, log path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -26185,7 +26185,7 @@ def verify(self, namespace_name, scheduled_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/logging/logging_management_client.py b/src/oci/logging/logging_management_client.py index d66f2f0a1..b9799d563 100644 --- a/src/oci/logging/logging_management_client.py +++ b/src/oci/logging/logging_management_client.py @@ -190,7 +190,7 @@ def change_log_group_compartment(self, log_group_id, change_log_group_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -303,7 +303,7 @@ def change_log_log_group(self, log_group_id, log_id, change_log_log_group_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -424,7 +424,7 @@ def change_log_saved_search_compartment(self, log_saved_search_id, change_log_sa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -547,7 +547,7 @@ def change_unified_agent_configuration_compartment(self, unified_agent_configura path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -660,7 +660,7 @@ def create_log(self, log_group_id, create_log_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1062,7 +1062,7 @@ def delete_log(self, log_group_id, log_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1166,7 +1166,7 @@ def delete_log_group(self, log_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1270,7 +1270,7 @@ def delete_log_saved_search(self, log_saved_search_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1374,7 +1374,7 @@ def delete_unified_agent_configuration(self, unified_agent_configuration_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1478,7 +1478,7 @@ def delete_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1578,7 +1578,7 @@ def get_log(self, log_group_id, log_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1675,7 +1675,7 @@ def get_log_group(self, log_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1772,7 +1772,7 @@ def get_log_saved_search(self, log_saved_search_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1869,7 +1869,7 @@ def get_unified_agent_configuration(self, unified_agent_configuration_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1966,7 +1966,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2401,7 +2401,7 @@ def list_logs(self, log_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'log_type' in kwargs: @@ -2803,7 +2803,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2919,7 +2919,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3195,7 +3195,7 @@ def update_log(self, log_group_id, log_id, update_log_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3305,7 +3305,7 @@ def update_log_group(self, log_group_id, update_log_group_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3414,7 +3414,7 @@ def update_log_saved_search(self, log_saved_search_id, update_log_saved_search_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3526,7 +3526,7 @@ def update_unified_agent_configuration(self, unified_agent_configuration_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/loggingingestion/logging_client.py b/src/oci/loggingingestion/logging_client.py index d3e8dea90..8a4683a2b 100644 --- a/src/oci/loggingingestion/logging_client.py +++ b/src/oci/loggingingestion/logging_client.py @@ -186,7 +186,7 @@ def put_logs(self, log_id, put_logs_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/lustre_file_storage/lustre_file_storage_client.py b/src/oci/lustre_file_storage/lustre_file_storage_client.py index ae3b7af5c..28e8dede3 100644 --- a/src/oci/lustre_file_storage/lustre_file_storage_client.py +++ b/src/oci/lustre_file_storage/lustre_file_storage_client.py @@ -184,7 +184,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -299,7 +299,7 @@ def change_lustre_file_system_compartment(self, lustre_file_system_id, change_lu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -424,7 +424,7 @@ def change_object_storage_link_compartment(self, object_storage_link_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -741,7 +741,7 @@ def delete_lustre_file_system(self, lustre_file_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -850,7 +850,7 @@ def delete_object_storage_link(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -952,7 +952,7 @@ def get_lustre_file_system(self, lustre_file_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1055,7 +1055,7 @@ def get_object_storage_link(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1171,7 +1171,7 @@ def get_sync_job(self, object_storage_link_id, sync_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1275,7 +1275,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1788,7 +1788,7 @@ def list_sync_jobs(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1952,7 +1952,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2107,7 +2107,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2423,7 +2423,7 @@ def start_export_to_object(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2545,7 +2545,7 @@ def start_import_from_object(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2667,7 +2667,7 @@ def stop_export_to_object(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2787,7 +2787,7 @@ def stop_import_from_object(self, object_storage_link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2901,7 +2901,7 @@ def update_lustre_file_system(self, lustre_file_system_id, update_lustre_file_sy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3015,7 +3015,7 @@ def update_object_storage_link(self, object_storage_link_id, update_object_stora path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/managed_kafka/kafka_cluster_client.py b/src/oci/managed_kafka/kafka_cluster_client.py index 7735ac474..26e932c78 100644 --- a/src/oci/managed_kafka/kafka_cluster_client.py +++ b/src/oci/managed_kafka/kafka_cluster_client.py @@ -184,7 +184,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -299,7 +299,7 @@ def change_kafka_cluster_compartment(self, kafka_cluster_id, change_kafka_cluste path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -416,7 +416,7 @@ def change_kafka_cluster_config_compartment(self, kafka_cluster_config_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -729,7 +729,7 @@ def delete_kafka_cluster(self, kafka_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -838,7 +838,7 @@ def delete_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -951,7 +951,7 @@ def delete_kafka_cluster_config_version(self, kafka_cluster_config_id, version_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1068,7 +1068,7 @@ def disable_superuser(self, kafka_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1190,7 +1190,7 @@ def enable_superuser(self, kafka_cluster_id, enable_superuser_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1296,7 +1296,7 @@ def get_kafka_cluster(self, kafka_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1399,7 +1399,7 @@ def get_kafka_cluster_config(self, kafka_cluster_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1506,7 +1506,7 @@ def get_kafka_cluster_config_version(self, kafka_cluster_config_id, version_numb path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1609,7 +1609,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1741,7 +1741,7 @@ def list_kafka_cluster_config_versions(self, kafka_cluster_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2242,7 +2242,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2397,7 +2397,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2707,7 +2707,7 @@ def update_kafka_cluster(self, kafka_cluster_id, update_kafka_cluster_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2823,7 +2823,7 @@ def update_kafka_cluster_config(self, kafka_cluster_config_id, update_kafka_clus path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/management_agent/management_agent_client.py b/src/oci/management_agent/management_agent_client.py index 4d6146514..ec37dc665 100644 --- a/src/oci/management_agent/management_agent_client.py +++ b/src/oci/management_agent/management_agent_client.py @@ -192,7 +192,7 @@ def create_data_source(self, management_agent_id, create_data_source_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -504,7 +504,7 @@ def delete_data_source(self, management_agent_id, data_source_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -607,7 +607,7 @@ def delete_management_agent(self, management_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -710,7 +710,7 @@ def delete_management_agent_install_key(self, management_agent_install_key_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -813,7 +813,7 @@ def delete_named_credential(self, named_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -916,7 +916,7 @@ def delete_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1209,7 +1209,7 @@ def get_data_source(self, management_agent_id, data_source_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1307,7 +1307,7 @@ def get_management_agent(self, management_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1403,7 +1403,7 @@ def get_management_agent_install_key(self, management_agent_install_key_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1503,7 +1503,7 @@ def get_management_agent_install_key_content(self, management_agent_install_key_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1614,7 +1614,7 @@ def get_named_credential(self, named_credential_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1808,7 +1808,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1940,7 +1940,7 @@ def list_availability_histories(self, management_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2086,7 +2086,7 @@ def list_data_sources(self, management_agent_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3116,7 +3116,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3256,7 +3256,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3914,7 +3914,7 @@ def update_data_source(self, management_agent_id, data_source_key, update_data_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4032,7 +4032,7 @@ def update_management_agent(self, management_agent_id, update_management_agent_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4152,7 +4152,7 @@ def update_management_agent_install_key(self, management_agent_install_key_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4272,7 +4272,7 @@ def update_named_credential(self, named_credential_id, update_named_credential_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/management_dashboard/dashx_apis_client.py b/src/oci/management_dashboard/dashx_apis_client.py index b3b4ed0f5..b390c9db8 100644 --- a/src/oci/management_dashboard/dashx_apis_client.py +++ b/src/oci/management_dashboard/dashx_apis_client.py @@ -191,7 +191,7 @@ def change_management_dashboards_compartment(self, management_dashboard_id, chan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -311,7 +311,7 @@ def change_management_saved_searches_compartment(self, management_saved_search_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -618,7 +618,7 @@ def delete_management_dashboard(self, management_dashboard_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -721,7 +721,7 @@ def delete_management_saved_search(self, management_saved_search_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -831,7 +831,7 @@ def export_dashboard(self, export_dashboard_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -944,7 +944,7 @@ def get_management_dashboard(self, management_dashboard_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1050,7 +1050,7 @@ def get_management_saved_search(self, management_saved_search_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1148,7 +1148,7 @@ def get_oob_management_dashboard(self, management_dashboard_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1244,7 +1244,7 @@ def get_oob_management_saved_search(self, management_saved_search_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2025,7 +2025,7 @@ def update_management_dashboard(self, management_dashboard_id, update_management path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2145,7 +2145,7 @@ def update_management_saved_search(self, management_saved_search_id, update_mana path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/marketplace/marketplace_client.py b/src/oci/marketplace/marketplace_client.py index 7bbf9bea8..2db53f657 100644 --- a/src/oci/marketplace/marketplace_client.py +++ b/src/oci/marketplace/marketplace_client.py @@ -189,7 +189,7 @@ def change_publication_compartment(self, publication_id, change_publication_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -598,7 +598,7 @@ def delete_accepted_agreement(self, accepted_agreement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -709,7 +709,7 @@ def delete_publication(self, publication_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -821,7 +821,7 @@ def export_listing(self, listing_id, package_version, export_package_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -924,7 +924,7 @@ def get_accepted_agreement(self, accepted_agreement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1036,7 +1036,7 @@ def get_agreement(self, listing_id, package_version, agreement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1166,7 +1166,7 @@ def get_listing(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1299,7 +1299,7 @@ def get_package(self, listing_id, package_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1405,7 +1405,7 @@ def get_publication(self, publication_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1508,7 +1508,7 @@ def get_publication_package(self, publication_id, package_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1607,7 +1607,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1877,7 +1877,7 @@ def list_agreements(self, listing_id, package_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2504,7 +2504,7 @@ def list_packages(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2660,7 +2660,7 @@ def list_publication_packages(self, publication_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3268,7 +3268,7 @@ def list_taxes(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3394,7 +3394,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3537,7 +3537,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3933,7 +3933,7 @@ def update_accepted_agreement(self, accepted_agreement_id, update_accepted_agree path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4053,7 +4053,7 @@ def update_publication(self, publication_id, update_publication_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/marketplace_private_offer/attachment_client.py b/src/oci/marketplace_private_offer/attachment_client.py index b38189dd8..f519d1ebe 100644 --- a/src/oci/marketplace_private_offer/attachment_client.py +++ b/src/oci/marketplace_private_offer/attachment_client.py @@ -183,7 +183,7 @@ def create_attachment(self, create_attachment_details, offer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -297,7 +297,7 @@ def delete_attachment(self, offer_id, attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -398,7 +398,7 @@ def get_attachment(self, offer_id, attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -500,7 +500,7 @@ def get_attachment_content(self, offer_id, attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -640,7 +640,7 @@ def list_attachments(self, offer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: diff --git a/src/oci/marketplace_private_offer/offer_client.py b/src/oci/marketplace_private_offer/offer_client.py index a5e8d5650..b26fd2672 100644 --- a/src/oci/marketplace_private_offer/offer_client.py +++ b/src/oci/marketplace_private_offer/offer_client.py @@ -278,7 +278,7 @@ def delete_offer(self, offer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -375,7 +375,7 @@ def get_offer(self, offer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -473,7 +473,7 @@ def get_offer_internal_detail(self, offer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -743,7 +743,7 @@ def update_offer(self, offer_id, update_offer_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/marketplace_publisher/marketplace_publisher_client.py b/src/oci/marketplace_publisher/marketplace_publisher_client.py index 409db292d..da7d8b9d7 100644 --- a/src/oci/marketplace_publisher/marketplace_publisher_client.py +++ b/src/oci/marketplace_publisher/marketplace_publisher_client.py @@ -181,7 +181,7 @@ def activate_term_version(self, term_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -288,7 +288,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -401,7 +401,7 @@ def cascading_delete_listing(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -516,7 +516,7 @@ def cascading_delete_listing_revision(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -634,7 +634,7 @@ def change_artifact_compartment(self, artifact_id, change_artifact_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -754,7 +754,7 @@ def change_listing_compartment(self, listing_id, change_listing_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -863,7 +863,7 @@ def change_listing_revision_to_new_status(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -981,7 +981,7 @@ def change_term_compartment(self, term_id, change_term_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1098,7 +1098,7 @@ def clone_listing_revision(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1933,7 +1933,7 @@ def create_term_version(self, create_term_version_content, term_id, **kwargs): create_term_version_content = kwargs.get("create_term_version_content", missing) if create_term_version_content is not missing and create_term_version_content is not None: - if (not isinstance(create_term_version_content, (six.binary_type, six.string_types)) and + if (not isinstance(create_term_version_content, (bytes, str)) and not hasattr(create_term_version_content, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -2052,7 +2052,7 @@ def delete_artifact(self, artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2159,7 +2159,7 @@ def delete_listing(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2264,7 +2264,7 @@ def delete_listing_revision(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2369,7 +2369,7 @@ def delete_listing_revision_attachment(self, listing_revision_attachment_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2474,7 +2474,7 @@ def delete_listing_revision_note(self, listing_revision_note_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2579,7 +2579,7 @@ def delete_listing_revision_package(self, listing_revision_package_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2684,7 +2684,7 @@ def delete_term(self, term_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2789,7 +2789,7 @@ def delete_term_version(self, term_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2886,7 +2886,7 @@ def get_artifact(self, artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2987,7 +2987,7 @@ def get_category(self, category_code, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3092,7 +3092,7 @@ def get_lead(self, lead_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3190,7 +3190,7 @@ def get_listing(self, listing_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3288,7 +3288,7 @@ def get_listing_revision(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3386,7 +3386,7 @@ def get_listing_revision_attachment(self, listing_revision_attachment_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3484,7 +3484,7 @@ def get_listing_revision_attachment_content(self, listing_revision_attachment_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3582,7 +3582,7 @@ def get_listing_revision_icon_content(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3680,7 +3680,7 @@ def get_listing_revision_note(self, listing_revision_note_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3778,7 +3778,7 @@ def get_listing_revision_package(self, listing_revision_package_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3876,7 +3876,7 @@ def get_market(self, market_code, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3974,7 +3974,7 @@ def get_product(self, product_code, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4072,7 +4072,7 @@ def get_publisher(self, publisher_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4170,7 +4170,7 @@ def get_support_doc(self, support_doc_code, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4268,7 +4268,7 @@ def get_support_doc_content(self, support_doc_code, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4366,7 +4366,7 @@ def get_term(self, term_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4464,7 +4464,7 @@ def get_term_version(self, term_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4562,7 +4562,7 @@ def get_term_version_content(self, term_version_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4660,7 +4660,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7552,7 +7552,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7694,7 +7694,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -7987,7 +7987,7 @@ def mark_listing_revision_package_as_default(self, listing_revision_package_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8102,7 +8102,7 @@ def publish_listing_revision(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8220,7 +8220,7 @@ def publish_listing_revision_as_private(self, publish_listing_revision_as_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8337,7 +8337,7 @@ def publish_listing_revision_package(self, listing_revision_package_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8455,7 +8455,7 @@ def submit_listing_revision_for_review(self, submit_listing_revision_for_review_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8574,7 +8574,7 @@ def un_publish_listing_revision_package(self, listing_revision_package_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8684,7 +8684,7 @@ def update_artifact(self, artifact_id, update_artifact_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8794,7 +8794,7 @@ def update_listing(self, listing_id, update_listing_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8906,7 +8906,7 @@ def update_listing_revision(self, listing_revision_id, update_listing_revision_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9018,7 +9018,7 @@ def update_listing_revision_attachment(self, listing_revision_attachment_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9138,7 +9138,7 @@ def update_listing_revision_attachment_content(self, listing_revision_attachment path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9155,7 +9155,7 @@ def update_listing_revision_attachment_content(self, listing_revision_attachment update_listing_revision_attachment_content = kwargs.get("update_listing_revision_attachment_content", missing) if update_listing_revision_attachment_content is not missing and update_listing_revision_attachment_content is not None: - if (not isinstance(update_listing_revision_attachment_content, (six.binary_type, six.string_types)) and + if (not isinstance(update_listing_revision_attachment_content, (bytes, str)) and not hasattr(update_listing_revision_attachment_content, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -9278,7 +9278,7 @@ def update_listing_revision_icon_content(self, listing_revision_id, update_listi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9295,7 +9295,7 @@ def update_listing_revision_icon_content(self, listing_revision_id, update_listi update_listing_revision_icon_content = kwargs.get("update_listing_revision_icon_content", missing) if update_listing_revision_icon_content is not missing and update_listing_revision_icon_content is not None: - if (not isinstance(update_listing_revision_icon_content, (six.binary_type, six.string_types)) and + if (not isinstance(update_listing_revision_icon_content, (bytes, str)) and not hasattr(update_listing_revision_icon_content, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -9410,7 +9410,7 @@ def update_listing_revision_note(self, listing_revision_note_id, update_listing_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9522,7 +9522,7 @@ def update_listing_revision_package(self, listing_revision_package_id, update_li path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9634,7 +9634,7 @@ def update_term(self, term_id, update_term_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9746,7 +9746,7 @@ def update_term_version(self, term_version_id, update_term_version_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9870,7 +9870,7 @@ def update_term_version_content(self, term_version_id, update_term_version_conte path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9888,7 +9888,7 @@ def update_term_version_content(self, term_version_id, update_term_version_conte update_term_version_content = kwargs.get("update_term_version_content", missing) if update_term_version_content is not missing and update_term_version_content is not None: - if (not isinstance(update_term_version_content, (six.binary_type, six.string_types)) and + if (not isinstance(update_term_version_content, (bytes, str)) and not hasattr(update_term_version_content, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -10008,7 +10008,7 @@ def validate_and_publish_artifact(self, artifact_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10123,7 +10123,7 @@ def withdraw_listing_revision(self, listing_revision_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/media_services/media_services_client.py b/src/oci/media_services/media_services_client.py index 5b5776c5b..8e2d9510b 100644 --- a/src/oci/media_services/media_services_client.py +++ b/src/oci/media_services/media_services_client.py @@ -193,7 +193,7 @@ def add_media_asset_lock(self, add_lock_details, media_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -315,7 +315,7 @@ def add_media_workflow_configuration_lock(self, add_resource_lock_details, media path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -437,7 +437,7 @@ def add_media_workflow_job_lock(self, add_lock_details, media_workflow_job_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -559,7 +559,7 @@ def add_media_workflow_lock(self, add_resource_lock_details, media_workflow_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -681,7 +681,7 @@ def add_stream_cdn_config_lock(self, add_resource_lock_details, stream_cdn_confi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -803,7 +803,7 @@ def add_stream_distribution_channel_lock(self, add_resource_lock_details, stream path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -925,7 +925,7 @@ def add_stream_packaging_config_lock(self, add_resource_lock_details, stream_pac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1051,7 +1051,7 @@ def change_media_asset_compartment(self, media_asset_id, change_media_asset_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1182,7 +1182,7 @@ def change_media_workflow_compartment(self, media_workflow_id, change_media_work path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1313,7 +1313,7 @@ def change_media_workflow_configuration_compartment(self, media_workflow_configu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1444,7 +1444,7 @@ def change_media_workflow_job_compartment(self, media_workflow_job_id, change_me path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1575,7 +1575,7 @@ def change_stream_distribution_channel_compartment(self, stream_distribution_cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2387,7 +2387,7 @@ def delete_media_asset(self, media_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'delete_mode' in kwargs: @@ -2519,7 +2519,7 @@ def delete_media_asset_distribution_channel_attachment(self, media_asset_id, dis path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2636,7 +2636,7 @@ def delete_media_workflow(self, media_workflow_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2752,7 +2752,7 @@ def delete_media_workflow_configuration(self, media_workflow_configuration_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2868,7 +2868,7 @@ def delete_media_workflow_job(self, media_workflow_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2984,7 +2984,7 @@ def delete_stream_cdn_config(self, stream_cdn_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3100,7 +3100,7 @@ def delete_stream_distribution_channel(self, stream_distribution_channel_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3216,7 +3216,7 @@ def delete_stream_packaging_config(self, stream_packaging_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3320,7 +3320,7 @@ def get_media_asset(self, media_asset_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3426,7 +3426,7 @@ def get_media_asset_distribution_channel_attachment(self, media_asset_id, distri path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3531,7 +3531,7 @@ def get_media_workflow(self, media_workflow_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3629,7 +3629,7 @@ def get_media_workflow_configuration(self, media_workflow_configuration_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3727,7 +3727,7 @@ def get_media_workflow_job(self, media_workflow_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3825,7 +3825,7 @@ def get_stream_cdn_config(self, stream_cdn_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3923,7 +3923,7 @@ def get_stream_distribution_channel(self, stream_distribution_channel_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4021,7 +4021,7 @@ def get_stream_packaging_config(self, stream_packaging_config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4130,7 +4130,7 @@ def ingest_stream_distribution_channel(self, stream_distribution_channel_id, ing path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4261,7 +4261,7 @@ def list_media_asset_distribution_channel_attachments(self, media_asset_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -5832,7 +5832,7 @@ def remove_media_asset_lock(self, remove_lock_details, media_asset_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5954,7 +5954,7 @@ def remove_media_workflow_configuration_lock(self, remove_resource_lock_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6076,7 +6076,7 @@ def remove_media_workflow_job_lock(self, remove_lock_details, media_workflow_job path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6198,7 +6198,7 @@ def remove_media_workflow_lock(self, remove_resource_lock_details, media_workflo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6320,7 +6320,7 @@ def remove_stream_cdn_config_lock(self, remove_resource_lock_details, stream_cdn path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6442,7 +6442,7 @@ def remove_stream_distribution_channel_lock(self, remove_resource_lock_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6564,7 +6564,7 @@ def remove_stream_packaging_config_lock(self, remove_resource_lock_details, stre path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6682,7 +6682,7 @@ def update_media_asset(self, media_asset_id, update_media_asset_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6805,7 +6805,7 @@ def update_media_workflow(self, media_workflow_id, update_media_workflow_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6928,7 +6928,7 @@ def update_media_workflow_configuration(self, media_workflow_configuration_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7051,7 +7051,7 @@ def update_media_workflow_job(self, media_workflow_job_id, update_media_workflow path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7174,7 +7174,7 @@ def update_stream_cdn_config(self, stream_cdn_config_id, update_stream_cdn_confi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7297,7 +7297,7 @@ def update_stream_distribution_channel(self, stream_distribution_channel_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7420,7 +7420,7 @@ def update_stream_packaging_config(self, stream_packaging_config_id, update_stre path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/mngdmac/mac_device_client.py b/src/oci/mngdmac/mac_device_client.py index 56cbee8d4..0754ed1b0 100644 --- a/src/oci/mngdmac/mac_device_client.py +++ b/src/oci/mngdmac/mac_device_client.py @@ -181,7 +181,7 @@ def get_mac_device(self, mac_device_id, mac_order_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -334,7 +334,7 @@ def list_mac_devices(self, mac_order_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -491,7 +491,7 @@ def terminate_mac_device(self, mac_device_id, mac_order_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/mngdmac/mac_order_client.py b/src/oci/mngdmac/mac_order_client.py index 9c4c06536..eacd8561c 100644 --- a/src/oci/mngdmac/mac_order_client.py +++ b/src/oci/mngdmac/mac_order_client.py @@ -196,7 +196,7 @@ def cancel_mac_order(self, mac_order_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -309,7 +309,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -424,7 +424,7 @@ def change_mac_order_compartment(self, mac_order_id, change_mac_order_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -629,7 +629,7 @@ def get_mac_order(self, mac_order_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -732,7 +732,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1036,7 +1036,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1191,7 +1191,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1501,7 +1501,7 @@ def update_mac_order(self, mac_order_id, update_mac_order_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/model_deployment/model_deployment_client.py b/src/oci/model_deployment/model_deployment_client.py index e687e37b1..bd39fb9a6 100644 --- a/src/oci/model_deployment/model_deployment_client.py +++ b/src/oci/model_deployment/model_deployment_client.py @@ -180,7 +180,7 @@ def predict(self, model_deployment_id, request_body, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -286,7 +286,7 @@ def predict_with_response_stream(self, model_deployment_id, request_body, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/monitoring/monitoring_client.py b/src/oci/monitoring/monitoring_client.py index 27f97e408..92b9b3f97 100644 --- a/src/oci/monitoring/monitoring_client.py +++ b/src/oci/monitoring/monitoring_client.py @@ -199,7 +199,7 @@ def change_alarm_compartment(self, alarm_id, change_alarm_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -537,7 +537,7 @@ def delete_alarm(self, alarm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -654,7 +654,7 @@ def delete_alarm_suppression(self, alarm_suppression_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -763,7 +763,7 @@ def get_alarm(self, alarm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -915,7 +915,7 @@ def get_alarm_history(self, alarm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'alarm_historytype' in kwargs: @@ -1043,7 +1043,7 @@ def get_alarm_suppression(self, alarm_suppression_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2099,7 +2099,7 @@ def remove_alarm_suppression(self, alarm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2235,7 +2235,7 @@ def retrieve_dimension_states(self, alarm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2379,7 +2379,7 @@ def summarize_alarm_suppression_history(self, alarm_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2632,7 +2632,7 @@ def update_alarm(self, alarm_id, update_alarm_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/multicloud/multi_clouds_metadata_client.py b/src/oci/multicloud/multi_clouds_metadata_client.py index 40673be58..2dad0a8b5 100644 --- a/src/oci/multicloud/multi_clouds_metadata_client.py +++ b/src/oci/multicloud/multi_clouds_metadata_client.py @@ -183,7 +183,7 @@ def get_multi_cloud_metadata(self, compartment_id, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/multicloud/omhub_network_anchor_client.py b/src/oci/multicloud/omhub_network_anchor_client.py index a9d749735..763a741a7 100644 --- a/src/oci/multicloud/omhub_network_anchor_client.py +++ b/src/oci/multicloud/omhub_network_anchor_client.py @@ -195,7 +195,7 @@ def get_network_anchor(self, network_anchor_id, subscription_service_name, subsc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') subscription_service_name_allowed_values = ["ORACLEDBATAZURE", "ORACLEDBATGOOGLE", "ORACLEDBATAWS"] diff --git a/src/oci/multicloud/omhub_resource_anchor_client.py b/src/oci/multicloud/omhub_resource_anchor_client.py index 45167b41b..637aa71af 100644 --- a/src/oci/multicloud/omhub_resource_anchor_client.py +++ b/src/oci/multicloud/omhub_resource_anchor_client.py @@ -191,7 +191,7 @@ def get_resource_anchor(self, resource_anchor_id, subscription_service_name, sub path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') subscription_service_name_allowed_values = ["ORACLEDBATAZURE", "ORACLEDBATGOOGLE", "ORACLEDBATAWS"] diff --git a/src/oci/mysql/channels_client.py b/src/oci/mysql/channels_client.py index 0bc545874..a4cb85102 100644 --- a/src/oci/mysql/channels_client.py +++ b/src/oci/mysql/channels_client.py @@ -285,7 +285,7 @@ def delete_channel(self, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -396,7 +396,7 @@ def get_channel(self, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -696,7 +696,7 @@ def reset_channel(self, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -818,7 +818,7 @@ def resume_channel(self, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -944,7 +944,7 @@ def update_channel(self, channel_id, update_channel_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/mysql/db_backups_client.py b/src/oci/mysql/db_backups_client.py index f1ae06352..b85138262 100644 --- a/src/oci/mysql/db_backups_client.py +++ b/src/oci/mysql/db_backups_client.py @@ -191,7 +191,7 @@ def cancel_backup_deletion(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -313,7 +313,7 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -633,7 +633,7 @@ def delete_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -740,7 +740,7 @@ def get_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1081,7 +1081,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1205,7 +1205,7 @@ def validate_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/mysql/db_system_client.py b/src/oci/mysql/db_system_client.py index 3dbed9ac6..c9708f60f 100644 --- a/src/oci/mysql/db_system_client.py +++ b/src/oci/mysql/db_system_client.py @@ -196,7 +196,7 @@ def add_heat_wave_cluster(self, db_system_id, add_heat_wave_cluster_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -413,7 +413,7 @@ def delete_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def delete_heat_wave_cluster(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -633,7 +633,7 @@ def generate_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -745,7 +745,7 @@ def get_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -856,7 +856,7 @@ def get_heat_wave_cluster(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -960,7 +960,7 @@ def get_heat_wave_cluster_memory_estimate(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1284,7 +1284,7 @@ def restart_db_system(self, db_system_id, restart_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1406,7 +1406,7 @@ def restart_heat_wave_cluster(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1526,7 +1526,7 @@ def start_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1646,7 +1646,7 @@ def start_heat_wave_cluster(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1771,7 +1771,7 @@ def stop_db_system(self, db_system_id, stop_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1893,7 +1893,7 @@ def stop_heat_wave_cluster(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2014,7 +2014,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2128,7 +2128,7 @@ def update_heat_wave_cluster(self, db_system_id, update_heat_wave_cluster_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/mysql/mysqlaas_client.py b/src/oci/mysql/mysqlaas_client.py index 227f4eb25..4ab83f2c4 100644 --- a/src/oci/mysql/mysqlaas_client.py +++ b/src/oci/mysql/mysqlaas_client.py @@ -282,7 +282,7 @@ def delete_configuration(self, configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -389,7 +389,7 @@ def get_configuration(self, configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -918,7 +918,7 @@ def update_configuration(self, configuration_id, update_configuration_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/mysql/replicas_client.py b/src/oci/mysql/replicas_client.py index 25d3fbe51..7c6f6c2d4 100644 --- a/src/oci/mysql/replicas_client.py +++ b/src/oci/mysql/replicas_client.py @@ -285,7 +285,7 @@ def delete_replica(self, replica_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -394,7 +394,7 @@ def get_replica(self, replica_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -694,7 +694,7 @@ def update_replica(self, replica_id, update_replica_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/mysql/work_requests_client.py b/src/oci/mysql/work_requests_client.py index 8b5372414..17bcb6bf5 100644 --- a/src/oci/mysql/work_requests_client.py +++ b/src/oci/mysql/work_requests_client.py @@ -182,7 +182,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -298,7 +298,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -421,7 +421,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/network_firewall/network_firewall_client.py b/src/oci/network_firewall/network_firewall_client.py index df2fe0944..181bc44d6 100644 --- a/src/oci/network_firewall/network_firewall_client.py +++ b/src/oci/network_firewall/network_firewall_client.py @@ -192,7 +192,7 @@ def apply_network_firewall_policy(self, network_firewall_policy_id, apply_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -322,7 +322,7 @@ def bulk_upload_address_lists(self, network_firewall_policy_id, bulk_upload_addr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -340,7 +340,7 @@ def bulk_upload_address_lists(self, network_firewall_policy_id, bulk_upload_addr bulk_upload_address_lists_details = kwargs.get("bulk_upload_address_lists_details", missing) if bulk_upload_address_lists_details is not missing and bulk_upload_address_lists_details is not None: - if (not isinstance(bulk_upload_address_lists_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_address_lists_details, (bytes, str)) and not hasattr(bulk_upload_address_lists_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -470,7 +470,7 @@ def bulk_upload_application_groups(self, network_firewall_policy_id, bulk_upload path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -488,7 +488,7 @@ def bulk_upload_application_groups(self, network_firewall_policy_id, bulk_upload bulk_upload_application_groups_details = kwargs.get("bulk_upload_application_groups_details", missing) if bulk_upload_application_groups_details is not missing and bulk_upload_application_groups_details is not None: - if (not isinstance(bulk_upload_application_groups_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_application_groups_details, (bytes, str)) and not hasattr(bulk_upload_application_groups_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -618,7 +618,7 @@ def bulk_upload_applications(self, network_firewall_policy_id, bulk_upload_appli path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -636,7 +636,7 @@ def bulk_upload_applications(self, network_firewall_policy_id, bulk_upload_appli bulk_upload_applications_details = kwargs.get("bulk_upload_applications_details", missing) if bulk_upload_applications_details is not missing and bulk_upload_applications_details is not None: - if (not isinstance(bulk_upload_applications_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_applications_details, (bytes, str)) and not hasattr(bulk_upload_applications_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -766,7 +766,7 @@ def bulk_upload_decryption_profiles(self, network_firewall_policy_id, bulk_uploa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -784,7 +784,7 @@ def bulk_upload_decryption_profiles(self, network_firewall_policy_id, bulk_uploa bulk_upload_decryption_profiles_details = kwargs.get("bulk_upload_decryption_profiles_details", missing) if bulk_upload_decryption_profiles_details is not missing and bulk_upload_decryption_profiles_details is not None: - if (not isinstance(bulk_upload_decryption_profiles_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_decryption_profiles_details, (bytes, str)) and not hasattr(bulk_upload_decryption_profiles_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -914,7 +914,7 @@ def bulk_upload_decryption_rules(self, network_firewall_policy_id, bulk_upload_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -932,7 +932,7 @@ def bulk_upload_decryption_rules(self, network_firewall_policy_id, bulk_upload_d bulk_upload_decryption_rules_details = kwargs.get("bulk_upload_decryption_rules_details", missing) if bulk_upload_decryption_rules_details is not missing and bulk_upload_decryption_rules_details is not None: - if (not isinstance(bulk_upload_decryption_rules_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_decryption_rules_details, (bytes, str)) and not hasattr(bulk_upload_decryption_rules_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1062,7 +1062,7 @@ def bulk_upload_mapped_secrets(self, network_firewall_policy_id, bulk_upload_map path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1080,7 +1080,7 @@ def bulk_upload_mapped_secrets(self, network_firewall_policy_id, bulk_upload_map bulk_upload_mapped_secrets_details = kwargs.get("bulk_upload_mapped_secrets_details", missing) if bulk_upload_mapped_secrets_details is not missing and bulk_upload_mapped_secrets_details is not None: - if (not isinstance(bulk_upload_mapped_secrets_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_mapped_secrets_details, (bytes, str)) and not hasattr(bulk_upload_mapped_secrets_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1210,7 +1210,7 @@ def bulk_upload_nat_rules(self, network_firewall_policy_id, bulk_upload_nat_rule path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1228,7 +1228,7 @@ def bulk_upload_nat_rules(self, network_firewall_policy_id, bulk_upload_nat_rule bulk_upload_nat_rules_details = kwargs.get("bulk_upload_nat_rules_details", missing) if bulk_upload_nat_rules_details is not missing and bulk_upload_nat_rules_details is not None: - if (not isinstance(bulk_upload_nat_rules_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_nat_rules_details, (bytes, str)) and not hasattr(bulk_upload_nat_rules_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1358,7 +1358,7 @@ def bulk_upload_security_rules(self, network_firewall_policy_id, bulk_upload_sec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1376,7 +1376,7 @@ def bulk_upload_security_rules(self, network_firewall_policy_id, bulk_upload_sec bulk_upload_security_rules_details = kwargs.get("bulk_upload_security_rules_details", missing) if bulk_upload_security_rules_details is not missing and bulk_upload_security_rules_details is not None: - if (not isinstance(bulk_upload_security_rules_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_security_rules_details, (bytes, str)) and not hasattr(bulk_upload_security_rules_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1506,7 +1506,7 @@ def bulk_upload_service_lists(self, network_firewall_policy_id, bulk_upload_serv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1524,7 +1524,7 @@ def bulk_upload_service_lists(self, network_firewall_policy_id, bulk_upload_serv bulk_upload_service_lists_details = kwargs.get("bulk_upload_service_lists_details", missing) if bulk_upload_service_lists_details is not missing and bulk_upload_service_lists_details is not None: - if (not isinstance(bulk_upload_service_lists_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_service_lists_details, (bytes, str)) and not hasattr(bulk_upload_service_lists_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1654,7 +1654,7 @@ def bulk_upload_services(self, network_firewall_policy_id, bulk_upload_services_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1672,7 +1672,7 @@ def bulk_upload_services(self, network_firewall_policy_id, bulk_upload_services_ bulk_upload_services_details = kwargs.get("bulk_upload_services_details", missing) if bulk_upload_services_details is not missing and bulk_upload_services_details is not None: - if (not isinstance(bulk_upload_services_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_services_details, (bytes, str)) and not hasattr(bulk_upload_services_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1802,7 +1802,7 @@ def bulk_upload_tunnel_inspection_rules(self, network_firewall_policy_id, bulk_u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1820,7 +1820,7 @@ def bulk_upload_tunnel_inspection_rules(self, network_firewall_policy_id, bulk_u bulk_upload_tunnel_inspection_rules_details = kwargs.get("bulk_upload_tunnel_inspection_rules_details", missing) if bulk_upload_tunnel_inspection_rules_details is not missing and bulk_upload_tunnel_inspection_rules_details is not None: - if (not isinstance(bulk_upload_tunnel_inspection_rules_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_tunnel_inspection_rules_details, (bytes, str)) and not hasattr(bulk_upload_tunnel_inspection_rules_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -1950,7 +1950,7 @@ def bulk_upload_url_lists(self, network_firewall_policy_id, bulk_upload_url_list path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1968,7 +1968,7 @@ def bulk_upload_url_lists(self, network_firewall_policy_id, bulk_upload_url_list bulk_upload_url_lists_details = kwargs.get("bulk_upload_url_lists_details", missing) if bulk_upload_url_lists_details is not missing and bulk_upload_url_lists_details is not None: - if (not isinstance(bulk_upload_url_lists_details, (six.binary_type, six.string_types)) and + if (not isinstance(bulk_upload_url_lists_details, (bytes, str)) and not hasattr(bulk_upload_url_lists_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -2079,7 +2079,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2197,7 +2197,7 @@ def change_network_firewall_compartment(self, network_firewall_id, change_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2317,7 +2317,7 @@ def change_network_firewall_policy_compartment(self, network_firewall_policy_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2437,7 +2437,7 @@ def clone_network_firewall_policy(self, network_firewall_policy_id, clone_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2551,7 +2551,7 @@ def create_address_list(self, network_firewall_policy_id, create_address_list_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2664,7 +2664,7 @@ def create_application(self, network_firewall_policy_id, create_application_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2777,7 +2777,7 @@ def create_application_group(self, network_firewall_policy_id, create_applicatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2890,7 +2890,7 @@ def create_decryption_profile(self, network_firewall_policy_id, create_decryptio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3003,7 +3003,7 @@ def create_decryption_rule(self, network_firewall_policy_id, create_decryption_r path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3116,7 +3116,7 @@ def create_mapped_secret(self, network_firewall_policy_id, create_mapped_secret_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3229,7 +3229,7 @@ def create_nat_rule(self, network_firewall_policy_id, create_nat_rule_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3538,7 +3538,7 @@ def create_security_rule(self, network_firewall_policy_id, create_security_rule_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3651,7 +3651,7 @@ def create_service(self, network_firewall_policy_id, create_service_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3764,7 +3764,7 @@ def create_service_list(self, network_firewall_policy_id, create_service_list_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3877,7 +3877,7 @@ def create_tunnel_inspection_rule(self, network_firewall_policy_id, create_tunne path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3990,7 +3990,7 @@ def create_url_list(self, network_firewall_policy_id, create_url_list_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4104,7 +4104,7 @@ def delete_address_list(self, network_firewall_policy_id, address_list_name, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4213,7 +4213,7 @@ def delete_application(self, network_firewall_policy_id, application_name, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4322,7 +4322,7 @@ def delete_application_group(self, network_firewall_policy_id, application_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4431,7 +4431,7 @@ def delete_decryption_profile(self, network_firewall_policy_id, decryption_profi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4540,7 +4540,7 @@ def delete_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4649,7 +4649,7 @@ def delete_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4758,7 +4758,7 @@ def delete_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4865,7 +4865,7 @@ def delete_network_firewall(self, network_firewall_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4970,7 +4970,7 @@ def delete_network_firewall_policy(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5079,7 +5079,7 @@ def delete_security_rule(self, network_firewall_policy_id, security_rule_name, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5188,7 +5188,7 @@ def delete_service(self, network_firewall_policy_id, service_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5297,7 +5297,7 @@ def delete_service_list(self, network_firewall_policy_id, service_list_name, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5406,7 +5406,7 @@ def delete_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5515,7 +5515,7 @@ def delete_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5616,7 +5616,7 @@ def get_address_list(self, network_firewall_policy_id, address_list_name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5726,7 +5726,7 @@ def get_application(self, network_firewall_policy_id, application_name, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5836,7 +5836,7 @@ def get_application_group(self, network_firewall_policy_id, application_group_na path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5938,7 +5938,7 @@ def get_decryption_profile(self, network_firewall_policy_id, decryption_profile_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6048,7 +6048,7 @@ def get_decryption_rule(self, network_firewall_policy_id, decryption_rule_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6166,7 +6166,7 @@ def get_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6276,7 +6276,7 @@ def get_nat_rule(self, network_firewall_policy_id, nat_rule_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6376,7 +6376,7 @@ def get_network_firewall(self, network_firewall_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6474,7 +6474,7 @@ def get_network_firewall_policy(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6576,7 +6576,7 @@ def get_security_rule(self, network_firewall_policy_id, security_rule_name, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6686,7 +6686,7 @@ def get_service(self, network_firewall_policy_id, service_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6796,7 +6796,7 @@ def get_service_list(self, network_firewall_policy_id, service_list_name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6898,7 +6898,7 @@ def get_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspecti path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7000,7 +7000,7 @@ def get_url_list(self, network_firewall_policy_id, url_list_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7098,7 +7098,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7220,7 +7220,7 @@ def list_address_lists(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7367,7 +7367,7 @@ def list_application_groups(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7514,7 +7514,7 @@ def list_applications(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7661,7 +7661,7 @@ def list_decryption_profiles(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7812,7 +7812,7 @@ def list_decryption_rules(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7960,7 +7960,7 @@ def list_mapped_secrets(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8111,7 +8111,7 @@ def list_nat_rules(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8587,7 +8587,7 @@ def list_security_rules(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8735,7 +8735,7 @@ def list_service_lists(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8882,7 +8882,7 @@ def list_services(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -9033,7 +9033,7 @@ def list_tunnel_inspection_rules(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -9181,7 +9181,7 @@ def list_url_lists(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -9324,7 +9324,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9466,7 +9466,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9759,7 +9759,7 @@ def migrate_network_firewall_policy(self, network_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9873,7 +9873,7 @@ def update_address_list(self, network_firewall_policy_id, address_list_name, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9989,7 +9989,7 @@ def update_application(self, network_firewall_policy_id, application_name, updat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10105,7 +10105,7 @@ def update_application_group(self, network_firewall_policy_id, application_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10221,7 +10221,7 @@ def update_decryption_profile(self, network_firewall_policy_id, decryption_profi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10337,7 +10337,7 @@ def update_decryption_rule(self, network_firewall_policy_id, decryption_rule_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10453,7 +10453,7 @@ def update_mapped_secret(self, network_firewall_policy_id, mapped_secret_name, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10569,7 +10569,7 @@ def update_nat_rule(self, network_firewall_policy_id, nat_rule_name, update_nat_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10683,7 +10683,7 @@ def update_network_firewall(self, network_firewall_id, update_network_firewall_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10793,7 +10793,7 @@ def update_network_firewall_policy(self, network_firewall_policy_id, update_netw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10907,7 +10907,7 @@ def update_security_rule(self, network_firewall_policy_id, security_rule_name, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11023,7 +11023,7 @@ def update_service(self, network_firewall_policy_id, service_name, update_servic path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11139,7 +11139,7 @@ def update_service_list(self, network_firewall_policy_id, service_list_name, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11255,7 +11255,7 @@ def update_tunnel_inspection_rule(self, network_firewall_policy_id, tunnel_inspe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -11371,7 +11371,7 @@ def update_url_list(self, network_firewall_policy_id, url_list_name, update_url_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/network_load_balancer/network_load_balancer_client.py b/src/oci/network_load_balancer/network_load_balancer_client.py index ef9df91f3..7c59ae2f7 100644 --- a/src/oci/network_load_balancer/network_load_balancer_client.py +++ b/src/oci/network_load_balancer/network_load_balancer_client.py @@ -197,7 +197,7 @@ def change_network_load_balancer_compartment(self, network_load_balancer_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -326,7 +326,7 @@ def create_backend(self, network_load_balancer_id, create_backend_details, backe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -449,7 +449,7 @@ def create_backend_set(self, network_load_balancer_id, create_backend_set_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -572,7 +572,7 @@ def create_listener(self, network_load_balancer_id, create_listener_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -798,7 +798,7 @@ def delete_backend(self, network_load_balancer_id, backend_set_name, backend_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -914,7 +914,7 @@ def delete_backend_set(self, network_load_balancer_id, backend_set_name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1028,7 +1028,7 @@ def delete_listener(self, network_load_balancer_id, listener_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1136,7 +1136,7 @@ def delete_network_load_balancer(self, network_load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1259,7 +1259,7 @@ def get_backend(self, network_load_balancer_id, backend_set_name, backend_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1376,7 +1376,7 @@ def get_backend_health(self, network_load_balancer_id, backend_set_name, backend path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1492,7 +1492,7 @@ def get_backend_operational_status(self, network_load_balancer_id, backend_set_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1607,7 +1607,7 @@ def get_backend_set(self, network_load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1715,7 +1715,7 @@ def get_backend_set_health(self, network_load_balancer_id, backend_set_name, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1838,7 +1838,7 @@ def get_health_checker(self, network_load_balancer_id, backend_set_name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1956,7 +1956,7 @@ def get_listener(self, network_load_balancer_id, listener_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2066,7 +2066,7 @@ def get_network_load_balancer(self, network_load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2168,7 +2168,7 @@ def get_network_load_balancer_health(self, network_load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2267,7 +2267,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2404,7 +2404,7 @@ def list_backend_sets(self, network_load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2572,7 +2572,7 @@ def list_backends(self, network_load_balancer_id, backend_set_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2734,7 +2734,7 @@ def list_listeners(self, network_load_balancer_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3454,7 +3454,7 @@ def list_work_request_errors(self, work_request_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3582,7 +3582,7 @@ def list_work_request_logs(self, work_request_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3839,7 +3839,7 @@ def update_backend(self, network_load_balancer_id, update_backend_details, backe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3968,7 +3968,7 @@ def update_backend_set(self, network_load_balancer_id, update_backend_set_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4097,7 +4097,7 @@ def update_health_checker(self, network_load_balancer_id, update_health_checker_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4226,7 +4226,7 @@ def update_listener(self, network_load_balancer_id, update_listener_details, lis path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4341,7 +4341,7 @@ def update_network_load_balancer(self, network_load_balancer_id, update_network_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4462,7 +4462,7 @@ def update_network_security_groups(self, network_load_balancer_id, update_networ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/nosql/nosql_client.py b/src/oci/nosql/nosql_client.py index e0622f55f..dd1916439 100644 --- a/src/oci/nosql/nosql_client.py +++ b/src/oci/nosql/nosql_client.py @@ -196,7 +196,7 @@ def change_table_compartment(self, table_name_or_id, change_table_compartment_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -310,7 +310,7 @@ def create_index(self, table_name_or_id, create_index_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -431,7 +431,7 @@ def create_replica(self, table_name_or_id, create_replica_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -652,7 +652,7 @@ def delete_index(self, table_name_or_id, index_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -773,7 +773,7 @@ def delete_replica(self, table_name_or_id, region, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -902,7 +902,7 @@ def delete_row(self, table_name_or_id, key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1027,7 +1027,7 @@ def delete_table(self, table_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1138,7 +1138,7 @@ def delete_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1340,7 +1340,7 @@ def get_index(self, table_name_or_id, index_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1465,7 +1465,7 @@ def get_row(self, table_name_or_id, key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'consistency' in kwargs: @@ -1586,7 +1586,7 @@ def get_table(self, table_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1691,7 +1691,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1830,7 +1830,7 @@ def list_indexes(self, table_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -1988,7 +1988,7 @@ def list_table_usage(self, table_name_or_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2262,7 +2262,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2378,7 +2378,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3121,7 +3121,7 @@ def update_row(self, table_name_or_id, update_row_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3232,7 +3232,7 @@ def update_table(self, table_name_or_id, update_table_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/object_storage/object_storage_client.py b/src/oci/object_storage/object_storage_client.py index 3817cc03b..3a3709f27 100644 --- a/src/oci/object_storage/object_storage_client.py +++ b/src/oci/object_storage/object_storage_client.py @@ -189,7 +189,7 @@ def abort_multipart_upload(self, namespace_name, bucket_name, object_name, uploa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -300,7 +300,7 @@ def batch_delete_objects(self, namespace_name, bucket_name, batch_delete_objects path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -400,7 +400,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def commit_multipart_upload(self, namespace_name, bucket_name, object_name, uplo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -698,7 +698,7 @@ def copy_object(self, namespace_name, bucket_name, copy_object_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -807,7 +807,7 @@ def create_bucket(self, namespace_name, create_bucket_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -968,7 +968,7 @@ def create_multipart_upload(self, namespace_name, bucket_name, create_multipart_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1083,7 +1083,7 @@ def create_preauthenticated_request(self, namespace_name, bucket_name, create_pr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1186,7 +1186,7 @@ def create_private_endpoint(self, namespace_name, create_private_endpoint_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1292,7 +1292,7 @@ def create_replication_policy(self, namespace_name, bucket_name, create_replicat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1401,7 +1401,7 @@ def create_retention_rule(self, namespace_name, bucket_name, create_retention_ru path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1515,7 +1515,7 @@ def delete_bucket(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1632,7 +1632,7 @@ def delete_object(self, namespace_name, bucket_name, object_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1747,7 +1747,7 @@ def delete_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1854,7 +1854,7 @@ def delete_preauthenticated_request(self, namespace_name, bucket_name, par_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1961,7 +1961,7 @@ def delete_private_endpoint(self, namespace_name, pe_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2067,7 +2067,7 @@ def delete_replication_policy(self, namespace_name, bucket_name, replication_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2178,7 +2178,7 @@ def delete_retention_rule(self, namespace_name, bucket_name, retention_rule_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2301,7 +2301,7 @@ def get_bucket(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -2528,7 +2528,7 @@ def get_namespace_metadata(self, namespace_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2706,7 +2706,7 @@ def get_object(self, namespace_name, bucket_name, object_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2828,7 +2828,7 @@ def get_object_lifecycle_policy(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2936,7 +2936,7 @@ def get_preauthenticated_request(self, namespace_name, bucket_name, par_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3051,7 +3051,7 @@ def get_private_endpoint(self, namespace_name, pe_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3160,7 +3160,7 @@ def get_replication_policy(self, namespace_name, bucket_name, replication_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3267,7 +3267,7 @@ def get_retention_rule(self, namespace_name, bucket_name, retention_rule_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3365,7 +3365,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3480,7 +3480,7 @@ def head_bucket(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3627,7 +3627,7 @@ def head_object(self, namespace_name, bucket_name, object_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3770,7 +3770,7 @@ def list_buckets(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -3914,7 +3914,7 @@ def list_multipart_upload_parts(self, namespace_name, bucket_name, object_name, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4041,7 +4041,7 @@ def list_multipart_uploads(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4210,7 +4210,7 @@ def list_object_versions(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4380,7 +4380,7 @@ def list_objects(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4515,7 +4515,7 @@ def list_preauthenticated_requests(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4660,7 +4660,7 @@ def list_private_endpoints(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -4804,7 +4804,7 @@ def list_replication_policies(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4930,7 +4930,7 @@ def list_replication_sources(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5045,7 +5045,7 @@ def list_retention_rules(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5163,7 +5163,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5284,7 +5284,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5513,7 +5513,7 @@ def make_bucket_writable(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5789,7 +5789,7 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5831,7 +5831,7 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, put_object_body = kwargs.get("put_object_body", missing) if put_object_body is not missing and put_object_body is not None: - if (not isinstance(put_object_body, (six.binary_type, six.string_types)) and + if (not isinstance(put_object_body, (bytes, str)) and not hasattr(put_object_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -5954,7 +5954,7 @@ def put_object_lifecycle_policy(self, namespace_name, bucket_name, put_object_li path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6075,7 +6075,7 @@ def reencrypt_bucket(self, namespace_name, bucket_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6196,7 +6196,7 @@ def reencrypt_object(self, namespace_name, bucket_name, object_name, reencrypt_o path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6314,7 +6314,7 @@ def rename_object(self, namespace_name, bucket_name, rename_object_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6421,7 +6421,7 @@ def restore_objects(self, namespace_name, bucket_name, restore_objects_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6539,7 +6539,7 @@ def update_bucket(self, namespace_name, bucket_name, update_bucket_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6649,7 +6649,7 @@ def update_namespace_metadata(self, namespace_name, update_namespace_metadata_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6757,7 +6757,7 @@ def update_object_storage_tier(self, namespace_name, bucket_name, update_object_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6878,7 +6878,7 @@ def update_private_endpoint(self, namespace_name, pe_name, update_private_endpoi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6995,7 +6995,7 @@ def update_retention_rule(self, namespace_name, bucket_name, retention_rule_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7223,7 +7223,7 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7262,7 +7262,7 @@ def upload_part(self, namespace_name, bucket_name, object_name, upload_id, uploa upload_part_body = kwargs.get("upload_part_body", missing) if upload_part_body is not missing and upload_part_body is not None: - if (not isinstance(upload_part_body, (six.binary_type, six.string_types)) and + if (not isinstance(upload_part_body, (bytes, str)) and not hasattr(upload_part_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') diff --git a/src/oci/oce/oce_instance_client.py b/src/oci/oce/oce_instance_client.py index 1f6242ac1..1fa26b789 100644 --- a/src/oci/oce/oce_instance_client.py +++ b/src/oci/oce/oce_instance_client.py @@ -191,7 +191,7 @@ def change_oce_instance_compartment(self, oce_instance_id, change_oce_instance_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -396,7 +396,7 @@ def delete_oce_instance(self, oce_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -493,7 +493,7 @@ def get_oce_instance(self, oce_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -591,7 +591,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -854,7 +854,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -968,7 +968,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1193,7 +1193,7 @@ def update_oce_instance(self, oce_instance_id, update_oce_instance_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/oci_control_center/occ_metrics_client.py b/src/oci/oci_control_center/occ_metrics_client.py index 22bceded5..01a691bfe 100644 --- a/src/oci/oci_control_center/occ_metrics_client.py +++ b/src/oci/oci_control_center/occ_metrics_client.py @@ -184,7 +184,7 @@ def list_metric_properties(self, namespace_name, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/ocvp/cluster_client.py b/src/oci/ocvp/cluster_client.py index 10e0bfab2..e46c9a500 100644 --- a/src/oci/ocvp/cluster_client.py +++ b/src/oci/ocvp/cluster_client.py @@ -293,7 +293,7 @@ def delete_cluster(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -393,7 +393,7 @@ def get_cluster(self, cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -686,7 +686,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ocvp/datastore_client.py b/src/oci/ocvp/datastore_client.py index ff2af2836..e7c01e761 100644 --- a/src/oci/ocvp/datastore_client.py +++ b/src/oci/ocvp/datastore_client.py @@ -198,7 +198,7 @@ def add_block_volume_to_datastore(self, datastore_id, add_block_volume_to_datast path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -325,7 +325,7 @@ def change_datastore_compartment(self, datastore_id, change_datastore_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -540,7 +540,7 @@ def delete_datastore(self, datastore_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -640,7 +640,7 @@ def get_datastore(self, datastore_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -939,7 +939,7 @@ def update_datastore(self, datastore_id, update_datastore_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ocvp/datastore_cluster_client.py b/src/oci/ocvp/datastore_cluster_client.py index 1d62e35ce..1cf54b2de 100644 --- a/src/oci/ocvp/datastore_cluster_client.py +++ b/src/oci/ocvp/datastore_cluster_client.py @@ -195,7 +195,7 @@ def add_datastore_to_datastore_cluster(self, datastore_cluster_id, add_datastore path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -321,7 +321,7 @@ def attach_datastore_cluster_to_cluster(self, datastore_cluster_id, attach_datas path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -447,7 +447,7 @@ def attach_datastore_cluster_to_esxi_host(self, datastore_cluster_id, attach_dat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -574,7 +574,7 @@ def change_datastore_cluster_compartment(self, datastore_cluster_id, change_data path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -783,7 +783,7 @@ def delete_datastore_cluster(self, datastore_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -902,7 +902,7 @@ def detach_datastore_cluster_from_cluster(self, datastore_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1026,7 +1026,7 @@ def detach_datastore_cluster_from_esxi_host(self, datastore_cluster_id, detach_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1130,7 +1130,7 @@ def get_datastore_cluster(self, datastore_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1434,7 +1434,7 @@ def remove_datastore_from_datastore_cluster(self, datastore_cluster_id, remove_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1552,7 +1552,7 @@ def update_datastore_cluster(self, datastore_cluster_id, update_datastore_cluste path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ocvp/esxi_host_client.py b/src/oci/ocvp/esxi_host_client.py index 412e9ee64..94c65eb23 100644 --- a/src/oci/ocvp/esxi_host_client.py +++ b/src/oci/ocvp/esxi_host_client.py @@ -299,7 +299,7 @@ def delete_esxi_host(self, esxi_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -399,7 +399,7 @@ def get_esxi_host(self, esxi_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -516,7 +516,7 @@ def inplace_upgrade(self, esxi_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -846,7 +846,7 @@ def replace_host(self, esxi_host_id, replace_host_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -971,7 +971,7 @@ def swap_billing(self, esxi_host_id, swap_billing_host_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1091,7 +1091,7 @@ def update_esxi_host(self, esxi_host_id, update_esxi_host_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ocvp/sddc_client.py b/src/oci/ocvp/sddc_client.py index 4c75ead64..294c0c8f1 100644 --- a/src/oci/ocvp/sddc_client.py +++ b/src/oci/ocvp/sddc_client.py @@ -192,7 +192,7 @@ def cancel_downgrade_hcx(self, sddc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -317,7 +317,7 @@ def change_sddc_compartment(self, sddc_id, change_sddc_compartment_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -538,7 +538,7 @@ def delete_sddc(self, sddc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -661,7 +661,7 @@ def downgrade_hcx(self, downgrade_hcx_details, sddc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -765,7 +765,7 @@ def get_sddc(self, sddc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1437,7 +1437,7 @@ def refresh_hcx_license_status(self, sddc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1560,7 +1560,7 @@ def retrieve_password(self, sddc_id, type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') type_allowed_values = ["VCENTER", "NSX", "HCX"] @@ -1693,7 +1693,7 @@ def update_sddc(self, sddc_id, update_sddc_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1813,7 +1813,7 @@ def upgrade_hcx(self, sddc_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ocvp/work_request_client.py b/src/oci/ocvp/work_request_client.py index e241c4a18..949fa6f97 100644 --- a/src/oci/ocvp/work_request_client.py +++ b/src/oci/ocvp/work_request_client.py @@ -176,7 +176,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -293,7 +293,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -418,7 +418,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/oda/management_client.py b/src/oci/oda/management_client.py index 307fd97b4..efd1f24dc 100644 --- a/src/oci/oda/management_client.py +++ b/src/oci/oda/management_client.py @@ -188,7 +188,7 @@ def bulk_create_skill_entities(self, oda_instance_id, skill_id, bulk_create_skil path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -310,7 +310,7 @@ def cascading_delete_skill_custom_entities(self, oda_instance_id, skill_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -436,7 +436,7 @@ def change_oda_private_endpoint_compartment(self, oda_private_endpoint_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -540,7 +540,7 @@ def configure_digital_assistant_parameters(self, oda_instance_id, configure_digi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -650,7 +650,7 @@ def create_authentication_provider(self, oda_instance_id, create_authentication_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -764,7 +764,7 @@ def create_channel(self, oda_instance_id, create_channel_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -878,7 +878,7 @@ def create_digital_assistant(self, oda_instance_id, create_digital_assistant_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1199,7 +1199,7 @@ def create_oda_private_endpoint_scan_proxy(self, create_oda_private_endpoint_sca path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1313,7 +1313,7 @@ def create_skill(self, oda_instance_id, create_skill_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1429,7 +1429,7 @@ def create_skill_parameter(self, oda_instance_id, skill_id, create_skill_paramet path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1543,7 +1543,7 @@ def create_translator(self, oda_instance_id, create_translator_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1658,7 +1658,7 @@ def delete_authentication_provider(self, oda_instance_id, authentication_provide path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1768,7 +1768,7 @@ def delete_channel(self, oda_instance_id, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1878,7 +1878,7 @@ def delete_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1987,7 +1987,7 @@ def delete_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2096,7 +2096,7 @@ def delete_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2209,7 +2209,7 @@ def delete_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2319,7 +2319,7 @@ def delete_skill(self, oda_instance_id, skill_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2433,7 +2433,7 @@ def delete_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2543,7 +2543,7 @@ def delete_translator(self, oda_instance_id, translator_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2647,7 +2647,7 @@ def export_digital_assistant(self, oda_instance_id, digital_assistant_id, export path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2752,7 +2752,7 @@ def export_skill(self, oda_instance_id, skill_id, export_skill_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2860,7 +2860,7 @@ def get_authentication_provider(self, oda_instance_id, authentication_provider_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2969,7 +2969,7 @@ def get_channel(self, oda_instance_id, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3078,7 +3078,7 @@ def get_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3191,7 +3191,7 @@ def get_digital_assistant_parameter(self, oda_instance_id, digital_assistant_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3292,7 +3292,7 @@ def get_oda_private_endpoint(self, oda_private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3392,7 +3392,7 @@ def get_oda_private_endpoint_attachment(self, oda_private_endpoint_attachment_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3496,7 +3496,7 @@ def get_oda_private_endpoint_scan_proxy(self, oda_private_endpoint_scan_proxy_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3604,7 +3604,7 @@ def get_skill(self, oda_instance_id, skill_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3717,7 +3717,7 @@ def get_skill_parameter(self, oda_instance_id, skill_id, parameter_name, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3826,7 +3826,7 @@ def get_translator(self, oda_instance_id, translator_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3937,7 +3937,7 @@ def import_bot(self, oda_instance_id, import_bot_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4091,7 +4091,7 @@ def list_authentication_providers(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'identity_provider' in kwargs: @@ -4290,7 +4290,7 @@ def list_channels(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'category' in kwargs: @@ -4483,7 +4483,7 @@ def list_digital_assistant_parameters(self, oda_instance_id, digital_assistant_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -4686,7 +4686,7 @@ def list_digital_assistants(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -5025,7 +5025,7 @@ def list_oda_private_endpoint_scan_proxies(self, oda_private_endpoint_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -5364,7 +5364,7 @@ def list_skill_parameters(self, oda_instance_id, skill_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -5567,7 +5567,7 @@ def list_skills(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -5758,7 +5758,7 @@ def list_translators(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'type' in kwargs: @@ -5912,7 +5912,7 @@ def publish_digital_assistant(self, oda_instance_id, digital_assistant_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6025,7 +6025,7 @@ def publish_skill(self, oda_instance_id, skill_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6139,7 +6139,7 @@ def rotate_channel_keys(self, oda_instance_id, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6251,7 +6251,7 @@ def start_channel(self, oda_instance_id, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6363,7 +6363,7 @@ def stop_channel(self, oda_instance_id, channel_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6487,7 +6487,7 @@ def train_skill(self, oda_instance_id, skill_id, train_skill_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6604,7 +6604,7 @@ def update_authentication_provider(self, oda_instance_id, authentication_provide path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6721,7 +6721,7 @@ def update_channel(self, oda_instance_id, channel_id, update_channel_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6838,7 +6838,7 @@ def update_digital_assistant(self, oda_instance_id, digital_assistant_id, update path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6959,7 +6959,7 @@ def update_digital_assistant_parameter(self, oda_instance_id, digital_assistant_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7074,7 +7074,7 @@ def update_oda_private_endpoint(self, oda_private_endpoint_id, update_oda_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7189,7 +7189,7 @@ def update_skill(self, oda_instance_id, skill_id, update_skill_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7310,7 +7310,7 @@ def update_skill_parameter(self, oda_instance_id, skill_id, parameter_name, upda path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7427,7 +7427,7 @@ def update_translator(self, oda_instance_id, translator_id, update_translator_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/oda/oda_client.py b/src/oci/oda/oda_client.py index d37d0a766..dedc025f3 100644 --- a/src/oci/oda/oda_client.py +++ b/src/oci/oda/oda_client.py @@ -194,7 +194,7 @@ def change_oda_instance_compartment(self, oda_instance_id, change_oda_instance_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -412,7 +412,7 @@ def create_oda_instance_attachment(self, oda_instance_id, create_oda_instance_at path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -526,7 +526,7 @@ def delete_oda_instance(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -643,7 +643,7 @@ def delete_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -740,7 +740,7 @@ def get_oda_instance(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -846,7 +846,7 @@ def get_oda_instance_attachment(self, oda_instance_id, attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -954,7 +954,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1088,7 +1088,7 @@ def list_oda_instance_attachments(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -1414,7 +1414,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1567,7 +1567,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1860,7 +1860,7 @@ def start_oda_instance(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1979,7 +1979,7 @@ def stop_oda_instance(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2090,7 +2090,7 @@ def update_oda_instance(self, oda_instance_id, update_oda_instance_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2207,7 +2207,7 @@ def update_oda_instance_attachment(self, oda_instance_id, attachment_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/oda/odapackage_client.py b/src/oci/oda/odapackage_client.py index 929d1d6eb..36c0f751c 100644 --- a/src/oci/oda/odapackage_client.py +++ b/src/oci/oda/odapackage_client.py @@ -187,7 +187,7 @@ def create_imported_package(self, create_imported_package_details, oda_instance_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -314,7 +314,7 @@ def delete_imported_package(self, oda_instance_id, package_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -417,7 +417,7 @@ def get_imported_package(self, oda_instance_id, package_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -519,7 +519,7 @@ def get_package(self, oda_instance_id, package_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -650,7 +650,7 @@ def list_imported_packages(self, oda_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -986,7 +986,7 @@ def update_imported_package(self, update_imported_package_details, oda_instance_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/onesubscription/commitment_client.py b/src/oci/onesubscription/commitment_client.py index 5a893d37f..1166d4664 100644 --- a/src/oci/onesubscription/commitment_client.py +++ b/src/oci/onesubscription/commitment_client.py @@ -172,7 +172,7 @@ def get_commitment(self, commitment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/onesubscription/computed_usage_client.py b/src/oci/onesubscription/computed_usage_client.py index d1467e3dc..5f621636f 100644 --- a/src/oci/onesubscription/computed_usage_client.py +++ b/src/oci/onesubscription/computed_usage_client.py @@ -182,7 +182,7 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/onesubscription/subscribed_service_client.py b/src/oci/onesubscription/subscribed_service_client.py index 6371ebe11..02d541a02 100644 --- a/src/oci/onesubscription/subscribed_service_client.py +++ b/src/oci/onesubscription/subscribed_service_client.py @@ -184,7 +184,7 @@ def get_subscribed_service(self, subscribed_service_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/ons/notification_control_plane_client.py b/src/oci/ons/notification_control_plane_client.py index e22347de9..c06199007 100644 --- a/src/oci/ons/notification_control_plane_client.py +++ b/src/oci/ons/notification_control_plane_client.py @@ -199,7 +199,7 @@ def change_topic_compartment(self, topic_id, change_topic_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -423,7 +423,7 @@ def delete_topic(self, topic_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def get_topic(self, topic_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -797,7 +797,7 @@ def update_topic(self, topic_id, topic_attributes_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/ons/notification_data_plane_client.py b/src/oci/ons/notification_data_plane_client.py index 4176cde31..9b8c8b5a7 100644 --- a/src/oci/ons/notification_data_plane_client.py +++ b/src/oci/ons/notification_data_plane_client.py @@ -199,7 +199,7 @@ def change_subscription_compartment(self, subscription_id, change_subscription_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -412,7 +412,7 @@ def delete_subscription(self, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -532,7 +532,7 @@ def get_confirm_subscription(self, id, token, protocol, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -641,7 +641,7 @@ def get_subscription(self, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -762,7 +762,7 @@ def get_unsubscription(self, id, token, protocol, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1020,7 +1020,7 @@ def publish_message(self, topic_id, message_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1124,7 +1124,7 @@ def resend_subscription_confirmation(self, id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1234,7 +1234,7 @@ def update_subscription(self, subscription_id, update_subscription_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/opa/opa_instance_client.py b/src/oci/opa/opa_instance_client.py index 11046fa0e..ce9c8639f 100644 --- a/src/oci/opa/opa_instance_client.py +++ b/src/oci/opa/opa_instance_client.py @@ -180,7 +180,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -288,7 +288,7 @@ def change_opa_instance_compartment(self, opa_instance_id, change_opa_instance_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -491,7 +491,7 @@ def delete_opa_instance(self, opa_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -588,7 +588,7 @@ def get_opa_instance(self, opa_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -686,7 +686,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -960,7 +960,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1102,7 +1102,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1388,7 +1388,7 @@ def start_opa_instance(self, opa_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1493,7 +1493,7 @@ def stop_opa_instance(self, opa_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1601,7 +1601,7 @@ def update_opa_instance(self, opa_instance_id, update_opa_instance_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/opensearch/opensearch_cluster_backup_client.py b/src/oci/opensearch/opensearch_cluster_backup_client.py index 0d4648959..02f4ffa5e 100644 --- a/src/oci/opensearch/opensearch_cluster_backup_client.py +++ b/src/oci/opensearch/opensearch_cluster_backup_client.py @@ -180,7 +180,7 @@ def delete_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -275,7 +275,7 @@ def get_opensearch_cluster_backup(self, opensearch_cluster_backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -540,7 +540,7 @@ def update_opensearch_cluster_backup(self, opensearch_cluster_backup_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/opensearch/opensearch_cluster_client.py b/src/oci/opensearch/opensearch_cluster_client.py index 1d4417258..ba7a7973a 100644 --- a/src/oci/opensearch/opensearch_cluster_client.py +++ b/src/oci/opensearch/opensearch_cluster_client.py @@ -191,7 +191,7 @@ def backup_opensearch_cluster(self, opensearch_cluster_id, backup_opensearch_clu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -309,7 +309,7 @@ def configure_outbound_cluster(self, opensearch_cluster_id, configure_outbound_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -510,7 +510,7 @@ def delete_opensearch_cluster(self, opensearch_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -605,7 +605,7 @@ def get_opensearch_cluster(self, opensearch_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -701,7 +701,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1134,7 +1134,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1246,7 +1246,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1480,7 +1480,7 @@ def opensearch_cluster_restore(self, opensearch_cluster_id, restore_opensearch_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1598,7 +1598,7 @@ def resize_opensearch_cluster_horizontal(self, opensearch_cluster_id, resize_ope path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1716,7 +1716,7 @@ def resize_opensearch_cluster_vertical(self, opensearch_cluster_id, resize_opens path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1826,7 +1826,7 @@ def update_opensearch_cluster(self, opensearch_cluster_id, update_opensearch_clu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1942,7 +1942,7 @@ def upgrade_open_search_cluster(self, opensearch_cluster_id, upgrade_open_search path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/opensearch/opensearch_cluster_pipeline_client.py b/src/oci/opensearch/opensearch_cluster_pipeline_client.py index 830d032aa..ee5824b32 100644 --- a/src/oci/opensearch/opensearch_cluster_pipeline_client.py +++ b/src/oci/opensearch/opensearch_cluster_pipeline_client.py @@ -280,7 +280,7 @@ def delete_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -375,7 +375,7 @@ def get_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -645,7 +645,7 @@ def update_opensearch_cluster_pipeline(self, opensearch_cluster_pipeline_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/operator_access_control/access_requests_client.py b/src/oci/operator_access_control/access_requests_client.py index b8580ba59..b97e9dd82 100644 --- a/src/oci/operator_access_control/access_requests_client.py +++ b/src/oci/operator_access_control/access_requests_client.py @@ -194,7 +194,7 @@ def approve_access_request(self, access_request_id, approve_access_request_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def get_access_request(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -397,7 +397,7 @@ def get_audit_log_report(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -521,7 +521,7 @@ def interaction_request(self, access_request_id, interaction_request_details, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -632,7 +632,7 @@ def list_access_request_histories(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -915,7 +915,7 @@ def list_interactions(self, access_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1040,7 +1040,7 @@ def reject_access_request(self, access_request_id, reject_access_request_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1160,7 +1160,7 @@ def review_access_request(self, access_request_id, review_access_request_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1282,7 +1282,7 @@ def revoke_access_request(self, access_request_id, revoke_access_request_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/operator_access_control/operator_actions_client.py b/src/oci/operator_access_control/operator_actions_client.py index bec9f80eb..ab9e1b874 100644 --- a/src/oci/operator_access_control/operator_actions_client.py +++ b/src/oci/operator_access_control/operator_actions_client.py @@ -175,7 +175,7 @@ def get_operator_action(self, operator_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/operator_access_control/operator_control_assignment_client.py b/src/oci/operator_access_control/operator_control_assignment_client.py index ed765a953..c96e9e934 100644 --- a/src/oci/operator_access_control/operator_control_assignment_client.py +++ b/src/oci/operator_access_control/operator_control_assignment_client.py @@ -194,7 +194,7 @@ def change_operator_control_assignment_compartment(self, operator_control_assign path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -405,7 +405,7 @@ def delete_operator_control_assignment(self, operator_control_assignment_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -509,7 +509,7 @@ def get_assignment_validation_status(self, operator_control_assignment_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -607,7 +607,7 @@ def get_operator_control_assignment(self, operator_control_assignment_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -876,7 +876,7 @@ def update_operator_control_assignment(self, operator_control_assignment_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -996,7 +996,7 @@ def validate_operator_assignment(self, operator_control_assignment_id, validate_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/operator_access_control/operator_control_client.py b/src/oci/operator_access_control/operator_control_client.py index 51770c016..d5139ee08 100644 --- a/src/oci/operator_access_control/operator_control_client.py +++ b/src/oci/operator_access_control/operator_control_client.py @@ -194,7 +194,7 @@ def change_operator_control_compartment(self, operator_control_id, change_operat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -409,7 +409,7 @@ def delete_operator_control(self, operator_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -513,7 +513,7 @@ def get_operator_control(self, operator_control_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -777,7 +777,7 @@ def update_operator_control(self, operator_control_id, update_operator_control_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/opsi/operations_insights_client.py b/src/oci/opsi/operations_insights_client.py index ea62fcbb1..907cbe354 100644 --- a/src/oci/opsi/operations_insights_client.py +++ b/src/oci/opsi/operations_insights_client.py @@ -194,7 +194,7 @@ def add_exadata_insight_members(self, add_exadata_insight_members_details, exada path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -314,7 +314,7 @@ def change_autonomous_database_insight_advanced_features(self, change_autonomous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -434,7 +434,7 @@ def change_awr_hub_source_compartment(self, awr_hub_source_id, change_awr_hub_so path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -554,7 +554,7 @@ def change_database_insight_compartment(self, database_insight_id, change_databa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -665,7 +665,7 @@ def change_enterprise_manager_bridge_compartment(self, enterprise_manager_bridge path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -783,7 +783,7 @@ def change_exadata_insight_compartment(self, exadata_insight_id, change_exadata_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -903,7 +903,7 @@ def change_external_mysql_database_insight_connection(self, database_insight_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1023,7 +1023,7 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1143,7 +1143,7 @@ def change_macs_managed_autonomous_database_insight_connection(self, database_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1263,7 +1263,7 @@ def change_macs_managed_cloud_database_insight_connection(self, database_insight path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1383,7 +1383,7 @@ def change_news_report_compartment(self, news_report_id, change_news_report_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1505,7 +1505,7 @@ def change_operations_insights_private_endpoint_compartment(self, operations_ins path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1625,7 +1625,7 @@ def change_operations_insights_warehouse_compartment(self, operations_insights_w path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1747,7 +1747,7 @@ def change_opsi_configuration_compartment(self, opsi_configuration_id, change_op path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1867,7 +1867,7 @@ def change_pe_comanaged_database_insight(self, database_insight_id, change_pe_co path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3137,7 +3137,7 @@ def delete_awr_hub(self, awr_hub_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3245,7 +3245,7 @@ def delete_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3349,7 +3349,7 @@ def delete_awr_hub_source(self, awr_hub_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3453,7 +3453,7 @@ def delete_database_insight(self, database_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3557,7 +3557,7 @@ def delete_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3661,7 +3661,7 @@ def delete_exadata_insight(self, exadata_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3765,7 +3765,7 @@ def delete_host_insight(self, host_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3869,7 +3869,7 @@ def delete_news_report(self, news_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3975,7 +3975,7 @@ def delete_operations_insights_private_endpoint(self, operations_insights_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4082,7 +4082,7 @@ def delete_operations_insights_warehouse(self, operations_insights_warehouse_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4186,7 +4186,7 @@ def delete_operations_insights_warehouse_user(self, operations_insights_warehous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4292,7 +4292,7 @@ def delete_opsi_configuration(self, opsi_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4405,7 +4405,7 @@ def disable_autonomous_database_insight_advanced_features(self, database_insight path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4520,7 +4520,7 @@ def disable_awr_hub_source(self, awr_hub_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4635,7 +4635,7 @@ def disable_database_insight(self, database_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4750,7 +4750,7 @@ def disable_exadata_insight(self, exadata_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4865,7 +4865,7 @@ def disable_host_insight(self, host_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4977,7 +4977,7 @@ def download_operations_insights_warehouse_wallet(self, operations_insights_ware path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5098,7 +5098,7 @@ def enable_autonomous_database_insight_advanced_features(self, enable_autonomous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5215,7 +5215,7 @@ def enable_awr_hub_source(self, awr_hub_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5333,7 +5333,7 @@ def enable_database_insight(self, enable_database_insight_details, database_insi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5453,7 +5453,7 @@ def enable_exadata_insight(self, enable_exadata_insight_details, exadata_insight path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5573,7 +5573,7 @@ def enable_host_insight(self, enable_host_insight_details, host_insight_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5714,7 +5714,7 @@ def get_awr_database_report(self, awr_hub_id, awr_source_database_identifier, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'report_type' in kwargs: @@ -5877,7 +5877,7 @@ def get_awr_database_sql_report(self, awr_hub_id, awr_source_database_identifier path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'report_format' in kwargs: @@ -5997,7 +5997,7 @@ def get_awr_hub(self, awr_hub_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6100,7 +6100,7 @@ def get_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6199,7 +6199,7 @@ def get_awr_hub_source(self, awr_hub_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6328,7 +6328,7 @@ def get_awr_report(self, awr_hub_id, awr_source_database_identifier, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'report_format' in kwargs: @@ -6447,7 +6447,7 @@ def get_database_insight(self, database_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6546,7 +6546,7 @@ def get_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6645,7 +6645,7 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6744,7 +6744,7 @@ def get_host_insight(self, host_insight_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6843,7 +6843,7 @@ def get_news_report(self, news_report_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6944,7 +6944,7 @@ def get_operations_insights_private_endpoint(self, operations_insights_private_e path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7044,7 +7044,7 @@ def get_operations_insights_warehouse(self, operations_insights_warehouse_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7143,7 +7143,7 @@ def get_operations_insights_warehouse_user(self, operations_insights_warehouse_u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7269,7 +7269,7 @@ def get_opsi_configuration(self, opsi_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'opsi_config_field' in kwargs: @@ -7407,7 +7407,7 @@ def get_opsi_data_object(self, compartment_id, opsi_data_object_identifier, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -7513,7 +7513,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7616,7 +7616,7 @@ def head_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10332,7 +10332,7 @@ def list_awr_database_snapshots(self, awr_hub_id, awr_source_database_identifier path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -10503,7 +10503,7 @@ def list_awr_databases(self, awr_hub_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -10680,7 +10680,7 @@ def list_awr_hub_objects(self, awr_hub_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'fields' in kwargs: @@ -11221,7 +11221,7 @@ def list_awr_snapshots(self, awr_hub_id, awr_source_database_identifier, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -13436,7 +13436,7 @@ def list_importable_enterprise_manager_entities(self, enterprise_manager_bridge_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -15140,7 +15140,7 @@ def list_warehouse_data_objects(self, warehouse_type, warehouse_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'data_object_type' in kwargs: @@ -15313,7 +15313,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15466,7 +15466,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -15784,7 +15784,7 @@ def put_awr_hub_object(self, put_awr_hub_object_body, awr_hub_source_id, object_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -15801,7 +15801,7 @@ def put_awr_hub_object(self, put_awr_hub_object_body, awr_hub_source_id, object_ put_awr_hub_object_body = kwargs.get("put_awr_hub_object_body", missing) if put_awr_hub_object_body is not missing and put_awr_hub_object_body is not None: - if (not isinstance(put_awr_hub_object_body, (six.binary_type, six.string_types)) and + if (not isinstance(put_awr_hub_object_body, (bytes, str)) and not hasattr(put_awr_hub_object_body, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') @@ -16058,7 +16058,7 @@ def query_warehouse_data_object_data(self, warehouse_type, warehouse_id, query_w path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -16173,7 +16173,7 @@ def rotate_operations_insights_warehouse_wallet(self, operations_insights_wareho path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -17702,7 +17702,7 @@ def summarize_awr_database_cpu_usages(self, awr_hub_id, awr_source_database_iden path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'session_type' in kwargs: @@ -17899,7 +17899,7 @@ def summarize_awr_database_metrics(self, awr_hub_id, awr_source_database_identif path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -18093,7 +18093,7 @@ def summarize_awr_database_parameter_changes(self, awr_hub_id, awr_source_databa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -18316,7 +18316,7 @@ def summarize_awr_database_parameters(self, awr_hub_id, awr_source_database_iden path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'value_changed' in kwargs: @@ -18513,7 +18513,7 @@ def summarize_awr_database_snapshot_ranges(self, awr_hub_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -18699,7 +18699,7 @@ def summarize_awr_database_sysstats(self, awr_hub_id, awr_source_database_identi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -18878,7 +18878,7 @@ def summarize_awr_database_top_wait_events(self, awr_hub_id, awr_source_database path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'session_type' in kwargs: @@ -19086,7 +19086,7 @@ def summarize_awr_database_wait_event_buckets(self, awr_hub_id, awr_source_datab path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -19286,7 +19286,7 @@ def summarize_awr_database_wait_events(self, awr_hub_id, awr_source_database_ide path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'session_type' in kwargs: @@ -19464,7 +19464,7 @@ def summarize_awr_sources_summaries(self, awr_hub_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -26572,7 +26572,7 @@ def summarize_operations_insights_warehouse_resource_usage(self, operations_insi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28229,7 +28229,7 @@ def update_awr_hub(self, awr_hub_id, update_awr_hub_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28338,7 +28338,7 @@ def update_awr_hub_source(self, update_awr_hub_source_details, awr_hub_source_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28447,7 +28447,7 @@ def update_database_insight(self, database_insight_id, update_database_insight_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28556,7 +28556,7 @@ def update_enterprise_manager_bridge(self, enterprise_manager_bridge_id, update_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28665,7 +28665,7 @@ def update_exadata_insight(self, exadata_insight_id, update_exadata_insight_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28774,7 +28774,7 @@ def update_host_insight(self, host_insight_id, update_host_insight_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28883,7 +28883,7 @@ def update_news_report(self, news_report_id, update_news_report_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -28994,7 +28994,7 @@ def update_operations_insights_private_endpoint(self, operations_insights_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29104,7 +29104,7 @@ def update_operations_insights_warehouse(self, operations_insights_warehouse_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29213,7 +29213,7 @@ def update_operations_insights_warehouse_user(self, operations_insights_warehous path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -29324,7 +29324,7 @@ def update_opsi_configuration(self, opsi_configuration_id, update_opsi_configura path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/optimizer/optimizer_client.py b/src/oci/optimizer/optimizer_client.py index 48a5cad52..3617d2571 100644 --- a/src/oci/optimizer/optimizer_client.py +++ b/src/oci/optimizer/optimizer_client.py @@ -186,7 +186,7 @@ def bulk_apply_recommendations(self, recommendation_id, bulk_apply_recommendatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -394,7 +394,7 @@ def delete_profile(self, profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -654,7 +654,7 @@ def get_category(self, category_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -753,7 +753,7 @@ def get_enrollment_status(self, enrollment_status_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -852,7 +852,7 @@ def get_profile(self, profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -951,7 +951,7 @@ def get_recommendation(self, recommendation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1054,7 +1054,7 @@ def get_resource_action(self, resource_action_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1160,7 +1160,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2801,7 +2801,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2916,7 +2916,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3138,7 +3138,7 @@ def update_enrollment_status(self, enrollment_status_id, update_enrollment_statu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3251,7 +3251,7 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3369,7 +3369,7 @@ def update_recommendation(self, recommendation_id, update_recommendation_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3485,7 +3485,7 @@ def update_resource_action(self, resource_action_id, update_resource_action_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/event_client.py b/src/oci/os_management_hub/event_client.py index 440958403..ce4d2d5e7 100644 --- a/src/oci/os_management_hub/event_client.py +++ b/src/oci/os_management_hub/event_client.py @@ -197,7 +197,7 @@ def change_event_compartment(self, change_event_compartment_details, event_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -308,7 +308,7 @@ def delete_event(self, event_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -423,7 +423,7 @@ def delete_event_content(self, event_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -524,7 +524,7 @@ def get_event(self, event_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -624,7 +624,7 @@ def get_event_content(self, event_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -740,7 +740,7 @@ def import_event_content(self, event_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1069,7 +1069,7 @@ def update_event(self, event_id, update_event_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/lifecycle_environment_client.py b/src/oci/os_management_hub/lifecycle_environment_client.py index 9de4fd848..4625b7761 100644 --- a/src/oci/os_management_hub/lifecycle_environment_client.py +++ b/src/oci/os_management_hub/lifecycle_environment_client.py @@ -194,7 +194,7 @@ def attach_managed_instances_to_lifecycle_stage(self, lifecycle_stage_id, attach path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -320,7 +320,7 @@ def change_lifecycle_environment_compartment(self, lifecycle_environment_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -529,7 +529,7 @@ def delete_lifecycle_environment(self, lifecycle_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -647,7 +647,7 @@ def detach_managed_instances_from_lifecycle_stage(self, lifecycle_stage_id, deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -750,7 +750,7 @@ def get_lifecycle_environment(self, lifecycle_environment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -850,7 +850,7 @@ def get_lifecycle_stage(self, lifecycle_stage_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1233,7 +1233,7 @@ def list_lifecycle_stage_installed_packages(self, lifecycle_stage_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -1636,7 +1636,7 @@ def promote_software_source_to_lifecycle_stage(self, lifecycle_stage_id, promote path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1765,7 +1765,7 @@ def reboot_lifecycle_stage(self, lifecycle_stage_id, reboot_lifecycle_stage_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1879,7 +1879,7 @@ def update_lifecycle_environment(self, lifecycle_environment_id, update_lifecycl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/managed_instance_client.py b/src/oci/os_management_hub/managed_instance_client.py index 0ff0aec8d..60391f541 100644 --- a/src/oci/os_management_hub/managed_instance_client.py +++ b/src/oci/os_management_hub/managed_instance_client.py @@ -196,7 +196,7 @@ def associate_managed_instances_with_management_station(self, management_station path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -319,7 +319,7 @@ def attach_profile_to_managed_instance(self, managed_instance_id, attach_profile path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -442,7 +442,7 @@ def attach_software_sources_to_managed_instance(self, managed_instance_id, attac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -554,7 +554,7 @@ def delete_managed_instance(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -670,7 +670,7 @@ def detach_profile_from_managed_instance(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -791,7 +791,7 @@ def detach_software_sources_from_managed_instance(self, managed_instance_id, det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -916,7 +916,7 @@ def disable_module_stream_on_managed_instance(self, managed_instance_id, disable path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1042,7 +1042,7 @@ def enable_module_stream_on_managed_instance(self, managed_instance_id, enable_m path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1145,7 +1145,7 @@ def get_managed_instance(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1244,7 +1244,7 @@ def get_windows_update(self, windows_update_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1470,7 +1470,7 @@ def install_module_stream_profile_on_managed_instance(self, managed_instance_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1592,7 +1592,7 @@ def install_packages_on_managed_instance(self, managed_instance_id, install_pack path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1714,7 +1714,7 @@ def install_windows_updates_on_managed_instance(self, managed_instance_id, insta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1859,7 +1859,7 @@ def list_managed_instance_available_packages(self, managed_instance_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2028,7 +2028,7 @@ def list_managed_instance_available_software_sources(self, managed_instance_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2214,7 +2214,7 @@ def list_managed_instance_available_windows_updates(self, managed_instance_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'classification_type' in kwargs: @@ -2409,7 +2409,7 @@ def list_managed_instance_errata(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'classification_type' in kwargs: @@ -2599,7 +2599,7 @@ def list_managed_instance_installed_packages(self, managed_instance_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2775,7 +2775,7 @@ def list_managed_instance_installed_windows_updates(self, managed_instance_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2945,7 +2945,7 @@ def list_managed_instance_modules(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3126,7 +3126,7 @@ def list_managed_instance_updatable_packages(self, managed_instance_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'classification_type' in kwargs: @@ -3790,7 +3790,7 @@ def manage_module_streams_on_managed_instance(self, managed_instance_id, manage_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3914,7 +3914,7 @@ def reboot_managed_instance(self, managed_instance_id, reboot_managed_instance_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4033,7 +4033,7 @@ def refresh_software_on_managed_instance(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4155,7 +4155,7 @@ def remove_module_stream_profile_from_managed_instance(self, managed_instance_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4277,7 +4277,7 @@ def remove_packages_from_managed_instance(self, managed_instance_id, remove_pack path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4402,7 +4402,7 @@ def switch_module_stream_on_managed_instance(self, managed_instance_id, switch_m path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4621,7 +4621,7 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4743,7 +4743,7 @@ def update_packages_on_managed_instance(self, managed_instance_id, update_packag path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/managed_instance_group_client.py b/src/oci/os_management_hub/managed_instance_group_client.py index 689b0913c..5196646b0 100644 --- a/src/oci/os_management_hub/managed_instance_group_client.py +++ b/src/oci/os_management_hub/managed_instance_group_client.py @@ -196,7 +196,7 @@ def attach_managed_instances_to_managed_instance_group(self, managed_instance_gr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -320,7 +320,7 @@ def attach_software_sources_to_managed_instance_group(self, managed_instance_gro path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -446,7 +446,7 @@ def change_managed_instance_group_compartment(self, managed_instance_group_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -655,7 +655,7 @@ def delete_managed_instance_group(self, managed_instance_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -775,7 +775,7 @@ def detach_managed_instances_from_managed_instance_group(self, managed_instance_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -899,7 +899,7 @@ def detach_software_sources_from_managed_instance_group(self, managed_instance_g path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1021,7 +1021,7 @@ def disable_module_stream_on_managed_instance_group(self, managed_instance_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1143,7 +1143,7 @@ def enable_module_stream_on_managed_instance_group(self, managed_instance_group_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1246,7 +1246,7 @@ def get_managed_instance_group(self, managed_instance_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1365,7 +1365,7 @@ def install_module_stream_profile_on_managed_instance_group(self, managed_instan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1487,7 +1487,7 @@ def install_packages_on_managed_instance_group(self, managed_instance_group_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1609,7 +1609,7 @@ def install_windows_updates_on_managed_instance_group(self, managed_instance_gro path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1754,7 +1754,7 @@ def list_managed_instance_group_available_modules(self, managed_instance_group_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1928,7 +1928,7 @@ def list_managed_instance_group_available_packages(self, managed_instance_group_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2098,7 +2098,7 @@ def list_managed_instance_group_available_software_sources(self, managed_instanc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2280,7 +2280,7 @@ def list_managed_instance_group_installed_packages(self, managed_instance_group_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2475,7 +2475,7 @@ def list_managed_instance_group_modules(self, managed_instance_group_id, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2868,7 +2868,7 @@ def manage_module_streams_on_managed_instance_group(self, managed_instance_group path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2990,7 +2990,7 @@ def reboot_managed_instance_group(self, managed_instance_group_id, reboot_manage path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3112,7 +3112,7 @@ def remove_module_stream_profile_from_managed_instance_group(self, managed_insta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3234,7 +3234,7 @@ def remove_packages_from_managed_instance_group(self, managed_instance_group_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3359,7 +3359,7 @@ def switch_module_stream_on_managed_instance_group(self, managed_instance_group_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3481,7 +3481,7 @@ def update_all_packages_on_managed_instance_group(self, managed_instance_group_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3595,7 +3595,7 @@ def update_managed_instance_group(self, managed_instance_group_id, update_manage path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/management_station_client.py b/src/oci/os_management_hub/management_station_client.py index 15e6bf911..637a45ceb 100644 --- a/src/oci/os_management_hub/management_station_client.py +++ b/src/oci/os_management_hub/management_station_client.py @@ -196,7 +196,7 @@ def change_management_station_compartment(self, management_station_id, change_ma path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -415,7 +415,7 @@ def delete_management_station(self, management_station_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -516,7 +516,7 @@ def get_management_station(self, management_station_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -871,7 +871,7 @@ def list_mirrors(self, management_station_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1022,7 +1022,7 @@ def refresh_management_station_config(self, management_station_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1142,7 +1142,7 @@ def synchronize_mirrors(self, management_station_id, synchronize_mirrors_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1265,7 +1265,7 @@ def synchronize_single_mirrors(self, management_station_id, mirror_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1377,7 +1377,7 @@ def update_management_station(self, management_station_id, update_management_sta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/onboarding_client.py b/src/oci/os_management_hub/onboarding_client.py index 6faf78f36..3c43cfaec 100644 --- a/src/oci/os_management_hub/onboarding_client.py +++ b/src/oci/os_management_hub/onboarding_client.py @@ -196,7 +196,7 @@ def attach_lifecycle_stage_to_profile(self, profile_id, attach_lifecycle_stage_t path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -320,7 +320,7 @@ def attach_managed_instance_group_to_profile(self, profile_id, attach_managed_in path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -444,7 +444,7 @@ def attach_management_station_to_profile(self, profile_id, attach_management_sta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -568,7 +568,7 @@ def attach_software_sources_to_profile(self, profile_id, attach_software_sources path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -692,7 +692,7 @@ def change_profile_compartment(self, profile_id, change_profile_compartment_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -901,7 +901,7 @@ def delete_profile(self, profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1021,7 +1021,7 @@ def detach_software_sources_from_profile(self, profile_id, detach_software_sourc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1124,7 +1124,7 @@ def get_profile(self, profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1228,7 +1228,7 @@ def get_profile_version(self, profile_id, profile_version, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1372,7 +1372,7 @@ def list_profile_available_software_sources(self, profile_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1779,7 +1779,7 @@ def update_profile(self, profile_id, update_profile_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/reporting_managed_instance_client.py b/src/oci/os_management_hub/reporting_managed_instance_client.py index fe7047cfb..578265aff 100644 --- a/src/oci/os_management_hub/reporting_managed_instance_client.py +++ b/src/oci/os_management_hub/reporting_managed_instance_client.py @@ -451,7 +451,7 @@ def get_managed_instance_content(self, managed_instance_id, vulnerability_type, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'advisory_type' in kwargs: diff --git a/src/oci/os_management_hub/scheduled_job_client.py b/src/oci/os_management_hub/scheduled_job_client.py index bdb2f901f..50e89803a 100644 --- a/src/oci/os_management_hub/scheduled_job_client.py +++ b/src/oci/os_management_hub/scheduled_job_client.py @@ -196,7 +196,7 @@ def change_scheduled_job_compartment(self, scheduled_job_id, change_scheduled_jo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -405,7 +405,7 @@ def delete_scheduled_job(self, scheduled_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -504,7 +504,7 @@ def get_scheduled_job(self, scheduled_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -911,7 +911,7 @@ def run_scheduled_job_now(self, scheduled_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1023,7 +1023,7 @@ def update_scheduled_job(self, scheduled_job_id, update_scheduled_job_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/os_management_hub/software_source_client.py b/src/oci/os_management_hub/software_source_client.py index fce72b75a..46cff088e 100644 --- a/src/oci/os_management_hub/software_source_client.py +++ b/src/oci/os_management_hub/software_source_client.py @@ -200,7 +200,7 @@ def add_packages_to_software_source(self, software_source_id, add_packages_to_so path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -423,7 +423,7 @@ def change_software_source_compartment(self, software_source_id, change_software path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -728,7 +728,7 @@ def delete_software_source(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -830,7 +830,7 @@ def get_erratum(self, compartment_id, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -944,7 +944,7 @@ def get_module_stream(self, software_source_id, module_name, stream_name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1061,7 +1061,7 @@ def get_module_stream_profile(self, software_source_id, profile_name, module_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1173,7 +1173,7 @@ def get_package_group(self, software_source_id, package_group_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1277,7 +1277,7 @@ def get_software_package(self, software_source_id, software_package_name, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1375,7 +1375,7 @@ def get_software_package_by_name(self, software_package_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1475,7 +1475,7 @@ def get_software_source(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1575,7 +1575,7 @@ def get_software_source_manifest(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1904,7 +1904,7 @@ def list_available_software_packages(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2471,7 +2471,7 @@ def list_module_stream_profiles(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2648,7 +2648,7 @@ def list_module_streams(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2825,7 +2825,7 @@ def list_package_groups(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3035,7 +3035,7 @@ def list_software_package_software_sources(self, software_package_name, compartm path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'software_source_type' in kwargs: @@ -3260,7 +3260,7 @@ def list_software_packages(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3825,7 +3825,7 @@ def remove_packages_from_software_source(self, software_source_id, remove_packag path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3951,7 +3951,7 @@ def replace_packages_in_software_source(self, software_source_id, replace_packag path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4415,7 +4415,7 @@ def software_source_generate_metadata(self, software_source_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4527,7 +4527,7 @@ def update_software_source(self, software_source_id, update_software_source_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4657,7 +4657,7 @@ def update_software_source_manifest(self, update_software_source_manifest_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4675,7 +4675,7 @@ def update_software_source_manifest(self, update_software_source_manifest_detail update_software_source_manifest_details = kwargs.get("update_software_source_manifest_details", missing) if update_software_source_manifest_details is not missing and update_software_source_manifest_details is not None: - if (not isinstance(update_software_source_manifest_details, (six.binary_type, six.string_types)) and + if (not isinstance(update_software_source_manifest_details, (bytes, str)) and not hasattr(update_software_source_manifest_details, "read")): raise TypeError('The body must be a string, bytes, or provide a read() method.') diff --git a/src/oci/os_management_hub/work_request_client.py b/src/oci/os_management_hub/work_request_client.py index 00260e3d5..340ba7f66 100644 --- a/src/oci/os_management_hub/work_request_client.py +++ b/src/oci/os_management_hub/work_request_client.py @@ -175,7 +175,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -306,7 +306,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -461,7 +461,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -855,7 +855,7 @@ def rerun_work_request(self, work_request_id, rerun_work_request_details, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/osp_gateway/address_rule_service_client.py b/src/oci/osp_gateway/address_rule_service_client.py index 45469c835..08e6438fc 100644 --- a/src/oci/osp_gateway/address_rule_service_client.py +++ b/src/oci/osp_gateway/address_rule_service_client.py @@ -181,7 +181,7 @@ def get_address_rule(self, osp_home_region, compartment_id, country_code, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/osp_gateway/address_service_client.py b/src/oci/osp_gateway/address_service_client.py index ec2e48f71..1760ae153 100644 --- a/src/oci/osp_gateway/address_service_client.py +++ b/src/oci/osp_gateway/address_service_client.py @@ -181,7 +181,7 @@ def get_address(self, osp_home_region, compartment_id, address_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/osp_gateway/invoice_service_client.py b/src/oci/osp_gateway/invoice_service_client.py index 190aa3861..9715228f1 100644 --- a/src/oci/osp_gateway/invoice_service_client.py +++ b/src/oci/osp_gateway/invoice_service_client.py @@ -181,7 +181,7 @@ def download_pdf_content(self, osp_home_region, compartment_id, internal_invoice path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -296,7 +296,7 @@ def get_invoice(self, osp_home_region, compartment_id, internal_invoice_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -419,7 +419,7 @@ def list_invoice_lines(self, osp_home_region, compartment_id, internal_invoice_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -753,7 +753,7 @@ def pay_invoice(self, osp_home_region, internal_invoice_id, compartment_id, pay_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/osp_gateway/subscription_service_client.py b/src/oci/osp_gateway/subscription_service_client.py index 2bae75860..e52aa3596 100644 --- a/src/oci/osp_gateway/subscription_service_client.py +++ b/src/oci/osp_gateway/subscription_service_client.py @@ -197,7 +197,7 @@ def authorize_subscription_payment(self, osp_home_region, subscription_id, compa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -317,7 +317,7 @@ def get_subscription(self, subscription_id, osp_home_region, compartment_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -586,7 +586,7 @@ def pay_subscription(self, osp_home_region, subscription_id, compartment_id, pay path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -717,7 +717,7 @@ def update_subscription(self, subscription_id, osp_home_region, compartment_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/osub_subscription/commitment_client.py b/src/oci/osub_subscription/commitment_client.py index 5681e30a6..0945e8c2a 100644 --- a/src/oci/osub_subscription/commitment_client.py +++ b/src/oci/osub_subscription/commitment_client.py @@ -181,7 +181,7 @@ def get_commitment(self, commitment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/osub_usage/computed_usage_client.py b/src/oci/osub_usage/computed_usage_client.py index 58a319dca..dbcb2480b 100644 --- a/src/oci/osub_usage/computed_usage_client.py +++ b/src/oci/osub_usage/computed_usage_client.py @@ -186,7 +186,7 @@ def get_computed_usage(self, computed_usage_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/psa/private_service_access_client.py b/src/oci/psa/private_service_access_client.py index 28e08060c..d9bba3135 100644 --- a/src/oci/psa/private_service_access_client.py +++ b/src/oci/psa/private_service_access_client.py @@ -185,7 +185,7 @@ def cancel_psa_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -308,7 +308,7 @@ def change_private_service_access_compartment(self, private_service_access_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -523,7 +523,7 @@ def delete_private_service_access(self, private_service_access_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -625,7 +625,7 @@ def get_private_service_access(self, private_service_access_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -728,7 +728,7 @@ def get_psa_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1195,7 +1195,7 @@ def list_psa_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1350,7 +1350,7 @@ def list_psa_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1660,7 +1660,7 @@ def update_private_service_access(self, private_service_access_id, update_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/psql/postgresql_client.py b/src/oci/psql/postgresql_client.py index 9abcac420..06a573554 100644 --- a/src/oci/psql/postgresql_client.py +++ b/src/oci/psql/postgresql_client.py @@ -188,7 +188,7 @@ def backup_copy(self, backup_id, backup_copy_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -304,7 +304,7 @@ def change_backup_compartment(self, backup_id, change_backup_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -420,7 +420,7 @@ def change_configuration_compartment(self, configuration_id, change_configuratio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -536,7 +536,7 @@ def change_db_system_compartment(self, db_system_id, change_db_system_compartmen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -931,7 +931,7 @@ def delete_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1033,7 +1033,7 @@ def delete_configuration(self, configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1135,7 +1135,7 @@ def delete_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1247,7 +1247,7 @@ def failover_db_system(self, db_system_id, failover_db_system_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1348,7 +1348,7 @@ def get_backup(self, backup_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1446,7 +1446,7 @@ def get_configuration(self, configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1544,7 +1544,7 @@ def get_connection_details(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1648,7 +1648,7 @@ def get_db_system(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'excluded_fields' in kwargs: @@ -1761,7 +1761,7 @@ def get_default_configuration(self, default_configuration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1859,7 +1859,7 @@ def get_primary_db_instance(self, db_system_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1957,7 +1957,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2904,7 +2904,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3046,7 +3046,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3332,7 +3332,7 @@ def patch_db_system(self, db_system_id, patch_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3446,7 +3446,7 @@ def reset_master_user_password(self, db_system_id, reset_master_user_password_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3562,7 +3562,7 @@ def restart_db_instance_in_db_system(self, db_system_id, restart_db_instance_in_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3678,7 +3678,7 @@ def restore_db_system(self, db_system_id, restore_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3787,7 +3787,7 @@ def update_backup(self, backup_id, update_backup_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3903,7 +3903,7 @@ def update_configuration(self, configuration_id, update_configuration_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4021,7 +4021,7 @@ def update_db_system(self, db_system_id, update_db_system_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4141,7 +4141,7 @@ def update_db_system_db_instance(self, db_system_id, db_instance_id, update_db_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/queue/queue_admin_client.py b/src/oci/queue/queue_admin_client.py index fe9766d6a..2960a85a9 100644 --- a/src/oci/queue/queue_admin_client.py +++ b/src/oci/queue/queue_admin_client.py @@ -183,7 +183,7 @@ def change_queue_compartment(self, queue_id, change_queue_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -386,7 +386,7 @@ def delete_queue(self, queue_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -483,7 +483,7 @@ def get_queue(self, queue_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -581,7 +581,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -853,7 +853,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -971,7 +971,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1205,7 +1205,7 @@ def purge_queue(self, queue_id, purge_queue_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1315,7 +1315,7 @@ def update_queue(self, queue_id, update_queue_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/queue/queue_client.py b/src/oci/queue/queue_client.py index a190b7ebb..ef4436ce0 100644 --- a/src/oci/queue/queue_client.py +++ b/src/oci/queue/queue_client.py @@ -180,7 +180,7 @@ def delete_message(self, queue_id, message_receipt, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -283,7 +283,7 @@ def delete_messages(self, queue_id, delete_messages_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -413,7 +413,7 @@ def get_messages(self, queue_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -527,7 +527,7 @@ def get_stats(self, queue_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -651,7 +651,7 @@ def list_channels(self, queue_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -765,7 +765,7 @@ def put_messages(self, queue_id, put_messages_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -874,7 +874,7 @@ def update_message(self, queue_id, message_receipt, update_message_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -981,7 +981,7 @@ def update_messages(self, queue_id, update_messages_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/recovery/database_recovery_client.py b/src/oci/recovery/database_recovery_client.py index e8de21188..f27ff3a03 100644 --- a/src/oci/recovery/database_recovery_client.py +++ b/src/oci/recovery/database_recovery_client.py @@ -180,7 +180,7 @@ def cancel_protected_database_deletion(self, protected_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -288,7 +288,7 @@ def change_protected_database_compartment(self, protected_database_id, change_pr path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -398,7 +398,7 @@ def change_protected_database_subscription(self, protected_database_id, change_p path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -508,7 +508,7 @@ def change_protection_policy_compartment(self, protection_policy_id, change_prot path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -618,7 +618,7 @@ def change_recovery_service_subnet_compartment(self, recovery_service_subnet_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1052,7 +1052,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'deletion_schedule' in kwargs: @@ -1172,7 +1172,7 @@ def delete_protection_policy(self, protection_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1277,7 +1277,7 @@ def delete_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1386,7 +1386,7 @@ def fetch_protected_database_configuration(self, protected_database_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1487,7 +1487,7 @@ def get_protected_database(self, protected_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1585,7 +1585,7 @@ def get_protection_policy(self, protection_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1683,7 +1683,7 @@ def get_recovery_service_subnet(self, recovery_service_subnet_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1781,7 +1781,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2414,7 +2414,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2559,7 +2559,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2853,7 +2853,7 @@ def schedule_protected_database_deletion(self, protected_database_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2963,7 +2963,7 @@ def update_protected_database(self, protected_database_id, update_protected_data path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3073,7 +3073,7 @@ def update_protection_policy(self, protection_policy_id, update_protection_polic path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3183,7 +3183,7 @@ def update_recovery_service_subnet(self, recovery_service_subnet_id, update_reco path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/redis/oci_cache_config_set_client.py b/src/oci/redis/oci_cache_config_set_client.py index 64333bb28..3b9e58eb2 100644 --- a/src/oci/redis/oci_cache_config_set_client.py +++ b/src/oci/redis/oci_cache_config_set_client.py @@ -191,7 +191,7 @@ def change_oci_cache_config_set_compartment(self, oci_cache_config_set_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -398,7 +398,7 @@ def delete_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -495,7 +495,7 @@ def get_oci_cache_config_set(self, oci_cache_config_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -613,7 +613,7 @@ def list_associated_oci_cache_clusters(self, oci_cache_config_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -916,7 +916,7 @@ def update_oci_cache_config_set(self, oci_cache_config_set_id, update_oci_cache_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/redis/oci_cache_default_config_set_client.py b/src/oci/redis/oci_cache_default_config_set_client.py index 61cc21f87..bff78a1c8 100644 --- a/src/oci/redis/oci_cache_default_config_set_client.py +++ b/src/oci/redis/oci_cache_default_config_set_client.py @@ -175,7 +175,7 @@ def get_oci_cache_default_config_set(self, compartment_id, oci_cache_default_con path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/redis/oci_cache_user_client.py b/src/oci/redis/oci_cache_user_client.py index 4e43973f4..0191d72d6 100644 --- a/src/oci/redis/oci_cache_user_client.py +++ b/src/oci/redis/oci_cache_user_client.py @@ -191,7 +191,7 @@ def change_oci_cache_user_compartment(self, oci_cache_user_id, change_oci_cache_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -398,7 +398,7 @@ def delete_oci_cache_user(self, oci_cache_user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -495,7 +495,7 @@ def get_oci_cache_user(self, oci_cache_user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -621,7 +621,7 @@ def list_attached_redis_clusters(self, oci_cache_user_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -907,7 +907,7 @@ def update_oci_cache_user(self, oci_cache_user_id, update_oci_cache_user_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/redis/redis_cluster_client.py b/src/oci/redis/redis_cluster_client.py index 2738b6af9..475c31ba6 100644 --- a/src/oci/redis/redis_cluster_client.py +++ b/src/oci/redis/redis_cluster_client.py @@ -193,7 +193,7 @@ def attach_oci_cache_users(self, redis_cluster_id, attach_oci_cache_users_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -302,7 +302,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -422,7 +422,7 @@ def change_redis_cluster_compartment(self, redis_cluster_id, change_redis_cluste path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -635,7 +635,7 @@ def delete_redis_cluster(self, redis_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -753,7 +753,7 @@ def detach_oci_cache_users(self, redis_cluster_id, detach_oci_cache_users_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -858,7 +858,7 @@ def get_redis_cluster(self, redis_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -956,7 +956,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1084,7 +1084,7 @@ def list_attached_oci_cache_users(self, redis_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1234,7 +1234,7 @@ def list_redis_cluster_nodes(self, redis_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1537,7 +1537,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1679,7 +1679,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1974,7 +1974,7 @@ def update_redis_cluster(self, redis_cluster_id, update_redis_cluster_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/redis/redis_identity_client.py b/src/oci/redis/redis_identity_client.py index 998d0a69f..a6b854c92 100644 --- a/src/oci/redis/redis_identity_client.py +++ b/src/oci/redis/redis_identity_client.py @@ -193,7 +193,7 @@ def create_identity_token(self, create_identity_token_details, redis_cluster_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/resource_analytics/monitored_region_client.py b/src/oci/resource_analytics/monitored_region_client.py index f2f79a983..cadfbfb5a 100644 --- a/src/oci/resource_analytics/monitored_region_client.py +++ b/src/oci/resource_analytics/monitored_region_client.py @@ -285,7 +285,7 @@ def delete_monitored_region(self, monitored_region_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -387,7 +387,7 @@ def get_monitored_region(self, monitored_region_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/resource_analytics/resource_analytics_instance_client.py b/src/oci/resource_analytics/resource_analytics_instance_client.py index a69e77be6..7b74a6061 100644 --- a/src/oci/resource_analytics/resource_analytics_instance_client.py +++ b/src/oci/resource_analytics/resource_analytics_instance_client.py @@ -184,7 +184,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -299,7 +299,7 @@ def change_resource_analytics_instance_compartment(self, resource_analytics_inst path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -511,7 +511,7 @@ def delete_resource_analytics_instance(self, resource_analytics_instance_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -613,7 +613,7 @@ def get_resource_analytics_instance(self, resource_analytics_instance_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -716,7 +716,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1020,7 +1020,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1175,7 +1175,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1482,7 +1482,7 @@ def resource_analytics_instance_disable_oac(self, resource_analytics_instance_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1592,7 +1592,7 @@ def resource_analytics_instance_enable_oac(self, resource_analytics_instance_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1704,7 +1704,7 @@ def update_resource_analytics_instance(self, resource_analytics_instance_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/resource_analytics/tenancy_attachment_client.py b/src/oci/resource_analytics/tenancy_attachment_client.py index 413492b0c..be64cca23 100644 --- a/src/oci/resource_analytics/tenancy_attachment_client.py +++ b/src/oci/resource_analytics/tenancy_attachment_client.py @@ -285,7 +285,7 @@ def delete_tenancy_attachment(self, tenancy_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -387,7 +387,7 @@ def get_tenancy_attachment(self, tenancy_attachment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -668,7 +668,7 @@ def update_tenancy_attachment(self, tenancy_attachment_id, update_tenancy_attach path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/resource_manager/resource_manager_client.py b/src/oci/resource_manager/resource_manager_client.py index 8a3b3f145..6f420d9b8 100644 --- a/src/oci/resource_manager/resource_manager_client.py +++ b/src/oci/resource_manager/resource_manager_client.py @@ -199,7 +199,7 @@ def cancel_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -327,7 +327,7 @@ def change_configuration_source_provider_compartment(self, configuration_source_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -452,7 +452,7 @@ def change_private_endpoint_compartment(self, private_endpoint_id, change_privat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -577,7 +577,7 @@ def change_stack_compartment(self, stack_id, change_stack_compartment_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -702,7 +702,7 @@ def change_template_compartment(self, template_id, change_template_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1335,7 +1335,7 @@ def delete_configuration_source_provider(self, configuration_source_provider_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1445,7 +1445,7 @@ def delete_private_endpoint(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1555,7 +1555,7 @@ def delete_stack(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1665,7 +1665,7 @@ def delete_template(self, template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1787,7 +1787,7 @@ def detect_stack_drift(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1895,7 +1895,7 @@ def get_configuration_source_provider(self, configuration_source_provider_id, ** path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2000,7 +2000,7 @@ def get_job(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2107,7 +2107,7 @@ def get_job_detailed_log_content(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2254,7 +2254,7 @@ def get_job_logs(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'level_greater_than_or_equal_to' in kwargs: @@ -2387,7 +2387,7 @@ def get_job_logs_content(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2493,7 +2493,7 @@ def get_job_tf_config(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2604,7 +2604,7 @@ def get_job_tf_plan(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'tf_plan_format' in kwargs: @@ -2723,7 +2723,7 @@ def get_job_tf_state(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2828,7 +2828,7 @@ def get_private_endpoint(self, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2945,7 +2945,7 @@ def get_reachable_ip(self, private_ip, private_endpoint_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3059,7 +3059,7 @@ def get_stack(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3165,7 +3165,7 @@ def get_stack_tf_config(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3270,7 +3270,7 @@ def get_stack_tf_state(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3375,7 +3375,7 @@ def get_template(self, template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3481,7 +3481,7 @@ def get_template_logo(self, template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3587,7 +3587,7 @@ def get_template_tf_config(self, template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3692,7 +3692,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3993,7 +3993,7 @@ def list_job_associated_resources(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4128,7 +4128,7 @@ def list_job_outputs(self, job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4735,7 +4735,7 @@ def list_stack_associated_resources(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4878,7 +4878,7 @@ def list_stack_resource_drift_details(self, stack_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5563,7 +5563,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -5711,7 +5711,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -5965,7 +5965,7 @@ def update_configuration_source_provider(self, configuration_source_provider_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6082,7 +6082,7 @@ def update_job(self, job_id, update_job_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6199,7 +6199,7 @@ def update_private_endpoint(self, private_endpoint_id, update_private_endpoint_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6318,7 +6318,7 @@ def update_stack(self, stack_id, update_stack_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6435,7 +6435,7 @@ def update_template(self, template_id, update_template_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/resource_scheduler/schedule_client.py b/src/oci/resource_scheduler/schedule_client.py index 0e1df3f15..4e7aa85ca 100644 --- a/src/oci/resource_scheduler/schedule_client.py +++ b/src/oci/resource_scheduler/schedule_client.py @@ -192,7 +192,7 @@ def activate_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -305,7 +305,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -428,7 +428,7 @@ def change_schedule_compartment(self, schedule_id, change_schedule_compartment_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -650,7 +650,7 @@ def deactivate_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -763,7 +763,7 @@ def delete_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -865,7 +865,7 @@ def get_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -968,7 +968,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1398,7 +1398,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1553,7 +1553,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1872,7 +1872,7 @@ def update_schedule(self, schedule_id, update_schedule_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/resource_search/resource_search_client.py b/src/oci/resource_search/resource_search_client.py index 2127c160c..82047d5c0 100644 --- a/src/oci/resource_search/resource_search_client.py +++ b/src/oci/resource_search/resource_search_client.py @@ -173,7 +173,7 @@ def get_resource_type(self, name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/rover/rover_bundle_client.py b/src/oci/rover/rover_bundle_client.py index 911fd99ed..adc32dce5 100644 --- a/src/oci/rover/rover_bundle_client.py +++ b/src/oci/rover/rover_bundle_client.py @@ -192,7 +192,7 @@ def list_rover_cluster_rover_bundle_requests(self, rover_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -334,7 +334,7 @@ def list_rover_node_rover_bundle_requests(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -459,7 +459,7 @@ def request_bundle_rover_cluster(self, request_rover_bundle_details, rover_clust path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -560,7 +560,7 @@ def request_bundle_rover_node(self, request_rover_bundle_details, rover_node_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -661,7 +661,7 @@ def retrieve_available_bundle_versions_rover_cluster(self, current_rover_bundle_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -764,7 +764,7 @@ def retrieve_available_bundle_versions_rover_node(self, current_rover_bundle_det path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -867,7 +867,7 @@ def retrieve_bundle_status_rover_cluster(self, rover_bundle_status_details, rove path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -970,7 +970,7 @@ def retrieve_bundle_status_rover_node(self, rover_bundle_status_details, rover_n path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/rover/rover_cluster_client.py b/src/oci/rover/rover_cluster_client.py index 09753937f..4c6978e68 100644 --- a/src/oci/rover/rover_cluster_client.py +++ b/src/oci/rover/rover_cluster_client.py @@ -191,7 +191,7 @@ def change_rover_cluster_compartment(self, rover_cluster_id, change_rover_cluste path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def delete_rover_cluster(self, rover_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -505,7 +505,7 @@ def get_rover_cluster(self, rover_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -603,7 +603,7 @@ def get_rover_cluster_certificate(self, rover_cluster_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -884,7 +884,7 @@ def request_additional_nodes(self, rover_cluster_id, request_additional_nodes_de path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -996,7 +996,7 @@ def update_rover_cluster(self, rover_cluster_id, update_rover_cluster_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/rover/rover_entitlement_client.py b/src/oci/rover/rover_entitlement_client.py index 1e904d6e3..7a09ea607 100644 --- a/src/oci/rover/rover_entitlement_client.py +++ b/src/oci/rover/rover_entitlement_client.py @@ -191,7 +191,7 @@ def change_rover_entitlement_compartment(self, rover_entitlement_id, change_rove path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def delete_rover_entitlement(self, rover_entitlement_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -516,7 +516,7 @@ def get_rover_entitlement(self, rover_entitlement_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -789,7 +789,7 @@ def update_rover_entitlement(self, rover_entitlement_id, update_rover_entitlemen path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/rover/rover_node_client.py b/src/oci/rover/rover_node_client.py index 52e5d2d61..9ab009624 100644 --- a/src/oci/rover/rover_node_client.py +++ b/src/oci/rover/rover_node_client.py @@ -191,7 +191,7 @@ def change_rover_node_compartment(self, rover_node_id, change_rover_node_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def delete_rover_node(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -505,7 +505,7 @@ def get_rover_node(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -603,7 +603,7 @@ def get_rover_node_certificate(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -701,7 +701,7 @@ def get_rover_node_encryption_key(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -803,7 +803,7 @@ def get_rover_node_get_rpt(self, rover_node_id, jwt, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1087,7 +1087,7 @@ def rover_node_action_retrieve_ca_bundle(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1211,7 +1211,7 @@ def rover_node_action_set_key(self, rover_node_id, jwt, rover_node_action_set_ke path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1334,7 +1334,7 @@ def rover_node_generate_certificate(self, rover_node_generate_certificate_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1456,7 +1456,7 @@ def rover_node_renew_certificate(self, rover_node_renew_certificate_details, rov path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1578,7 +1578,7 @@ def rover_node_replace_certificate_authority(self, rover_node_replace_certificat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1697,7 +1697,7 @@ def rover_node_retrieve_leaf_certificate(self, rover_node_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1809,7 +1809,7 @@ def update_rover_node(self, rover_node_id, update_rover_node_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/rover/work_requests_client.py b/src/oci/rover/work_requests_client.py index 5c6dac481..84973ad99 100644 --- a/src/oci/rover/work_requests_client.py +++ b/src/oci/rover/work_requests_client.py @@ -188,7 +188,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -287,7 +287,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -405,7 +405,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -547,7 +547,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: diff --git a/src/oci/sch/connector_plugins_client.py b/src/oci/sch/connector_plugins_client.py index 364ac26c0..fa035bc3b 100644 --- a/src/oci/sch/connector_plugins_client.py +++ b/src/oci/sch/connector_plugins_client.py @@ -176,7 +176,7 @@ def get_connector_plugin(self, connector_plugin_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/sch/service_connector_client.py b/src/oci/sch/service_connector_client.py index 946430a62..206116661 100644 --- a/src/oci/sch/service_connector_client.py +++ b/src/oci/sch/service_connector_client.py @@ -202,7 +202,7 @@ def activate_service_connector(self, service_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -321,7 +321,7 @@ def change_service_connector_compartment(self, service_connector_id, change_serv path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -568,7 +568,7 @@ def deactivate_service_connector(self, service_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -685,7 +685,7 @@ def delete_service_connector(self, service_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -789,7 +789,7 @@ def get_service_connector(self, service_connector_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -894,7 +894,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1185,7 +1185,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1314,7 +1314,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1560,7 +1560,7 @@ def update_service_connector(self, service_connector_id, update_service_connecto path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/secrets/secrets_client.py b/src/oci/secrets/secrets_client.py index 6e5428ef2..9da133df9 100644 --- a/src/oci/secrets/secrets_client.py +++ b/src/oci/secrets/secrets_client.py @@ -187,7 +187,7 @@ def get_secret_bundle(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'stage' in kwargs: @@ -450,7 +450,7 @@ def list_secret_bundle_versions(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: diff --git a/src/oci/security_attribute/security_attribute_client.py b/src/oci/security_attribute/security_attribute_client.py index 1f52250fa..3762cad54 100644 --- a/src/oci/security_attribute/security_attribute_client.py +++ b/src/oci/security_attribute/security_attribute_client.py @@ -431,7 +431,7 @@ def cascading_delete_security_attribute_namespace(self, security_attribute_names path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -558,7 +558,7 @@ def change_security_attribute_namespace_compartment(self, security_attribute_nam path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -689,7 +689,7 @@ def create_security_attribute(self, security_attribute_namespace_id, create_secu path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -940,7 +940,7 @@ def delete_security_attribute(self, security_attribute_namespace_id, security_at path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1059,7 +1059,7 @@ def delete_security_attribute_namespace(self, security_attribute_namespace_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1165,7 +1165,7 @@ def get_security_attribute(self, security_attribute_namespace_id, security_attri path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1266,7 +1266,7 @@ def get_security_attribute_namespace(self, security_attribute_namespace_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1368,7 +1368,7 @@ def get_security_attribute_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1646,7 +1646,7 @@ def list_security_attribute_work_request_errors(self, work_request_id, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1763,7 +1763,7 @@ def list_security_attribute_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2000,7 +2000,7 @@ def list_security_attributes(self, security_attribute_namespace_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -2139,7 +2139,7 @@ def update_security_attribute(self, security_attribute_namespace_id, security_at path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2273,7 +2273,7 @@ def update_security_attribute_namespace(self, security_attribute_namespace_id, u path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/service_catalog/service_catalog_client.py b/src/oci/service_catalog/service_catalog_client.py index a9c327e09..acf03735e 100644 --- a/src/oci/service_catalog/service_catalog_client.py +++ b/src/oci/service_catalog/service_catalog_client.py @@ -183,7 +183,7 @@ def bulk_replace_service_catalog_associations(self, service_catalog_id, bulk_rep path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -292,7 +292,7 @@ def change_private_application_compartment(self, private_application_id, change_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -401,7 +401,7 @@ def change_service_catalog_compartment(self, service_catalog_id, change_service_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -801,7 +801,7 @@ def delete_private_application(self, private_application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -905,7 +905,7 @@ def delete_service_catalog(self, service_catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1009,7 +1009,7 @@ def delete_service_catalog_association(self, service_catalog_association_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1201,7 +1201,7 @@ def get_private_application(self, private_application_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1300,7 +1300,7 @@ def get_private_application_action_download_logo(self, private_application_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1399,7 +1399,7 @@ def get_private_application_package(self, private_application_package_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1498,7 +1498,7 @@ def get_private_application_package_action_download_config(self, private_applica path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1597,7 +1597,7 @@ def get_service_catalog(self, service_catalog_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1696,7 +1696,7 @@ def get_service_catalog_association(self, service_catalog_association_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1795,7 +1795,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2881,7 +2881,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3024,7 +3024,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3313,7 +3313,7 @@ def update_private_application(self, private_application_id, update_private_appl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3424,7 +3424,7 @@ def update_service_catalog(self, service_catalog_id, update_service_catalog_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/service_manager_proxy/service_manager_proxy_client.py b/src/oci/service_manager_proxy/service_manager_proxy_client.py index f027873b8..ee5386589 100644 --- a/src/oci/service_manager_proxy/service_manager_proxy_client.py +++ b/src/oci/service_manager_proxy/service_manager_proxy_client.py @@ -183,7 +183,7 @@ def get_service_environment(self, service_environment_id, compartment_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/signer.py b/src/oci/signer.py index 03e472598..7c3c6902f 100644 --- a/src/oci/signer.py +++ b/src/oci/signer.py @@ -105,7 +105,7 @@ def inject_missing_headers(request, sign_body, enforce_content_headers): body = request.body or "" m = hashlib.sha256() # Handle String types - if isinstance(body, six.string_types): + if isinstance(body, str): body = body.encode("utf-8") request.headers.setdefault("content-length", str(len(body))) m.update(body) diff --git a/src/oci/stack_monitoring/stack_monitoring_client.py b/src/oci/stack_monitoring/stack_monitoring_client.py index 3f5cacb62..49664f934 100644 --- a/src/oci/stack_monitoring/stack_monitoring_client.py +++ b/src/oci/stack_monitoring/stack_monitoring_client.py @@ -191,7 +191,7 @@ def apply_monitoring_template(self, monitoring_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -428,7 +428,7 @@ def change_config_compartment(self, config_id, change_config_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -552,7 +552,7 @@ def change_metric_extension_compartment(self, metric_extension_id, change_metric path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -674,7 +674,7 @@ def change_monitored_resource_compartment(self, monitored_resource_id, change_mo path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -795,7 +795,7 @@ def change_monitored_resource_task_compartment(self, monitored_resource_task_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -916,7 +916,7 @@ def change_process_set_compartment(self, process_set_id, change_process_set_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1031,7 +1031,7 @@ def create_alarm_condition(self, create_alarm_condition_details, monitoring_temp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2151,7 +2151,7 @@ def delete_alarm_condition(self, alarm_condition_id, monitoring_template_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2255,7 +2255,7 @@ def delete_baselineable_metric(self, baselineable_metric_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2361,7 +2361,7 @@ def delete_config(self, config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2467,7 +2467,7 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2575,7 +2575,7 @@ def delete_maintenance_window(self, maintenance_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2681,7 +2681,7 @@ def delete_metric_extension(self, metric_extension_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2797,7 +2797,7 @@ def delete_monitored_resource(self, monitored_resource_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2912,7 +2912,7 @@ def delete_monitored_resource_type(self, monitored_resource_type_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3018,7 +3018,7 @@ def delete_monitoring_template(self, monitoring_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3122,7 +3122,7 @@ def delete_process_set(self, process_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3239,7 +3239,7 @@ def disable_external_database(self, monitored_resource_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3358,7 +3358,7 @@ def disable_metric_extension(self, metric_extension_id, disable_metric_extension path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3583,7 +3583,7 @@ def enable_metric_extension(self, metric_extension_id, enable_metric_extension_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3702,7 +3702,7 @@ def evaluate_baselineable_metric(self, evaluate_baselineable_metric_details, bas path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3825,7 +3825,7 @@ def export_metric_extension(self, metric_extension_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3945,7 +3945,7 @@ def export_monitoring_template(self, monitoring_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4055,7 +4055,7 @@ def get_alarm_condition(self, alarm_condition_id, monitoring_template_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4154,7 +4154,7 @@ def get_baselineable_metric(self, baselineable_metric_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4253,7 +4253,7 @@ def get_config(self, config_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4352,7 +4352,7 @@ def get_discovery_job(self, discovery_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4455,7 +4455,7 @@ def get_maintenance_window(self, maintenance_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4556,7 +4556,7 @@ def get_metric_extension(self, metric_extension_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4659,7 +4659,7 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4762,7 +4762,7 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4865,7 +4865,7 @@ def get_monitored_resource_type(self, monitored_resource_type_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4966,7 +4966,7 @@ def get_monitoring_template(self, monitoring_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5065,7 +5065,7 @@ def get_process_set(self, process_set_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5166,7 +5166,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5316,7 +5316,7 @@ def list_alarm_conditions(self, monitoring_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -5991,7 +5991,7 @@ def list_discovery_job_logs(self, discovery_job_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'log_type' in kwargs: @@ -7560,7 +7560,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -7713,7 +7713,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -8025,7 +8025,7 @@ def manage_license(self, monitored_resource_id, manage_license_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8145,7 +8145,7 @@ def publish_metric_extension(self, metric_extension_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -8656,7 +8656,7 @@ def retry_failed_maintenance_window_operation(self, maintenance_window_id, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9096,7 +9096,7 @@ def search_monitored_resource_members(self, monitored_resource_id, search_monito path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -9394,7 +9394,7 @@ def stop_maintenance_window(self, maintenance_window_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9511,7 +9511,7 @@ def test_metric_extension(self, metric_extension_id, test_metric_extension_detai path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9631,7 +9631,7 @@ def unapply_monitoring_template(self, monitoring_template_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9750,7 +9750,7 @@ def update_alarm_condition(self, update_alarm_condition_details, alarm_condition path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9878,7 +9878,7 @@ def update_and_propagate_tags(self, monitored_resource_id, update_and_propagate_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -9991,7 +9991,7 @@ def update_baselineable_metric(self, update_baselineable_metric_details, baselin path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10104,7 +10104,7 @@ def update_config(self, config_id, update_config_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10221,7 +10221,7 @@ def update_maintenance_window(self, maintenance_window_id, update_maintenance_wi path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10332,7 +10332,7 @@ def update_metric_extension(self, metric_extension_id, update_metric_extension_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10449,7 +10449,7 @@ def update_monitored_resource(self, monitored_resource_id, update_monitored_reso path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10562,7 +10562,7 @@ def update_monitored_resource_task(self, monitored_resource_task_id, update_moni path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10677,7 +10677,7 @@ def update_monitored_resource_type(self, monitored_resource_type_id, update_moni path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10790,7 +10790,7 @@ def update_monitoring_template(self, monitoring_template_id, update_monitoring_t path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -10901,7 +10901,7 @@ def update_process_set(self, process_set_id, update_process_set_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/streaming/stream_admin_client.py b/src/oci/streaming/stream_admin_client.py index b71870717..6f2fde3bb 100644 --- a/src/oci/streaming/stream_admin_client.py +++ b/src/oci/streaming/stream_admin_client.py @@ -180,7 +180,7 @@ def change_connect_harness_compartment(self, connect_harness_id, change_connect_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -289,7 +289,7 @@ def change_stream_compartment(self, stream_id, change_stream_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -396,7 +396,7 @@ def change_stream_pool_compartment(self, stream_pool_id, change_stream_pool_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -790,7 +790,7 @@ def delete_connect_harness(self, connect_harness_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -896,7 +896,7 @@ def delete_stream(self, stream_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -999,7 +999,7 @@ def delete_stream_pool(self, stream_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1097,7 +1097,7 @@ def get_connect_harness(self, connect_harness_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1196,7 +1196,7 @@ def get_stream(self, stream_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1295,7 +1295,7 @@ def get_stream_pool(self, stream_pool_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1878,7 +1878,7 @@ def update_connect_harness(self, connect_harness_id, update_connect_harness_deta path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1987,7 +1987,7 @@ def update_stream(self, stream_id, update_stream_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2096,7 +2096,7 @@ def update_stream_pool(self, stream_pool_id, update_stream_pool_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/streaming/stream_client.py b/src/oci/streaming/stream_client.py index 52de8ecc3..67b02cd5f 100644 --- a/src/oci/streaming/stream_client.py +++ b/src/oci/streaming/stream_client.py @@ -173,7 +173,7 @@ def consumer_commit(self, stream_id, cursor, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -282,7 +282,7 @@ def consumer_heartbeat(self, stream_id, cursor, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -395,7 +395,7 @@ def create_cursor(self, stream_id, create_cursor_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -499,7 +499,7 @@ def create_group_cursor(self, stream_id, create_group_cursor_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -604,7 +604,7 @@ def get_group(self, stream_id, group_name, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -713,7 +713,7 @@ def get_messages(self, stream_id, cursor, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -826,7 +826,7 @@ def put_messages(self, stream_id, put_messages_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -934,7 +934,7 @@ def update_group(self, stream_id, group_name, update_group_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/domain_client.py b/src/oci/tenant_manager_control_plane/domain_client.py index 8394a0e9d..9376883b8 100644 --- a/src/oci/tenant_manager_control_plane/domain_client.py +++ b/src/oci/tenant_manager_control_plane/domain_client.py @@ -276,7 +276,7 @@ def delete_domain(self, domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -371,7 +371,7 @@ def get_domain(self, domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -648,7 +648,7 @@ def update_domain(self, domain_id, update_domain_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/domain_governance_client.py b/src/oci/tenant_manager_control_plane/domain_governance_client.py index e69739aab..d7512226a 100644 --- a/src/oci/tenant_manager_control_plane/domain_governance_client.py +++ b/src/oci/tenant_manager_control_plane/domain_governance_client.py @@ -276,7 +276,7 @@ def delete_domain_governance(self, domain_governance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -371,7 +371,7 @@ def get_domain_governance(self, domain_governance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -639,7 +639,7 @@ def update_domain_governance(self, domain_governance_id, update_domain_governanc path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/governance_client.py b/src/oci/tenant_manager_control_plane/governance_client.py index cb92a7967..8a702c54c 100644 --- a/src/oci/tenant_manager_control_plane/governance_client.py +++ b/src/oci/tenant_manager_control_plane/governance_client.py @@ -192,7 +192,7 @@ def add_governance(self, organization_id, organization_tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -309,7 +309,7 @@ def remove_governance(self, organization_id, organization_tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/link_client.py b/src/oci/tenant_manager_control_plane/link_client.py index 2c9b5d6b8..1cdc067fe 100644 --- a/src/oci/tenant_manager_control_plane/link_client.py +++ b/src/oci/tenant_manager_control_plane/link_client.py @@ -180,7 +180,7 @@ def delete_link(self, link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -275,7 +275,7 @@ def get_link(self, link_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/orders_client.py b/src/oci/tenant_manager_control_plane/orders_client.py index fa75652e1..3865afcbc 100644 --- a/src/oci/tenant_manager_control_plane/orders_client.py +++ b/src/oci/tenant_manager_control_plane/orders_client.py @@ -183,7 +183,7 @@ def activate_order(self, activate_order_details, activation_token, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -281,7 +281,7 @@ def get_order(self, activation_token, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/organization_client.py b/src/oci/tenant_manager_control_plane/organization_client.py index c6ae20761..2c64daef9 100644 --- a/src/oci/tenant_manager_control_plane/organization_client.py +++ b/src/oci/tenant_manager_control_plane/organization_client.py @@ -191,7 +191,7 @@ def approve_organization_tenancy_for_transfer(self, compartment_id, organization path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -407,7 +407,7 @@ def delete_organization_tenancy(self, organization_tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -504,7 +504,7 @@ def get_organization(self, organization_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -604,7 +604,7 @@ def get_organization_tenancy(self, organization_id, tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -708,7 +708,7 @@ def list_organization_tenancies(self, organization_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -921,7 +921,7 @@ def restore_organization_tenancy(self, organization_tenancy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1035,7 +1035,7 @@ def unapprove_organization_tenancy_for_transfer(self, compartment_id, organizati path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1160,7 +1160,7 @@ def update_organization(self, organization_id, update_organization_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/recipient_invitation_client.py b/src/oci/tenant_manager_control_plane/recipient_invitation_client.py index 1d5ff99db..b0d532c8f 100644 --- a/src/oci/tenant_manager_control_plane/recipient_invitation_client.py +++ b/src/oci/tenant_manager_control_plane/recipient_invitation_client.py @@ -188,7 +188,7 @@ def accept_recipient_invitation(self, recipient_invitation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -285,7 +285,7 @@ def get_recipient_invitation(self, recipient_invitation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -397,7 +397,7 @@ def ignore_recipient_invitation(self, recipient_invitation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -636,7 +636,7 @@ def update_recipient_invitation(self, recipient_invitation_id, update_recipient_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/sender_invitation_client.py b/src/oci/tenant_manager_control_plane/sender_invitation_client.py index d34f2af44..1fba0d09a 100644 --- a/src/oci/tenant_manager_control_plane/sender_invitation_client.py +++ b/src/oci/tenant_manager_control_plane/sender_invitation_client.py @@ -188,7 +188,7 @@ def cancel_sender_invitation(self, sender_invitation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -381,7 +381,7 @@ def get_sender_invitation(self, sender_invitation_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -658,7 +658,7 @@ def update_sender_invitation(self, sender_invitation_id, update_sender_invitatio path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/tenant_manager_control_plane/subscription_client.py b/src/oci/tenant_manager_control_plane/subscription_client.py index 37fd13251..e5e598c11 100644 --- a/src/oci/tenant_manager_control_plane/subscription_client.py +++ b/src/oci/tenant_manager_control_plane/subscription_client.py @@ -285,7 +285,7 @@ def delete_subscription_mapping(self, subscription_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -380,7 +380,7 @@ def get_assigned_subscription(self, assigned_subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -476,7 +476,7 @@ def get_subscription(self, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -572,7 +572,7 @@ def get_subscription_mapping(self, subscription_mapping_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -691,7 +691,7 @@ def list_assigned_subscription_line_items(self, assigned_subscription_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -968,7 +968,7 @@ def list_available_regions(self, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1094,7 +1094,7 @@ def list_subscription_line_items(self, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: diff --git a/src/oci/tenant_manager_control_plane/work_request_client.py b/src/oci/tenant_manager_control_plane/work_request_client.py index ce780acdb..039deae68 100644 --- a/src/oci/tenant_manager_control_plane/work_request_client.py +++ b/src/oci/tenant_manager_control_plane/work_request_client.py @@ -172,7 +172,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -282,7 +282,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -408,7 +408,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: diff --git a/src/oci/threat_intelligence/threatintel_client.py b/src/oci/threat_intelligence/threatintel_client.py index 16e165a2a..26ac8954b 100644 --- a/src/oci/threat_intelligence/threatintel_client.py +++ b/src/oci/threat_intelligence/threatintel_client.py @@ -175,7 +175,7 @@ def get_indicator(self, indicator_id, compartment_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/usage/rewards_client.py b/src/oci/usage/rewards_client.py index 33a7ba508..dbebb0673 100644 --- a/src/oci/usage/rewards_client.py +++ b/src/oci/usage/rewards_client.py @@ -198,7 +198,7 @@ def create_redeemable_user(self, create_redeemable_user_details, tenancy_id, sub path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -321,7 +321,7 @@ def delete_redeemable_user(self, email_id, tenancy_id, subscription_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -456,7 +456,7 @@ def list_products(self, tenancy_id, subscription_id, usage_period_key, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -609,7 +609,7 @@ def list_redeemable_users(self, tenancy_id, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -761,7 +761,7 @@ def list_redemptions(self, tenancy_id, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -887,7 +887,7 @@ def list_rewards(self, tenancy_id, subscription_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/usage_api/usageapi_client.py b/src/oci/usage_api/usageapi_client.py index 10010f93d..ff3f4e772 100644 --- a/src/oci/usage_api/usageapi_client.py +++ b/src/oci/usage_api/usageapi_client.py @@ -281,7 +281,7 @@ def create_email_recipients_group(self, create_email_recipients_group_details, s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -681,7 +681,7 @@ def delete_custom_table(self, custom_table_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -792,7 +792,7 @@ def delete_email_recipients_group(self, email_recipients_group_id, subscription_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -903,7 +903,7 @@ def delete_query(self, query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1007,7 +1007,7 @@ def delete_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1111,7 +1111,7 @@ def delete_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1207,7 +1207,7 @@ def get_custom_table(self, custom_table_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1311,7 +1311,7 @@ def get_email_recipients_group(self, email_recipients_group_id, subscription_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1415,7 +1415,7 @@ def get_query(self, query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1512,7 +1512,7 @@ def get_schedule(self, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1609,7 +1609,7 @@ def get_scheduled_run(self, scheduled_run_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1706,7 +1706,7 @@ def get_usage_carbon_emissions_query(self, usage_carbon_emissions_query_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1970,7 +1970,7 @@ def list_email_recipients_groups(self, subscription_id, compartment_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2623,7 +2623,7 @@ def request_average_carbon_emission(self, sku_part_number, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2724,7 +2724,7 @@ def request_clean_energy_usage(self, region, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3231,7 +3231,7 @@ def update_custom_table(self, update_custom_table_details, custom_table_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3349,7 +3349,7 @@ def update_email_recipients_group(self, update_email_recipients_group_details, e path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3467,7 +3467,7 @@ def update_query(self, update_query_details, query_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3578,7 +3578,7 @@ def update_schedule(self, update_schedule_details, schedule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3689,7 +3689,7 @@ def update_usage_carbon_emissions_query(self, update_usage_carbon_emissions_quer path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/util.py b/src/oci/util.py index 2f70fe7d0..6cea80635 100644 --- a/src/oci/util.py +++ b/src/oci/util.py @@ -54,7 +54,7 @@ def to_dict(obj): are converted into ISO8601 UTC strings """ # Shortcut strings so they don't count as Iterables - if isinstance(obj, six.string_types): + if isinstance(obj, str): return obj elif obj is NONE_SENTINEL: return None diff --git a/src/oci/vault/vaults_client.py b/src/oci/vault/vaults_client.py index 5e8079e22..eb56cb26a 100644 --- a/src/oci/vault/vaults_client.py +++ b/src/oci/vault/vaults_client.py @@ -184,7 +184,7 @@ def cancel_secret_deletion(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -291,7 +291,7 @@ def cancel_secret_rotation(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -402,7 +402,7 @@ def cancel_secret_version_deletion(self, secret_id, secret_version_number, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -524,7 +524,7 @@ def change_secret_compartment(self, secret_id, change_secret_compartment_details path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -728,7 +728,7 @@ def get_secret(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -832,7 +832,7 @@ def get_secret_version(self, secret_id, secret_version_number, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -953,7 +953,7 @@ def list_secret_versions(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1253,7 +1253,7 @@ def rotate_secret(self, secret_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1366,7 +1366,7 @@ def schedule_secret_deletion(self, secret_id, schedule_secret_deletion_details, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1481,7 +1481,7 @@ def schedule_secret_version_deletion(self, secret_id, secret_version_number, sch path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1596,7 +1596,7 @@ def update_secret(self, secret_id, update_secret_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/vbs_inst/vbs_instance_client.py b/src/oci/vbs_inst/vbs_instance_client.py index 11a7f7083..ffcd2e5c2 100644 --- a/src/oci/vbs_inst/vbs_instance_client.py +++ b/src/oci/vbs_inst/vbs_instance_client.py @@ -183,7 +183,7 @@ def change_vbs_instance_compartment(self, vbs_instance_id, change_vbs_instance_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -387,7 +387,7 @@ def delete_vbs_instance(self, vbs_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -482,7 +482,7 @@ def get_vbs_instance(self, vbs_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -578,7 +578,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -847,7 +847,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -987,7 +987,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1252,7 +1252,7 @@ def update_vbs_instance(self, vbs_instance_id, update_vbs_instance_details, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/visual_builder/vb_instance_client.py b/src/oci/visual_builder/vb_instance_client.py index f4d7ed5b1..19a1f740c 100644 --- a/src/oci/visual_builder/vb_instance_client.py +++ b/src/oci/visual_builder/vb_instance_client.py @@ -193,7 +193,7 @@ def change_vb_instance_compartment(self, vb_instance_id, change_vb_instance_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -395,7 +395,7 @@ def delete_vb_instance(self, vb_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -490,7 +490,7 @@ def get_vb_instance(self, vb_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -588,7 +588,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -851,7 +851,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -969,7 +969,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -1203,7 +1203,7 @@ def reconfigure_private_endpoint_vb_instance(self, vb_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1320,7 +1320,7 @@ def request_summarized_applications(self, request_summarized_applications_detail path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1439,7 +1439,7 @@ def start_vb_instance(self, vb_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1554,7 +1554,7 @@ def stop_vb_instance(self, vb_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1662,7 +1662,7 @@ def update_vb_instance(self, vb_instance_id, update_vb_instance_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/vn_monitoring/vn_monitoring_client.py b/src/oci/vn_monitoring/vn_monitoring_client.py index 18dc90704..daef56494 100644 --- a/src/oci/vn_monitoring/vn_monitoring_client.py +++ b/src/oci/vn_monitoring/vn_monitoring_client.py @@ -185,7 +185,7 @@ def change_path_analyzer_test_compartment(self, path_analyzer_test_id, change_pa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -388,7 +388,7 @@ def delete_path_analyzer_test(self, path_analyzer_test_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -596,7 +596,7 @@ def get_path_analyzer_test(self, path_analyzer_test_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -695,7 +695,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -994,7 +994,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1148,7 +1148,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1296,7 +1296,7 @@ def list_work_request_results(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'result_type' in kwargs: @@ -1595,7 +1595,7 @@ def update_path_analyzer_test(self, path_analyzer_test_id, update_path_analyzer_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/vulnerability_scanning/vulnerability_scanning_client.py b/src/oci/vulnerability_scanning/vulnerability_scanning_client.py index 5efeaf6a2..dcdab77bc 100644 --- a/src/oci/vulnerability_scanning/vulnerability_scanning_client.py +++ b/src/oci/vulnerability_scanning/vulnerability_scanning_client.py @@ -191,7 +191,7 @@ def change_container_scan_recipe_compartment(self, container_scan_recipe_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -309,7 +309,7 @@ def change_container_scan_result_compartment(self, container_scan_result_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -427,7 +427,7 @@ def change_container_scan_target_compartment(self, container_scan_target_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -545,7 +545,7 @@ def change_host_agent_scan_result_compartment(self, host_agent_scan_result_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -663,7 +663,7 @@ def change_host_cis_benchmark_scan_result_compartment(self, host_cis_benchmark_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -781,7 +781,7 @@ def change_host_endpoint_protection_scan_result_compartment(self, host_endpoint_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -899,7 +899,7 @@ def change_host_port_scan_result_compartment(self, host_port_scan_result_id, cha path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1017,7 +1017,7 @@ def change_host_scan_recipe_compartment(self, host_scan_recipe_id, change_host_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1135,7 +1135,7 @@ def change_host_scan_target_compartment(self, host_scan_target_id, change_host_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1626,7 +1626,7 @@ def delete_container_scan_recipe(self, container_scan_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1729,7 +1729,7 @@ def delete_container_scan_result(self, container_scan_result_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1832,7 +1832,7 @@ def delete_container_scan_target(self, container_scan_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1935,7 +1935,7 @@ def delete_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2038,7 +2038,7 @@ def delete_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_i path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2141,7 +2141,7 @@ def delete_host_endpoint_protection_scan_result(self, host_endpoint_protection_s path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2244,7 +2244,7 @@ def delete_host_port_scan_result(self, host_port_scan_result_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2347,7 +2347,7 @@ def delete_host_scan_recipe(self, host_scan_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2450,7 +2450,7 @@ def delete_host_scan_target(self, host_scan_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2717,7 +2717,7 @@ def get_container_scan_recipe(self, container_scan_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2813,7 +2813,7 @@ def get_container_scan_result(self, container_scan_result_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2909,7 +2909,7 @@ def get_container_scan_target(self, container_scan_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3005,7 +3005,7 @@ def get_host_agent_scan_result(self, host_agent_scan_result_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3101,7 +3101,7 @@ def get_host_cis_benchmark_scan_result(self, host_cis_benchmark_scan_result_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3197,7 +3197,7 @@ def get_host_endpoint_protection_scan_result(self, host_endpoint_protection_scan path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3293,7 +3293,7 @@ def get_host_port_scan_result(self, host_port_scan_result_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3389,7 +3389,7 @@ def get_host_scan_recipe(self, host_scan_recipe_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3485,7 +3485,7 @@ def get_host_scan_target(self, host_scan_target_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3581,7 +3581,7 @@ def get_host_vulnerability(self, host_vulnerability_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3677,7 +3677,7 @@ def get_vulnerability(self, vulnerability_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -3773,7 +3773,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5212,7 +5212,7 @@ def list_host_scan_target_errors(self, compartment_id, host_scan_target_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'lifecycle_state' in kwargs: @@ -5676,7 +5676,7 @@ def list_host_vulnerability_impacted_hosts(self, host_vulnerability_id, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -5983,7 +5983,7 @@ def list_vulnerability_impacted_containers(self, vulnerability_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -6123,7 +6123,7 @@ def list_vulnerability_impacted_hosts(self, vulnerability_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -6251,7 +6251,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6363,7 +6363,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -6579,7 +6579,7 @@ def update_container_scan_recipe(self, container_scan_recipe_id, update_containe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6687,7 +6687,7 @@ def update_container_scan_target(self, container_scan_target_id, update_containe path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6795,7 +6795,7 @@ def update_host_scan_recipe(self, host_scan_recipe_id, update_host_scan_recipe_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6903,7 +6903,7 @@ def update_host_scan_target(self, host_scan_target_id, update_host_scan_target_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/waa/waa_client.py b/src/oci/waa/waa_client.py index c2ce1b395..f9e700c25 100644 --- a/src/oci/waa/waa_client.py +++ b/src/oci/waa/waa_client.py @@ -186,7 +186,7 @@ def change_web_app_acceleration_compartment(self, web_app_acceleration_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -295,7 +295,7 @@ def change_web_app_acceleration_policy_compartment(self, web_app_acceleration_po path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -590,7 +590,7 @@ def delete_web_app_acceleration(self, web_app_acceleration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -693,7 +693,7 @@ def delete_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -790,7 +790,7 @@ def get_web_app_acceleration(self, web_app_acceleration_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -888,7 +888,7 @@ def get_web_app_acceleration_policy(self, web_app_acceleration_policy_id, **kwar path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1302,7 +1302,7 @@ def purge_web_app_acceleration_cache(self, web_app_acceleration_id, purge_web_ap path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1409,7 +1409,7 @@ def update_web_app_acceleration(self, web_app_acceleration_id, update_web_app_ac path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1517,7 +1517,7 @@ def update_web_app_acceleration_policy(self, web_app_acceleration_policy_id, upd path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/waa/work_request_client.py b/src/oci/waa/work_request_client.py index 9e9f5e4d6..64d88ab81 100644 --- a/src/oci/waa/work_request_client.py +++ b/src/oci/waa/work_request_client.py @@ -176,7 +176,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -283,7 +283,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -398,7 +398,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { diff --git a/src/oci/waas/redirect_client.py b/src/oci/waas/redirect_client.py index b05b43883..5e130c0e7 100644 --- a/src/oci/waas/redirect_client.py +++ b/src/oci/waas/redirect_client.py @@ -185,7 +185,7 @@ def change_http_redirect_compartment(self, http_redirect_id, change_http_redirec path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -386,7 +386,7 @@ def delete_http_redirect(self, http_redirect_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -485,7 +485,7 @@ def get_http_redirect(self, http_redirect_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -765,7 +765,7 @@ def update_http_redirect(self, http_redirect_id, update_http_redirect_details, * path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/waas/waas_client.py b/src/oci/waas/waas_client.py index b0cb9c5ef..154e1512b 100644 --- a/src/oci/waas/waas_client.py +++ b/src/oci/waas/waas_client.py @@ -184,7 +184,7 @@ def accept_recommendations(self, waas_policy_id, protection_rule_keys, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -292,7 +292,7 @@ def cancel_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -406,7 +406,7 @@ def change_address_list_compartment(self, address_list_id, change_address_list_c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -521,7 +521,7 @@ def change_certificate_compartment(self, certificate_id, change_certificate_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -635,7 +635,7 @@ def change_custom_protection_rule_compartment(self, custom_protection_rule_id, c path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -750,7 +750,7 @@ def change_waas_policy_compartment(self, waas_policy_id, change_waas_policy_comp path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1254,7 +1254,7 @@ def delete_address_list(self, address_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1362,7 +1362,7 @@ def delete_certificate(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1470,7 +1470,7 @@ def delete_custom_protection_rule(self, custom_protection_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1578,7 +1578,7 @@ def delete_waas_policy(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1677,7 +1677,7 @@ def get_address_list(self, address_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1777,7 +1777,7 @@ def get_certificate(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1877,7 +1877,7 @@ def get_custom_protection_rule(self, custom_protection_rule_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1977,7 +1977,7 @@ def get_device_fingerprint_challenge(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2077,7 +2077,7 @@ def get_human_interaction_challenge(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2177,7 +2177,7 @@ def get_js_challenge(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2277,7 +2277,7 @@ def get_policy_config(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2381,7 +2381,7 @@ def get_protection_rule(self, waas_policy_id, protection_rule_key, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2481,7 +2481,7 @@ def get_protection_settings(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2581,7 +2581,7 @@ def get_waas_policy(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2681,7 +2681,7 @@ def get_waf_address_rate_limiting(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2781,7 +2781,7 @@ def get_waf_config(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2881,7 +2881,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2990,7 +2990,7 @@ def list_access_rules(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3275,7 +3275,7 @@ def list_caching_rules(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3395,7 +3395,7 @@ def list_captchas(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -3976,7 +3976,7 @@ def list_good_bots(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4103,7 +4103,7 @@ def list_protection_rules(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'action' in kwargs: @@ -4240,7 +4240,7 @@ def list_recommendations(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'recommended_action' in kwargs: @@ -4366,7 +4366,7 @@ def list_threat_feeds(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -4660,7 +4660,7 @@ def list_waas_policy_custom_protection_rules(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'action' in kwargs: @@ -4800,7 +4800,7 @@ def list_waf_blocked_requests(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'waf_feature' in kwargs: @@ -5015,7 +5015,7 @@ def list_waf_logs(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'action' in kwargs: @@ -5184,7 +5184,7 @@ def list_waf_requests(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5311,7 +5311,7 @@ def list_waf_traffic(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5429,7 +5429,7 @@ def list_whitelists(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -5686,7 +5686,7 @@ def purge_cache(self, waas_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5804,7 +5804,7 @@ def update_access_rules(self, waas_policy_id, access_rules, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5913,7 +5913,7 @@ def update_address_list(self, address_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6033,7 +6033,7 @@ def update_caching_rules(self, waas_policy_id, caching_rules_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6154,7 +6154,7 @@ def update_captchas(self, waas_policy_id, captchas, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6263,7 +6263,7 @@ def update_certificate(self, certificate_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6376,7 +6376,7 @@ def update_custom_protection_rule(self, custom_protection_rule_id, update_custom path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6495,7 +6495,7 @@ def update_device_fingerprint_challenge(self, waas_policy_id, update_device_fing path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6611,7 +6611,7 @@ def update_good_bots(self, waas_policy_id, good_bots, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6724,7 +6724,7 @@ def update_human_interaction_challenge(self, waas_policy_id, update_human_intera path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6839,7 +6839,7 @@ def update_js_challenge(self, waas_policy_id, update_js_challenge_details, **kwa path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -6952,7 +6952,7 @@ def update_policy_config(self, waas_policy_id, update_policy_config_details, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7063,7 +7063,7 @@ def update_protection_rules(self, waas_policy_id, protection_rules, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7174,7 +7174,7 @@ def update_protection_settings(self, waas_policy_id, update_protection_settings_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7282,7 +7282,7 @@ def update_threat_feeds(self, waas_policy_id, threat_feeds, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7395,7 +7395,7 @@ def update_waas_policy(self, waas_policy_id, update_waas_policy_details, **kwarg path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7509,7 +7509,7 @@ def update_waas_policy_custom_protection_rules(self, waas_policy_id, update_cust path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7622,7 +7622,7 @@ def update_waf_address_rate_limiting(self, waas_policy_id, update_waf_address_ra path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7742,7 +7742,7 @@ def update_waf_config(self, waas_policy_id, update_waf_config_details, **kwargs) path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -7862,7 +7862,7 @@ def update_whitelists(self, waas_policy_id, whitelists, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/waf/waf_client.py b/src/oci/waf/waf_client.py index 054d7d2d4..200684297 100644 --- a/src/oci/waf/waf_client.py +++ b/src/oci/waf/waf_client.py @@ -185,7 +185,7 @@ def change_network_address_list_compartment(self, network_address_list_id, chang path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -296,7 +296,7 @@ def change_web_app_firewall_compartment(self, web_app_firewall_id, change_web_ap path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -407,7 +407,7 @@ def change_web_app_firewall_policy_compartment(self, web_app_firewall_policy_id, path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -805,7 +805,7 @@ def delete_network_address_list(self, network_address_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -910,7 +910,7 @@ def delete_web_app_firewall(self, web_app_firewall_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1015,7 +1015,7 @@ def delete_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1114,7 +1114,7 @@ def get_network_address_list(self, network_address_list_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1214,7 +1214,7 @@ def get_web_app_firewall(self, web_app_firewall_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1314,7 +1314,7 @@ def get_web_app_firewall_policy(self, web_app_firewall_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1414,7 +1414,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2319,7 +2319,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2436,7 +2436,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') query_params = { @@ -2666,7 +2666,7 @@ def update_network_address_list(self, network_address_list_id, update_network_ad path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2776,7 +2776,7 @@ def update_web_app_firewall(self, web_app_firewall_id, update_web_app_firewall_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2886,7 +2886,7 @@ def update_web_app_firewall_policy(self, web_app_firewall_policy_id, update_web_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/wlms/weblogic_management_service_client.py b/src/oci/wlms/weblogic_management_service_client.py index 0fd86bfb1..0c0262441 100644 --- a/src/oci/wlms/weblogic_management_service_client.py +++ b/src/oci/wlms/weblogic_management_service_client.py @@ -195,7 +195,7 @@ def change_wls_domain_compartment(self, wls_domain_id, change_wls_domain_compart path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -317,7 +317,7 @@ def create_agreement_record(self, create_agreement_record_details, wls_domain_id path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -438,7 +438,7 @@ def delete_wls_domain(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -622,7 +622,7 @@ def get_managed_instance(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -730,7 +730,7 @@ def get_managed_instance_server(self, managed_instance_id, server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -830,7 +830,7 @@ def get_wls_domain(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -936,7 +936,7 @@ def get_wls_domain_credential(self, wls_domain_id, credential_type, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1044,7 +1044,7 @@ def get_wls_domain_server(self, wls_domain_id, server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1160,7 +1160,7 @@ def get_wls_domain_server_backup(self, wls_domain_id, server_id, backup_id, **kw path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1276,7 +1276,7 @@ def get_wls_domain_server_backup_content(self, wls_domain_id, server_id, backup_ path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1376,7 +1376,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1495,7 +1495,7 @@ def install_latest_patches_on_wls_domain(self, wls_domain_id, install_latest_pat path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -1621,7 +1621,7 @@ def list_agreement_records(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1775,7 +1775,7 @@ def list_applicable_patches(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -1934,7 +1934,7 @@ def list_managed_instance_scan_results(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2090,7 +2090,7 @@ def list_managed_instance_server_installed_patches(self, managed_instance_id, se path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2249,7 +2249,7 @@ def list_managed_instance_servers(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2639,7 +2639,7 @@ def list_wls_domain_credentials(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -2768,7 +2768,7 @@ def list_wls_domain_scan_results(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -2923,7 +2923,7 @@ def list_wls_domain_server_backups(self, wls_domain_id, server_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3077,7 +3077,7 @@ def list_wls_domain_server_installed_patches(self, wls_domain_id, server_id, **k path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3236,7 +3236,7 @@ def list_wls_domain_servers(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3601,7 +3601,7 @@ def list_wls_domains_sharing_middlewares(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -3745,7 +3745,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -3889,7 +3889,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -4193,7 +4193,7 @@ def restart_wls_domain(self, wls_domain_id, restart_wls_domain_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4315,7 +4315,7 @@ def restore_wls_domain(self, wls_domain_id, restore_wls_domain_details, **kwargs path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4434,7 +4434,7 @@ def scan_managed_instance(self, managed_instance_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4551,7 +4551,7 @@ def scan_wls_domain(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4671,7 +4671,7 @@ def set_restart_order(self, wls_domain_id, set_restart_order_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4792,7 +4792,7 @@ def start_wls_domain(self, wls_domain_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -4912,7 +4912,7 @@ def stop_wls_domain(self, wls_domain_id, stop_wls_domain_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5128,7 +5128,7 @@ def update_managed_instance(self, managed_instance_id, update_managed_instance_d path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5244,7 +5244,7 @@ def update_wls_domain(self, wls_domain_id, update_wls_domain_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -5364,7 +5364,7 @@ def update_wls_domain_credential(self, wls_domain_id, credential_type, update_wl path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { diff --git a/src/oci/work_requests/work_request_client.py b/src/oci/work_requests/work_request_client.py index 123a988e4..c4e2a1734 100644 --- a/src/oci/work_requests/work_request_client.py +++ b/src/oci/work_requests/work_request_client.py @@ -180,7 +180,7 @@ def get_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -301,7 +301,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: @@ -438,7 +438,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_order' in kwargs: diff --git a/src/oci/zpr/zpr_client.py b/src/oci/zpr/zpr_client.py index e9d554399..45875b29a 100644 --- a/src/oci/zpr/zpr_client.py +++ b/src/oci/zpr/zpr_client.py @@ -402,7 +402,7 @@ def delete_zpr_policy(self, zpr_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -605,7 +605,7 @@ def get_zpr_configuration_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -708,7 +708,7 @@ def get_zpr_policy(self, zpr_policy_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -811,7 +811,7 @@ def get_zpr_policy_work_request(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { @@ -942,7 +942,7 @@ def list_zpr_configuration_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1097,7 +1097,7 @@ def list_zpr_configuration_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1598,7 +1598,7 @@ def list_zpr_policy_work_request_errors(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -1753,7 +1753,7 @@ def list_zpr_policy_work_request_logs(self, work_request_id, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') if 'sort_by' in kwargs: @@ -2076,7 +2076,7 @@ def update_zpr_policy(self, zpr_policy_id, update_zpr_policy_details, **kwargs): path_params = {k: v for (k, v) in path_params.items() if v is not missing} for (k, v) in path_params.items(): - if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + if v is None or (isinstance(v, str) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { From bf8e0b0ca07c7989895884fb46d9523c54fbc7a6 Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 15:08:21 +0100 Subject: [PATCH 4/7] manually migrate remaining bits --- src/oci/_vendor/httpsig_cffi/utils.py | 2 +- src/oci/auth/auth_utils.py | 5 +-- src/oci/auth/certificate_retriever.py | 15 ++++---- src/oci/base_client.py | 37 ++++++++++--------- src/oci/config.py | 2 +- src/oci/decorators.py | 2 +- src/oci/encryption/internal/streaming.py | 2 +- src/oci/encryption/internal/utils.py | 6 +-- src/oci/encryption/key_providers.py | 6 +-- src/oci/encryption/models.py | 3 +- .../object_storage/object_storage_client.py | 2 +- .../internal/multipart_object_assembler.py | 8 ++-- src/oci/regions.py | 4 +- src/oci/signer.py | 9 +++-- src/oci/util.py | 4 +- 15 files changed, 49 insertions(+), 58 deletions(-) diff --git a/src/oci/_vendor/httpsig_cffi/utils.py b/src/oci/_vendor/httpsig_cffi/utils.py index b18ca978c..352d42fc3 100644 --- a/src/oci/_vendor/httpsig_cffi/utils.py +++ b/src/oci/_vendor/httpsig_cffi/utils.py @@ -140,7 +140,7 @@ class CaseInsensitiveDict(dict): def __init__(self, d=None, **kwargs): super(CaseInsensitiveDict, self).__init__(**kwargs) if d: - self.update((k.lower(), v) for k, v in six.iteritems(d)) + self.update((k.lower(), v) for k, v in d.items()) def __setitem__(self, key, value): super(CaseInsensitiveDict, self).__setitem__(key.lower(), value) diff --git a/src/oci/auth/auth_utils.py b/src/oci/auth/auth_utils.py index 6bc2fae53..47a4421cd 100644 --- a/src/oci/auth/auth_utils.py +++ b/src/oci/auth/auth_utils.py @@ -24,10 +24,7 @@ def get_tenancy_id_from_certificate(cert): def sanitize_certificate_string(cert_string): - if six.PY3: - string_to_replace = cert_string.decode('ascii') - else: - string_to_replace = cert_string + string_to_replace = cert_string.decode('ascii') return string_to_replace \ .replace('-----BEGIN CERTIFICATE-----', '') \ diff --git a/src/oci/auth/certificate_retriever.py b/src/oci/auth/certificate_retriever.py index cb30995db..718770b53 100644 --- a/src/oci/auth/certificate_retriever.py +++ b/src/oci/auth/certificate_retriever.py @@ -8,6 +8,7 @@ from oci._vendor.requests.exceptions import HTTPError from oci.exceptions import ServiceError +import io import oci.retry import os.path from oci._vendor import six @@ -123,7 +124,7 @@ def __init__(self, **kwargs): else: self.logger.disabled = True - if self.passphrase and isinstance(self.passphrase, six.text_type): + if self.passphrase and isinstance(self.passphrase, str): self.passphrase = self.passphrase.encode('ascii') self._refresh_lock = threading.Lock() @@ -211,7 +212,7 @@ def _refresh_inner(self): """ import oci.signer - downloaded_certificate = six.BytesIO() + downloaded_certificate = io.BytesIO self.logger.debug("Requesting certificate from : %s " % (self.cert_url)) response = self.requests_session.get(self.cert_url, stream=True, timeout=(10, 60)) self.logger.debug("Receiving certificate response......\n{}\n".format(pprint.pformat( @@ -228,13 +229,13 @@ def _refresh_inner(self): self.certificate_and_private_key['certificate'] = downloaded_certificate.getvalue().strip() downloaded_certificate.close() - if isinstance(self.certificate_and_private_key['certificate'], six.text_type): + if isinstance(self.certificate_and_private_key['certificate'], str): self.certificate_and_private_key['certificate'] = self.certificate_and_private_key['certificate'].encode('ascii') self._check_valid_certificate_string(self.certificate_and_private_key['certificate']) if self.private_key_url: - downloaded_private_key_raw = six.BytesIO() + downloaded_private_key_raw = io.BytesIO self.logger.debug("Requesting private key from : %s " % (self.private_key_url)) response = self.requests_session.get(self.private_key_url, stream=True, timeout=(10, 60)) @@ -253,7 +254,7 @@ def _refresh_inner(self): self.certificate_and_private_key['private_key_pem'] = downloaded_private_key_raw.getvalue().strip() downloaded_private_key_raw.close() - if isinstance(self.certificate_and_private_key['private_key_pem'], six.text_type): + if isinstance(self.certificate_and_private_key['private_key_pem'], str): self.certificate_and_private_key['private_key_pem'] = self.certificate_and_private_key['private_key_pem'].encode('ascii') try: @@ -310,13 +311,13 @@ def __init__(self, **kwargs): if 'certificate_pem' not in kwargs: raise TypeError('certificate_pem must be supplied as a keyword argument') - if isinstance(kwargs['certificate_pem'], six.text_type): + if isinstance(kwargs['certificate_pem'], str): self.certificate_and_private_key['certificate'] = kwargs['certificate_pem'].encode('ascii') else: self.certificate_and_private_key['certificate'] = kwargs['certificate_pem'] if 'private_key_pem' in kwargs and kwargs['private_key_pem']: - if isinstance(kwargs['private_key_pem'], six.text_type): + if isinstance(kwargs['private_key_pem'], str): self.certificate_and_private_key['private_key_pem'] = kwargs['private_key_pem'].encode('ascii') else: self.certificate_and_private_key['private_key_pem'] = kwargs['private_key_pem'] diff --git a/src/oci/base_client.py b/src/oci/base_client.py index a21cbfe72..7a30ddf34 100644 --- a/src/oci/base_client.py +++ b/src/oci/base_client.py @@ -24,7 +24,8 @@ from dateutil.parser import parse from dateutil import tz import functools -from six.moves.http_client import HTTPResponse +from http.client import HTTPResponse, HTTPConnection +import urllib.parse from . import constants, exceptions, regions, retry from .auth import signers @@ -83,9 +84,9 @@ def utc_now(): def is_http_log_enabled(is_enabled): if is_enabled: - six.moves.http_client.HTTPConnection.debuglevel = 1 + HTTPConnection.debuglevel = 1 else: - six.moves.http_client.HTTPConnection.debuglevel = 0 + HTTPConnection.debuglevel = 0 def _sanitize_headers_for_requests(headers): @@ -93,8 +94,8 @@ def _sanitize_headers_for_requests(headers): # Convert int, float and bool to string # Bools are automatically handled with this as bool is a subclass of int # Convert a list of strings to csv string - for header_name, header_value in six.iteritems(headers): - if isinstance(header_value, six.integer_types) or isinstance(header_value, float): + for header_name, header_value in headers.items(): + if isinstance(header_value, int) or isinstance(header_value, float): headers[header_name] = str(header_value) if isinstance(header_value, list) and all(isinstance(item, str) for item in header_value): headers[header_name] = ",".join(header_value) @@ -134,7 +135,7 @@ def _read_all_headers(fp): def _to_bytes(input_buffer): bytes_buffer = [] for chunk in input_buffer: - if isinstance(chunk, six.text_type): + if isinstance(chunk, str): bytes_buffer.append(chunk.encode('utf-8')) else: bytes_buffer.append(chunk) @@ -263,7 +264,7 @@ class BaseClient(object): primitive_type_map = { 'int': int, 'float': float, - 'str': six.u, + 'str': str, 'bool': bool, 'date': date, 'datetime': datetime, @@ -546,9 +547,9 @@ def call_api(self, resource_path, method, path_params = self.sanitize_for_serialization(path_params) for k, v in path_params.items(): if should_enable_strict_url_encoding: - replacement = six.moves.urllib.parse.quote(str(self.to_path_value(v)), safe='') + replacement = urllib.parse.quote(str(self.to_path_value(v)), safe='') else: - replacement = six.moves.urllib.parse.quote(str(self.to_path_value(v))) + replacement = urllib.parse.quote(str(self.to_path_value(v))) resource_path = resource_path.\ replace('{' + k + '}', replacement) @@ -844,13 +845,13 @@ def sanitize_for_serialization(self, obj, declared_type=None, field_name=None): :param obj: The data to serialize. :return: The serialized form of data. """ - types = (str, six.integer_types, float, bool, type(None)) + types = (str, int, float, bool, type(None)) declared_swagger_type_to_acceptable_python_types = { 'str': str, 'bool': bool, - 'int': (float, six.integer_types), - 'float': (float, six.integer_types) + 'int': (float, int), + 'float': (float, int) } # if there is a declared type for this obj, then validate that obj is of that type. None types (either None or the NONE_SENTINEL) are not validated but @@ -903,10 +904,10 @@ def sanitize_for_serialization(self, obj, declared_type=None, field_name=None): for attr, _ in obj.swagger_types.items() if getattr(obj, attr) is not None} - keys_to_types_and_field_name = {obj.attribute_map[attr]: (swagger_type, attr) for attr, swagger_type in six.iteritems(obj.swagger_types)} + keys_to_types_and_field_name = {obj.attribute_map[attr]: (swagger_type, attr) for attr, swagger_type in obj.swagger_types.items()} sanitized_dict = {} - for key, val in six.iteritems(obj_dict): + for key, val in obj_dict.items(): value_declared_type = None inner_field_name = key if keys_to_types_and_field_name: @@ -1008,7 +1009,7 @@ def deserialize_response_data(self, response_data, response_type, allow_control_ # Taking the inverse result because strict=True means we do not allow control characters. json_response = json.loads(response_data, strict=not should_allow_control_chars) # Load everything as JSON and then verify that the object returned - # is a string (six.text_type) if the response type is a string. + # is a string if the response type is a string. # This is matches the previous behavior, which happens to strip # the embedded quotes in the get_namespace response. # There is the potential that an API will declare that it returns @@ -1016,7 +1017,7 @@ def deserialize_response_data(self, response_data, response_type, allow_control_ # we do not update the response_data with the json_response. # If we do later steps will fail because they are expecting the # response_data to be a string. - if response_type != "str" or type(json_response) == six.text_type: + if response_type != "str" or type(json_response) == str: response_data = json_response except ValueError: pass @@ -1063,7 +1064,7 @@ def __deserialize(self, data, cls): cls = cls.get_subtype(data) # get_subtype returns a str cls = self.type_mappings[cls] - if cls in [int, float, six.u, bool]: + if cls in [int, float, str, bool]: return self.__deserialize_primitive(data, cls) elif cls == object: return data @@ -1086,7 +1087,7 @@ def __deserialize_primitive(self, data, cls): try: value = cls(data) except UnicodeEncodeError: - value = six.u(data) + value = str(data) except TypeError: value = data return value diff --git a/src/oci/config.py b/src/oci/config.py index f7b30a283..3f8df4e64 100644 --- a/src/oci/config.py +++ b/src/oci/config.py @@ -154,7 +154,7 @@ def validate_config(config, **kwargs): else: errors[required_key] = "missing" - for key, pattern in six.iteritems(PATTERNS): + for key, pattern in PATTERNS.items(): if key in errors: # key is missing, can't possibly match pattern continue diff --git a/src/oci/decorators.py b/src/oci/decorators.py index b0b4c6642..d6d473457 100644 --- a/src/oci/decorators.py +++ b/src/oci/decorators.py @@ -16,7 +16,7 @@ def wrap_init_to_set_state_from_kwargs(init_fn): @functools.wraps(init_fn) def init(self, **kwargs): init_fn(self) - for attr_name in six.iterkeys(self.swagger_types): + for attr_name in self.swagger_types.keys(): value = kwargs.pop(attr_name, missing) if value is not missing: setattr(self, attr_name, value) diff --git a/src/oci/encryption/internal/streaming.py b/src/oci/encryption/internal/streaming.py index 7f5503407..8260e6226 100644 --- a/src/oci/encryption/internal/streaming.py +++ b/src/oci/encryption/internal/streaming.py @@ -67,7 +67,7 @@ def _validate_encryption_context(encryption_context): invalid_keys = [] invalid_values = [] invalid_prefix_keys = [] - for key, value in six.iteritems(encryption_context): + for key, value in encryption_context.items(): # keys and values must be str and not bytes # in python 2 'bytes' is just an alias for 'str' so it is okay if (str != bytes and isinstance(key, bytes)) or not isinstance(key, str): diff --git a/src/oci/encryption/internal/utils.py b/src/oci/encryption/internal/utils.py index e7da0692c..0b0a4d160 100644 --- a/src/oci/encryption/internal/utils.py +++ b/src/oci/encryption/internal/utils.py @@ -69,8 +69,4 @@ def verify_crc32_checksum(input_bytes, checksum): def raise_runtime_error_from(runtime_exc_message, orig_exc): - if six.PY2: - # python 2 does not support exception chaining so we append the inner exception to the message - raise RuntimeError("{} Caused by exception: {}".format(runtime_exc_message, str(orig_exc))) - else: - six.raise_from(RuntimeError(runtime_exc_message), orig_exc) + raise RuntimeError(runtime_exc_message) from orig_exc diff --git a/src/oci/encryption/key_providers.py b/src/oci/encryption/key_providers.py index a68ab0794..2569cd3ad 100644 --- a/src/oci/encryption/key_providers.py +++ b/src/oci/encryption/key_providers.py @@ -18,8 +18,7 @@ ) -@six.add_metaclass(abc.ABCMeta) -class MasterKeyProvider(object): +class MasterKeyProvider(object, metaclass=abc.ABCMeta): """ An abstract base class defining methods to vend MasterKeys for use in encryption and decryption. @@ -116,8 +115,7 @@ def get_master_key(self, **kwargs): return kms_master_key -@six.add_metaclass(abc.ABCMeta) -class MasterKey(object): +class MasterKey(object, metaclass=abc.ABCMeta): """ An abstract base class representing a MasterKey resource to be used in encryption and decryption operations. diff --git a/src/oci/encryption/models.py b/src/oci/encryption/models.py index 0e7f35c81..de85d1e1b 100644 --- a/src/oci/encryption/models.py +++ b/src/oci/encryption/models.py @@ -43,8 +43,7 @@ def get_encryption_context(self): return self._encryption_context -@six.add_metaclass(abc.ABCMeta) -class CryptoResultStream(object): +class CryptoResultStream(object, metaclass=abc.ABCMeta): """ The result of an SDK stream encryption or decryption operation. """ diff --git a/src/oci/object_storage/object_storage_client.py b/src/oci/object_storage/object_storage_client.py index 3a3709f27..2b631005c 100644 --- a/src/oci/object_storage/object_storage_client.py +++ b/src/oci/object_storage/object_storage_client.py @@ -5816,7 +5816,7 @@ def put_object(self, namespace_name, bucket_name, object_name, put_object_body, "storage-tier": kwargs.get("storage_tier", missing), } - for key, value in six.iteritems(kwargs.get("opc_meta", {})): + for key, value in kwargs.get("opc_meta", {}).items(): header_params[f"opc-meta-{key}"] = value header_params = {k: v for (k, v) in header_params.items() if v is not missing and v is not None} # Set default value for expect header if user has not overridden it diff --git a/src/oci/object_storage/transfer/internal/multipart_object_assembler.py b/src/oci/object_storage/transfer/internal/multipart_object_assembler.py index 8e50e39a7..cf9b4e949 100644 --- a/src/oci/object_storage/transfer/internal/multipart_object_assembler.py +++ b/src/oci/object_storage/transfer/internal/multipart_object_assembler.py @@ -18,7 +18,7 @@ from ....exceptions import ServiceError, MultipartUploadError from oci.exceptions import RequestException, ConnectTimeout from oci._vendor.requests.exceptions import Timeout, ConnectionError -from oci._vendor.six.moves.queue import Queue +from queue import Queue from threading import Semaphore from oci._vendor import six from oci.fips import is_fips_mode @@ -405,7 +405,7 @@ def new_upload(self, **kwargs): if self.metadata: # TODO: look into moving this into codegen for create_multipart_upload like it is for put_object processed_metadata = {} - for key, value in six.iteritems(self.metadata): + for key, value in self.metadata.items(): if not key.startswith('opc-meta-'): processed_metadata["opc-meta-" + key] = value else: @@ -638,10 +638,8 @@ def upload_stream(self, stream_ref, **kwargs): # We pull data from the stream until there is no more keep_reading = True while keep_reading: - if six.PY3 and hasattr(stream_ref, 'buffer'): + if hasattr(stream_ref, 'buffer'): read_bytes = stream_ref.buffer.read(self.part_size) - else: - read_bytes = stream_ref.read(self.part_size) semaphore.acquire() diff --git a/src/oci/regions.py b/src/oci/regions.py index 0cd23ecad..69a13435d 100644 --- a/src/oci/regions.py +++ b/src/oci/regions.py @@ -218,7 +218,7 @@ def _reset_region_info(): def _add_region_information_to_override(region_metadata): if _check_valid_schema(region_metadata): - region_metadata = {k: v.lower() for k, v in six.iteritems(region_metadata)} + region_metadata = {k: v.lower() for k, v in region_metadata.items()} REGIONS_SHORT_NAMES[region_metadata[REGION_KEY_PROPERTY_NAME]] = region_metadata[ REGION_IDENTIFIER_PROPERTY_NAME] REGION_REALMS[region_metadata[REGION_IDENTIFIER_PROPERTY_NAME]] = region_metadata[REALM_KEY_PROPERTY_NAME] @@ -422,7 +422,7 @@ def _check_valid_schema(region_metadata): def _add_region_information_to_lookup(region_metadata, region=None): # Check if the region metadata has information about the requested region # Add the region information from region_metadata to the existing lookups - region_metadata = {k: v.lower() for k, v in six.iteritems(region_metadata)} + region_metadata = {k: v.lower() for k, v in region_metadata.items()} if region_metadata[REGION_KEY_PROPERTY_NAME] not in REGIONS_SHORT_NAMES: REGIONS_SHORT_NAMES[region_metadata[REGION_KEY_PROPERTY_NAME]] = region_metadata[REGION_IDENTIFIER_PROPERTY_NAME] diff --git a/src/oci/signer.py b/src/oci/signer.py index 7c3c6902f..e34f2cbc8 100644 --- a/src/oci/signer.py +++ b/src/oci/signer.py @@ -10,6 +10,7 @@ import io import functools import os +import urllib.parse from oci._vendor import six from oci.util import record_body_position_for_rewind, rewind_body, back_up_body_calculate_stream_content_length, read_stream_for_signing @@ -41,9 +42,9 @@ def load_private_key(secret, pass_phrase): - provided pass_phrase but didn't need one - provided a public key """ - if isinstance(secret, six.text_type): + if isinstance(secret, str): secret = secret.encode("ascii") - if isinstance(pass_phrase, six.text_type): + if isinstance(pass_phrase, str): pass_phrase = pass_phrase.encode("ascii") backend = default_backend() @@ -92,7 +93,7 @@ def inject_missing_headers(request, sign_body, enforce_content_headers): "date", email.utils.formatdate(usegmt=True)) request.headers.setdefault( - "host", six.moves.urllib.parse.urlparse(request.url).netloc) + "host", urllib.parse.urlparse(request.url).netloc) if hasattr(request.body, "buffer") or hasattr(request.body, "read"): request.headers.setdefault("content-type", "application/octet-stream") @@ -205,7 +206,7 @@ def do_request_sign(self, request, enforce_content_headers=True): inject_missing_headers(request, sign_body, enforce_content_headers) signed_headers = signer.sign( request.headers, - host=six.moves.urllib.parse.urlparse(request.url).netloc, + host=urllib.parse.urlparse(request.url).netloc, method=request.method, path=request.path_url) request.headers.update(signed_headers) diff --git a/src/oci/util.py b/src/oci/util.py index 6cea80635..d07f37ca0 100644 --- a/src/oci/util.py +++ b/src/oci/util.py @@ -70,7 +70,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 @@ -79,7 +79,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: as_dict[key] = to_dict(value) From 3c2abe8092dd847e8f6df9c4669c68d4f704f8ac Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 15:16:08 +0100 Subject: [PATCH 5/7] scripted: remove all 'from oci._vendor import six' imports done automatically with the following: find src/oci -type f -print | xargs gsed -i '/^from oci._vendor import six$/d' --- src/oci/_vendor/httpsig_cffi/sign.py | 1 - src/oci/_vendor/httpsig_cffi/utils.py | 1 - src/oci/_vendor/httpsig_cffi/verify.py | 1 - src/oci/access_governance_cp/access_governance_cp_client.py | 1 - src/oci/adm/application_dependency_management_client.py | 1 - src/oci/ai_data_platform/ai_data_platform_client.py | 1 - src/oci/ai_document/ai_service_document_client.py | 1 - src/oci/ai_language/ai_service_language_client.py | 1 - src/oci/ai_speech/ai_service_speech_client.py | 1 - src/oci/ai_vision/ai_service_vision_client.py | 1 - src/oci/analytics/analytics_client.py | 1 - src/oci/announcements_service/announcement_client.py | 1 - .../announcements_service/announcement_subscription_client.py | 1 - .../announcements_service/announcements_preferences_client.py | 1 - src/oci/announcements_service/service_client.py | 1 - src/oci/api_platform/api_platform_client.py | 1 - src/oci/apiaccesscontrol/api_metadata_client.py | 1 - src/oci/apiaccesscontrol/privileged_api_control_client.py | 1 - src/oci/apiaccesscontrol/privileged_api_requests_client.py | 1 - src/oci/apiaccesscontrol/privileged_api_work_request_client.py | 1 - src/oci/apigateway/api_gateway_client.py | 1 - src/oci/apigateway/deployment_client.py | 1 - src/oci/apigateway/gateway_client.py | 1 - src/oci/apigateway/subscribers_client.py | 1 - src/oci/apigateway/usage_plans_client.py | 1 - src/oci/apigateway/work_requests_client.py | 1 - src/oci/apm_config/config_client.py | 1 - src/oci/apm_control_plane/apm_domain_client.py | 1 - src/oci/apm_synthetics/apm_synthetic_client.py | 1 - src/oci/apm_traces/attributes_client.py | 1 - src/oci/apm_traces/query_client.py | 1 - src/oci/apm_traces/scheduled_query_client.py | 1 - src/oci/apm_traces/trace_client.py | 1 - src/oci/appmgmt_control/appmgmt_control_client.py | 1 - src/oci/artifacts/artifacts_client.py | 1 - src/oci/audit/audit_client.py | 1 - src/oci/auth/auth_utils.py | 1 - src/oci/auth/certificate_retriever.py | 1 - src/oci/autoscaling/auto_scaling_client.py | 1 - src/oci/bastion/bastion_client.py | 1 - src/oci/bds/bds_client.py | 1 - src/oci/blockchain/blockchain_platform_client.py | 1 - src/oci/budget/budget_client.py | 1 - src/oci/capacity_management/capacity_management_client.py | 1 - src/oci/capacity_management/demand_signal_client.py | 1 - src/oci/capacity_management/internal_demand_signal_client.py | 1 - src/oci/certificates/certificates_client.py | 1 - .../certificates_management/certificates_management_client.py | 1 - src/oci/cims/incident_client.py | 1 - src/oci/cloud_bridge/common_client.py | 1 - src/oci/cloud_bridge/discovery_client.py | 1 - src/oci/cloud_bridge/inventory_client.py | 1 - src/oci/cloud_bridge/ocb_agent_svc_client.py | 1 - src/oci/cloud_guard/cloud_guard_client.py | 1 - src/oci/cloud_migrations/migration_client.py | 1 - .../cluster_placement_groups_cp_client.py | 1 - .../compute_cloud_at_customer_client.py | 1 - src/oci/compute_instance_agent/compute_instance_agent_client.py | 1 - src/oci/compute_instance_agent/plugin_client.py | 1 - src/oci/compute_instance_agent/pluginconfig_client.py | 1 - src/oci/config.py | 1 - src/oci/container_engine/container_engine_client.py | 1 - src/oci/container_instances/container_instance_client.py | 1 - src/oci/core/blockstorage_client.py | 1 - src/oci/core/compute_client.py | 1 - src/oci/core/compute_management_client.py | 1 - src/oci/core/virtual_network_client.py | 1 - src/oci/dashboard_service/dashboard_client.py | 1 - src/oci/dashboard_service/dashboard_group_client.py | 1 - src/oci/data_catalog/data_catalog_client.py | 1 - src/oci/data_flow/data_flow_client.py | 1 - src/oci/data_integration/data_integration_client.py | 1 - src/oci/data_labeling_service/data_labeling_management_client.py | 1 - src/oci/data_labeling_service_dataplane/data_labeling_client.py | 1 - src/oci/data_safe/data_safe_client.py | 1 - src/oci/data_science/data_science_client.py | 1 - src/oci/database/database_client.py | 1 - src/oci/database_management/db_management_client.py | 1 - src/oci/database_management/diagnosability_client.py | 1 - src/oci/database_management/managed_my_sql_databases_client.py | 1 - src/oci/database_management/perfhub_client.py | 1 - src/oci/database_management/sql_tuning_client.py | 1 - src/oci/database_migration/database_migration_client.py | 1 - src/oci/database_tools/database_tools_client.py | 1 - src/oci/dblm/db_life_cycle_management_client.py | 1 - src/oci/dbmulticloud/db_multicloud_aws_provider_client.py | 1 - src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py | 1 - src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py | 1 - src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py | 1 - src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py | 1 - src/oci/dbmulticloud/oracle_db_azure_connector_client.py | 1 - src/oci/dbmulticloud/oracle_db_azure_key_client.py | 1 - src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py | 1 - src/oci/dbmulticloud/oracle_db_azure_vault_client.py | 1 - src/oci/dbmulticloud/work_request_client.py | 1 - src/oci/decorators.py | 1 - .../delegate_access_control/delegate_access_control_client.py | 1 - src/oci/delegate_access_control/work_request_client.py | 1 - src/oci/demand_signal/occ_demand_signal_client.py | 1 - src/oci/desktops/desktop_service_client.py | 1 - src/oci/devops/devops_client.py | 1 - src/oci/dif/stack_client.py | 1 - src/oci/disaster_recovery/disaster_recovery_client.py | 1 - .../distributed_autonomous_db_service_client.py | 1 - .../distributed_db_private_endpoint_service_client.py | 1 - src/oci/distributed_database/distributed_db_service_client.py | 1 - .../distributed_db_work_request_service_client.py | 1 - src/oci/dns/dns_client.py | 1 - src/oci/em_warehouse/em_warehouse_client.py | 1 - src/oci/email/email_client.py | 1 - src/oci/email_data_plane/email_dp_client.py | 1 - src/oci/encryption/internal/streaming.py | 1 - src/oci/encryption/internal/utils.py | 1 - src/oci/encryption/key_providers.py | 1 - src/oci/encryption/models.py | 1 - src/oci/events/events_client.py | 1 - src/oci/file_storage/file_storage_client.py | 1 - .../fleet_apps_management/fleet_apps_management_admin_client.py | 1 - .../fleet_apps_management_catalog_client.py | 1 - src/oci/fleet_apps_management/fleet_apps_management_client.py | 1 - .../fleet_apps_management_maintenance_window_client.py | 1 - .../fleet_apps_management_operations_client.py | 1 - .../fleet_apps_management_provision_client.py | 1 - .../fleet_apps_management_runbooks_client.py | 1 - .../fleet_apps_management_work_request_client.py | 1 - src/oci/fleet_software_update/fleet_software_update_client.py | 1 - src/oci/functions/functions_invoke_client.py | 1 - src/oci/functions/functions_management_client.py | 1 - src/oci/fusion_apps/fusion_applications_client.py | 1 - src/oci/generative_ai/generative_ai_client.py | 1 - src/oci/generative_ai_agent/generative_ai_agent_client.py | 1 - .../generative_ai_agent_runtime_client.py | 1 - .../generative_ai_inference/generative_ai_inference_client.py | 1 - .../generic_artifacts_content_client.py | 1 - .../sharded_database_service_client.py | 1 - src/oci/golden_gate/golden_gate_client.py | 1 - src/oci/governance_rules_control_plane/governance_rule_client.py | 1 - src/oci/governance_rules_control_plane/work_request_client.py | 1 - src/oci/healthchecks/health_checks_client.py | 1 - src/oci/identity/identity_client.py | 1 - src/oci/identity_data_plane/dataplane_client.py | 1 - src/oci/identity_domains/identity_domains_client.py | 1 - src/oci/integration/integration_instance_client.py | 1 - src/oci/iot/iot_client.py | 1 - src/oci/jms/java_management_service_client.py | 1 - src/oci/jms_java_downloads/java_download_client.py | 1 - src/oci/jms_utils/jms_utils_client.py | 1 - src/oci/key_management/ekm_client.py | 1 - src/oci/key_management/kms_crypto_client.py | 1 - src/oci/key_management/kms_hsm_cluster_client.py | 1 - src/oci/key_management/kms_management_client.py | 1 - src/oci/key_management/kms_vault_client.py | 1 - src/oci/license_manager/license_manager_client.py | 1 - src/oci/limits/limits_client.py | 1 - src/oci/limits/quotas_client.py | 1 - src/oci/load_balancer/load_balancer_client.py | 1 - src/oci/lockbox/lockbox_client.py | 1 - src/oci/log_analytics/log_analytics_client.py | 1 - src/oci/logging/logging_management_client.py | 1 - src/oci/loggingingestion/logging_client.py | 1 - src/oci/loggingsearch/log_search_client.py | 1 - src/oci/lustre_file_storage/lustre_file_storage_client.py | 1 - src/oci/managed_kafka/kafka_cluster_client.py | 1 - src/oci/management_agent/management_agent_client.py | 1 - src/oci/management_dashboard/dashx_apis_client.py | 1 - src/oci/marketplace/account_client.py | 1 - src/oci/marketplace/marketplace_client.py | 1 - src/oci/marketplace_private_offer/attachment_client.py | 1 - src/oci/marketplace_private_offer/offer_client.py | 1 - src/oci/marketplace_publisher/marketplace_publisher_client.py | 1 - src/oci/media_services/media_services_client.py | 1 - src/oci/media_services/media_stream_client.py | 1 - src/oci/mngdmac/mac_device_client.py | 1 - src/oci/mngdmac/mac_order_client.py | 1 - src/oci/model_deployment/model_deployment_client.py | 1 - src/oci/monitoring/monitoring_client.py | 1 - src/oci/multicloud/metadata_client.py | 1 - src/oci/multicloud/multi_clouds_metadata_client.py | 1 - src/oci/multicloud/multicloud_resources_client.py | 1 - src/oci/multicloud/multicloudsubscriptions_client.py | 1 - src/oci/multicloud/omhub_network_anchor_client.py | 1 - src/oci/multicloud/omhub_resource_anchor_client.py | 1 - src/oci/mysql/channels_client.py | 1 - src/oci/mysql/db_backups_client.py | 1 - src/oci/mysql/db_system_client.py | 1 - src/oci/mysql/mysqlaas_client.py | 1 - src/oci/mysql/replicas_client.py | 1 - src/oci/mysql/work_requests_client.py | 1 - src/oci/network_firewall/network_firewall_client.py | 1 - src/oci/network_load_balancer/network_load_balancer_client.py | 1 - src/oci/nosql/nosql_client.py | 1 - src/oci/object_storage/object_storage_client.py | 1 - .../transfer/internal/multipart_object_assembler.py | 1 - src/oci/oce/oce_instance_client.py | 1 - src/oci/oci_control_center/occ_metrics_client.py | 1 - src/oci/ocvp/cluster_client.py | 1 - src/oci/ocvp/datastore_client.py | 1 - src/oci/ocvp/datastore_cluster_client.py | 1 - src/oci/ocvp/esxi_host_client.py | 1 - src/oci/ocvp/sddc_client.py | 1 - src/oci/ocvp/work_request_client.py | 1 - src/oci/oda/management_client.py | 1 - src/oci/oda/oda_client.py | 1 - src/oci/oda/odapackage_client.py | 1 - src/oci/onesubscription/billing_schedule_client.py | 1 - src/oci/onesubscription/commitment_client.py | 1 - src/oci/onesubscription/computed_usage_client.py | 1 - src/oci/onesubscription/invoice_summary_client.py | 1 - src/oci/onesubscription/organization_subscription_client.py | 1 - src/oci/onesubscription/ratecard_client.py | 1 - src/oci/onesubscription/subscribed_service_client.py | 1 - src/oci/onesubscription/subscription_client.py | 1 - src/oci/ons/notification_control_plane_client.py | 1 - src/oci/ons/notification_data_plane_client.py | 1 - src/oci/opa/opa_instance_client.py | 1 - src/oci/opensearch/opensearch_cluster_backup_client.py | 1 - src/oci/opensearch/opensearch_cluster_client.py | 1 - src/oci/opensearch/opensearch_cluster_pipeline_client.py | 1 - src/oci/operator_access_control/access_requests_client.py | 1 - src/oci/operator_access_control/operator_actions_client.py | 1 - .../operator_control_assignment_client.py | 1 - src/oci/operator_access_control/operator_control_client.py | 1 - src/oci/opsi/operations_insights_client.py | 1 - src/oci/optimizer/optimizer_client.py | 1 - src/oci/os_management_hub/event_client.py | 1 - src/oci/os_management_hub/lifecycle_environment_client.py | 1 - src/oci/os_management_hub/managed_instance_client.py | 1 - src/oci/os_management_hub/managed_instance_group_client.py | 1 - src/oci/os_management_hub/management_station_client.py | 1 - src/oci/os_management_hub/onboarding_client.py | 1 - src/oci/os_management_hub/reporting_managed_instance_client.py | 1 - src/oci/os_management_hub/scheduled_job_client.py | 1 - src/oci/os_management_hub/software_source_client.py | 1 - src/oci/os_management_hub/work_request_client.py | 1 - src/oci/osp_gateway/address_rule_service_client.py | 1 - src/oci/osp_gateway/address_service_client.py | 1 - src/oci/osp_gateway/invoice_service_client.py | 1 - src/oci/osp_gateway/subscription_service_client.py | 1 - src/oci/osub_billing_schedule/billing_schedule_client.py | 1 - .../organization_subscription_client.py | 1 - src/oci/osub_subscription/commitment_client.py | 1 - src/oci/osub_subscription/ratecard_client.py | 1 - src/oci/osub_subscription/subscription_client.py | 1 - src/oci/osub_usage/computed_usage_client.py | 1 - src/oci/psa/private_service_access_client.py | 1 - src/oci/psql/postgresql_client.py | 1 - src/oci/queue/queue_admin_client.py | 1 - src/oci/queue/queue_client.py | 1 - src/oci/recovery/database_recovery_client.py | 1 - src/oci/redis/oci_cache_config_set_client.py | 1 - src/oci/redis/oci_cache_default_config_set_client.py | 1 - src/oci/redis/oci_cache_user_client.py | 1 - src/oci/redis/redis_cluster_client.py | 1 - src/oci/redis/redis_identity_client.py | 1 - src/oci/regions.py | 1 - src/oci/resource_analytics/monitored_region_client.py | 1 - src/oci/resource_analytics/resource_analytics_instance_client.py | 1 - src/oci/resource_analytics/tenancy_attachment_client.py | 1 - src/oci/resource_manager/resource_manager_client.py | 1 - src/oci/resource_scheduler/schedule_client.py | 1 - src/oci/resource_search/resource_search_client.py | 1 - src/oci/rover/rover_bundle_client.py | 1 - src/oci/rover/rover_cluster_client.py | 1 - src/oci/rover/rover_entitlement_client.py | 1 - src/oci/rover/rover_node_client.py | 1 - src/oci/rover/shape_client.py | 1 - src/oci/rover/work_requests_client.py | 1 - src/oci/sch/connector_plugins_client.py | 1 - src/oci/sch/service_connector_client.py | 1 - src/oci/secrets/secrets_client.py | 1 - src/oci/security_attribute/security_attribute_client.py | 1 - src/oci/service_catalog/service_catalog_client.py | 1 - src/oci/service_manager_proxy/service_manager_proxy_client.py | 1 - src/oci/signer.py | 1 - src/oci/stack_monitoring/stack_monitoring_client.py | 1 - src/oci/streaming/stream_admin_client.py | 1 - src/oci/streaming/stream_client.py | 1 - src/oci/tenant_manager_control_plane/domain_client.py | 1 - src/oci/tenant_manager_control_plane/domain_governance_client.py | 1 - src/oci/tenant_manager_control_plane/governance_client.py | 1 - src/oci/tenant_manager_control_plane/link_client.py | 1 - src/oci/tenant_manager_control_plane/orders_client.py | 1 - src/oci/tenant_manager_control_plane/organization_client.py | 1 - .../tenant_manager_control_plane/recipient_invitation_client.py | 1 - src/oci/tenant_manager_control_plane/sender_invitation_client.py | 1 - src/oci/tenant_manager_control_plane/subscription_client.py | 1 - src/oci/tenant_manager_control_plane/work_request_client.py | 1 - src/oci/threat_intelligence/threatintel_client.py | 1 - src/oci/usage/resources_client.py | 1 - src/oci/usage/rewards_client.py | 1 - src/oci/usage/usagelimits_client.py | 1 - src/oci/usage_api/usageapi_client.py | 1 - src/oci/util.py | 1 - src/oci/vault/vaults_client.py | 1 - src/oci/vbs_inst/vbs_instance_client.py | 1 - src/oci/visual_builder/vb_instance_client.py | 1 - src/oci/vn_monitoring/vn_monitoring_client.py | 1 - src/oci/vulnerability_scanning/vulnerability_scanning_client.py | 1 - src/oci/waa/waa_client.py | 1 - src/oci/waa/work_request_client.py | 1 - src/oci/waas/redirect_client.py | 1 - src/oci/waas/waas_client.py | 1 - src/oci/waf/waf_client.py | 1 - src/oci/wlms/weblogic_management_service_client.py | 1 - src/oci/wlms/weblogic_management_service_configuration_client.py | 1 - src/oci/work_requests/work_request_client.py | 1 - src/oci/zpr/zpr_client.py | 1 - 307 files changed, 307 deletions(-) diff --git a/src/oci/_vendor/httpsig_cffi/sign.py b/src/oci/_vendor/httpsig_cffi/sign.py index dbc5d47d2..ad8053307 100644 --- a/src/oci/_vendor/httpsig_cffi/sign.py +++ b/src/oci/_vendor/httpsig_cffi/sign.py @@ -5,7 +5,6 @@ # Original Work: Copyright (c) 2012 Adam T. Lindsay (original author) import base64 -from oci._vendor import six from cryptography.hazmat.backends import default_backend # noqa: F401 from cryptography.hazmat.primitives import hashes, hmac, serialization # noqa: F401 diff --git a/src/oci/_vendor/httpsig_cffi/utils.py b/src/oci/_vendor/httpsig_cffi/utils.py index 352d42fc3..eff771842 100644 --- a/src/oci/_vendor/httpsig_cffi/utils.py +++ b/src/oci/_vendor/httpsig_cffi/utils.py @@ -8,7 +8,6 @@ import struct import hashlib import base64 -from oci._vendor import six try: # Python 3 diff --git a/src/oci/_vendor/httpsig_cffi/verify.py b/src/oci/_vendor/httpsig_cffi/verify.py index 1c5c89614..bd833060d 100644 --- a/src/oci/_vendor/httpsig_cffi/verify.py +++ b/src/oci/_vendor/httpsig_cffi/verify.py @@ -7,7 +7,6 @@ """ Module to assist in verifying a signed header. """ -from oci._vendor import six from cryptography.hazmat.backends import default_backend # noqa: 401 from cryptography.hazmat.primitives import hashes, hmac, serialization # noqa: 401 diff --git a/src/oci/access_governance_cp/access_governance_cp_client.py b/src/oci/access_governance_cp/access_governance_cp_client.py index 355d12d96..2dcea6f9a 100644 --- a/src/oci/access_governance_cp/access_governance_cp_client.py +++ b/src/oci/access_governance_cp/access_governance_cp_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/adm/application_dependency_management_client.py b/src/oci/adm/application_dependency_management_client.py index 68726b155..188caa49d 100644 --- a/src/oci/adm/application_dependency_management_client.py +++ b/src/oci/adm/application_dependency_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ai_data_platform/ai_data_platform_client.py b/src/oci/ai_data_platform/ai_data_platform_client.py index f020e2805..1bc9c5a6a 100644 --- a/src/oci/ai_data_platform/ai_data_platform_client.py +++ b/src/oci/ai_data_platform/ai_data_platform_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ai_document/ai_service_document_client.py b/src/oci/ai_document/ai_service_document_client.py index 443e4caa4..a5c026984 100644 --- a/src/oci/ai_document/ai_service_document_client.py +++ b/src/oci/ai_document/ai_service_document_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ai_language/ai_service_language_client.py b/src/oci/ai_language/ai_service_language_client.py index 2a7ac98fa..8928f8af1 100644 --- a/src/oci/ai_language/ai_service_language_client.py +++ b/src/oci/ai_language/ai_service_language_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ai_speech/ai_service_speech_client.py b/src/oci/ai_speech/ai_service_speech_client.py index 47d08c0f0..5b371b956 100644 --- a/src/oci/ai_speech/ai_service_speech_client.py +++ b/src/oci/ai_speech/ai_service_speech_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ai_vision/ai_service_vision_client.py b/src/oci/ai_vision/ai_service_vision_client.py index 84c59b75e..e5cf66121 100644 --- a/src/oci/ai_vision/ai_service_vision_client.py +++ b/src/oci/ai_vision/ai_service_vision_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/analytics/analytics_client.py b/src/oci/analytics/analytics_client.py index ea6c5b488..bf07569e1 100644 --- a/src/oci/analytics/analytics_client.py +++ b/src/oci/analytics/analytics_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/announcements_service/announcement_client.py b/src/oci/announcements_service/announcement_client.py index 80e80bd32..f693254ed 100644 --- a/src/oci/announcements_service/announcement_client.py +++ b/src/oci/announcements_service/announcement_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/announcements_service/announcement_subscription_client.py b/src/oci/announcements_service/announcement_subscription_client.py index 864974d42..f9603f293 100644 --- a/src/oci/announcements_service/announcement_subscription_client.py +++ b/src/oci/announcements_service/announcement_subscription_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/announcements_service/announcements_preferences_client.py b/src/oci/announcements_service/announcements_preferences_client.py index 062a10682..7e4d82688 100644 --- a/src/oci/announcements_service/announcements_preferences_client.py +++ b/src/oci/announcements_service/announcements_preferences_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/announcements_service/service_client.py b/src/oci/announcements_service/service_client.py index 9c9ecdef3..cf7bf4bf7 100644 --- a/src/oci/announcements_service/service_client.py +++ b/src/oci/announcements_service/service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/api_platform/api_platform_client.py b/src/oci/api_platform/api_platform_client.py index 8a9a0c96e..a7dd6a683 100644 --- a/src/oci/api_platform/api_platform_client.py +++ b/src/oci/api_platform/api_platform_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apiaccesscontrol/api_metadata_client.py b/src/oci/apiaccesscontrol/api_metadata_client.py index 27034621f..e60eb6381 100644 --- a/src/oci/apiaccesscontrol/api_metadata_client.py +++ b/src/oci/apiaccesscontrol/api_metadata_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apiaccesscontrol/privileged_api_control_client.py b/src/oci/apiaccesscontrol/privileged_api_control_client.py index ff3e97cd7..36af1ab3a 100644 --- a/src/oci/apiaccesscontrol/privileged_api_control_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_control_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apiaccesscontrol/privileged_api_requests_client.py b/src/oci/apiaccesscontrol/privileged_api_requests_client.py index 659a5165e..0fce2835a 100644 --- a/src/oci/apiaccesscontrol/privileged_api_requests_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_requests_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apiaccesscontrol/privileged_api_work_request_client.py b/src/oci/apiaccesscontrol/privileged_api_work_request_client.py index f9ba531d2..e2f83ba44 100644 --- a/src/oci/apiaccesscontrol/privileged_api_work_request_client.py +++ b/src/oci/apiaccesscontrol/privileged_api_work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apigateway/api_gateway_client.py b/src/oci/apigateway/api_gateway_client.py index f06eaa078..1ba16f0bd 100644 --- a/src/oci/apigateway/api_gateway_client.py +++ b/src/oci/apigateway/api_gateway_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apigateway/deployment_client.py b/src/oci/apigateway/deployment_client.py index 1fd9304e3..84814f211 100644 --- a/src/oci/apigateway/deployment_client.py +++ b/src/oci/apigateway/deployment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apigateway/gateway_client.py b/src/oci/apigateway/gateway_client.py index 4a0d48256..a32ca8a01 100644 --- a/src/oci/apigateway/gateway_client.py +++ b/src/oci/apigateway/gateway_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apigateway/subscribers_client.py b/src/oci/apigateway/subscribers_client.py index fb725b38c..fdcc8f4ec 100644 --- a/src/oci/apigateway/subscribers_client.py +++ b/src/oci/apigateway/subscribers_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apigateway/usage_plans_client.py b/src/oci/apigateway/usage_plans_client.py index 4f1bf5dc9..87072e2a6 100644 --- a/src/oci/apigateway/usage_plans_client.py +++ b/src/oci/apigateway/usage_plans_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apigateway/work_requests_client.py b/src/oci/apigateway/work_requests_client.py index 172cd7282..aa57fb567 100644 --- a/src/oci/apigateway/work_requests_client.py +++ b/src/oci/apigateway/work_requests_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_config/config_client.py b/src/oci/apm_config/config_client.py index bfee91e5d..b3d59782c 100644 --- a/src/oci/apm_config/config_client.py +++ b/src/oci/apm_config/config_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_control_plane/apm_domain_client.py b/src/oci/apm_control_plane/apm_domain_client.py index 63653c2ef..b69f982d1 100644 --- a/src/oci/apm_control_plane/apm_domain_client.py +++ b/src/oci/apm_control_plane/apm_domain_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_synthetics/apm_synthetic_client.py b/src/oci/apm_synthetics/apm_synthetic_client.py index 9c7a8fc6a..fb0b271de 100644 --- a/src/oci/apm_synthetics/apm_synthetic_client.py +++ b/src/oci/apm_synthetics/apm_synthetic_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_traces/attributes_client.py b/src/oci/apm_traces/attributes_client.py index d1f1f74b5..4f410cd58 100644 --- a/src/oci/apm_traces/attributes_client.py +++ b/src/oci/apm_traces/attributes_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_traces/query_client.py b/src/oci/apm_traces/query_client.py index 0fe450064..ce46f033f 100644 --- a/src/oci/apm_traces/query_client.py +++ b/src/oci/apm_traces/query_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_traces/scheduled_query_client.py b/src/oci/apm_traces/scheduled_query_client.py index aee615dfd..b222a6476 100644 --- a/src/oci/apm_traces/scheduled_query_client.py +++ b/src/oci/apm_traces/scheduled_query_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/apm_traces/trace_client.py b/src/oci/apm_traces/trace_client.py index 6fc9ce6f8..fab252904 100644 --- a/src/oci/apm_traces/trace_client.py +++ b/src/oci/apm_traces/trace_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/appmgmt_control/appmgmt_control_client.py b/src/oci/appmgmt_control/appmgmt_control_client.py index 9c3bbdde6..6f8e607c8 100644 --- a/src/oci/appmgmt_control/appmgmt_control_client.py +++ b/src/oci/appmgmt_control/appmgmt_control_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/artifacts/artifacts_client.py b/src/oci/artifacts/artifacts_client.py index 9e1f313f1..73ef71c27 100644 --- a/src/oci/artifacts/artifacts_client.py +++ b/src/oci/artifacts/artifacts_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/audit/audit_client.py b/src/oci/audit/audit_client.py index e00bf6312..73db2850e 100644 --- a/src/oci/audit/audit_client.py +++ b/src/oci/audit/audit_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/auth/auth_utils.py b/src/oci/auth/auth_utils.py index 47a4421cd..644dcd0b0 100644 --- a/src/oci/auth/auth_utils.py +++ b/src/oci/auth/auth_utils.py @@ -4,7 +4,6 @@ import random import warnings -from oci._vendor import six def get_tenancy_id_from_certificate(cert): diff --git a/src/oci/auth/certificate_retriever.py b/src/oci/auth/certificate_retriever.py index 718770b53..71d2e68a5 100644 --- a/src/oci/auth/certificate_retriever.py +++ b/src/oci/auth/certificate_retriever.py @@ -11,7 +11,6 @@ import io import oci.retry import os.path -from oci._vendor import six import threading import logging import pprint diff --git a/src/oci/autoscaling/auto_scaling_client.py b/src/oci/autoscaling/auto_scaling_client.py index 1a25507af..ffc9678b2 100644 --- a/src/oci/autoscaling/auto_scaling_client.py +++ b/src/oci/autoscaling/auto_scaling_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/bastion/bastion_client.py b/src/oci/bastion/bastion_client.py index 198d1d103..32fa496e5 100644 --- a/src/oci/bastion/bastion_client.py +++ b/src/oci/bastion/bastion_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/bds/bds_client.py b/src/oci/bds/bds_client.py index ee150566e..22424e6e5 100644 --- a/src/oci/bds/bds_client.py +++ b/src/oci/bds/bds_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/blockchain/blockchain_platform_client.py b/src/oci/blockchain/blockchain_platform_client.py index 475964fd2..5fd5ada3f 100644 --- a/src/oci/blockchain/blockchain_platform_client.py +++ b/src/oci/blockchain/blockchain_platform_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/budget/budget_client.py b/src/oci/budget/budget_client.py index 8108aaf44..549a67580 100644 --- a/src/oci/budget/budget_client.py +++ b/src/oci/budget/budget_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/capacity_management/capacity_management_client.py b/src/oci/capacity_management/capacity_management_client.py index efb5bb249..b35cb3aef 100644 --- a/src/oci/capacity_management/capacity_management_client.py +++ b/src/oci/capacity_management/capacity_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/capacity_management/demand_signal_client.py b/src/oci/capacity_management/demand_signal_client.py index 4ef0140a3..d14242cc4 100644 --- a/src/oci/capacity_management/demand_signal_client.py +++ b/src/oci/capacity_management/demand_signal_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/capacity_management/internal_demand_signal_client.py b/src/oci/capacity_management/internal_demand_signal_client.py index 741d81a96..6d561359f 100644 --- a/src/oci/capacity_management/internal_demand_signal_client.py +++ b/src/oci/capacity_management/internal_demand_signal_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/certificates/certificates_client.py b/src/oci/certificates/certificates_client.py index 4f7020c5e..f515e05a0 100644 --- a/src/oci/certificates/certificates_client.py +++ b/src/oci/certificates/certificates_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/certificates_management/certificates_management_client.py b/src/oci/certificates_management/certificates_management_client.py index 7ac9fc3fa..e719aa86b 100644 --- a/src/oci/certificates_management/certificates_management_client.py +++ b/src/oci/certificates_management/certificates_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cims/incident_client.py b/src/oci/cims/incident_client.py index f14d55f73..fded62b36 100644 --- a/src/oci/cims/incident_client.py +++ b/src/oci/cims/incident_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cloud_bridge/common_client.py b/src/oci/cloud_bridge/common_client.py index f2ad9c781..e71b72a0a 100644 --- a/src/oci/cloud_bridge/common_client.py +++ b/src/oci/cloud_bridge/common_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cloud_bridge/discovery_client.py b/src/oci/cloud_bridge/discovery_client.py index 437aa9b2c..ba8c5db2f 100644 --- a/src/oci/cloud_bridge/discovery_client.py +++ b/src/oci/cloud_bridge/discovery_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cloud_bridge/inventory_client.py b/src/oci/cloud_bridge/inventory_client.py index 6392ee253..784798839 100644 --- a/src/oci/cloud_bridge/inventory_client.py +++ b/src/oci/cloud_bridge/inventory_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cloud_bridge/ocb_agent_svc_client.py b/src/oci/cloud_bridge/ocb_agent_svc_client.py index b69dedd25..f55739b1d 100644 --- a/src/oci/cloud_bridge/ocb_agent_svc_client.py +++ b/src/oci/cloud_bridge/ocb_agent_svc_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cloud_guard/cloud_guard_client.py b/src/oci/cloud_guard/cloud_guard_client.py index 8d662b520..9aa68497b 100644 --- a/src/oci/cloud_guard/cloud_guard_client.py +++ b/src/oci/cloud_guard/cloud_guard_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cloud_migrations/migration_client.py b/src/oci/cloud_migrations/migration_client.py index a998ba691..488d3d14b 100644 --- a/src/oci/cloud_migrations/migration_client.py +++ b/src/oci/cloud_migrations/migration_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py b/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py index 148b53e37..2097d4721 100644 --- a/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +++ b/src/oci/cluster_placement_groups/cluster_placement_groups_cp_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py b/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py index ae10a370e..a9917ca8d 100644 --- a/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +++ b/src/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/compute_instance_agent/compute_instance_agent_client.py b/src/oci/compute_instance_agent/compute_instance_agent_client.py index 510cb93be..371bb585b 100644 --- a/src/oci/compute_instance_agent/compute_instance_agent_client.py +++ b/src/oci/compute_instance_agent/compute_instance_agent_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/compute_instance_agent/plugin_client.py b/src/oci/compute_instance_agent/plugin_client.py index 897d65da7..e21a84b44 100644 --- a/src/oci/compute_instance_agent/plugin_client.py +++ b/src/oci/compute_instance_agent/plugin_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/compute_instance_agent/pluginconfig_client.py b/src/oci/compute_instance_agent/pluginconfig_client.py index 1a3a2a144..841c77aa4 100644 --- a/src/oci/compute_instance_agent/pluginconfig_client.py +++ b/src/oci/compute_instance_agent/pluginconfig_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/config.py b/src/oci/config.py index 3f8df4e64..059c234e1 100644 --- a/src/oci/config.py +++ b/src/oci/config.py @@ -29,7 +29,6 @@ import os import re import logging -from oci._vendor import six from .exceptions import ConfigFileNotFound, ProfileNotFound, InvalidConfig, InvalidKeyFilePath from .auth import signers diff --git a/src/oci/container_engine/container_engine_client.py b/src/oci/container_engine/container_engine_client.py index c6e1400ba..8a1e1a2b9 100644 --- a/src/oci/container_engine/container_engine_client.py +++ b/src/oci/container_engine/container_engine_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/container_instances/container_instance_client.py b/src/oci/container_instances/container_instance_client.py index c3d31feae..eb237cbfb 100644 --- a/src/oci/container_instances/container_instance_client.py +++ b/src/oci/container_instances/container_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/core/blockstorage_client.py b/src/oci/core/blockstorage_client.py index a5d6ccce2..5d8458d5c 100644 --- a/src/oci/core/blockstorage_client.py +++ b/src/oci/core/blockstorage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/core/compute_client.py b/src/oci/core/compute_client.py index e85c2cb7d..4e4e6bfdd 100644 --- a/src/oci/core/compute_client.py +++ b/src/oci/core/compute_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/core/compute_management_client.py b/src/oci/core/compute_management_client.py index 7ad05fade..062bde042 100644 --- a/src/oci/core/compute_management_client.py +++ b/src/oci/core/compute_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/core/virtual_network_client.py b/src/oci/core/virtual_network_client.py index a799d2409..2b3b18d94 100644 --- a/src/oci/core/virtual_network_client.py +++ b/src/oci/core/virtual_network_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dashboard_service/dashboard_client.py b/src/oci/dashboard_service/dashboard_client.py index e44ad1bdd..996e71a3f 100644 --- a/src/oci/dashboard_service/dashboard_client.py +++ b/src/oci/dashboard_service/dashboard_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dashboard_service/dashboard_group_client.py b/src/oci/dashboard_service/dashboard_group_client.py index 7dff55acf..ece690b78 100644 --- a/src/oci/dashboard_service/dashboard_group_client.py +++ b/src/oci/dashboard_service/dashboard_group_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_catalog/data_catalog_client.py b/src/oci/data_catalog/data_catalog_client.py index f0e28f2a7..b1d0dfcfd 100644 --- a/src/oci/data_catalog/data_catalog_client.py +++ b/src/oci/data_catalog/data_catalog_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_flow/data_flow_client.py b/src/oci/data_flow/data_flow_client.py index 9e2f6b6af..a8aa131f6 100644 --- a/src/oci/data_flow/data_flow_client.py +++ b/src/oci/data_flow/data_flow_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_integration/data_integration_client.py b/src/oci/data_integration/data_integration_client.py index 300cbdbdf..49ae9d91e 100644 --- a/src/oci/data_integration/data_integration_client.py +++ b/src/oci/data_integration/data_integration_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_labeling_service/data_labeling_management_client.py b/src/oci/data_labeling_service/data_labeling_management_client.py index a3a8d1f7b..caf574b35 100644 --- a/src/oci/data_labeling_service/data_labeling_management_client.py +++ b/src/oci/data_labeling_service/data_labeling_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_labeling_service_dataplane/data_labeling_client.py b/src/oci/data_labeling_service_dataplane/data_labeling_client.py index f5e003d53..e0004a8a8 100644 --- a/src/oci/data_labeling_service_dataplane/data_labeling_client.py +++ b/src/oci/data_labeling_service_dataplane/data_labeling_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_safe/data_safe_client.py b/src/oci/data_safe/data_safe_client.py index bd7527769..ff5d2311a 100644 --- a/src/oci/data_safe/data_safe_client.py +++ b/src/oci/data_safe/data_safe_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/data_science/data_science_client.py b/src/oci/data_science/data_science_client.py index 5f298073c..4cd687ea9 100644 --- a/src/oci/data_science/data_science_client.py +++ b/src/oci/data_science/data_science_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py index 08fa7ff85..b6ca2a0bf 100644 --- a/src/oci/database/database_client.py +++ b/src/oci/database/database_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_management/db_management_client.py b/src/oci/database_management/db_management_client.py index 71baf561c..904af6305 100644 --- a/src/oci/database_management/db_management_client.py +++ b/src/oci/database_management/db_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_management/diagnosability_client.py b/src/oci/database_management/diagnosability_client.py index 3e1abe3e4..27ea8276c 100644 --- a/src/oci/database_management/diagnosability_client.py +++ b/src/oci/database_management/diagnosability_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_management/managed_my_sql_databases_client.py b/src/oci/database_management/managed_my_sql_databases_client.py index 0252e0a4d..72dd233c2 100644 --- a/src/oci/database_management/managed_my_sql_databases_client.py +++ b/src/oci/database_management/managed_my_sql_databases_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_management/perfhub_client.py b/src/oci/database_management/perfhub_client.py index 87c364af4..b4cdc46b6 100644 --- a/src/oci/database_management/perfhub_client.py +++ b/src/oci/database_management/perfhub_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_management/sql_tuning_client.py b/src/oci/database_management/sql_tuning_client.py index 98a384803..b76a1a691 100644 --- a/src/oci/database_management/sql_tuning_client.py +++ b/src/oci/database_management/sql_tuning_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_migration/database_migration_client.py b/src/oci/database_migration/database_migration_client.py index 7516fc94d..0015bac92 100644 --- a/src/oci/database_migration/database_migration_client.py +++ b/src/oci/database_migration/database_migration_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/database_tools/database_tools_client.py b/src/oci/database_tools/database_tools_client.py index 145da940e..27dcdbafa 100644 --- a/src/oci/database_tools/database_tools_client.py +++ b/src/oci/database_tools/database_tools_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dblm/db_life_cycle_management_client.py b/src/oci/dblm/db_life_cycle_management_client.py index 23408ffa1..408b73ca5 100644 --- a/src/oci/dblm/db_life_cycle_management_client.py +++ b/src/oci/dblm/db_life_cycle_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py b/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py index 4caf5680c..887406cc9 100644 --- a/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py +++ b/src/oci/dbmulticloud/db_multicloud_aws_provider_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py b/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py index 8581b9cc4..9a2e9c436 100644 --- a/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py +++ b/src/oci/dbmulticloud/db_multicloud_gcp_provider_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py b/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py index a5b8b8cb5..fcb6ce011 100644 --- a/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py +++ b/src/oci/dbmulticloud/multi_cloud_resource_discovery_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py b/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py index 96ef5dca3..e08208e3b 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_blob_container_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py b/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py index e510edac4..463f94cba 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_blob_mount_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/oracle_db_azure_connector_client.py b/src/oci/dbmulticloud/oracle_db_azure_connector_client.py index 4a405a63f..086e6e5fa 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_connector_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_connector_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/oracle_db_azure_key_client.py b/src/oci/dbmulticloud/oracle_db_azure_key_client.py index 1dfa00f62..03e8e7932 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_key_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_key_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py b/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py index 69a17f52a..6239f865d 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_vault_association_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/oracle_db_azure_vault_client.py b/src/oci/dbmulticloud/oracle_db_azure_vault_client.py index e7d600cbd..f128b8486 100644 --- a/src/oci/dbmulticloud/oracle_db_azure_vault_client.py +++ b/src/oci/dbmulticloud/oracle_db_azure_vault_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dbmulticloud/work_request_client.py b/src/oci/dbmulticloud/work_request_client.py index f450e1983..b745d8272 100644 --- a/src/oci/dbmulticloud/work_request_client.py +++ b/src/oci/dbmulticloud/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/decorators.py b/src/oci/decorators.py index d6d473457..5df63952d 100644 --- a/src/oci/decorators.py +++ b/src/oci/decorators.py @@ -6,7 +6,6 @@ from .util import Sentinel import functools -from oci._vendor import six missing = Sentinel("Missing") diff --git a/src/oci/delegate_access_control/delegate_access_control_client.py b/src/oci/delegate_access_control/delegate_access_control_client.py index e3de3c13f..0f3a11e1d 100644 --- a/src/oci/delegate_access_control/delegate_access_control_client.py +++ b/src/oci/delegate_access_control/delegate_access_control_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/delegate_access_control/work_request_client.py b/src/oci/delegate_access_control/work_request_client.py index 554be03ce..8b31ca158 100644 --- a/src/oci/delegate_access_control/work_request_client.py +++ b/src/oci/delegate_access_control/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/demand_signal/occ_demand_signal_client.py b/src/oci/demand_signal/occ_demand_signal_client.py index c1ed54bfd..17f12c7b3 100644 --- a/src/oci/demand_signal/occ_demand_signal_client.py +++ b/src/oci/demand_signal/occ_demand_signal_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/desktops/desktop_service_client.py b/src/oci/desktops/desktop_service_client.py index 5d103f0c0..216de776e 100644 --- a/src/oci/desktops/desktop_service_client.py +++ b/src/oci/desktops/desktop_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/devops/devops_client.py b/src/oci/devops/devops_client.py index 9eed6370d..d206c03c3 100644 --- a/src/oci/devops/devops_client.py +++ b/src/oci/devops/devops_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dif/stack_client.py b/src/oci/dif/stack_client.py index 9a9710af4..c08b88cc1 100644 --- a/src/oci/dif/stack_client.py +++ b/src/oci/dif/stack_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/disaster_recovery/disaster_recovery_client.py b/src/oci/disaster_recovery/disaster_recovery_client.py index 336361de0..d42d5100d 100644 --- a/src/oci/disaster_recovery/disaster_recovery_client.py +++ b/src/oci/disaster_recovery/disaster_recovery_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/distributed_database/distributed_autonomous_db_service_client.py b/src/oci/distributed_database/distributed_autonomous_db_service_client.py index 05ed9a170..2748cc3a1 100644 --- a/src/oci/distributed_database/distributed_autonomous_db_service_client.py +++ b/src/oci/distributed_database/distributed_autonomous_db_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py b/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py index dd7216b35..65b40b721 100644 --- a/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py +++ b/src/oci/distributed_database/distributed_db_private_endpoint_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/distributed_database/distributed_db_service_client.py b/src/oci/distributed_database/distributed_db_service_client.py index efa02e986..b0257b18b 100644 --- a/src/oci/distributed_database/distributed_db_service_client.py +++ b/src/oci/distributed_database/distributed_db_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/distributed_database/distributed_db_work_request_service_client.py b/src/oci/distributed_database/distributed_db_work_request_service_client.py index d6a5459c6..a11f90db2 100644 --- a/src/oci/distributed_database/distributed_db_work_request_service_client.py +++ b/src/oci/distributed_database/distributed_db_work_request_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/dns/dns_client.py b/src/oci/dns/dns_client.py index 27357d591..573df1a55 100644 --- a/src/oci/dns/dns_client.py +++ b/src/oci/dns/dns_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/em_warehouse/em_warehouse_client.py b/src/oci/em_warehouse/em_warehouse_client.py index 0b9f66b07..b4be80828 100644 --- a/src/oci/em_warehouse/em_warehouse_client.py +++ b/src/oci/em_warehouse/em_warehouse_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/email/email_client.py b/src/oci/email/email_client.py index 902b5b60a..e73629446 100644 --- a/src/oci/email/email_client.py +++ b/src/oci/email/email_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/email_data_plane/email_dp_client.py b/src/oci/email_data_plane/email_dp_client.py index 725090657..0b066a634 100644 --- a/src/oci/email_data_plane/email_dp_client.py +++ b/src/oci/email_data_plane/email_dp_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/encryption/internal/streaming.py b/src/oci/encryption/internal/streaming.py index 8260e6226..d2869d3f4 100644 --- a/src/oci/encryption/internal/streaming.py +++ b/src/oci/encryption/internal/streaming.py @@ -6,7 +6,6 @@ import base64 import math import json -from oci._vendor import six from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers import Cipher, modes from threading import Lock diff --git a/src/oci/encryption/internal/utils.py b/src/oci/encryption/internal/utils.py index 0b0a4d160..f1c129f35 100644 --- a/src/oci/encryption/internal/utils.py +++ b/src/oci/encryption/internal/utils.py @@ -2,7 +2,6 @@ # Copyright (c) 2016, 2025, 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. -from oci._vendor import six import os from oci.encryption.internal.defaults import DEFAULT_ENCODING import zlib diff --git a/src/oci/encryption/key_providers.py b/src/oci/encryption/key_providers.py index 2569cd3ad..5a16d9874 100644 --- a/src/oci/encryption/key_providers.py +++ b/src/oci/encryption/key_providers.py @@ -2,7 +2,6 @@ # Copyright (c) 2016, 2025, 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. -from oci._vendor import six import abc import base64 diff --git a/src/oci/encryption/models.py b/src/oci/encryption/models.py index de85d1e1b..d73672590 100644 --- a/src/oci/encryption/models.py +++ b/src/oci/encryption/models.py @@ -2,7 +2,6 @@ # Copyright (c) 2016, 2025, 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. -from oci._vendor import six import abc diff --git a/src/oci/events/events_client.py b/src/oci/events/events_client.py index cf0077fc0..369f35303 100644 --- a/src/oci/events/events_client.py +++ b/src/oci/events/events_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/file_storage/file_storage_client.py b/src/oci/file_storage/file_storage_client.py index 0a4cfcd8b..af6475710 100644 --- a/src/oci/file_storage/file_storage_client.py +++ b/src/oci/file_storage/file_storage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py b/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py index 2230b05b8..096d9a6fd 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_admin_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py b/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py index b7cc0e5c4..bc72546ac 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_catalog_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_client.py b/src/oci/fleet_apps_management/fleet_apps_management_client.py index 7aae17cc8..1a5dd68fb 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py b/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py index d9f91f398..cab457dbe 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py b/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py index 42a79947f..7e8106434 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_operations_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py b/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py index a6ad03307..2028f929f 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_provision_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py b/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py index 8d49488ca..72e7d3243 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_runbooks_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py b/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py index 0ed01c59f..80b5213b8 100644 --- a/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py +++ b/src/oci/fleet_apps_management/fleet_apps_management_work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fleet_software_update/fleet_software_update_client.py b/src/oci/fleet_software_update/fleet_software_update_client.py index 9844a13d6..db5c88edb 100644 --- a/src/oci/fleet_software_update/fleet_software_update_client.py +++ b/src/oci/fleet_software_update/fleet_software_update_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/functions/functions_invoke_client.py b/src/oci/functions/functions_invoke_client.py index b1e9e0a26..3a43f384a 100644 --- a/src/oci/functions/functions_invoke_client.py +++ b/src/oci/functions/functions_invoke_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/functions/functions_management_client.py b/src/oci/functions/functions_management_client.py index 84f79c1fe..a00555f0e 100644 --- a/src/oci/functions/functions_management_client.py +++ b/src/oci/functions/functions_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/fusion_apps/fusion_applications_client.py b/src/oci/fusion_apps/fusion_applications_client.py index 8d0e3bde1..7b3595f07 100644 --- a/src/oci/fusion_apps/fusion_applications_client.py +++ b/src/oci/fusion_apps/fusion_applications_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/generative_ai/generative_ai_client.py b/src/oci/generative_ai/generative_ai_client.py index b33e3580c..9292450cd 100644 --- a/src/oci/generative_ai/generative_ai_client.py +++ b/src/oci/generative_ai/generative_ai_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/generative_ai_agent/generative_ai_agent_client.py b/src/oci/generative_ai_agent/generative_ai_agent_client.py index b73c9b94b..7d7a44507 100644 --- a/src/oci/generative_ai_agent/generative_ai_agent_client.py +++ b/src/oci/generative_ai_agent/generative_ai_agent_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py index 37fa644cb..743f5e704 100644 --- a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +++ b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/generative_ai_inference/generative_ai_inference_client.py b/src/oci/generative_ai_inference/generative_ai_inference_client.py index 196eb5112..45998e054 100644 --- a/src/oci/generative_ai_inference/generative_ai_inference_client.py +++ b/src/oci/generative_ai_inference/generative_ai_inference_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/generic_artifacts_content/generic_artifacts_content_client.py b/src/oci/generic_artifacts_content/generic_artifacts_content_client.py index 18b583254..57c4c39cc 100644 --- a/src/oci/generic_artifacts_content/generic_artifacts_content_client.py +++ b/src/oci/generic_artifacts_content/generic_artifacts_content_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/globally_distributed_database/sharded_database_service_client.py b/src/oci/globally_distributed_database/sharded_database_service_client.py index 195c6aaea..c1ef0a561 100644 --- a/src/oci/globally_distributed_database/sharded_database_service_client.py +++ b/src/oci/globally_distributed_database/sharded_database_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/golden_gate/golden_gate_client.py b/src/oci/golden_gate/golden_gate_client.py index 96f5534ed..b3f5b4e46 100644 --- a/src/oci/golden_gate/golden_gate_client.py +++ b/src/oci/golden_gate/golden_gate_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/governance_rules_control_plane/governance_rule_client.py b/src/oci/governance_rules_control_plane/governance_rule_client.py index f0cbeca88..de607bbf0 100644 --- a/src/oci/governance_rules_control_plane/governance_rule_client.py +++ b/src/oci/governance_rules_control_plane/governance_rule_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/governance_rules_control_plane/work_request_client.py b/src/oci/governance_rules_control_plane/work_request_client.py index 6b99a9b4c..0c8691bf0 100644 --- a/src/oci/governance_rules_control_plane/work_request_client.py +++ b/src/oci/governance_rules_control_plane/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/healthchecks/health_checks_client.py b/src/oci/healthchecks/health_checks_client.py index b6183b6af..4fd3be307 100644 --- a/src/oci/healthchecks/health_checks_client.py +++ b/src/oci/healthchecks/health_checks_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/identity/identity_client.py b/src/oci/identity/identity_client.py index f10311f57..5f19f48f6 100644 --- a/src/oci/identity/identity_client.py +++ b/src/oci/identity/identity_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/identity_data_plane/dataplane_client.py b/src/oci/identity_data_plane/dataplane_client.py index 49d4587e4..0365109ea 100644 --- a/src/oci/identity_data_plane/dataplane_client.py +++ b/src/oci/identity_data_plane/dataplane_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/identity_domains/identity_domains_client.py b/src/oci/identity_domains/identity_domains_client.py index 99506cd4b..425f921f2 100644 --- a/src/oci/identity_domains/identity_domains_client.py +++ b/src/oci/identity_domains/identity_domains_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/integration/integration_instance_client.py b/src/oci/integration/integration_instance_client.py index 1bfb8689b..0ae755448 100644 --- a/src/oci/integration/integration_instance_client.py +++ b/src/oci/integration/integration_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/iot/iot_client.py b/src/oci/iot/iot_client.py index bdac9667f..940392033 100644 --- a/src/oci/iot/iot_client.py +++ b/src/oci/iot/iot_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/jms/java_management_service_client.py b/src/oci/jms/java_management_service_client.py index 0b652db3a..7841fa2c9 100644 --- a/src/oci/jms/java_management_service_client.py +++ b/src/oci/jms/java_management_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/jms_java_downloads/java_download_client.py b/src/oci/jms_java_downloads/java_download_client.py index a8f3bf7d8..e4d6037dc 100644 --- a/src/oci/jms_java_downloads/java_download_client.py +++ b/src/oci/jms_java_downloads/java_download_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/jms_utils/jms_utils_client.py b/src/oci/jms_utils/jms_utils_client.py index 3a116c660..95d7bd7aa 100644 --- a/src/oci/jms_utils/jms_utils_client.py +++ b/src/oci/jms_utils/jms_utils_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/key_management/ekm_client.py b/src/oci/key_management/ekm_client.py index 47e2610ad..6a3a56c2b 100644 --- a/src/oci/key_management/ekm_client.py +++ b/src/oci/key_management/ekm_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/key_management/kms_crypto_client.py b/src/oci/key_management/kms_crypto_client.py index 78165c1b2..2f92b9868 100644 --- a/src/oci/key_management/kms_crypto_client.py +++ b/src/oci/key_management/kms_crypto_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/key_management/kms_hsm_cluster_client.py b/src/oci/key_management/kms_hsm_cluster_client.py index 1746aa511..91975afaf 100644 --- a/src/oci/key_management/kms_hsm_cluster_client.py +++ b/src/oci/key_management/kms_hsm_cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/key_management/kms_management_client.py b/src/oci/key_management/kms_management_client.py index c04925d1c..ebb5849e3 100644 --- a/src/oci/key_management/kms_management_client.py +++ b/src/oci/key_management/kms_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/key_management/kms_vault_client.py b/src/oci/key_management/kms_vault_client.py index 8a516a4d0..d211a85e7 100644 --- a/src/oci/key_management/kms_vault_client.py +++ b/src/oci/key_management/kms_vault_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/license_manager/license_manager_client.py b/src/oci/license_manager/license_manager_client.py index 2c9075c66..e66973a99 100644 --- a/src/oci/license_manager/license_manager_client.py +++ b/src/oci/license_manager/license_manager_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/limits/limits_client.py b/src/oci/limits/limits_client.py index 81d5c897a..370492d43 100644 --- a/src/oci/limits/limits_client.py +++ b/src/oci/limits/limits_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/limits/quotas_client.py b/src/oci/limits/quotas_client.py index bd568b7d1..56d1b70fb 100644 --- a/src/oci/limits/quotas_client.py +++ b/src/oci/limits/quotas_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/load_balancer/load_balancer_client.py b/src/oci/load_balancer/load_balancer_client.py index f99824a12..be3184cd4 100644 --- a/src/oci/load_balancer/load_balancer_client.py +++ b/src/oci/load_balancer/load_balancer_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/lockbox/lockbox_client.py b/src/oci/lockbox/lockbox_client.py index 87c52df58..6f34ab318 100644 --- a/src/oci/lockbox/lockbox_client.py +++ b/src/oci/lockbox/lockbox_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/log_analytics/log_analytics_client.py b/src/oci/log_analytics/log_analytics_client.py index efc728a65..19ec30c03 100644 --- a/src/oci/log_analytics/log_analytics_client.py +++ b/src/oci/log_analytics/log_analytics_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/logging/logging_management_client.py b/src/oci/logging/logging_management_client.py index b9799d563..bd3d4c1f0 100644 --- a/src/oci/logging/logging_management_client.py +++ b/src/oci/logging/logging_management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/loggingingestion/logging_client.py b/src/oci/loggingingestion/logging_client.py index 8a4683a2b..7f5020427 100644 --- a/src/oci/loggingingestion/logging_client.py +++ b/src/oci/loggingingestion/logging_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/loggingsearch/log_search_client.py b/src/oci/loggingsearch/log_search_client.py index 128d7c233..74999c8c9 100644 --- a/src/oci/loggingsearch/log_search_client.py +++ b/src/oci/loggingsearch/log_search_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/lustre_file_storage/lustre_file_storage_client.py b/src/oci/lustre_file_storage/lustre_file_storage_client.py index 28e8dede3..5f446c2f2 100644 --- a/src/oci/lustre_file_storage/lustre_file_storage_client.py +++ b/src/oci/lustre_file_storage/lustre_file_storage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/managed_kafka/kafka_cluster_client.py b/src/oci/managed_kafka/kafka_cluster_client.py index 26e932c78..d46d13156 100644 --- a/src/oci/managed_kafka/kafka_cluster_client.py +++ b/src/oci/managed_kafka/kafka_cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/management_agent/management_agent_client.py b/src/oci/management_agent/management_agent_client.py index ec37dc665..ff905fb82 100644 --- a/src/oci/management_agent/management_agent_client.py +++ b/src/oci/management_agent/management_agent_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/management_dashboard/dashx_apis_client.py b/src/oci/management_dashboard/dashx_apis_client.py index b390c9db8..52b065734 100644 --- a/src/oci/management_dashboard/dashx_apis_client.py +++ b/src/oci/management_dashboard/dashx_apis_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/marketplace/account_client.py b/src/oci/marketplace/account_client.py index 8657e341d..c8c57d0c7 100644 --- a/src/oci/marketplace/account_client.py +++ b/src/oci/marketplace/account_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/marketplace/marketplace_client.py b/src/oci/marketplace/marketplace_client.py index 2db53f657..9ae5fa9f2 100644 --- a/src/oci/marketplace/marketplace_client.py +++ b/src/oci/marketplace/marketplace_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/marketplace_private_offer/attachment_client.py b/src/oci/marketplace_private_offer/attachment_client.py index f519d1ebe..927530923 100644 --- a/src/oci/marketplace_private_offer/attachment_client.py +++ b/src/oci/marketplace_private_offer/attachment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/marketplace_private_offer/offer_client.py b/src/oci/marketplace_private_offer/offer_client.py index b26fd2672..dd91f7117 100644 --- a/src/oci/marketplace_private_offer/offer_client.py +++ b/src/oci/marketplace_private_offer/offer_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/marketplace_publisher/marketplace_publisher_client.py b/src/oci/marketplace_publisher/marketplace_publisher_client.py index da7d8b9d7..2190bf231 100644 --- a/src/oci/marketplace_publisher/marketplace_publisher_client.py +++ b/src/oci/marketplace_publisher/marketplace_publisher_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/media_services/media_services_client.py b/src/oci/media_services/media_services_client.py index 8e2d9510b..b7296c1e8 100644 --- a/src/oci/media_services/media_services_client.py +++ b/src/oci/media_services/media_services_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/media_services/media_stream_client.py b/src/oci/media_services/media_stream_client.py index 97a46fc11..b962a811e 100644 --- a/src/oci/media_services/media_stream_client.py +++ b/src/oci/media_services/media_stream_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mngdmac/mac_device_client.py b/src/oci/mngdmac/mac_device_client.py index 0754ed1b0..840693111 100644 --- a/src/oci/mngdmac/mac_device_client.py +++ b/src/oci/mngdmac/mac_device_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mngdmac/mac_order_client.py b/src/oci/mngdmac/mac_order_client.py index eacd8561c..bc9759667 100644 --- a/src/oci/mngdmac/mac_order_client.py +++ b/src/oci/mngdmac/mac_order_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/model_deployment/model_deployment_client.py b/src/oci/model_deployment/model_deployment_client.py index bd39fb9a6..aabc33a00 100644 --- a/src/oci/model_deployment/model_deployment_client.py +++ b/src/oci/model_deployment/model_deployment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/monitoring/monitoring_client.py b/src/oci/monitoring/monitoring_client.py index 92b9b3f97..495841981 100644 --- a/src/oci/monitoring/monitoring_client.py +++ b/src/oci/monitoring/monitoring_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/multicloud/metadata_client.py b/src/oci/multicloud/metadata_client.py index 5edcc60b6..c72fa85d8 100644 --- a/src/oci/multicloud/metadata_client.py +++ b/src/oci/multicloud/metadata_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/multicloud/multi_clouds_metadata_client.py b/src/oci/multicloud/multi_clouds_metadata_client.py index 2dad0a8b5..1e694ee01 100644 --- a/src/oci/multicloud/multi_clouds_metadata_client.py +++ b/src/oci/multicloud/multi_clouds_metadata_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/multicloud/multicloud_resources_client.py b/src/oci/multicloud/multicloud_resources_client.py index cd681e52c..07f152e86 100644 --- a/src/oci/multicloud/multicloud_resources_client.py +++ b/src/oci/multicloud/multicloud_resources_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/multicloud/multicloudsubscriptions_client.py b/src/oci/multicloud/multicloudsubscriptions_client.py index 5f45fc164..2a610d966 100644 --- a/src/oci/multicloud/multicloudsubscriptions_client.py +++ b/src/oci/multicloud/multicloudsubscriptions_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/multicloud/omhub_network_anchor_client.py b/src/oci/multicloud/omhub_network_anchor_client.py index 763a741a7..b6b817d49 100644 --- a/src/oci/multicloud/omhub_network_anchor_client.py +++ b/src/oci/multicloud/omhub_network_anchor_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/multicloud/omhub_resource_anchor_client.py b/src/oci/multicloud/omhub_resource_anchor_client.py index 637aa71af..bdf7f2a50 100644 --- a/src/oci/multicloud/omhub_resource_anchor_client.py +++ b/src/oci/multicloud/omhub_resource_anchor_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mysql/channels_client.py b/src/oci/mysql/channels_client.py index a4cb85102..b2a91870b 100644 --- a/src/oci/mysql/channels_client.py +++ b/src/oci/mysql/channels_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mysql/db_backups_client.py b/src/oci/mysql/db_backups_client.py index b85138262..3b1523601 100644 --- a/src/oci/mysql/db_backups_client.py +++ b/src/oci/mysql/db_backups_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mysql/db_system_client.py b/src/oci/mysql/db_system_client.py index c9708f60f..701ee3945 100644 --- a/src/oci/mysql/db_system_client.py +++ b/src/oci/mysql/db_system_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mysql/mysqlaas_client.py b/src/oci/mysql/mysqlaas_client.py index 4ab83f2c4..311945280 100644 --- a/src/oci/mysql/mysqlaas_client.py +++ b/src/oci/mysql/mysqlaas_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mysql/replicas_client.py b/src/oci/mysql/replicas_client.py index 7c6f6c2d4..b1f573173 100644 --- a/src/oci/mysql/replicas_client.py +++ b/src/oci/mysql/replicas_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/mysql/work_requests_client.py b/src/oci/mysql/work_requests_client.py index 17bcb6bf5..00c179f91 100644 --- a/src/oci/mysql/work_requests_client.py +++ b/src/oci/mysql/work_requests_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/network_firewall/network_firewall_client.py b/src/oci/network_firewall/network_firewall_client.py index 181bc44d6..434a3a872 100644 --- a/src/oci/network_firewall/network_firewall_client.py +++ b/src/oci/network_firewall/network_firewall_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/network_load_balancer/network_load_balancer_client.py b/src/oci/network_load_balancer/network_load_balancer_client.py index 7c59ae2f7..9c07cdb91 100644 --- a/src/oci/network_load_balancer/network_load_balancer_client.py +++ b/src/oci/network_load_balancer/network_load_balancer_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/nosql/nosql_client.py b/src/oci/nosql/nosql_client.py index dd1916439..b7df8fa91 100644 --- a/src/oci/nosql/nosql_client.py +++ b/src/oci/nosql/nosql_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/object_storage/object_storage_client.py b/src/oci/object_storage/object_storage_client.py index 2b631005c..e023ec858 100644 --- a/src/oci/object_storage/object_storage_client.py +++ b/src/oci/object_storage/object_storage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/object_storage/transfer/internal/multipart_object_assembler.py b/src/oci/object_storage/transfer/internal/multipart_object_assembler.py index cf9b4e949..daf743619 100644 --- a/src/oci/object_storage/transfer/internal/multipart_object_assembler.py +++ b/src/oci/object_storage/transfer/internal/multipart_object_assembler.py @@ -20,7 +20,6 @@ from oci._vendor.requests.exceptions import Timeout, ConnectionError from queue import Queue from threading import Semaphore -from oci._vendor import six from oci.fips import is_fips_mode from ....version import __version__ diff --git a/src/oci/oce/oce_instance_client.py b/src/oci/oce/oce_instance_client.py index 1fa26b789..8eb8256e9 100644 --- a/src/oci/oce/oce_instance_client.py +++ b/src/oci/oce/oce_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/oci_control_center/occ_metrics_client.py b/src/oci/oci_control_center/occ_metrics_client.py index 01a691bfe..dd8996460 100644 --- a/src/oci/oci_control_center/occ_metrics_client.py +++ b/src/oci/oci_control_center/occ_metrics_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ocvp/cluster_client.py b/src/oci/ocvp/cluster_client.py index e46c9a500..1c6c24512 100644 --- a/src/oci/ocvp/cluster_client.py +++ b/src/oci/ocvp/cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ocvp/datastore_client.py b/src/oci/ocvp/datastore_client.py index e7c01e761..effce28b5 100644 --- a/src/oci/ocvp/datastore_client.py +++ b/src/oci/ocvp/datastore_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ocvp/datastore_cluster_client.py b/src/oci/ocvp/datastore_cluster_client.py index 1cf54b2de..28a60de5c 100644 --- a/src/oci/ocvp/datastore_cluster_client.py +++ b/src/oci/ocvp/datastore_cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ocvp/esxi_host_client.py b/src/oci/ocvp/esxi_host_client.py index 94c65eb23..dcd19f5f7 100644 --- a/src/oci/ocvp/esxi_host_client.py +++ b/src/oci/ocvp/esxi_host_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ocvp/sddc_client.py b/src/oci/ocvp/sddc_client.py index 294c0c8f1..1fcd7fc9a 100644 --- a/src/oci/ocvp/sddc_client.py +++ b/src/oci/ocvp/sddc_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ocvp/work_request_client.py b/src/oci/ocvp/work_request_client.py index 949fa6f97..7491c0e80 100644 --- a/src/oci/ocvp/work_request_client.py +++ b/src/oci/ocvp/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/oda/management_client.py b/src/oci/oda/management_client.py index efd1f24dc..c2512fa58 100644 --- a/src/oci/oda/management_client.py +++ b/src/oci/oda/management_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/oda/oda_client.py b/src/oci/oda/oda_client.py index dedc025f3..75d844348 100644 --- a/src/oci/oda/oda_client.py +++ b/src/oci/oda/oda_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/oda/odapackage_client.py b/src/oci/oda/odapackage_client.py index 36c0f751c..39f0447a0 100644 --- a/src/oci/oda/odapackage_client.py +++ b/src/oci/oda/odapackage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/billing_schedule_client.py b/src/oci/onesubscription/billing_schedule_client.py index 9a266dba3..18b44cef8 100644 --- a/src/oci/onesubscription/billing_schedule_client.py +++ b/src/oci/onesubscription/billing_schedule_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/commitment_client.py b/src/oci/onesubscription/commitment_client.py index 1166d4664..13c03d026 100644 --- a/src/oci/onesubscription/commitment_client.py +++ b/src/oci/onesubscription/commitment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/computed_usage_client.py b/src/oci/onesubscription/computed_usage_client.py index 5f621636f..af516691a 100644 --- a/src/oci/onesubscription/computed_usage_client.py +++ b/src/oci/onesubscription/computed_usage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/invoice_summary_client.py b/src/oci/onesubscription/invoice_summary_client.py index ba790433a..476d9050c 100644 --- a/src/oci/onesubscription/invoice_summary_client.py +++ b/src/oci/onesubscription/invoice_summary_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/organization_subscription_client.py b/src/oci/onesubscription/organization_subscription_client.py index 936165b76..f3e49d68f 100644 --- a/src/oci/onesubscription/organization_subscription_client.py +++ b/src/oci/onesubscription/organization_subscription_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/ratecard_client.py b/src/oci/onesubscription/ratecard_client.py index 015379e51..2ce9a74dc 100644 --- a/src/oci/onesubscription/ratecard_client.py +++ b/src/oci/onesubscription/ratecard_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/subscribed_service_client.py b/src/oci/onesubscription/subscribed_service_client.py index 02d541a02..71ad6e417 100644 --- a/src/oci/onesubscription/subscribed_service_client.py +++ b/src/oci/onesubscription/subscribed_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/onesubscription/subscription_client.py b/src/oci/onesubscription/subscription_client.py index d07487abf..ea4a6dd46 100644 --- a/src/oci/onesubscription/subscription_client.py +++ b/src/oci/onesubscription/subscription_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ons/notification_control_plane_client.py b/src/oci/ons/notification_control_plane_client.py index c06199007..4007b53cd 100644 --- a/src/oci/ons/notification_control_plane_client.py +++ b/src/oci/ons/notification_control_plane_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/ons/notification_data_plane_client.py b/src/oci/ons/notification_data_plane_client.py index 9b8c8b5a7..ccb07a4ea 100644 --- a/src/oci/ons/notification_data_plane_client.py +++ b/src/oci/ons/notification_data_plane_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/opa/opa_instance_client.py b/src/oci/opa/opa_instance_client.py index ce9c8639f..f6899c3f6 100644 --- a/src/oci/opa/opa_instance_client.py +++ b/src/oci/opa/opa_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/opensearch/opensearch_cluster_backup_client.py b/src/oci/opensearch/opensearch_cluster_backup_client.py index 02f4ffa5e..470be2574 100644 --- a/src/oci/opensearch/opensearch_cluster_backup_client.py +++ b/src/oci/opensearch/opensearch_cluster_backup_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/opensearch/opensearch_cluster_client.py b/src/oci/opensearch/opensearch_cluster_client.py index ba7a7973a..a4e4c6afd 100644 --- a/src/oci/opensearch/opensearch_cluster_client.py +++ b/src/oci/opensearch/opensearch_cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/opensearch/opensearch_cluster_pipeline_client.py b/src/oci/opensearch/opensearch_cluster_pipeline_client.py index ee5824b32..4b8d7e25d 100644 --- a/src/oci/opensearch/opensearch_cluster_pipeline_client.py +++ b/src/oci/opensearch/opensearch_cluster_pipeline_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/operator_access_control/access_requests_client.py b/src/oci/operator_access_control/access_requests_client.py index b97e9dd82..8e74d23e8 100644 --- a/src/oci/operator_access_control/access_requests_client.py +++ b/src/oci/operator_access_control/access_requests_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/operator_access_control/operator_actions_client.py b/src/oci/operator_access_control/operator_actions_client.py index ab9e1b874..dc90c1c1f 100644 --- a/src/oci/operator_access_control/operator_actions_client.py +++ b/src/oci/operator_access_control/operator_actions_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/operator_access_control/operator_control_assignment_client.py b/src/oci/operator_access_control/operator_control_assignment_client.py index c96e9e934..aba7662ab 100644 --- a/src/oci/operator_access_control/operator_control_assignment_client.py +++ b/src/oci/operator_access_control/operator_control_assignment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/operator_access_control/operator_control_client.py b/src/oci/operator_access_control/operator_control_client.py index d5139ee08..26eb3dc5d 100644 --- a/src/oci/operator_access_control/operator_control_client.py +++ b/src/oci/operator_access_control/operator_control_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/opsi/operations_insights_client.py b/src/oci/opsi/operations_insights_client.py index 907cbe354..c8babce19 100644 --- a/src/oci/opsi/operations_insights_client.py +++ b/src/oci/opsi/operations_insights_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/optimizer/optimizer_client.py b/src/oci/optimizer/optimizer_client.py index 3617d2571..b1bb1dafb 100644 --- a/src/oci/optimizer/optimizer_client.py +++ b/src/oci/optimizer/optimizer_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/event_client.py b/src/oci/os_management_hub/event_client.py index ce4d2d5e7..eb787437f 100644 --- a/src/oci/os_management_hub/event_client.py +++ b/src/oci/os_management_hub/event_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/lifecycle_environment_client.py b/src/oci/os_management_hub/lifecycle_environment_client.py index 4625b7761..ded61dc68 100644 --- a/src/oci/os_management_hub/lifecycle_environment_client.py +++ b/src/oci/os_management_hub/lifecycle_environment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/managed_instance_client.py b/src/oci/os_management_hub/managed_instance_client.py index 60391f541..6c053d4ef 100644 --- a/src/oci/os_management_hub/managed_instance_client.py +++ b/src/oci/os_management_hub/managed_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/managed_instance_group_client.py b/src/oci/os_management_hub/managed_instance_group_client.py index 5196646b0..04d6d81cb 100644 --- a/src/oci/os_management_hub/managed_instance_group_client.py +++ b/src/oci/os_management_hub/managed_instance_group_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/management_station_client.py b/src/oci/os_management_hub/management_station_client.py index 637a45ceb..9af6c7446 100644 --- a/src/oci/os_management_hub/management_station_client.py +++ b/src/oci/os_management_hub/management_station_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/onboarding_client.py b/src/oci/os_management_hub/onboarding_client.py index 3c43cfaec..3831d2c86 100644 --- a/src/oci/os_management_hub/onboarding_client.py +++ b/src/oci/os_management_hub/onboarding_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/reporting_managed_instance_client.py b/src/oci/os_management_hub/reporting_managed_instance_client.py index 578265aff..94bfea355 100644 --- a/src/oci/os_management_hub/reporting_managed_instance_client.py +++ b/src/oci/os_management_hub/reporting_managed_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/scheduled_job_client.py b/src/oci/os_management_hub/scheduled_job_client.py index 50e89803a..da6ab5926 100644 --- a/src/oci/os_management_hub/scheduled_job_client.py +++ b/src/oci/os_management_hub/scheduled_job_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/software_source_client.py b/src/oci/os_management_hub/software_source_client.py index 46cff088e..4ce8e8670 100644 --- a/src/oci/os_management_hub/software_source_client.py +++ b/src/oci/os_management_hub/software_source_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/os_management_hub/work_request_client.py b/src/oci/os_management_hub/work_request_client.py index 340ba7f66..97d37e619 100644 --- a/src/oci/os_management_hub/work_request_client.py +++ b/src/oci/os_management_hub/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osp_gateway/address_rule_service_client.py b/src/oci/osp_gateway/address_rule_service_client.py index 08e6438fc..68b010dbe 100644 --- a/src/oci/osp_gateway/address_rule_service_client.py +++ b/src/oci/osp_gateway/address_rule_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osp_gateway/address_service_client.py b/src/oci/osp_gateway/address_service_client.py index 1760ae153..f78e660bc 100644 --- a/src/oci/osp_gateway/address_service_client.py +++ b/src/oci/osp_gateway/address_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osp_gateway/invoice_service_client.py b/src/oci/osp_gateway/invoice_service_client.py index 9715228f1..ad9e5c555 100644 --- a/src/oci/osp_gateway/invoice_service_client.py +++ b/src/oci/osp_gateway/invoice_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osp_gateway/subscription_service_client.py b/src/oci/osp_gateway/subscription_service_client.py index e52aa3596..44d33f140 100644 --- a/src/oci/osp_gateway/subscription_service_client.py +++ b/src/oci/osp_gateway/subscription_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osub_billing_schedule/billing_schedule_client.py b/src/oci/osub_billing_schedule/billing_schedule_client.py index 9d2e3de20..ebd4fd9b2 100644 --- a/src/oci/osub_billing_schedule/billing_schedule_client.py +++ b/src/oci/osub_billing_schedule/billing_schedule_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osub_organization_subscription/organization_subscription_client.py b/src/oci/osub_organization_subscription/organization_subscription_client.py index 161e975f3..a1a00d026 100644 --- a/src/oci/osub_organization_subscription/organization_subscription_client.py +++ b/src/oci/osub_organization_subscription/organization_subscription_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osub_subscription/commitment_client.py b/src/oci/osub_subscription/commitment_client.py index 0945e8c2a..6c404ab8a 100644 --- a/src/oci/osub_subscription/commitment_client.py +++ b/src/oci/osub_subscription/commitment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osub_subscription/ratecard_client.py b/src/oci/osub_subscription/ratecard_client.py index cdf58dc1a..f84cdacb5 100644 --- a/src/oci/osub_subscription/ratecard_client.py +++ b/src/oci/osub_subscription/ratecard_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osub_subscription/subscription_client.py b/src/oci/osub_subscription/subscription_client.py index 6e07b5be7..35a9c5d12 100644 --- a/src/oci/osub_subscription/subscription_client.py +++ b/src/oci/osub_subscription/subscription_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/osub_usage/computed_usage_client.py b/src/oci/osub_usage/computed_usage_client.py index dbcb2480b..a7688a3bd 100644 --- a/src/oci/osub_usage/computed_usage_client.py +++ b/src/oci/osub_usage/computed_usage_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/psa/private_service_access_client.py b/src/oci/psa/private_service_access_client.py index d9bba3135..c06de0a90 100644 --- a/src/oci/psa/private_service_access_client.py +++ b/src/oci/psa/private_service_access_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/psql/postgresql_client.py b/src/oci/psql/postgresql_client.py index 06a573554..abcc09c5d 100644 --- a/src/oci/psql/postgresql_client.py +++ b/src/oci/psql/postgresql_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/queue/queue_admin_client.py b/src/oci/queue/queue_admin_client.py index 2960a85a9..1f823ae83 100644 --- a/src/oci/queue/queue_admin_client.py +++ b/src/oci/queue/queue_admin_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/queue/queue_client.py b/src/oci/queue/queue_client.py index ef4436ce0..56630248c 100644 --- a/src/oci/queue/queue_client.py +++ b/src/oci/queue/queue_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/recovery/database_recovery_client.py b/src/oci/recovery/database_recovery_client.py index f27ff3a03..505f30e32 100644 --- a/src/oci/recovery/database_recovery_client.py +++ b/src/oci/recovery/database_recovery_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/redis/oci_cache_config_set_client.py b/src/oci/redis/oci_cache_config_set_client.py index 3b9e58eb2..aa3073f81 100644 --- a/src/oci/redis/oci_cache_config_set_client.py +++ b/src/oci/redis/oci_cache_config_set_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/redis/oci_cache_default_config_set_client.py b/src/oci/redis/oci_cache_default_config_set_client.py index bff78a1c8..63fa808eb 100644 --- a/src/oci/redis/oci_cache_default_config_set_client.py +++ b/src/oci/redis/oci_cache_default_config_set_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/redis/oci_cache_user_client.py b/src/oci/redis/oci_cache_user_client.py index 0191d72d6..cc548ebfc 100644 --- a/src/oci/redis/oci_cache_user_client.py +++ b/src/oci/redis/oci_cache_user_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/redis/redis_cluster_client.py b/src/oci/redis/redis_cluster_client.py index 475c31ba6..2bce6c358 100644 --- a/src/oci/redis/redis_cluster_client.py +++ b/src/oci/redis/redis_cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/redis/redis_identity_client.py b/src/oci/redis/redis_identity_client.py index a6b854c92..e5794326c 100644 --- a/src/oci/redis/redis_identity_client.py +++ b/src/oci/redis/redis_identity_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/regions.py b/src/oci/regions.py index 69a13435d..adff1929c 100644 --- a/src/oci/regions.py +++ b/src/oci/regions.py @@ -11,7 +11,6 @@ from . import regions_definitions from . import service_endpoints from oci.exceptions import InvalidAlloyConfig -from oci._vendor import six from oci._vendor import requests from oci._vendor.requests.exceptions import HTTPError, ConnectionError, RetryError from oci._vendor.requests.adapters import HTTPAdapter diff --git a/src/oci/resource_analytics/monitored_region_client.py b/src/oci/resource_analytics/monitored_region_client.py index cadfbfb5a..8a359d6f8 100644 --- a/src/oci/resource_analytics/monitored_region_client.py +++ b/src/oci/resource_analytics/monitored_region_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/resource_analytics/resource_analytics_instance_client.py b/src/oci/resource_analytics/resource_analytics_instance_client.py index 7b74a6061..0578beea8 100644 --- a/src/oci/resource_analytics/resource_analytics_instance_client.py +++ b/src/oci/resource_analytics/resource_analytics_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/resource_analytics/tenancy_attachment_client.py b/src/oci/resource_analytics/tenancy_attachment_client.py index be64cca23..263ac5c2e 100644 --- a/src/oci/resource_analytics/tenancy_attachment_client.py +++ b/src/oci/resource_analytics/tenancy_attachment_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/resource_manager/resource_manager_client.py b/src/oci/resource_manager/resource_manager_client.py index 6f420d9b8..cb7608d8c 100644 --- a/src/oci/resource_manager/resource_manager_client.py +++ b/src/oci/resource_manager/resource_manager_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/resource_scheduler/schedule_client.py b/src/oci/resource_scheduler/schedule_client.py index 4e7aa85ca..59d0826aa 100644 --- a/src/oci/resource_scheduler/schedule_client.py +++ b/src/oci/resource_scheduler/schedule_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/resource_search/resource_search_client.py b/src/oci/resource_search/resource_search_client.py index 82047d5c0..a23e776f6 100644 --- a/src/oci/resource_search/resource_search_client.py +++ b/src/oci/resource_search/resource_search_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/rover/rover_bundle_client.py b/src/oci/rover/rover_bundle_client.py index adc32dce5..0f35e4d87 100644 --- a/src/oci/rover/rover_bundle_client.py +++ b/src/oci/rover/rover_bundle_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/rover/rover_cluster_client.py b/src/oci/rover/rover_cluster_client.py index 4c6978e68..c9d6f9180 100644 --- a/src/oci/rover/rover_cluster_client.py +++ b/src/oci/rover/rover_cluster_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/rover/rover_entitlement_client.py b/src/oci/rover/rover_entitlement_client.py index 7a09ea607..f41daec52 100644 --- a/src/oci/rover/rover_entitlement_client.py +++ b/src/oci/rover/rover_entitlement_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/rover/rover_node_client.py b/src/oci/rover/rover_node_client.py index 9ab009624..8370133fb 100644 --- a/src/oci/rover/rover_node_client.py +++ b/src/oci/rover/rover_node_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/rover/shape_client.py b/src/oci/rover/shape_client.py index a88fdafff..607cd1c9d 100644 --- a/src/oci/rover/shape_client.py +++ b/src/oci/rover/shape_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/rover/work_requests_client.py b/src/oci/rover/work_requests_client.py index 84973ad99..bef0b6c5d 100644 --- a/src/oci/rover/work_requests_client.py +++ b/src/oci/rover/work_requests_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/sch/connector_plugins_client.py b/src/oci/sch/connector_plugins_client.py index fa035bc3b..095a1b90a 100644 --- a/src/oci/sch/connector_plugins_client.py +++ b/src/oci/sch/connector_plugins_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/sch/service_connector_client.py b/src/oci/sch/service_connector_client.py index 206116661..644929be1 100644 --- a/src/oci/sch/service_connector_client.py +++ b/src/oci/sch/service_connector_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/secrets/secrets_client.py b/src/oci/secrets/secrets_client.py index 9da133df9..eae229f84 100644 --- a/src/oci/secrets/secrets_client.py +++ b/src/oci/secrets/secrets_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/security_attribute/security_attribute_client.py b/src/oci/security_attribute/security_attribute_client.py index 3762cad54..30ce126ef 100644 --- a/src/oci/security_attribute/security_attribute_client.py +++ b/src/oci/security_attribute/security_attribute_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/service_catalog/service_catalog_client.py b/src/oci/service_catalog/service_catalog_client.py index acf03735e..b9f491b0d 100644 --- a/src/oci/service_catalog/service_catalog_client.py +++ b/src/oci/service_catalog/service_catalog_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/service_manager_proxy/service_manager_proxy_client.py b/src/oci/service_manager_proxy/service_manager_proxy_client.py index ee5386589..f9a16ff5a 100644 --- a/src/oci/service_manager_proxy/service_manager_proxy_client.py +++ b/src/oci/service_manager_proxy/service_manager_proxy_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/signer.py b/src/oci/signer.py index e34f2cbc8..3130f9a16 100644 --- a/src/oci/signer.py +++ b/src/oci/signer.py @@ -12,7 +12,6 @@ import os import urllib.parse -from oci._vendor import six from oci.util import record_body_position_for_rewind, rewind_body, back_up_body_calculate_stream_content_length, read_stream_for_signing from ._vendor import httpsig_cffi, requests diff --git a/src/oci/stack_monitoring/stack_monitoring_client.py b/src/oci/stack_monitoring/stack_monitoring_client.py index 49664f934..6d5040bd8 100644 --- a/src/oci/stack_monitoring/stack_monitoring_client.py +++ b/src/oci/stack_monitoring/stack_monitoring_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/streaming/stream_admin_client.py b/src/oci/streaming/stream_admin_client.py index 6f2fde3bb..162b09598 100644 --- a/src/oci/streaming/stream_admin_client.py +++ b/src/oci/streaming/stream_admin_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/streaming/stream_client.py b/src/oci/streaming/stream_client.py index 67b02cd5f..f0245f238 100644 --- a/src/oci/streaming/stream_client.py +++ b/src/oci/streaming/stream_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/domain_client.py b/src/oci/tenant_manager_control_plane/domain_client.py index 9376883b8..c8452db11 100644 --- a/src/oci/tenant_manager_control_plane/domain_client.py +++ b/src/oci/tenant_manager_control_plane/domain_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/domain_governance_client.py b/src/oci/tenant_manager_control_plane/domain_governance_client.py index d7512226a..cf341009d 100644 --- a/src/oci/tenant_manager_control_plane/domain_governance_client.py +++ b/src/oci/tenant_manager_control_plane/domain_governance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/governance_client.py b/src/oci/tenant_manager_control_plane/governance_client.py index 8a702c54c..e77c68599 100644 --- a/src/oci/tenant_manager_control_plane/governance_client.py +++ b/src/oci/tenant_manager_control_plane/governance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/link_client.py b/src/oci/tenant_manager_control_plane/link_client.py index 1cdc067fe..2f419dbed 100644 --- a/src/oci/tenant_manager_control_plane/link_client.py +++ b/src/oci/tenant_manager_control_plane/link_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/orders_client.py b/src/oci/tenant_manager_control_plane/orders_client.py index 3865afcbc..fb3217a3e 100644 --- a/src/oci/tenant_manager_control_plane/orders_client.py +++ b/src/oci/tenant_manager_control_plane/orders_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/organization_client.py b/src/oci/tenant_manager_control_plane/organization_client.py index 2c64daef9..fdbd411bb 100644 --- a/src/oci/tenant_manager_control_plane/organization_client.py +++ b/src/oci/tenant_manager_control_plane/organization_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/recipient_invitation_client.py b/src/oci/tenant_manager_control_plane/recipient_invitation_client.py index b0d532c8f..bb628453e 100644 --- a/src/oci/tenant_manager_control_plane/recipient_invitation_client.py +++ b/src/oci/tenant_manager_control_plane/recipient_invitation_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/sender_invitation_client.py b/src/oci/tenant_manager_control_plane/sender_invitation_client.py index 1fba0d09a..46bf918c3 100644 --- a/src/oci/tenant_manager_control_plane/sender_invitation_client.py +++ b/src/oci/tenant_manager_control_plane/sender_invitation_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/subscription_client.py b/src/oci/tenant_manager_control_plane/subscription_client.py index e5e598c11..96f11f0da 100644 --- a/src/oci/tenant_manager_control_plane/subscription_client.py +++ b/src/oci/tenant_manager_control_plane/subscription_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/tenant_manager_control_plane/work_request_client.py b/src/oci/tenant_manager_control_plane/work_request_client.py index 039deae68..01ae21ff1 100644 --- a/src/oci/tenant_manager_control_plane/work_request_client.py +++ b/src/oci/tenant_manager_control_plane/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/threat_intelligence/threatintel_client.py b/src/oci/threat_intelligence/threatintel_client.py index 26ac8954b..a9cf87eee 100644 --- a/src/oci/threat_intelligence/threatintel_client.py +++ b/src/oci/threat_intelligence/threatintel_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/usage/resources_client.py b/src/oci/usage/resources_client.py index 2986115ad..5acffa80d 100644 --- a/src/oci/usage/resources_client.py +++ b/src/oci/usage/resources_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/usage/rewards_client.py b/src/oci/usage/rewards_client.py index dbebb0673..0d0ec67fe 100644 --- a/src/oci/usage/rewards_client.py +++ b/src/oci/usage/rewards_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/usage/usagelimits_client.py b/src/oci/usage/usagelimits_client.py index e0a356580..7dec5992c 100644 --- a/src/oci/usage/usagelimits_client.py +++ b/src/oci/usage/usagelimits_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/usage_api/usageapi_client.py b/src/oci/usage_api/usageapi_client.py index ff3f4e772..3d621112f 100644 --- a/src/oci/usage_api/usageapi_client.py +++ b/src/oci/usage_api/usageapi_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/util.py b/src/oci/util.py index d07f37ca0..7e12d2a6f 100644 --- a/src/oci/util.py +++ b/src/oci/util.py @@ -13,7 +13,6 @@ import pytz -from oci._vendor import six import oci.exceptions try: diff --git a/src/oci/vault/vaults_client.py b/src/oci/vault/vaults_client.py index eb56cb26a..8cb104176 100644 --- a/src/oci/vault/vaults_client.py +++ b/src/oci/vault/vaults_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/vbs_inst/vbs_instance_client.py b/src/oci/vbs_inst/vbs_instance_client.py index ffcd2e5c2..f5467c522 100644 --- a/src/oci/vbs_inst/vbs_instance_client.py +++ b/src/oci/vbs_inst/vbs_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/visual_builder/vb_instance_client.py b/src/oci/visual_builder/vb_instance_client.py index 19a1f740c..a169a5550 100644 --- a/src/oci/visual_builder/vb_instance_client.py +++ b/src/oci/visual_builder/vb_instance_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/vn_monitoring/vn_monitoring_client.py b/src/oci/vn_monitoring/vn_monitoring_client.py index daef56494..c31eb3f59 100644 --- a/src/oci/vn_monitoring/vn_monitoring_client.py +++ b/src/oci/vn_monitoring/vn_monitoring_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/vulnerability_scanning/vulnerability_scanning_client.py b/src/oci/vulnerability_scanning/vulnerability_scanning_client.py index dcdab77bc..d8e0af73b 100644 --- a/src/oci/vulnerability_scanning/vulnerability_scanning_client.py +++ b/src/oci/vulnerability_scanning/vulnerability_scanning_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/waa/waa_client.py b/src/oci/waa/waa_client.py index f9e700c25..9dc9928dd 100644 --- a/src/oci/waa/waa_client.py +++ b/src/oci/waa/waa_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/waa/work_request_client.py b/src/oci/waa/work_request_client.py index 64d88ab81..360c67d9a 100644 --- a/src/oci/waa/work_request_client.py +++ b/src/oci/waa/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/waas/redirect_client.py b/src/oci/waas/redirect_client.py index 5e130c0e7..ae9ee24b5 100644 --- a/src/oci/waas/redirect_client.py +++ b/src/oci/waas/redirect_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/waas/waas_client.py b/src/oci/waas/waas_client.py index 154e1512b..32bc92e6f 100644 --- a/src/oci/waas/waas_client.py +++ b/src/oci/waas/waas_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/waf/waf_client.py b/src/oci/waf/waf_client.py index 200684297..500676588 100644 --- a/src/oci/waf/waf_client.py +++ b/src/oci/waf/waf_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/wlms/weblogic_management_service_client.py b/src/oci/wlms/weblogic_management_service_client.py index 0c0262441..961de32ea 100644 --- a/src/oci/wlms/weblogic_management_service_client.py +++ b/src/oci/wlms/weblogic_management_service_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/wlms/weblogic_management_service_configuration_client.py b/src/oci/wlms/weblogic_management_service_configuration_client.py index d36fe53a6..df36a0296 100644 --- a/src/oci/wlms/weblogic_management_service_configuration_client.py +++ b/src/oci/wlms/weblogic_management_service_configuration_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/work_requests/work_request_client.py b/src/oci/work_requests/work_request_client.py index c4e2a1734..4980dc75a 100644 --- a/src/oci/work_requests/work_request_client.py +++ b/src/oci/work_requests/work_request_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient diff --git a/src/oci/zpr/zpr_client.py b/src/oci/zpr/zpr_client.py index 45875b29a..f27c40012 100644 --- a/src/oci/zpr/zpr_client.py +++ b/src/oci/zpr/zpr_client.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from oci._vendor import requests # noqa: F401 -from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient From 524981443f9cbe070eec86a585eb09de069eb259 Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 14:49:45 +0100 Subject: [PATCH 6/7] remove vendored six --- src/oci/_vendor/__init__.py | 1 - src/oci/_vendor/six.py | 998 ------------------------------------ 2 files changed, 999 deletions(-) delete mode 100644 src/oci/_vendor/six.py diff --git a/src/oci/_vendor/__init__.py b/src/oci/_vendor/__init__.py index 729b203c2..c6710dd35 100644 --- a/src/oci/_vendor/__init__.py +++ b/src/oci/_vendor/__init__.py @@ -6,7 +6,6 @@ from . import httpsig_cffi # noqa: F401 from . import jwt # noqa: F401 from . import idna # noqa: F401 -from . import six # noqa: F401 from . import urllib3 # noqa: F401 from . import requests # noqa: F401 from . import sseclient # noqa: F401 diff --git a/src/oci/_vendor/six.py b/src/oci/_vendor/six.py deleted file mode 100644 index 4e15675d8..000000000 --- a/src/oci/_vendor/six.py +++ /dev/null @@ -1,998 +0,0 @@ -# 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. - -"""Utilities for writing code that runs on Python 2 and 3""" - -from __future__ import absolute_import - -import functools -import itertools -import operator -import sys -import types - -__author__ = "Benjamin Peterson " -__version__ = "1.16.0" - - -# Useful for very coarse version differentiation. -PY2 = sys.version_info[0] == 2 -PY3 = sys.version_info[0] == 3 -PY34 = sys.version_info[0:2] >= (3, 4) - -if PY3: - string_types = str, - integer_types = int, - class_types = type, - text_type = str - binary_type = bytes - - MAXSIZE = sys.maxsize -else: - string_types = basestring, - integer_types = (int, long) - class_types = (type, types.ClassType) - text_type = unicode - binary_type = str - - if sys.platform.startswith("java"): - # Jython always uses 32 bits. - MAXSIZE = int((1 << 31) - 1) - else: - # It's possible to have sizeof(long) != sizeof(Py_ssize_t). - class X(object): - - def __len__(self): - return 1 << 31 - try: - len(X()) - except OverflowError: - # 32-bit - MAXSIZE = int((1 << 31) - 1) - else: - # 64-bit - MAXSIZE = int((1 << 63) - 1) - del X - -if PY34: - from importlib.util import spec_from_loader -else: - spec_from_loader = None - - -def _add_doc(func, doc): - """Add documentation to a function.""" - func.__doc__ = doc - - -def _import_module(name): - """Import module, returning the module after the last dot.""" - __import__(name) - return sys.modules[name] - - -class _LazyDescr(object): - - def __init__(self, name): - self.name = name - - def __get__(self, obj, tp): - result = self._resolve() - setattr(obj, self.name, result) # Invokes __set__. - try: - # This is a bit ugly, but it avoids running this again by - # removing this descriptor. - delattr(obj.__class__, self.name) - except AttributeError: - pass - return result - - -class MovedModule(_LazyDescr): - - def __init__(self, name, old, new=None): - super(MovedModule, self).__init__(name) - if PY3: - if new is None: - new = name - self.mod = new - else: - self.mod = old - - def _resolve(self): - return _import_module(self.mod) - - def __getattr__(self, attr): - _module = self._resolve() - value = getattr(_module, attr) - setattr(self, attr, value) - return value - - -class _LazyModule(types.ModuleType): - - def __init__(self, name): - super(_LazyModule, self).__init__(name) - self.__doc__ = self.__class__.__doc__ - - def __dir__(self): - attrs = ["__doc__", "__name__"] - attrs += [attr.name for attr in self._moved_attributes] - return attrs - - # Subclasses should override this - _moved_attributes = [] - - -class MovedAttribute(_LazyDescr): - - def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None): - super(MovedAttribute, self).__init__(name) - if PY3: - if new_mod is None: - new_mod = name - self.mod = new_mod - if new_attr is None: - if old_attr is None: - new_attr = name - else: - new_attr = old_attr - self.attr = new_attr - else: - self.mod = old_mod - if old_attr is None: - old_attr = name - self.attr = old_attr - - def _resolve(self): - module = _import_module(self.mod) - return getattr(module, self.attr) - - -class _SixMetaPathImporter(object): - - """ - A meta path importer to import six.moves and its submodules. - - This class implements a PEP302 finder and loader. It should be compatible - with Python 2.5 and all existing versions of Python3 - """ - - def __init__(self, six_module_name): - self.name = six_module_name - self.known_modules = {} - - def _add_module(self, mod, *fullnames): - for fullname in fullnames: - self.known_modules[self.name + "." + fullname] = mod - - def _get_module(self, fullname): - return self.known_modules[self.name + "." + fullname] - - def find_module(self, fullname, path=None): - if fullname in self.known_modules: - return self - return None - - def find_spec(self, fullname, path, target=None): - if fullname in self.known_modules: - return spec_from_loader(fullname, self) - return None - - def __get_module(self, fullname): - try: - return self.known_modules[fullname] - except KeyError: - raise ImportError("This loader does not know module " + fullname) - - def load_module(self, fullname): - try: - # in case of a reload - return sys.modules[fullname] - except KeyError: - pass - mod = self.__get_module(fullname) - if isinstance(mod, MovedModule): - mod = mod._resolve() - else: - mod.__loader__ = self - sys.modules[fullname] = mod - return mod - - def is_package(self, fullname): - """ - Return true, if the named module is a package. - - We need this method to get correct spec objects with - Python 3.4 (see PEP451) - """ - return hasattr(self.__get_module(fullname), "__path__") - - def get_code(self, fullname): - """Return None - - Required, if is_package is implemented""" - self.__get_module(fullname) # eventually raises ImportError - return None - get_source = get_code # same as get_code - - def create_module(self, spec): - return self.load_module(spec.name) - - def exec_module(self, module): - pass - -_importer = _SixMetaPathImporter(__name__) - - -class _MovedItems(_LazyModule): - - """Lazy loading of moved objects""" - __path__ = [] # mark as package - - -_moved_attributes = [ - MovedAttribute("cStringIO", "cStringIO", "io", "StringIO"), - MovedAttribute("filter", "itertools", "builtins", "ifilter", "filter"), - MovedAttribute("filterfalse", "itertools", "itertools", "ifilterfalse", "filterfalse"), - MovedAttribute("input", "__builtin__", "builtins", "raw_input", "input"), - MovedAttribute("intern", "__builtin__", "sys"), - MovedAttribute("map", "itertools", "builtins", "imap", "map"), - MovedAttribute("getcwd", "os", "os", "getcwdu", "getcwd"), - MovedAttribute("getcwdb", "os", "os", "getcwd", "getcwdb"), - MovedAttribute("getoutput", "commands", "subprocess"), - MovedAttribute("range", "__builtin__", "builtins", "xrange", "range"), - MovedAttribute("reload_module", "__builtin__", "importlib" if PY34 else "imp", "reload"), - MovedAttribute("reduce", "__builtin__", "functools"), - MovedAttribute("shlex_quote", "pipes", "shlex", "quote"), - MovedAttribute("StringIO", "StringIO", "io"), - MovedAttribute("UserDict", "UserDict", "collections"), - MovedAttribute("UserList", "UserList", "collections"), - MovedAttribute("UserString", "UserString", "collections"), - MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"), - MovedAttribute("zip", "itertools", "builtins", "izip", "zip"), - MovedAttribute("zip_longest", "itertools", "itertools", "izip_longest", "zip_longest"), - MovedModule("builtins", "__builtin__"), - MovedModule("configparser", "ConfigParser"), - MovedModule("collections_abc", "collections", "collections.abc" if sys.version_info >= (3, 3) else "collections"), - MovedModule("copyreg", "copy_reg"), - MovedModule("dbm_gnu", "gdbm", "dbm.gnu"), - MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"), - MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread" if sys.version_info < (3, 9) else "_thread"), - MovedModule("http_cookiejar", "cookielib", "http.cookiejar"), - MovedModule("http_cookies", "Cookie", "http.cookies"), - MovedModule("html_entities", "htmlentitydefs", "html.entities"), - MovedModule("html_parser", "HTMLParser", "html.parser"), - MovedModule("http_client", "httplib", "http.client"), - MovedModule("email_mime_base", "email.MIMEBase", "email.mime.base"), - MovedModule("email_mime_image", "email.MIMEImage", "email.mime.image"), - MovedModule("email_mime_multipart", "email.MIMEMultipart", "email.mime.multipart"), - MovedModule("email_mime_nonmultipart", "email.MIMENonMultipart", "email.mime.nonmultipart"), - MovedModule("email_mime_text", "email.MIMEText", "email.mime.text"), - MovedModule("BaseHTTPServer", "BaseHTTPServer", "http.server"), - MovedModule("CGIHTTPServer", "CGIHTTPServer", "http.server"), - MovedModule("SimpleHTTPServer", "SimpleHTTPServer", "http.server"), - MovedModule("cPickle", "cPickle", "pickle"), - MovedModule("queue", "Queue"), - MovedModule("reprlib", "repr"), - MovedModule("socketserver", "SocketServer"), - MovedModule("_thread", "thread", "_thread"), - MovedModule("tkinter", "Tkinter"), - MovedModule("tkinter_dialog", "Dialog", "tkinter.dialog"), - MovedModule("tkinter_filedialog", "FileDialog", "tkinter.filedialog"), - MovedModule("tkinter_scrolledtext", "ScrolledText", "tkinter.scrolledtext"), - MovedModule("tkinter_simpledialog", "SimpleDialog", "tkinter.simpledialog"), - MovedModule("tkinter_tix", "Tix", "tkinter.tix"), - MovedModule("tkinter_ttk", "ttk", "tkinter.ttk"), - MovedModule("tkinter_constants", "Tkconstants", "tkinter.constants"), - MovedModule("tkinter_dnd", "Tkdnd", "tkinter.dnd"), - MovedModule("tkinter_colorchooser", "tkColorChooser", - "tkinter.colorchooser"), - MovedModule("tkinter_commondialog", "tkCommonDialog", - "tkinter.commondialog"), - MovedModule("tkinter_tkfiledialog", "tkFileDialog", "tkinter.filedialog"), - MovedModule("tkinter_font", "tkFont", "tkinter.font"), - MovedModule("tkinter_messagebox", "tkMessageBox", "tkinter.messagebox"), - MovedModule("tkinter_tksimpledialog", "tkSimpleDialog", - "tkinter.simpledialog"), - MovedModule("urllib_parse", __name__ + ".moves.urllib_parse", "urllib.parse"), - MovedModule("urllib_error", __name__ + ".moves.urllib_error", "urllib.error"), - MovedModule("urllib", __name__ + ".moves.urllib", __name__ + ".moves.urllib"), - MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"), - MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"), - MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"), -] -# Add windows specific modules. -if sys.platform == "win32": - _moved_attributes += [ - MovedModule("winreg", "_winreg"), - ] - -for attr in _moved_attributes: - setattr(_MovedItems, attr.name, attr) - if isinstance(attr, MovedModule): - _importer._add_module(attr, "moves." + attr.name) -del attr - -_MovedItems._moved_attributes = _moved_attributes - -moves = _MovedItems(__name__ + ".moves") -_importer._add_module(moves, "moves") - - -class Module_six_moves_urllib_parse(_LazyModule): - - """Lazy loading of moved objects in six.moves.urllib_parse""" - - -_urllib_parse_moved_attributes = [ - MovedAttribute("ParseResult", "urlparse", "urllib.parse"), - MovedAttribute("SplitResult", "urlparse", "urllib.parse"), - MovedAttribute("parse_qs", "urlparse", "urllib.parse"), - MovedAttribute("parse_qsl", "urlparse", "urllib.parse"), - MovedAttribute("urldefrag", "urlparse", "urllib.parse"), - MovedAttribute("urljoin", "urlparse", "urllib.parse"), - MovedAttribute("urlparse", "urlparse", "urllib.parse"), - MovedAttribute("urlsplit", "urlparse", "urllib.parse"), - MovedAttribute("urlunparse", "urlparse", "urllib.parse"), - MovedAttribute("urlunsplit", "urlparse", "urllib.parse"), - MovedAttribute("quote", "urllib", "urllib.parse"), - MovedAttribute("quote_plus", "urllib", "urllib.parse"), - MovedAttribute("unquote", "urllib", "urllib.parse"), - MovedAttribute("unquote_plus", "urllib", "urllib.parse"), - MovedAttribute("unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes"), - MovedAttribute("urlencode", "urllib", "urllib.parse"), - MovedAttribute("splitquery", "urllib", "urllib.parse"), - MovedAttribute("splittag", "urllib", "urllib.parse"), - MovedAttribute("splituser", "urllib", "urllib.parse"), - MovedAttribute("splitvalue", "urllib", "urllib.parse"), - MovedAttribute("uses_fragment", "urlparse", "urllib.parse"), - MovedAttribute("uses_netloc", "urlparse", "urllib.parse"), - MovedAttribute("uses_params", "urlparse", "urllib.parse"), - MovedAttribute("uses_query", "urlparse", "urllib.parse"), - MovedAttribute("uses_relative", "urlparse", "urllib.parse"), -] -for attr in _urllib_parse_moved_attributes: - setattr(Module_six_moves_urllib_parse, attr.name, attr) -del attr - -Module_six_moves_urllib_parse._moved_attributes = _urllib_parse_moved_attributes - -_importer._add_module(Module_six_moves_urllib_parse(__name__ + ".moves.urllib_parse"), - "moves.urllib_parse", "moves.urllib.parse") - - -class Module_six_moves_urllib_error(_LazyModule): - - """Lazy loading of moved objects in six.moves.urllib_error""" - - -_urllib_error_moved_attributes = [ - MovedAttribute("URLError", "urllib2", "urllib.error"), - MovedAttribute("HTTPError", "urllib2", "urllib.error"), - MovedAttribute("ContentTooShortError", "urllib", "urllib.error"), -] -for attr in _urllib_error_moved_attributes: - setattr(Module_six_moves_urllib_error, attr.name, attr) -del attr - -Module_six_moves_urllib_error._moved_attributes = _urllib_error_moved_attributes - -_importer._add_module(Module_six_moves_urllib_error(__name__ + ".moves.urllib.error"), - "moves.urllib_error", "moves.urllib.error") - - -class Module_six_moves_urllib_request(_LazyModule): - - """Lazy loading of moved objects in six.moves.urllib_request""" - - -_urllib_request_moved_attributes = [ - MovedAttribute("urlopen", "urllib2", "urllib.request"), - MovedAttribute("install_opener", "urllib2", "urllib.request"), - MovedAttribute("build_opener", "urllib2", "urllib.request"), - MovedAttribute("pathname2url", "urllib", "urllib.request"), - MovedAttribute("url2pathname", "urllib", "urllib.request"), - MovedAttribute("getproxies", "urllib", "urllib.request"), - MovedAttribute("Request", "urllib2", "urllib.request"), - MovedAttribute("OpenerDirector", "urllib2", "urllib.request"), - MovedAttribute("HTTPDefaultErrorHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPRedirectHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPCookieProcessor", "urllib2", "urllib.request"), - MovedAttribute("ProxyHandler", "urllib2", "urllib.request"), - MovedAttribute("BaseHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPPasswordMgr", "urllib2", "urllib.request"), - MovedAttribute("HTTPPasswordMgrWithDefaultRealm", "urllib2", "urllib.request"), - MovedAttribute("AbstractBasicAuthHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPBasicAuthHandler", "urllib2", "urllib.request"), - MovedAttribute("ProxyBasicAuthHandler", "urllib2", "urllib.request"), - MovedAttribute("AbstractDigestAuthHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPDigestAuthHandler", "urllib2", "urllib.request"), - MovedAttribute("ProxyDigestAuthHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPSHandler", "urllib2", "urllib.request"), - MovedAttribute("FileHandler", "urllib2", "urllib.request"), - MovedAttribute("FTPHandler", "urllib2", "urllib.request"), - MovedAttribute("CacheFTPHandler", "urllib2", "urllib.request"), - MovedAttribute("UnknownHandler", "urllib2", "urllib.request"), - MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"), - MovedAttribute("urlretrieve", "urllib", "urllib.request"), - MovedAttribute("urlcleanup", "urllib", "urllib.request"), - MovedAttribute("URLopener", "urllib", "urllib.request"), - MovedAttribute("FancyURLopener", "urllib", "urllib.request"), - MovedAttribute("proxy_bypass", "urllib", "urllib.request"), - MovedAttribute("parse_http_list", "urllib2", "urllib.request"), - MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"), -] -for attr in _urllib_request_moved_attributes: - setattr(Module_six_moves_urllib_request, attr.name, attr) -del attr - -Module_six_moves_urllib_request._moved_attributes = _urllib_request_moved_attributes - -_importer._add_module(Module_six_moves_urllib_request(__name__ + ".moves.urllib.request"), - "moves.urllib_request", "moves.urllib.request") - - -class Module_six_moves_urllib_response(_LazyModule): - - """Lazy loading of moved objects in six.moves.urllib_response""" - - -_urllib_response_moved_attributes = [ - MovedAttribute("addbase", "urllib", "urllib.response"), - MovedAttribute("addclosehook", "urllib", "urllib.response"), - MovedAttribute("addinfo", "urllib", "urllib.response"), - MovedAttribute("addinfourl", "urllib", "urllib.response"), -] -for attr in _urllib_response_moved_attributes: - setattr(Module_six_moves_urllib_response, attr.name, attr) -del attr - -Module_six_moves_urllib_response._moved_attributes = _urllib_response_moved_attributes - -_importer._add_module(Module_six_moves_urllib_response(__name__ + ".moves.urllib.response"), - "moves.urllib_response", "moves.urllib.response") - - -class Module_six_moves_urllib_robotparser(_LazyModule): - - """Lazy loading of moved objects in six.moves.urllib_robotparser""" - - -_urllib_robotparser_moved_attributes = [ - MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser"), -] -for attr in _urllib_robotparser_moved_attributes: - setattr(Module_six_moves_urllib_robotparser, attr.name, attr) -del attr - -Module_six_moves_urllib_robotparser._moved_attributes = _urllib_robotparser_moved_attributes - -_importer._add_module(Module_six_moves_urllib_robotparser(__name__ + ".moves.urllib.robotparser"), - "moves.urllib_robotparser", "moves.urllib.robotparser") - - -class Module_six_moves_urllib(types.ModuleType): - - """Create a six.moves.urllib namespace that resembles the Python 3 namespace""" - __path__ = [] # mark as package - parse = _importer._get_module("moves.urllib_parse") - error = _importer._get_module("moves.urllib_error") - request = _importer._get_module("moves.urllib_request") - response = _importer._get_module("moves.urllib_response") - robotparser = _importer._get_module("moves.urllib_robotparser") - - def __dir__(self): - return ['parse', 'error', 'request', 'response', 'robotparser'] - -_importer._add_module(Module_six_moves_urllib(__name__ + ".moves.urllib"), - "moves.urllib") - - -def add_move(move): - """Add an item to six.moves.""" - setattr(_MovedItems, move.name, move) - - -def remove_move(name): - """Remove item from six.moves.""" - try: - delattr(_MovedItems, name) - except AttributeError: - try: - del moves.__dict__[name] - except KeyError: - raise AttributeError("no such move, %r" % (name,)) - - -if PY3: - _meth_func = "__func__" - _meth_self = "__self__" - - _func_closure = "__closure__" - _func_code = "__code__" - _func_defaults = "__defaults__" - _func_globals = "__globals__" -else: - _meth_func = "im_func" - _meth_self = "im_self" - - _func_closure = "func_closure" - _func_code = "func_code" - _func_defaults = "func_defaults" - _func_globals = "func_globals" - - -try: - advance_iterator = next -except NameError: - def advance_iterator(it): - return it.next() -next = advance_iterator - - -try: - callable = callable -except NameError: - def callable(obj): - return any("__call__" in klass.__dict__ for klass in type(obj).__mro__) - - -if PY3: - def get_unbound_function(unbound): - return unbound - - create_bound_method = types.MethodType - - def create_unbound_method(func, cls): - return func - - Iterator = object -else: - def get_unbound_function(unbound): - return unbound.im_func - - def create_bound_method(func, obj): - return types.MethodType(func, obj, obj.__class__) - - def create_unbound_method(func, cls): - return types.MethodType(func, None, cls) - - class Iterator(object): - - def next(self): - return type(self).__next__(self) - - callable = callable -_add_doc(get_unbound_function, - """Get the function out of a possibly unbound function""") - - -get_method_function = operator.attrgetter(_meth_func) -get_method_self = operator.attrgetter(_meth_self) -get_function_closure = operator.attrgetter(_func_closure) -get_function_code = operator.attrgetter(_func_code) -get_function_defaults = operator.attrgetter(_func_defaults) -get_function_globals = operator.attrgetter(_func_globals) - - -if PY3: - def iterkeys(d, **kw): - return iter(d.keys(**kw)) - - def itervalues(d, **kw): - return iter(d.values(**kw)) - - def iteritems(d, **kw): - return iter(d.items(**kw)) - - def iterlists(d, **kw): - return iter(d.lists(**kw)) - - viewkeys = operator.methodcaller("keys") - - viewvalues = operator.methodcaller("values") - - viewitems = operator.methodcaller("items") -else: - def iterkeys(d, **kw): - return d.iterkeys(**kw) - - def itervalues(d, **kw): - return d.itervalues(**kw) - - def iteritems(d, **kw): - return d.iteritems(**kw) - - def iterlists(d, **kw): - return d.iterlists(**kw) - - viewkeys = operator.methodcaller("viewkeys") - - viewvalues = operator.methodcaller("viewvalues") - - viewitems = operator.methodcaller("viewitems") - -_add_doc(iterkeys, "Return an iterator over the keys of a dictionary.") -_add_doc(itervalues, "Return an iterator over the values of a dictionary.") -_add_doc(iteritems, - "Return an iterator over the (key, value) pairs of a dictionary.") -_add_doc(iterlists, - "Return an iterator over the (key, [values]) pairs of a dictionary.") - - -if PY3: - def b(s): - return s.encode("latin-1") - - def u(s): - return s - unichr = chr - import struct - int2byte = struct.Struct(">B").pack - del struct - byte2int = operator.itemgetter(0) - indexbytes = operator.getitem - iterbytes = iter - import io - StringIO = io.StringIO - BytesIO = io.BytesIO - del io - _assertCountEqual = "assertCountEqual" - if sys.version_info[1] <= 1: - _assertRaisesRegex = "assertRaisesRegexp" - _assertRegex = "assertRegexpMatches" - _assertNotRegex = "assertNotRegexpMatches" - else: - _assertRaisesRegex = "assertRaisesRegex" - _assertRegex = "assertRegex" - _assertNotRegex = "assertNotRegex" -else: - def b(s): - return s - # Workaround for standalone backslash - - def u(s): - return unicode(s.replace(r'\\', r'\\\\'), "unicode_escape") - unichr = unichr - int2byte = chr - - def byte2int(bs): - return ord(bs[0]) - - def indexbytes(buf, i): - return ord(buf[i]) - iterbytes = functools.partial(itertools.imap, ord) - import StringIO - StringIO = BytesIO = StringIO.StringIO - _assertCountEqual = "assertItemsEqual" - _assertRaisesRegex = "assertRaisesRegexp" - _assertRegex = "assertRegexpMatches" - _assertNotRegex = "assertNotRegexpMatches" -_add_doc(b, """Byte literal""") -_add_doc(u, """Text literal""") - - -def assertCountEqual(self, *args, **kwargs): - return getattr(self, _assertCountEqual)(*args, **kwargs) - - -def assertRaisesRegex(self, *args, **kwargs): - return getattr(self, _assertRaisesRegex)(*args, **kwargs) - - -def assertRegex(self, *args, **kwargs): - return getattr(self, _assertRegex)(*args, **kwargs) - - -def assertNotRegex(self, *args, **kwargs): - return getattr(self, _assertNotRegex)(*args, **kwargs) - - -if PY3: - exec_ = getattr(moves.builtins, "exec") - - def reraise(tp, value, tb=None): - try: - if value is None: - value = tp() - if value.__traceback__ is not tb: - raise value.with_traceback(tb) - raise value - finally: - value = None - tb = None - -else: - def exec_(_code_, _globs_=None, _locs_=None): - """Execute code in a namespace.""" - if _globs_ is None: - frame = sys._getframe(1) - _globs_ = frame.f_globals - if _locs_ is None: - _locs_ = frame.f_locals - del frame - elif _locs_ is None: - _locs_ = _globs_ - exec("""exec _code_ in _globs_, _locs_""") - - exec_("""def reraise(tp, value, tb=None): - try: - raise tp, value, tb - finally: - tb = None -""") - - -if sys.version_info[:2] > (3,): - exec_("""def raise_from(value, from_value): - try: - raise value from from_value - finally: - value = None -""") -else: - def raise_from(value, from_value): - raise value - - -print_ = getattr(moves.builtins, "print", None) -if print_ is None: - def print_(*args, **kwargs): - """The new-style print function for Python 2.4 and 2.5.""" - fp = kwargs.pop("file", sys.stdout) - if fp is None: - return - - def write(data): - if not isinstance(data, basestring): - data = str(data) - # If the file has an encoding, encode unicode with it. - if (isinstance(fp, file) and - isinstance(data, unicode) and - fp.encoding is not None): - errors = getattr(fp, "errors", None) - if errors is None: - errors = "strict" - data = data.encode(fp.encoding, errors) - fp.write(data) - want_unicode = False - sep = kwargs.pop("sep", None) - if sep is not None: - if isinstance(sep, unicode): - want_unicode = True - elif not isinstance(sep, str): - raise TypeError("sep must be None or a string") - end = kwargs.pop("end", None) - if end is not None: - if isinstance(end, unicode): - want_unicode = True - elif not isinstance(end, str): - raise TypeError("end must be None or a string") - if kwargs: - raise TypeError("invalid keyword arguments to print()") - if not want_unicode: - for arg in args: - if isinstance(arg, unicode): - want_unicode = True - break - if want_unicode: - newline = unicode("\n") - space = unicode(" ") - else: - newline = "\n" - space = " " - if sep is None: - sep = space - if end is None: - end = newline - for i, arg in enumerate(args): - if i: - write(sep) - write(arg) - write(end) -if sys.version_info[:2] < (3, 3): - _print = print_ - - def print_(*args, **kwargs): - fp = kwargs.get("file", sys.stdout) - flush = kwargs.pop("flush", False) - _print(*args, **kwargs) - if flush and fp is not None: - fp.flush() - -_add_doc(reraise, """Reraise an exception.""") - -if sys.version_info[0:2] < (3, 4): - # This does exactly the same what the :func:`py3:functools.update_wrapper` - # function does on Python versions after 3.2. It sets the ``__wrapped__`` - # attribute on ``wrapper`` object and it doesn't raise an error if any of - # the attributes mentioned in ``assigned`` and ``updated`` are missing on - # ``wrapped`` object. - def _update_wrapper(wrapper, wrapped, - assigned=functools.WRAPPER_ASSIGNMENTS, - updated=functools.WRAPPER_UPDATES): - for attr in assigned: - try: - value = getattr(wrapped, attr) - except AttributeError: - continue - else: - setattr(wrapper, attr, value) - for attr in updated: - getattr(wrapper, attr).update(getattr(wrapped, attr, {})) - wrapper.__wrapped__ = wrapped - return wrapper - _update_wrapper.__doc__ = functools.update_wrapper.__doc__ - - def wraps(wrapped, assigned=functools.WRAPPER_ASSIGNMENTS, - updated=functools.WRAPPER_UPDATES): - return functools.partial(_update_wrapper, wrapped=wrapped, - assigned=assigned, updated=updated) - wraps.__doc__ = functools.wraps.__doc__ - -else: - wraps = functools.wraps - - -def with_metaclass(meta, *bases): - """Create a base class with a metaclass.""" - # This requires a bit of explanation: the basic idea is to make a dummy - # metaclass for one level of class instantiation that replaces itself with - # the actual metaclass. - class metaclass(type): - - def __new__(cls, name, this_bases, d): - if sys.version_info[:2] >= (3, 7): - # This version introduced PEP 560 that requires a bit - # of extra care (we mimic what is done by __build_class__). - resolved_bases = types.resolve_bases(bases) - if resolved_bases is not bases: - d['__orig_bases__'] = bases - else: - resolved_bases = bases - return meta(name, resolved_bases, d) - - @classmethod - def __prepare__(cls, name, this_bases): - return meta.__prepare__(name, bases) - return type.__new__(metaclass, 'temporary_class', (), {}) - - -def add_metaclass(metaclass): - """Class decorator for creating a class with a metaclass.""" - def wrapper(cls): - orig_vars = cls.__dict__.copy() - slots = orig_vars.get('__slots__') - if slots is not None: - if isinstance(slots, str): - slots = [slots] - for slots_var in slots: - orig_vars.pop(slots_var) - orig_vars.pop('__dict__', None) - orig_vars.pop('__weakref__', None) - if hasattr(cls, '__qualname__'): - orig_vars['__qualname__'] = cls.__qualname__ - return metaclass(cls.__name__, cls.__bases__, orig_vars) - return wrapper - - -def ensure_binary(s, encoding='utf-8', errors='strict'): - """Coerce **s** to six.binary_type. - - For Python 2: - - `unicode` -> encoded to `str` - - `str` -> `str` - - For Python 3: - - `str` -> encoded to `bytes` - - `bytes` -> `bytes` - """ - if isinstance(s, binary_type): - return s - if isinstance(s, text_type): - return s.encode(encoding, errors) - raise TypeError("not expecting type '%s'" % type(s)) - - -def ensure_str(s, encoding='utf-8', errors='strict'): - """Coerce *s* to `str`. - - For Python 2: - - `unicode` -> encoded to `str` - - `str` -> `str` - - For Python 3: - - `str` -> `str` - - `bytes` -> decoded to `str` - """ - # Optimization: Fast return for the common case. - if type(s) is str: - return s - if PY2 and isinstance(s, text_type): - return s.encode(encoding, errors) - elif PY3 and isinstance(s, binary_type): - return s.decode(encoding, errors) - elif not isinstance(s, (text_type, binary_type)): - raise TypeError("not expecting type '%s'" % type(s)) - return s - - -def ensure_text(s, encoding='utf-8', errors='strict'): - """Coerce *s* to six.text_type. - - For Python 2: - - `unicode` -> `unicode` - - `str` -> `unicode` - - For Python 3: - - `str` -> `str` - - `bytes` -> decoded to `str` - """ - if isinstance(s, binary_type): - return s.decode(encoding, errors) - elif isinstance(s, text_type): - return s - else: - raise TypeError("not expecting type '%s'" % type(s)) - - -def python_2_unicode_compatible(klass): - """ - A class decorator that defines __unicode__ and __str__ methods under Python 2. - Under Python 3 it does nothing. - - To support Python 2 and 3 with a single code base, define a __str__ method - returning text and apply this decorator to the class. - """ - if PY2: - if '__str__' not in klass.__dict__: - raise ValueError("@python_2_unicode_compatible cannot be applied " - "to %s because it doesn't define __str__()." % - klass.__name__) - klass.__unicode__ = klass.__str__ - klass.__str__ = lambda self: self.__unicode__().encode('utf-8') - return klass - - -# Complete the moves implementation. -# This code is at the end of this module to speed up module loading. -# Turn this module into a package. -__path__ = [] # required for PEP 302 and PEP 451 -__package__ = __name__ # see PEP 366 @ReservedAssignment -if globals().get("__spec__") is not None: - __spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable -# Remove other six meta path importers, since they cause problems. This can -# happen if six is removed from sys.modules and then reloaded. (Setuptools does -# this for some reason.) -if sys.meta_path: - for i, importer in enumerate(sys.meta_path): - # Here's some real nastiness: Another "instance" of the six module might - # be floating around. Therefore, we can't use isinstance() to check for - # the six meta path importer, since the other six instance will have - # inserted an importer with different class. - if (type(importer).__name__ == "_SixMetaPathImporter" and - importer.name == __name__): - del sys.meta_path[i] - break - del i, importer -# Finally, add the importer to the meta path import hook. -sys.meta_path.append(_importer) From e46b31b960564fdd4087d06812bb62362c1c6c6b Mon Sep 17 00:00:00 2001 From: Jakub Kulik Date: Wed, 3 Dec 2025 15:17:54 +0100 Subject: [PATCH 7/7] final cleanup --- src/oci/base_client.py | 2 +- .../transfer/internal/download/DownloadManager.py | 1 - .../object_storage/transfer/internal/download/DownloadThread.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/oci/base_client.py b/src/oci/base_client.py index 7a30ddf34..a89775c90 100644 --- a/src/oci/base_client.py +++ b/src/oci/base_client.py @@ -20,7 +20,7 @@ import _strptime # noqa: F401 from datetime import date, datetime, timezone from timeit import default_timer as timer -from ._vendor import requests, six, urllib3, sseclient +from ._vendor import requests, urllib3, sseclient from dateutil.parser import parse from dateutil import tz import functools diff --git a/src/oci/object_storage/transfer/internal/download/DownloadManager.py b/src/oci/object_storage/transfer/internal/download/DownloadManager.py index 5d2f3fb2a..dc7f3a4dd 100644 --- a/src/oci/object_storage/transfer/internal/download/DownloadManager.py +++ b/src/oci/object_storage/transfer/internal/download/DownloadManager.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 io -import six import math import time import warnings diff --git a/src/oci/object_storage/transfer/internal/download/DownloadThread.py b/src/oci/object_storage/transfer/internal/download/DownloadThread.py index 76b46ae5d..3ffc45a26 100644 --- a/src/oci/object_storage/transfer/internal/download/DownloadThread.py +++ b/src/oci/object_storage/transfer/internal/download/DownloadThread.py @@ -2,7 +2,6 @@ # Copyright (c) 2016, 2025, 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 time import multiprocessing from enum import Enum